Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753587AbaFMQXb (ORCPT ); Fri, 13 Jun 2014 12:23:31 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:50807 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752026AbaFMQX3 (ORCPT ); Fri, 13 Jun 2014 12:23:29 -0400 Date: Fri, 13 Jun 2014 09:23:23 -0700 From: "Paul E. McKenney" To: Frederic Weisbecker Cc: LKML , Josh Triplett , Steven Rostedt , Mathieu Desnoyers Subject: Re: [PATCH] rcu: Only pin GP kthread when full dynticks is actually used Message-ID: <20140613162323.GS4581@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <1402618619-32630-1-git-send-email-fweisbec@gmail.com> <20140613012432.GH4581@linux.vnet.ibm.com> <20140613124207.GB6635@localhost.localdomain> <20140613155812.GO4581@linux.vnet.ibm.com> <20140613160933.GN6635@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140613160933.GN6635@localhost.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14061316-3532-0000-0000-0000027596BC Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 13, 2014 at 06:09:35PM +0200, Frederic Weisbecker wrote: > On Fri, Jun 13, 2014 at 08:58:12AM -0700, Paul E. McKenney wrote: > > > Maybe what we should do instead is to have something like this on RCU kthread init: > > > > > > cpumask_var_t gp_kthread_mask; > > > > > > if (alloc_cpumask_var(gp_kthread_mask, GFP_KERNEL)) > > > return -EFAULT; > > > > > > cpumask_andnot(gp_kthread_mask, cpu_possible_mask, tick_nohz_full_mask); > > > > > > set_cpus_allowed_ptr(current, gp_kthread_mask); > > > > > > free_cpumask_var(gp_kthread_mask); > > > > I was guessing that RCU's kthreads would not be the only ones that wanted > > similar binding. But if you feel strongly about this, we could at least > > start by placing it local to RCU as above. > > Hmm, I don't feel well creating mirrored cpumasks (nor solely negation cpumasks in general). > Also exposing that nohz gut is probably not a good idea either, except for RCU due to > the sysidle stuff. > > Now you're right that we can expect that this non-nohz affinity stuff is going to be reused. > > Could it be housekeeping_affine(struct task_struct *tsk) maybe? Now that you mention it, that does sound better. I will do that. Thanx, Paul -- 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/