From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx198.postini.com [74.125.245.198]) by kanga.kvack.org (Postfix) with SMTP id 985056B004A for ; Mon, 26 Mar 2012 14:41:00 -0400 (EDT) Message-ID: <1332786353.16159.173.camel@twins> Subject: Re: [PATCH 11/39] autonuma: CPU follow memory algorithm From: Peter Zijlstra Date: Mon, 26 Mar 2012 20:25:53 +0200 In-Reply-To: <1332783986-24195-12-git-send-email-aarcange@redhat.com> References: <1332783986-24195-1-git-send-email-aarcange@redhat.com> <1332783986-24195-12-git-send-email-aarcange@redhat.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 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 , 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 On Mon, 2012-03-26 at 19:45 +0200, Andrea Arcangeli wrote: > @@ -3220,6 +3214,8 @@ need_resched: > =20 > post_schedule(rq); > =20 > + sched_autonuma_balance(); > + > sched_preempt_enable_no_resched(); > if (need_resched()) > goto need_resched;=20 I already told you, this isn't ever going to happen. You do _NOT_ put a for_each_online_cpu() loop in the middle of schedule(). You also do not call stop_one_cpu(migration_cpu_stop) in schedule to force migrate the task you just scheduled to away from this cpu. That's retarded. Nacked-by: Peter Zijlstra -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org