]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/cache: Record per LLC utilization to guide cache aware scheduling decisions
authorChen Yu <yu.c.chen@intel.com>
Wed, 1 Apr 2026 21:52:15 +0000 (14:52 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 9 Apr 2026 13:49:48 +0000 (15:49 +0200)
commitf025ef275388742643a2c33f00a0d9c0af3112ee
treecebd598d0d78b46b53132884d13532c743acd7e3
parentb4606faab3188beeacc2287b8a369cca943cc8eb
sched/cache: Record per LLC utilization to guide cache aware scheduling decisions

When a system becomes busy and a process's preferred LLC is
saturated with too many threads, tasks within that LLC migrate
frequently. These in LLC migrations introduce latency and degrade
performance. To avoid this, task aggregation should be suppressed
when the preferred LLC is overloaded, which requires a metric to
indicate LLC utilization.

Record per LLC utilization/cpu capacity during periodic load
balancing. These statistics will be used in later patches to decide
whether tasks should be aggregated into their preferred LLC.

Signed-off-by: Chen Yu <yu.c.chen@intel.com>
Co-developed-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/a48151b3d57f2a42a5971aaead1b7f81e69229f4.1775065312.git.tim.c.chen@linux.intel.com
include/linux/sched/topology.h
kernel/sched/fair.c