From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755679Ab3BVJjl (ORCPT ); Fri, 22 Feb 2013 04:39:41 -0500 Received: from merlin.infradead.org ([205.233.59.134]:35187 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750834Ab3BVJjg (ORCPT ); Fri, 22 Feb 2013 04:39:36 -0500 Message-ID: <1361525962.26780.47.camel@laptop> Subject: Re: [RFC PATCH v3 0/3] sched: simplify the select_task_rq_fair() From: Peter Zijlstra To: Michael Wang Cc: Mike Galbraith , Ingo Molnar , LKML , Paul Turner , Andrew Morton , alex.shi@intel.com, Ram Pai , "Nikunj A. Dadhania" , Namhyung Kim Date: Fri, 22 Feb 2013 10:39:22 +0100 In-Reply-To: <51273609.9080308@linux.vnet.ibm.com> References: <51079178.3070002@linux.vnet.ibm.com> <20130220104958.GA9152@gmail.com> <5125A7C8.8020308@linux.vnet.ibm.com> <1361427108.5861.41.camel@marge.simpson.net> <5125C607.8090909@linux.vnet.ibm.com> <1361434231.5861.61.camel@marge.simpson.net> <5125E40D.6050006@linux.vnet.ibm.com> <1361439789.5861.70.camel@marge.simpson.net> <5126D9A2.8090404@linux.vnet.ibm.com> <1361521270.26780.34.camel@laptop> <51273609.9080308@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2013-02-22 at 17:10 +0800, Michael Wang wrote: > On 02/22/2013 04:21 PM, Peter Zijlstra wrote: > > On Fri, 2013-02-22 at 10:36 +0800, Michael Wang wrote: > >> According to my understanding, in the old world, wake_affine() will > >> only > >> be used if curr_cpu and prev_cpu share cache, which means they are in > >> one package, whatever search in llc sd of curr_cpu or prev_cpu, we > >> won't > >> have the chance to spread the task out of that package. > > > > Nah, look at where SD_WAKE_AFFINE is set. Only 'remote/big' NUMA domains > > don't have it set, but 'small' NUMA systems will have it set over the > > entire domain tree. > > Oh, I missed that point... > > But I don't get the reason to make NUMA level affine, cpus in different > nodes share cache? doesn't make sense... Contrary, it makes more sense, the more expensive it is to run 'remote' the better it is to pull 'related' tasks together.