From: Ingo Molnar <mingo@elte.hu>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>,
Yong Zhang <yong.zhang0@gmail.com>,
Carl-Johan Kjellander <carl-johan@klarna.com>,
linux-kernel@vger.kernel.org
Subject: Re: Sched_autogroup and niced processes
Date: Fri, 13 May 2011 11:29:33 +0200 [thread overview]
Message-ID: <20110513092933.GL13647@elte.hu> (raw)
In-Reply-To: <1305277666.2561.9.camel@twins>
* Peter Zijlstra <a.p.zijlstra@chello.nl> 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
next prev parent reply other threads:[~2011-05-13 9:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-13 7:39 Sched_autogroup and niced processes Carl-Johan Kjellander
2011-05-13 7:53 ` Yong Zhang
2011-05-13 8:05 ` Mike Galbraith
2011-05-13 8:22 ` Ingo Molnar
2011-05-13 8:41 ` Peter Zijlstra
2011-05-13 9:05 ` Ingo Molnar
2011-05-13 9:07 ` Peter Zijlstra
2011-05-13 9:14 ` Carl-Johan Kjellander
2011-05-13 9:29 ` Ingo Molnar [this message]
2011-05-13 9:46 ` Peter Zijlstra
2011-05-13 10:04 ` Ingo Molnar
2011-05-13 13:13 ` Mike Galbraith
2011-05-13 13:24 ` Peter Zijlstra
2011-05-13 13:36 ` Carl-Johan Kjellander
2011-05-13 14:06 ` Mike Galbraith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110513092933.GL13647@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=carl-johan@klarna.com \
--cc=efault@gmx.de \
--cc=linux-kernel@vger.kernel.org \
--cc=yong.zhang0@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.