From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx152.postini.com [74.125.245.152]) by kanga.kvack.org (Postfix) with SMTP id EDDF26B00A0 for ; Thu, 28 Jun 2012 08:57:10 -0400 (EDT) From: Andrea Arcangeli Subject: [PATCH 23/40] autonuma: sched_set_autonuma_need_balance Date: Thu, 28 Jun 2012 14:56:03 +0200 Message-Id: <1340888180-15355-24-git-send-email-aarcange@redhat.com> In-Reply-To: <1340888180-15355-1-git-send-email-aarcange@redhat.com> References: <1340888180-15355-1-git-send-email-aarcange@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Hillf Danton , Dan Smith , Peter Zijlstra , Linus Torvalds , Andrew Morton , Thomas Gleixner , Ingo Molnar , Paul Turner , Suresh Siddha , Mike Galbraith , "Paul E. McKenney" , Lai Jiangshan , Bharata B Rao , Lee Schermerhorn , Rik van Riel , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt Invoke autonuma_balance only on the busy CPUs at the same frequency of the CFS load balance. Signed-off-by: Andrea Arcangeli --- kernel/sched/fair.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index dab9bdd..ff288c0 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4906,6 +4906,9 @@ static void run_rebalance_domains(struct softirq_action *h) rebalance_domains(this_cpu, idle); + if (!this_rq->idle_balance) + sched_set_autonuma_need_balance(); + /* * If this cpu has a pending nohz_balance_kick, then do the * balancing on behalf of the other idle cpus whose ticks are -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org