scx_rescue_accrue(9)
π scx_rescue_accrue β the Kernel API Manual, bestie edition
okay so you're looking at scx_rescue_accrue(9) from the Kernel API Manual and honestly? it's giving "tiny function, big responsibilities." let's get into it π
β¨ NAME β¨
scx_rescue_accrue β accrue budget at the configured fraction of elapsed time. that's it, that's the whole job, and she does it flawlessly π
πΈ SYNOPSIS πΈ
void scx_rescue_accrue (struct rq *rq );
π¦ ARGUMENTS π¦
rqβ the rq of interest, aka the runqueue you're being nosy about π
π DESCRIPTION π
okay so picture this: a session spans from the first arrival until no rescuee is left β pending or admitted, like literally none, zero, gone π«Ά
while a session is active, the cap is three quanta, and the balance is what drives escalation. (see scx_rescue_timerfn if you wanna know more about that whole situation β iykyk β¨)
but outside a session? the cap is just one quantum. so an idle gap funds the next arrival's admission, but it never, ever funds an escalation. no cap, no escalation, that's the rule periodt π
lowkey the whole vibe is: sessions get the fancy three-quantum budget, idle gaps get one quantum and only for admission. do not mix them up bestie, the math will not forgive you π
π§ SEE ALSO π§
kernel file ./kernel/sched/ext/sub.c β and the whole friend group:
scx_skip_subtree_pre(9)scx_next_descendant_pre(9)scx_rescue_charge(9)scx_rescue_end(9)scx_rescue_keep(9)scx_rescue_admit(9)scx_rescue_try_admit(9)scx_rescue_check_overload(9)scx_rescue_timerfn(9)scx_resolve_local_dsq(9)queue_sync_ecaps(9)scx_process_sync_ecaps(9)scx_unbypass_replay_ecaps(9)scx_discard_stale_ecaps_syncs(9)scx_rehome_task(9)scx_punt_task(9)scx_cgroup_claim_subtree(9)scx_cgroup_return_subtree(9)scx_cgroup_task_migrating(9)scx_cgroup_task_migrated(9)scx_cgroup_task_migrate_canceled(9)scx_bpf_sub_dispatch(9)scx_bpf_sub_grant(9)scx_bpf_sub_revoke(9)scx_bpf_sub_caps(9)scx_bpf_sub_kill_bstr(9)
that's the whole page!! π shipped from ./kernel/sched/ext, dated October 2026, under the name scx_rescue_accrue(9) β go accrue that budget and slay, bestie π
π¦ 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