From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx110.postini.com [74.125.245.110]) by kanga.kvack.org (Postfix) with SMTP id CEBCE6B005A for ; Mon, 10 Dec 2012 06:54:03 -0500 (EST) Received: by mail-bk0-f41.google.com with SMTP id jg9so1260140bkc.14 for ; Mon, 10 Dec 2012 03:54:02 -0800 (PST) Date: Mon, 10 Dec 2012 12:53:57 +0100 From: Ingo Molnar Subject: Re: [PATCH 00/49] Automatic NUMA Balancing v10 Message-ID: <20121210115357.GA8242@gmail.com> References: <1354875832-9700-1-git-send-email-mgorman@suse.de> <20121207110113.GB21482@gmail.com> <20121209203630.GC1009@suse.de> <20121210113945.GA7550@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121210113945.GA7550@gmail.com> Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Peter Zijlstra , Andrea Arcangeli , Rik van Riel , Johannes Weiner , Hugh Dickins , Thomas Gleixner , Paul Turner , Hillf Danton , David Rientjes , Lee Schermerhorn , Alex Shi , Srikar Dronamraju , Aneesh Kumar , Linus Torvalds , Andrew Morton , Linux-MM , LKML * Ingo Molnar wrote: > > reasons. As it turns out, a printk() bodge showed that > > nr_cpus_allowed == 80 set in sched_init_smp() while > > num_online_cpus() == 48. This effectively disabling > > numacore. If you had responded to the bug report, this would > > likely have been found last Wednesday. > > Does changing it from num_online_cpus() to num_possible_cpus() > help? (Can send a patch if you want.) I.e. something like the patch below. Thanks, Ingo diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 503ec29..9d11a8a 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2646,7 +2646,7 @@ static bool task_numa_candidate(struct task_struct *p) /* Don't disturb hard-bound tasks: */ if (sched_feat(NUMA_EXCLUDE_AFFINE)) { - if (p->nr_cpus_allowed != num_online_cpus()) + if (p->nr_cpus_allowed != num_possible_cpus()) return false; } -- 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