Re: [PATCH v4] sched: automated per session task groups
From: Ingo Molnar
Date: Sun Dec 05 2010 - 15:59:17 EST
* Con Kolivas <kernel@xxxxxxxxxxx> wrote:
> Greets.
>
> I applaud your efforts to continue addressing interactivity and responsiveness
> but, I know I'm going to regret this, I feel strongly enough to speak up about
> this change.
>
> On Sun, 5 Dec 2010 10:43:44 Colin Walters wrote:
> > On Sat, Dec 4, 2010 at 5:39 PM, Linus Torvalds
> > <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> > > What's your point again? It's a heuristic.
> >
> > So if it's a heuristic the OS can get wrong,
>
> This is precisely what I see as the flaw in this approach. [...]
I think you are misunderstanding Mike's auto-group scheduling feature.
The scheduling itself is not 'heuristics'.
It is the _composition of a group_ that has a heuristic default. (We use the 'tty'
to act as the grouping)
But that can be changed: the cgroup interfaces can be (and are) used by Gnome to
create different groups. They can be used by users as well, using cgroup tooling.
What the kernel does is that it provides sane defaults.
> [...]
>
> Move away from the fragile heuristic tweaks and find a longer term robust
> solution.
This is not some kernel heuristic that cannot be modified - which was the main
problem of the O(1) scheduler. This is a common-sense default that can be overriden
by user-space if it wants to.
So i definitely think you are confusing the two cases.
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/