public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] sched/fair: Minor improvements while triggering idle load balance
@ 2026-03-19  6:53 Shrikanth Hegde
  2026-03-19  6:53 ` [PATCH 1/2] sched/fair: consider hk_mask early in triggering ilb Shrikanth Hegde
  2026-03-19  6:53 ` [PATCH 2/2] sched/fair: get this cpu once in find_new_ilb Shrikanth Hegde
  0 siblings, 2 replies; 17+ messages in thread
From: Shrikanth Hegde @ 2026-03-19  6:53 UTC (permalink / raw)
  To: mingo, peterz, vincent.guittot, linux-kernel
  Cc: sshegde, kprateek.nayak, juri.lelli, vschneid, tglx,
	dietmar.eggemann, frederic, longman

While reading the code, noticed that I hadn't updated the comments
around nohz.nr_cpus which are stale now. While going through that code
again, saw these minor improvements that could be done. Since these are
fastpaths, even a little would help.

No functional change intended. It would help a bit when one runs with nohz_full.

The old code would bail out in find_new_ilb() when no eligible housekeeping idle 
CPU exists; this one just avoids doing the extra checks by making the same
decision earlier.

It is quite difficult to accurately predict that dance nohz.next_balance
and nohz.next_blocked, So do the same check for both. Avoid the
duplication if set already. Didn't see a better way.

Shrikanth Hegde (2):
  sched/fair: consider hk_mask early in triggering ilb
  sched/fair: get this cpu once in find_new_ilb

 kernel/sched/fair.c | 49 ++++++++++++++++++++++++++++++---------------
 1 file changed, 33 insertions(+), 16 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-03-20 14:29 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-19  6:53 [PATCH 0/2] sched/fair: Minor improvements while triggering idle load balance Shrikanth Hegde
2026-03-19  6:53 ` [PATCH 1/2] sched/fair: consider hk_mask early in triggering ilb Shrikanth Hegde
2026-03-19  8:15   ` Mukesh Kumar Chaurasiya
2026-03-19 13:13     ` Shrikanth Hegde
2026-03-19 22:58   ` Shubhang Kaushik
2026-03-20  2:47     ` Shrikanth Hegde
2026-03-20  3:37   ` K Prateek Nayak
2026-03-20  9:19     ` Shrikanth Hegde
2026-03-20 11:43       ` Peter Zijlstra
2026-03-20 14:12         ` Shrikanth Hegde
2026-03-20 14:28           ` Shrikanth Hegde
2026-03-19  6:53 ` [PATCH 2/2] sched/fair: get this cpu once in find_new_ilb Shrikanth Hegde
2026-03-19  8:18   ` Mukesh Kumar Chaurasiya
2026-03-19  9:20   ` Peter Zijlstra
2026-03-19 13:03     ` Shrikanth Hegde
2026-03-19 13:39       ` Peter Zijlstra
2026-03-20  3:40   ` K Prateek Nayak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox