diff options
author | Mel Gorman <mgorman@techsingularity.net> | 2022-02-08 09:43:33 +0000 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-02-11 23:30:08 +0100 |
commit | 2cfb7a1b031b0e816af7a6ee0c6ab83b0acdf05a (patch) | |
tree | 732d0ef35fcee7a9e11d652165cb02ef46295879 /net/ipv4/ipcomp.c | |
parent | 889c5d60fbcf332c8b6ab7054d45f2768914a375 (diff) |
sched/fair: Improve consistency of allowed NUMA balance calculations
There are inconsistencies when determining if a NUMA imbalance is allowed
that should be corrected.
o allow_numa_imbalance changes types and is not always examining
the destination group so both the type should be corrected as
well as the naming.
o find_idlest_group uses the sched_domain's weight instead of the
group weight which is different to find_busiest_group
o find_busiest_group uses the source group instead of the destination
which is different to task_numa_find_cpu
o Both find_idlest_group and find_busiest_group should account
for the number of running tasks if a move was allowed to be
consistent with task_numa_find_cpu
Fixes: 7d2b5dd0bcc4 ("sched/numa: Allow a floating imbalance between NUMA nodes")
Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
Link: https://lore.kernel.org/r/20220208094334.16379-2-mgorman@techsingularity.net
Diffstat (limited to 'net/ipv4/ipcomp.c')
0 files changed, 0 insertions, 0 deletions