|| ||Ingo Molnar <mingo-AT-elte.hu>|
|| ||Jack O'Quin <joq-AT-io.com>|
|| ||Re: [patch, 2.6.11-rc2] sched: RLIMIT_RT_CPU_RATIO feature|
|| ||Thu, 27 Jan 2005 12:35:30 +0100|
|| ||Nick Piggin <nickpiggin-AT-yahoo.com.au>,
Paul Davis <paul-AT-linuxaudiosystems.com>,
Con Kolivas <kernel-AT-kolivas.org>,
linux <linux-kernel-AT-vger.kernel.org>, rlrevell-AT-joe-job.com,
CK Kernel <ck-AT-vds.kolivas.org>, utz <utz-AT-s2y4n2c.de>,
Andrew Morton <akpm-AT-osdl.org>, alexn-AT-dsv.su.se,
Rui Nuno Capela <rncbc-AT-rncbc.org>,
Chris Wright <chrisw-AT-osdl.org>,
Arjan van de Ven <arjanv-AT-redhat.com>|
* Jack O'Quin <firstname.lastname@example.org> wrote:
> Well, this extremely long discussion started with a request on behalf
> of a large group of audio developers and users for a way to gain
> realtime scheduling privileges without running as root.
> Several kernel developers felt that would be unacceptable, because of
> the Denial of Service implications. We argued that the owner of a
> Digital Audio Workstation should be free to lock up his CPU any time
> he wants. But, no one would listen. [...]
i certainly listened, but that didnt make the RT-LSM proposal better in
> Had I been in charge, I would have adopted our silly little RT-LSM
> patch, declared victory, and moved on to other matters. [...]
let me put this very bluntly: this is precisely how bad OSs get written.
Half-done features with known limitations piling up. One or two of
crappy features might not hurt as badly, but when you start having
dozens of them it hurts big time. With time, crap _does_ pile up. So in
the Linux core code we have zero tolerance on crap. We are doing this
for the long-term fun of it.
repeat after me: we dont apply half-assed measures just to solve a
problem in a short-sighted way! And repeat after me: upstream reviewers
or maintainers are not _obliged_ to provide the proper solution either!
The Linux acceptance process is not about "whose patch sucks least", but
whether it hits a subsystem-specific bar of architectural requirements
or not. RT-LSM didnt hit the bar, end of story. You are always free to
write something proper (or convince/pay someone to write it for you)
which _will_ be accepted. Also, you are always free to replace code or
maintainers by writing/maintaining the code in a better way.
and if nobody ends up writing the 'proper' solution then there probably
wasnt enough demand to begin with ... We'll rather live on with one less
feature for another year than with a crappy feature that is twice as
hard to get rid of!
you might ask yourself, 'why is this so, and why cannot the Linux guys
apply pretty much any hack as e.g. userspace code might': the difference
in the case of the kernel is compatibility with thousands of
applications and millions of users. If we expose some method to
applications then that decision has to stick in 99.999% of the cases.
It's awfully hard to get rid of a bad, user-visible feature. Also,
kernel code, especially the scheduler (and the security subsystem) is
complex, interdependent, performance-sensitive and is modified very
frequently - any bad decision lives with us for long, and hinders us for
ironically, i believe you are providing an additional proof that the
Linux development process worked in this particular case:
> When Con and Ingo started floating scheduler proposals, I tried to
> help them produce something useful. I think they have succeeded.
> Is this the easiest way to meet our needs? No way. But it's not bad,
> and I think it will work. In some ways, it's actually better than our
> original RT-LSM proposal. Ingo's scheduler patch is not very large.
here you can see the concept in the works: _because_ RT-LSM was not
accepted did Con's and my work get any chance!
Put your hand on your heart and tell me, assuming RT-LSM went in, and in
a year's time i'd write the rlimit patch, would you even test my rlimit
patch with your audio apps? Or would you have told me 'sorry, RT-LSM is
good enough for our purposes and i dont have time to test this now'.
What would you have told me if my patch also removed RT-LSM (because it
implemented a superior method and i wanted to get rid of the crap)?
Would you possibly have cried bloody murder about breaking backwards
compatibility with audio apps?
so we have two different goals. You want a feature. We want robust
features. Those goals do meet in that we both want features, but our
interests are exactly the opposite in terms of quality and timeframe:
you want a solution that meets _your_ needs, as soon as possible - while
we want a longterm solution. (i.e. a solution that is as generic, clean,
maintainable and robust as possible.)
(Dont misunderstand me, this is not any 'fault' of yours, this is simply
your interest: you are not hacking kernel code so you are at most
compassionate with our needs, but you are not directly affected by
kernel code quality issues.)
(also, believe me, this is not arrogance or some kind of game on our
part. If there was a nice clean solution that solved your and others'
problems equally well then it would already be in Linus' tree. But there
is no such solution yet, at the moment. Moreover, the pure fact that so
many patch proposals exist and none looks dominantly convincing shows
that this is a problem area for which there are no easy solutions. We
hate such moments just as much as you do, but they do happen.)
to post comments)