Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755541AbYFDEcT (ORCPT ); Wed, 4 Jun 2008 00:32:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750841AbYFDEcK (ORCPT ); Wed, 4 Jun 2008 00:32:10 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:13209 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbYFDEcI (ORCPT ); Wed, 4 Jun 2008 00:32:08 -0400 X-IronPort-AV: E=McAfee;i="5200,2160,5309"; a="3488464" Message-ID: <48461ADA.8020303@qualcomm.com> Date: Tue, 03 Jun 2008 21:32:26 -0700 From: Max Krasnyansky User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Paul Jackson CC: ioe-lkml@rameria.de, sivanich@sgi.com, a.p.zijlstra@chello.nl, linux-kernel@vger.kernel.org, kernel@kolivas.org, dfults@sgi.com, devik@cdi.cz, dino@in.ibm.com, emmanuel.pacaud@univ-poitiers.fr, deweerdt@free.fr, mingo@elte.hu, colpatch@us.ibm.com, nickpiggin@yahoo.com.au, rostedt@goodmis.org, oleg@tv-sign.ru, paulmck@us.ibm.com, menage@google.com, rddunlap@osdl.org, suresh.b.siddha@intel.com, tglx@linutronix.de Subject: Re: Inquiry: Should we remove "isolcpus= kernel boot option? (may have realtime uses) References: <20080601213019.14ea8ef8.pj@sgi.com> <1212446707.6269.26.camel@lappy.programming.kicks-ass.net> <48447C75.8040203@qualcomm.com> <200806030156.00155.ioe-lkml@rameria.de> <4844BB41.7000605@qualcomm.com> <4845D825.6000403@qualcomm.com> <20080603194148.56dfebe1.pj@sgi.com> In-Reply-To: <20080603194148.56dfebe1.pj@sgi.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5099 Lines: 107 Paul Jackson wrote: > Max wrote: >> So I expect two ACKs for isolcpu= removal from both of you, in bold please :) > > Not from me, anyway. > > I've seen enough replies (thanks!) from users of isolcpus= > to be quite certain that we should not just remove it outright. We've seen exactly two replies with usage examples. Dimitri's case is legit but can be handled much better (as in it not only avoids timers, but any other kernel work) with cpu hotplug and cpusets. Ingo's case is bogus because it does not actually do what he needs. There is a much better way to do exactly what he needs which involves only cpu hotplug and has nothing to do with the scheduler and such. > I will NAQ such proposals. > > And until, and unless, someone comes up with a persuasive answer > to Nick's question: > >> is there a real reason _to_ remove it? > > I'll probably NAQ proposals to deprecate it as well. > > Max ... I think one place where you and I disagree is on whether > it is a good idea to have multiple ways to accomplish the same > thing. Not really. I thought that the two ways that we have are conflicting. I just looked at the partition_sched_domains() code again and realized that there is no conflict (cpusets settings override isolcpus=). I was wrong on that. So I guess there are no reasons to nuke other than "oh, but it's was a hack" :) > As Ingo Oeser pointed out: >> The initrd is from the distribution. I have no sane way to change it > > Even if you do find a way that seems sane to you, that's not the point, > in my view. Further, given the constraints on producing product that > will fit in with multiple distributions, I doubt that the alternatives > you suggest to Info Oeser would work well for him anyway. > A key reason that Linux has succeeded is that it actively seeks to work > for a variety of people, purposes and products. One operating system is > now a strong player in the embedded market, the real time market, and > the High Performance Computing market, as well as being an important > player in a variety of other markets. That's a rather stunning success. > > If you went to your local grocery store with your (if you have one) > young child, and found that they had no Lucky Charms breakfast cereal > (your childs favorite) you would not be pleased if the store manager > tried to sell you Fruit Loops instead ... just as much sugar and food > coloring. > > If we have features that seem to duplicate functionality, in a > different way, and that aren't causing us substantial grief to > maintain, and that aren't significantly hurting our performance or > robustness or security or seriously getting in the way of further > development, then we usually leave those features in. > > Please understand, Max, that for every kernel hacker working in this > corner of the Linux kernel, there are a hundred or a thousand users > depending on what we do, and who will have to adapt to any incompatible > changes we make. If we save ourselves an hour by removing "unnecessary" > features, we can cost a hundred others each some time adapting to this > change. A few of those others may get hit for substantial effort, if > the change catches them unawares at the wrong time and place. > > As good citizens of the universe, we should seek to optimize the > aggregate effort we spend to obtain a particular level of quality and > functionality. > > Saving yourself an hour while you cost a hundred others ten minutes > each is not a net gain. Sometimes this means not enforcing a "one way, > and one way only, to do any given task." I wouldn't go as far as Perl > does in this regard, but we do run a more polyglot product than say > Python. > > Try thinking a little more like a WalMart product manager than a > Ferrari designer. If it is currently selling to our customers, and if > we can fit it into our supply and distribution chain, and if we can > continue to make an adequate profit per foot of shelf space, then > continue to buy it, stock it, ship it, and sell it. Ingo's case is a bad example. If you reread his use case more carefully you'll see that he was not actually getting what he expected out of the boot param in question. btw Impressive write up. I do like to think of myself as a Ferrari designer, actually these days I'm more into http://www.teslamotors.com/ rather than Ferrari :). So I agree in general of course. As I mentioned my reasoning was 1) I thought it conflicts with cpusets and 2) it's considered a hack by the scheduler folks and is not supported (ie my attempts to extend it were rejected). Given that there is a better mechanism available it seemed to make sense to nuke it. Peter Z and Ingo M were of the similar opinion, so it seemed. Anyway, I do not mind us keeping isolcpus= boot option even though use cases mentioned so far as not very convincing. Max -- 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/