sugov_iowait_apply(9)
β¨ sugov_iowait_apply(9) β¨
okay bestie, welcome to the Kernel API Manual entry for sugov_iowait_apply(9) β yes that's the whole manual name, we're in the kernel API girlies now π
πΈ NAME πΈ
sugov_iowait_apply β the girl who literally applies the IO boost to a CPU π«Ά
π¦ SYNOPSIS π¦
unsigned long sugov_iowait_apply (struct sugov_cpu *sg_cpu , u64 time ,
unsigned long max_cap );
π ARGUMENTS π
sg_cpuβ the sugov data for the cpu to boost, i.e. the main character's data sheet πtimeβ the update time from the caller, so like, when is this happening β°max_capβ the max CPU capacity, the ceiling, the limit, themax_capπ§
π₯ DESCRIPTION π₯
so here's the vibe β¨ A CPU running a task which woken up after an IO operation can have its utilization boosted to speed up the completion of those IO operations. like, it woke up from IO so we're giving it a little glow-up so it finishes faster, periodt.
The IO boost value is increased each time a task wakes up from IO, in sugov_iowait_boost, and it's instead decreased by this function, each time an increase has not been requested (!iowait_boost_pending). so: boost goes up over there, boost comes down over here when nobody's asking for more. balanced. iconic. π
A CPU which also appears to have been idle for at least one tick has also its IO boost utilization reset. ngl if you've been sitting idle for a tick or more, we're resetting that boost, no cap π
This mechanism is designed to boost high frequently IO waiting tasks, while being more conservative on tasks which does sporadic IO operations. like it's literally built to hype up the constant-IO girlies and be lowkey chill with the ones who only show up every once in a while π
fr fr, the whole point is heavy IO waiters get the boost and sporadic ones get treated more conservatively β that's the design, not a bug π
π SEE ALSO π
- Kernel file
./kernel/sched/cpufreq_schedutil.cβ and the whole squad:get_capacity_ref_freq(9),get_next_freq(9),sugov_iowait_reset(9),sugov_iowait_boost(9)π
and that's a wrap bestie π this little drop came to you from ./kernel/sched, dated October 2026 β go forth and apply those boosts, sugov_iowait_apply(9) out π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms