update_cfs_rq_load_avg(9)
okay so bestie, welcome to update_cfs_rq_load_avg(9) from the Kernel API Manual π«Ά this is the page for updating the cfs_rqβs load/util averages, and yes itβs giving scheduler-core main character energy π
πΈ NAME πΈ
update_cfs_rq_load_avg β update the cfs_rqβs load/util averages β¨
β¨ SYNOPSIS β¨
int update_cfs_rq_load_avg (u64 now , struct cfs_rq *cfs_rq );
π ARGUMENTS π
nowβ current time, as percfs_rq_clock_peltβ°cfs_rqβ cfs_rq to update π
π DESCRIPTION π
The cfs_rq avg is the direct sum of all its entities (blocked and runnable) avg. The immediate corollary is that all (fair) tasks must be attached. no cap, thatβs the whole vibe π§
cfs_rq->avg is used for task_h_load and update_cfs_group, for example. iconic little fields, honestly π
Since both these conditions indicate a changed cfs_rq->avg.load, we should call update_tg_load_avg when this function returns true. periodt π«
π₯ RETURN π₯
true if the load decayed or we removed load. thatβs the signal, bestie π
π¦ SEE ALSO π¦
Kernel file ./kernel/sched/fair.c β also go peek at these:
update_tg_load_avg(9)attach_entity_load_avg(9)detach_entity_load_avg(9)cpu_util(9)sched_use_asym_prio(9)sched_group_asym(9)update_sg_lb_stats(9)update_sd_pick_busiest(9)idle_cpu_without(9)update_sd_lb_stats(9)calculate_imbalance(9)sched_balance_find_src_group(9)
and thatβs the page, bestie π source/version line says ./kernel/sched, date October 2026, footer title still update_cfs_rq_load_avg(9) β mwah π
π¦ 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