From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx181.postini.com [74.125.245.181]) by kanga.kvack.org (Postfix) with SMTP id A77EB6B00CB for ; Sun, 1 Jul 2012 12:58:21 -0400 (EDT) Message-ID: <4FF08185.4050806@redhat.com> Date: Sun, 01 Jul 2012 12:57:41 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 23/40] autonuma: sched_set_autonuma_need_balance References: <1340888180-15355-1-git-send-email-aarcange@redhat.com> <1340888180-15355-24-git-send-email-aarcange@redhat.com> In-Reply-To: <1340888180-15355-24-git-send-email-aarcange@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Andrea Arcangeli Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, 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 , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt On 06/28/2012 08:56 AM, Andrea Arcangeli wrote: > 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(); > + Misleading function name in patch 13, this actually calls sched_autonuma_balance and is not setting a flag like the name suggests (to me). -- All rights reversed -- 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