From: Serge Hallyn <serge.hallyn-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>
To: Peter Dolding <oiaohm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Subject: Re: Single process controlling all cgroups sounds like looking in right direction but wrong solution.
Date: Sun, 14 Jul 2013 22:25:51 -0500 [thread overview]
Message-ID: <20130715032551.GA3046@ac100> (raw)
In-Reply-To: <CANA3KFV6LmfKYUo305Fo2Yv_0kJGSSa7OjnGi8BMb+0Ys9e8NA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hi Peter,
Interesting topic.
I think this issue is best discussed on the cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
mailing list.
-serge
Quoting Peter Dolding (oiaohm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org):
> NUMA is where the fun starts. If I wish to adjust a group of processes
> bound only to a NUMA group of cpus. It should not be required to disrupt
> other cpus.
>
> Init system controlling the cgroups is also sounding trouble. Why we
> don't want to write like 1 000 000 different interfaces to talk to cgroups.
>
> Items like chromuim browser might wish to use cgroups in future to lets say
> contain flash.
>
> Best solution to the problems not a library or in the init system its a
> form of userspace driver.
>
> The userspace driver has the permissions to alter and change cgroups and
> possible no right todo anything else in final form.
>
> Why not part of the init binary. Lets say you have 1000 processors.
> And for some reason you are running something that tweaking cgroups a
> lot. You don't want to stall all 1000 processes if it not required.
> Single process could cause this. What ever in in change of the cgroups
> has to be massively multi threaded. Also has to be changeable based on
> NUMA requirements of the system at times. You don't want to have to be
> editing the core of init system or reboot the system just to change the
> cgroup management system to be more compatible with current hardware. This
> is again why userspace driver. You can stop the driver and start another
> one if required. While still maintaining the rule of only 1 active at any
> 1 time. If someone can load a kernel driver any how the can cause hell.
>
> Single process is not going to work because this will require stopping all
> cpus. What is required is single processes/theads.
>
> Going the userspace driver solution emulation of the old cgroup system
> could be pushed into userspace. So removing old code from the core and
> allow rejecting of hazard changes to be applied to the old method without
> having to update kernel every time.
>
> If there is an requirement to change the interface in future its less
> problem.
>
> If kbus (kernel dbus) was already done I would be tempted to place this as
> a default feature on the kbus. This would not be dependant on any
> particular init system.
>
> Since kbus is not ready creating a text device to receive messages for now
> would be a suitable solution in my eyes.
>
> Peter Dolding
> _______________________________________________
> Containers mailing list
> Containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
> https://lists.linuxfoundation.org/mailman/listinfo/containers
next prev parent reply other threads:[~2013-07-15 3:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-13 8:53 Single process controlling all cgroups sounds like looking in right direction but wrong solution Peter Dolding
[not found] ` <CANA3KFV6LmfKYUo305Fo2Yv_0kJGSSa7OjnGi8BMb+0Ys9e8NA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-15 3:25 ` Serge Hallyn [this message]
2013-07-15 3:47 ` Peter Dolding
[not found] ` <CANA3KFWdKbrpZDHHsqKeh-vugK7NjJ1xrFcXyYSRaKn0mUYewg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-15 12:32 ` Serge Hallyn
2013-07-16 22:06 ` Peter Dolding
2013-07-18 9:38 ` Rob Landley
[not found] ` <CANA3KFVeYkvidYu=1rV_We3JLH5QEsogCnYQEdA6VGBKD2sbYw@mail.gmail.com>
[not found] ` <CANA3KFVeYkvidYu=1rV_We3JLH5QEsogCnYQEdA6VGBKD2sbYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-19 20:01 ` Konstantin Ryabitsev
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=20130715032551.GA3046@ac100 \
--to=serge.hallyn-gewih/nmzzlqt0dzr+alfa@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=oiaohm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox