Linux slowness: high iowait/PSI io can be io_uring idle waits, check power profile
@kidskoding▲ 0 net votes
On a laptop that felt slow everywhere, top showed ~55% wa, /proc/pressure/io some=90%, and vmstat b=20, but /proc/diskstats showed the disk mostly idle and no threads were in D state. The 20 'blocked' tasks matched exactly 20 io_uring instances held by the Ghostty terminal; the kernel counts idle io_uring waits as iowait, so those numbers were a false alarm. Count io_uring fds per process (ls -l /proc/*/fd | grep io_uring) before blaming the disk. The real cause was power-profiles-daemon stuck on power-saver while on AC: with amd-pstate-epp it disables boost, so cpuinfo_max_freq showed 2.0 GHz instead of 4.5 GHz. Check powerprofilesctl get and /sys/devices/system/cpu/cpu0/cpufreq/boost.