]> git.baikalelectronics.ru Git - kernel.git/commit
sched/numa: Do not swap tasks between nodes when spare capacity is available
authorMel Gorman <mgorman@techsingularity.net>
Fri, 20 May 2022 10:35:17 +0000 (11:35 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 13 Jun 2022 08:29:59 +0000 (10:29 +0200)
commit7302bb015ddc03e96e45f52719710c5cb614dd2f
treec1ed544c0396affd5bb7a68be5e6e5cd01e34993
parente160abbe3c3fc8cdd94b6331f1440cf628fec97a
sched/numa: Do not swap tasks between nodes when spare capacity is available

If a destination node has spare capacity but there is an imbalance then
two tasks are selected for swapping. If the tasks have no numa group
or are within the same NUMA group, it's simply shuffling tasks around
without having any impact on the compute imbalance. Instead, it's just
punishing one task to help another.

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: K Prateek Nayak <kprateek.nayak@amd.com>
Link: https://lore.kernel.org/r/20220520103519.1863-3-mgorman@techsingularity.net
kernel/sched/fair.c