Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759265Ab3GaJHh (ORCPT ); Wed, 31 Jul 2013 05:07:37 -0400 Received: from cantor2.suse.de ([195.135.220.15]:49712 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753942Ab3GaJHb (ORCPT ); Wed, 31 Jul 2013 05:07:31 -0400 Date: Wed, 31 Jul 2013 10:07:27 +0100 From: Mel Gorman To: Hillf Danton Cc: Peter Zijlstra , Srikar Dronamraju , Ingo Molnar , Andrea Arcangeli , Johannes Weiner , Linux-MM , LKML Subject: Re: [PATCH 08/18] sched: Reschedule task on preferred NUMA node once selected Message-ID: <20130731090727.GI2296@suse.de> References: <1373901620-2021-1-git-send-email-mgorman@suse.de> <1373901620-2021-9-git-send-email-mgorman@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 876 Lines: 27 On Wed, Jul 17, 2013 at 09:31:05AM +0800, Hillf Danton wrote: > On Mon, Jul 15, 2013 at 11:20 PM, Mel Gorman wrote: > > +static int > > +find_idlest_cpu_node(int this_cpu, int nid) > > +{ > > + unsigned long load, min_load = ULONG_MAX; > > + int i, idlest_cpu = this_cpu; > > + > > + BUG_ON(cpu_to_node(this_cpu) == nid); > > + > > + rcu_read_lock(); > > + for_each_cpu(i, cpumask_of_node(nid)) { > > Check allowed CPUs first if task is given? > If the task is not allowed to run on the CPUs for that node then how were the NUMA hinting faults recorded? -- Mel Gorman SUSE Labs -- 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/