From: Tejun Heo <tj@kernel.org>
To: Matt Helsley <matthltc@us.ibm.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
Li Zefan <lizf@cn.fujitsu.com>, Andrey Vagin <avagin@openvz.org>,
Pavel Emelyanov <xemul@parallels.com>
Subject: Re: [RFC] cgroups: freezer -- Allow to attach a task to a frozen cgroup
Date: Tue, 29 Nov 2011 15:19:22 -0800 [thread overview]
Message-ID: <20111129231922.GA20313@google.com> (raw)
In-Reply-To: <20111129225853.GA693@count0.beaverton.ibm.com>
Hello, Matt.
On Tue, Nov 29, 2011 at 02:58:53PM -0800, Matt Helsley wrote:
> > transition notification too, at the very least, clarification of
>
> Notification is a fine idea. However, not everything that's already
> written expects them so correct usage of the cgroup freezer should not
> require them -- IOW allowing the FROZEN -> FREEZING transition
> isn't made OK just by adding notifications.
The transition model doesn't have to be modified. ie. we can try to
freeze the task/process on migration request and actually moves it
only when it actually reaches the target state. Not entirely sure how
well that can be implemented with the current cgroup callbacks tho.
We can also make the new behavior selectable per-cgroup if all else
fail.
> > * There are some unclear corner cases and bugs the current cgroup
> > freezer has. e.g. behavior w.r.t. kthreads is outright buggy. It
> > would be great to figure out how to deal with them with or before
> > this change (ie. what happens when you transfer unfreezable
> > kthreads).
>
> Huh? Shouldn't we just disable moving kthreads between cgroups? Allowing
> userspace to freeze kthreads via cgroups seems like a *very* bad idea
> (perhaps it's a thread critical for IO, or some driver, etc.).
That probably is the easiest solution. Different cgroups can be
grouped together so we need to be a bit careful but if none of the
cgroups makes sense with kthread, we may just ban kthreads from any
cgroup.
Thanks.
--
tejun
next prev parent reply other threads:[~2011-11-29 23:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 12:08 [RFC] cgroups: freezer -- Allow to attach a task to a frozen cgroup Cyrill Gorcunov
2011-11-28 13:10 ` Andrey Vagin
2011-11-28 13:38 ` Cyrill Gorcunov
2011-11-28 14:03 ` Andrew Vagin
2011-11-28 15:00 ` Cyrill Gorcunov
2011-11-28 15:43 ` Andrew Wagin
2011-11-28 16:08 ` Tejun Heo
2011-11-28 16:31 ` Cyrill Gorcunov
2011-11-29 22:58 ` Matt Helsley
2011-11-29 23:19 ` Tejun Heo [this message]
2011-11-30 6:48 ` Cyrill Gorcunov
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=20111129231922.GA20313@google.com \
--to=tj@kernel.org \
--cc=avagin@openvz.org \
--cc=gorcunov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--cc=matthltc@us.ibm.com \
--cc=xemul@parallels.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.