Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754762Ab2E2RoI (ORCPT ); Tue, 29 May 2012 13:44:08 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37954 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754547Ab2E2RoG convert rfc822-to-8bit (ORCPT ); Tue, 29 May 2012 13:44:06 -0400 Message-ID: <1338313407.26856.163.camel@twins> Subject: Re: [PATCH 22/35] autonuma: sched_set_autonuma_need_balance From: Peter Zijlstra 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 , Srivatsa Vaddagiri , Christoph Lameter Date: Tue, 29 May 2012 19:43:27 +0200 In-Reply-To: <20120529173347.GJ21339@redhat.com> References: <1337965359-29725-1-git-send-email-aarcange@redhat.com> <1337965359-29725-23-git-send-email-aarcange@redhat.com> <1338307942.26856.111.camel@twins> <20120529173347.GJ21339@redhat.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 695 Lines: 19 On Tue, 2012-05-29 at 19:33 +0200, Andrea Arcangeli wrote: > So the cost on a 24-way SMP is irrelevant.. also, not every cpu gets to the 24 cpu domain, just 2 do. When you do for_each_cpu() think at least 4096, if you do for_each_node() think at least 256. Add to that the knowledge that doing 4096 remote memory accesses will cost multiple jiffies, then realize you're wanting to do that with preemption disabled. That's just a very big no go. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/