From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx148.postini.com [74.125.245.148]) by kanga.kvack.org (Postfix) with SMTP id 3C90A6B0062 for ; Mon, 2 Jul 2012 03:30:10 -0400 (EDT) Message-ID: <4FF14DDF.8000201@redhat.com> Date: Mon, 02 Jul 2012 03:29:35 -0400 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 13/40] autonuma: CPU follow memory algorithm References: <1340888180-15355-1-git-send-email-aarcange@redhat.com> <1340888180-15355-14-git-send-email-aarcange@redhat.com> <1340895238.28750.49.camel@twins> <20120629125517.GD32637@gmail.com> <4FEDDD0C.60609@redhat.com> <1340995986.28750.114.camel@twins> <20120630012338.GY6676@redhat.com> <4FEE9310.1050908@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Nai Xia Cc: dlaor@redhat.com, Andrea Arcangeli , Peter Zijlstra , Ingo Molnar , Hillf Danton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, 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 , Johannes Weiner , Srivatsa Vaddagiri , Christoph Lameter , Alex Shi , Mauricio Faria de Oliveira , Konrad Rzeszutek Wilk , Don Morris , Benjamin Herrenschmidt On 06/30/2012 04:23 AM, Nai Xia wrote: > Oh, sorry, I think I forgot few last comments in my last post: > > In case you really can take my advice and do comprehensive research, > try to make sure that you compare the result of your fancy sampling algorithm > with this simple logic: > > "Blindly select a node and bind the process and move all pages to it." > > Stupid it may sound, I highly suspect it can approach the benchmarks > you already did. > > If that's really the truth, then all the sampling and weighting stuff can > be cut off. All the sampling and weighing is there in order to deal with processes that do not fit in one NUMA node. This could be either a process that uses more memory than what fits in one NUMA node, or a process with more threads than there are processors in a NUMA node, or both. That is what the complex code is for. -- 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