From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755566AbaEMX4x (ORCPT ); Tue, 13 May 2014 19:56:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50229 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751991AbaEMX4w (ORCPT ); Tue, 13 May 2014 19:56:52 -0400 Date: Tue, 13 May 2014 19:55:50 -0400 From: Rik van Riel To: linux-kernel@vger.kernel.org Cc: peterz@infradead.org, mingo@kernel.org, mgorman@suse.de Subject: [PATCH] sched,numa: move processes with load difference Message-ID: <20140513195550.315a92bf@annuminas.surriel.com> Organization: Red Hat, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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;