Skip to content

sched/fair: Minor improvements while triggering idle load balance

Shrikanth Hegde lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched/fair: consider hk_mask early in triggering ilbkernel/sched/fair.c+31 -149 replies
2/2sched/fair: get this cpu once in find_new_ilbkernel/sched/fair.c+2 -25 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMukesh Kumar Chaurasiya (IBM)K Prateek Nayak
1/2
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] sched/fair: Minor improvements while triggering idle load balance

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(-)
Signature · 1 line
2.43.0