Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755045AbbDUNMh (ORCPT ); Tue, 21 Apr 2015 09:12:37 -0400 Received: from smtprelay0174.hostedemail.com ([216.40.44.174]:48047 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754966AbbDUNMf (ORCPT ); Tue, 21 Apr 2015 09:12:35 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1543:1593:1594:1605:1711:1730:1747:1777:1792:2393:2553:2559:2562:2691:3138:3139:3140:3141:3142:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4250:5007:6117:6120:6261:7875:7901:7903:8957:10004:10400:10848:10967:11026:11232:11473:11658:11914:12198:12296:12517:12519:12663:12740:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: wind57_8ac6b06be0a36 X-Filterd-Recvd-Size: 4613 Date: Tue, 21 Apr 2015 09:12:32 -0400 From: Steven Rostedt To: "Paul E. McKenney" Cc: Clark Williams , Ingo Molnar , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, a.p.zijlstra@chello.nl, akpm@linux-foundation.org, linux-rt-users@vger.kernel.org Subject: Re: [GIT RFC PULL rcu/urgent] Prevent Kconfig from asking pointless questions Message-ID: <20150421091232.6c66ba7b@gandalf.local.home> In-Reply-To: <20150421012258.GZ5561@linux.vnet.ibm.com> References: <20150416183812.GA5571@linux.vnet.ibm.com> <20150418130340.GA26931@gmail.com> <20150418133444.GD23685@linux.vnet.ibm.com> <20150418143238.GA2337@gmail.com> <20150419020541.GA5561@linux.vnet.ibm.com> <20150420113554.598e503f@sluggy> <20150420170902.GU5561@linux.vnet.ibm.com> <20150420204049.GF24936@home.goodmis.org> <20150420211504.GW5561@linux.vnet.ibm.com> <20150420165007.295f3fe0@sluggy> <20150421012258.GZ5561@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3371 Lines: 72 On Mon, 20 Apr 2015 18:22:58 -0700 "Paul E. McKenney" wrote: > On Mon, Apr 20, 2015 at 04:50:07PM -0500, Clark Williams wrote: > > On Mon, 20 Apr 2015 14:15:04 -0700 > > "Paul E. McKenney" wrote: > > > > > On Mon, Apr 20, 2015 at 04:40:49PM -0400, Steven Rostedt wrote: > > > > On Mon, Apr 20, 2015 at 10:09:03AM -0700, Paul E. McKenney wrote: > > > > > > > > > > The sysfs knob might be nice, but as far as I know nobody has been > > > > > complaining about it. > > > > > > > > > > Besides, we already have the rcutree.kthread_prio= kernel-boot parameter. > > > > > So how about if the Kconfig parameter selects either SCHED_OTHER > > > > > (the default) or SCHED_FIFO:1, and then the boot parameter can be used > > > > > to select other values. > > > > > > > > Hmm, what priority is this for anyway. To change the priority of the boost > > > > value at run time, do we only need to change the priority of the rcub threads? > > > > > > > > And the priority of the other rcu threads can change as well with a simple > > > > chrt? > > > > > > > > If that's the case, then we don't need a sysctl knob at all. > > > > > > For the grace-period kthreads and the boost kthread, that is the case. > > > It is also the case for the per-CPU kthreads that invoke RCU callbacks > > > for the non-offloaded RCU_BOOST configuration (and that replace all > > > softirq RCU work in -rt). > > > > > > So, should I just ditch all of the priority-setting within RCU and tell > > > users to just use chrt? > > > > Looks to me like all we need to do is tell people if they need a boost > > higher than the compiled in default (RCU_KTHREAD_PRIO), then chrt the > > priority of the rcub thread to the desired priority. > > There's the rub. They also need to chrt the RCU grace-period kthreads > as well as the per-CPU kthreads (rcuc). Which is a pain and easy to > get wrong. > > So at this point, I am leaning towards keeping RCU_KTHREAD_PRIO, but > hiding it behind RCU_EXPERT. Someone in an emergency situation can use > chrt to get RCU going, at least assuming that they had the foresight to > leave a prio-99 shell running somewhere and assuming that they do the > chrt before the system hits OOM. But they have to do all that anyway > if they were to use a sysfs or similar interface. And it is easy to > tell when you have boosted all the necessary kthreads because RCU > grace periods start advancing once again. You don't get that feedback > when you set things up at boot time. ;-) > > So again, at least for the moment, I believe that RCU need not provide > a run-time interface for changing RCU kthread priorities, that the > RCU_KTHREAD_PRIO Kconfig parameter should remain, except that it needs > to be hidden behind RCU_EXPERT, and that the rcutree.kthread_prio= > kernel-boot parameter should also remain. > > Seem reasonable? > Does chrt override the kthread_prio at run time? If so, then great. Otherwise, the sysadmin should still have a way to control their priorities of kernel threads (with few exceptions like the migration thread). -- Steve -- 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/