Commit a2af04d
sched/fair: Add SIS_UTIL support to select_idle_capacity()
BugLink: https://bugs.launchpad.net/bugs/2150671
Add to select_idle_capacity() the same SIS_UTIL-controlled idle-scan
mechanism, already used by select_idle_cpu(): when sched_feat(SIS_UTIL)
is enabled and the LLC domain has sched_domain_shared data, derive the
per-attempt scan limit from sd->shared->nr_idle_scan.
That bounds the walk on large LLCs: once nr_idle_scan is exhausted,
return the best CPU seen so far. The early exit is gated on
!has_idle_core so an active idle-core search (SMT with idle cores
reported by test_idle_cores()) isn't cut short before it gets a chance
to find one.
Co-developed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: K Prateek Nayak <kprateek.nayak@amd.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://patch.msgid.link/20260509180955.1840064-6-arighi@nvidia.com
(backported from commit 61ea17a linux-next)
[ arighi: choose_idle_cpu() not available in v6.18 ]
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Acked-by: Seth Forshee <sforshee@nvidia.com>
Acked-by: Nirmoy Das <nirmoyd@nvidia.com>
Acked-by: Matthew R. Ochs <mochs@nvidia.com>
Signed-off-by: Seth Forshee <sforshee@nvidia.com>1 parent 09fceee commit a2af04d
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7871 | 7871 | | |
7872 | 7872 | | |
7873 | 7873 | | |
| 7874 | + | |
7874 | 7875 | | |
7875 | 7876 | | |
7876 | 7877 | | |
| |||
7879 | 7880 | | |
7880 | 7881 | | |
7881 | 7882 | | |
| 7883 | + | |
| 7884 | + | |
| 7885 | + | |
| 7886 | + | |
| 7887 | + | |
| 7888 | + | |
| 7889 | + | |
| 7890 | + | |
| 7891 | + | |
| 7892 | + | |
| 7893 | + | |
7882 | 7894 | | |
7883 | 7895 | | |
7884 | 7896 | | |
7885 | 7897 | | |
| 7898 | + | |
| 7899 | + | |
| 7900 | + | |
| 7901 | + | |
| 7902 | + | |
| 7903 | + | |
| 7904 | + | |
7886 | 7905 | | |
7887 | 7906 | | |
7888 | 7907 | | |
| |||
0 commit comments