public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched,numa: move processes with load difference
@ 2014-05-13 23:55 Rik van Riel
  2014-05-14 15:29 ` Peter Zijlstra
  0 siblings, 1 reply; 5+ messages in thread
From: Rik van Riel @ 2014-05-13 23:55 UTC (permalink / raw)
  To: linux-kernel; +Cc: peterz, mingo, mgorman

Currently the numa balancing code refuses to move a task from a
heavily loaded node to a much less heavily loaded node, if the
difference in load between them is large enough.

If the source load is larger than the destination load after the
swap, moving the task is fine. Chances are the load balancer would
move tasks in the same direction, anyway.

Signed-off-by: Rik van Riel <riel@redhat.com>
---
 kernel/sched/fair.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 6d9474c..98a018f 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -1224,10 +1224,6 @@ static void task_numa_compare(struct task_numa_env *env,
 		src_load += load;
 	}
 
-	/* make src_load the smaller */
-	if (dst_load < src_load)
-		swap(dst_load, src_load);
-
 	if (src_load * env->imbalance_pct < dst_load * 100)
 		goto unlock;
 


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

end of thread, other threads:[~2014-05-22 12:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13 23:55 [PATCH] sched,numa: move processes with load difference Rik van Riel
2014-05-14 15:29 ` Peter Zijlstra
2014-05-14 17:22   ` [PATCH] sched,numa: allow task switch if load imbalance improves Rik van Riel
2014-05-19 13:10     ` [tip:sched/core] sched,numa: Allow " tip-bot for Rik van Riel
2014-05-22 12:29     ` [tip:sched/core] sched/numa: " tip-bot for Rik van Riel

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