|| ||Linus Torvalds <torvalds-AT-linux-foundation.org> |
|| ||Lennart Poettering <mzxreary-AT-0pointer.de> |
|| ||Re: [RFC/RFT PATCH v3] sched: automated per tty task groups |
|| ||Tue, 16 Nov 2010 10:49:22 -0800|
|| ||Dhaval Giani <dhaval.giani-AT-gmail.com>,
Peter Zijlstra <a.p.zijlstra-AT-chello.nl>,
Mike Galbraith <efault-AT-gmx.de>,
Vivek Goyal <vgoyal-AT-redhat.com>,
Oleg Nesterov <oleg-AT-redhat.com>,
Markus Trippelsdorf <markus-AT-trippelsdorf.de>,
Mathieu Desnoyers <mathieu.desnoyers-AT-efficios.com>,
Ingo Molnar <mingo-AT-elte.hu>,
Balbir Singh <balbir-AT-linux.vnet.ibm.com>|
|| ||Article, Thread
On Tue, Nov 16, 2010 at 10:16 AM, Lennart Poettering
> Here's my super-complex patch btw, to achieve exactly the same thing
> from userspace without involving any kernel or systemd patching and
> kernel-side logic. Simply edit your own ~/.bashrc and add this to the end:
Right. And that's basically how this "patch" was actually tested
originally - by doing this by hand, without actually having a patch in
hand. I told people: this seems to work really well. Mike made it work
Because it's something we want to do it for all users, and for all
shells, and make sure it gets done automatically. Including for users
that have old distributions etc, and make it easy to do in one place.
And then you do it for all the other heuristics we can see easily in
the kernel. And then you do it magically without users even having to
Suddenly it doesn't seem that wonderful any more to play with bashrc, does it?
That's the point. We can push out the kernel change, and everything
will "just work". We can make that feature we already have in the
kernel actually be _useful_.
User-level configuration for something that should just work is
annoying. We can do better.
Put another way: if we find a better way to do something, we should
_not_ say "well, if users want it, they can do this <technical thing
here>". If it really is a better way to do something, we should just
do it. Requiring user setup is _not_ a feature.
Now, I'm not saying that we shouldn't allow users to use cgroups. Of
course they can do things manually too. But we shouldn't require users
to do silly things that we can more easily do ourselves.
If the choice is between telling everybody "you should do this", and
"we should just do this for you", I'll take the second one every time.
We know it should be done. Why should we then tell somebody else to do
it for us?
to post comments)