diff options
| author | Chen Yu <yu.c.chen@intel.com> | 2026-04-01 14:52:15 -0700 |
|---|---|---|
| committer | Peter Zijlstra <peterz@infradead.org> | 2026-04-09 15:49:48 +0200 |
| commit | f025ef275388742643a2c33f00a0d9c0af3112ee (patch) | |
| tree | cebd598d0d78b46b53132884d13532c743acd7e3 /include | |
| parent | b4606faab3188beeacc2287b8a369cca943cc8eb (diff) | |
| download | lwn-f025ef275388742643a2c33f00a0d9c0af3112ee.tar.gz lwn-f025ef275388742643a2c33f00a0d9c0af3112ee.zip | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched/topology.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sched/topology.h b/include/linux/sched/topology.h index 36553e14866d..159716fa0d3a 100644 --- a/include/linux/sched/topology.h +++ b/include/linux/sched/topology.h @@ -68,6 +68,10 @@ struct sched_domain_shared { atomic_t nr_busy_cpus; int has_idle_cores; int nr_idle_scan; +#ifdef CONFIG_SCHED_CACHE + unsigned long util_avg; + unsigned long capacity; +#endif }; struct sched_domain { |
