Re: Sched_autogroup and niced processes

From: Ingo Molnar
Date: Fri May 13 2011 - 05:29:44 EST



* Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> wrote:

> On Fri, 2011-05-13 at 11:05 +0200, Ingo Molnar wrote:
> > Could we somehow automate this:
> >
> > > echo 19 > /proc/'pid of seti@home'/autogroup
> >
> > and split off nice 19 tasks into separate groups and lower the group's
> > priority?
>
> Well I guess you can stack on all kinds of heuristics, do we want to?

Well have you seen my non-heuristic suggestion:

| Another thing we could do is to lower the priority of a cgroup if it *only*
| runs reniced tasks. I.e. track the 'maximum priority' of cgroups and
| propagate that to their weight.
|
| This way renicing within cgroups will be more powerful and people do not have
| to muck with cgroup details.

A cgroup assuming the highest priority of all tasks it contains is a pretty
natural definition and extension of priorities and also solves this usecase.

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/