Re: [PATCH v2 0/1] cpuidle: menu: Fix high wakeup latency on modern platforms

From: Russell Haley

Date: Mon Feb 09 2026 - 18:24:27 EST


On 1/26/26 2:19 PM, Ionut Nechita (Sunlight Linux) wrote:

> I considered PM QoS and /dev/cpu_dma_latency, but they have limitations
> for this use case:
>
> 1. Global PM QoS affects all cores, not just the isolated ones
> 2. Per-task PM QoS requires application modifications
> 3. /dev/cpu_dma_latency is system-wide, not per-core
>
> For isolated cores with NOHZ_FULL in a realtime environment, we want
> the governor to make smarter decisions based on actual predicted idle
> time rather than relying on next_timer_ns which can be arbitrarily large
> on tickless cores.
>

In case it helps, you can write "1" to

/sys/devices/system/cpu/cpu*/cpuidle/state*/disable

to lock out any idle states that are too deep. That's per-core, although
it's not as "crash clean" as holding an FD for /dev/cpu_dma_latency.

- Russell Haley