From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754762Ab1HaOa6 (ORCPT ); Wed, 31 Aug 2011 10:30:58 -0400 Received: from merlin.infradead.org ([205.233.59.134]:59899 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750889Ab1HaOaz convert rfc822-to-8bit (ORCPT ); Wed, 31 Aug 2011 10:30:55 -0400 Subject: Re: [RFC PATCH 00/32] Nohz cpusets (was: Nohz Tasks) From: Peter Zijlstra To: Gilad Ben-Yossef Cc: Frederic Weisbecker , LKML , Andrew Morton , Anton Blanchard , Avi Kivity , Ingo Molnar , Lai Jiangshan , "Paul E . McKenney" , Paul Menage , Stephen Hemminger , Thomas Gleixner , Tim Pepper Date: Wed, 31 Aug 2011 16:30:17 +0200 In-Reply-To: References: <1313423549-27093-1-git-send-email-fweisbec@gmail.com> <20110830140648.GL9748@somewhere.redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.0.2- Message-ID: <1314801017.3578.32.camel@twins> Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2011-08-31 at 16:57 +0300, Gilad Ben-Yossef wrote: > I added the cpuisol option after noticing how many tasks I was unable > to move from the root cpuset to the system cpuset due to them being > bound per CPU Right, so ideally those tasks should be idle and not interfere. Where this is not so, we should make it so. When userspace didn't ask for anything to happen, nothing should happen. When it did ask for it, well then it shouldn't complain it does :-) Furthermore things like: linux-2.6# git grep on_each_cpu mm/ mm/page_alloc.c: on_each_cpu(drain_local_pages, NULL, 1); mm/slab.c: on_each_cpu(do_drain, cachep, 1); mm/slab.c: on_each_cpu(do_ccupdate_local, (void *)new, 1); mm/slub.c: on_each_cpu(flush_cpu_slab, s, 1); mm/swap.c: return schedule_on_each_cpu(lru_add_drain_per_cpu); Should be converted to smp_call_function_many() and for each we should keep a cpumask of cpus where there's work to do, avoiding disturbing cpus that have been quiet.