Skip to content

DuckDB UI doesn't sleep well; excessive wakeups consume energy #188

@jwbee

Description

@jwbee

What happens?

I noticed that my Linux PC was a little hotter and louder than usual, considering that it was just sitting there. When I investigated it appeared that an idle duckdb CLI session has spawned many threads (66, on a 32-core host) and that collectively they cause many wakeups, which prevented the machine from entering a decent sleep state. The threads seem to enter and exit futex_wait quite rapidly.

This was observed with version DuckDB v1.3.2 (Ossivalis) 0b83e5d2f6

To Reproduce

duckdb

OS:

Linux Ubuntu 25.04

DuckDB Version:

DuckDB v1.3.2 (Ossivalis) 0b83e5d2f6

DuckDB Client:

CLI

Hardware:

AMD Ryzen 9 9950X

Full Name:

Jeff Baker

Affiliation:

self

What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.

I have tested with a stable release

Did you include all relevant data sets for reproducing the issue?

Yes

Did you include all code required to reproduce the issue?

  • Yes, I have

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?

  • Yes, I have

Metadata

Metadata

Assignees

No one assigned

    Labels

    extensionPertaining to the UI extension code, which is in this repository.needs infoMore investigation is required to understand this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions