[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6599ad830807100223m2453963cwcfbe6eb1ad54d517@mail.gmail.com>
Date: Thu, 10 Jul 2008 02:23:52 -0700
From: "Paul Menage" <menage@...gle.com>
To: "Vivek Goyal" <vgoyal@...hat.com>
Cc: "KAMEZAWA Hiroyuki" <kamezawa.hiroyu@...fujitsu.com>,
"linux kernel mailing list" <linux-kernel@...r.kernel.org>,
"Libcg Devel Mailing List" <libcg-devel@...ts.sourceforge.net>,
"Balbir Singh" <balbir@...ux.vnet.ibm.com>,
"Dhaval Giani" <dhaval@...ux.vnet.ibm.com>,
"Peter Zijlstra" <pzijlstr@...hat.com>,
"Kazunaga Ikeno" <k-ikeno@...jp.nec.com>,
"Morton Andrew Morton" <akpm@...ux-foundation.org>,
"Thomas Graf" <tgraf@...hat.com>, "Rik Van Riel" <riel@...hat.com>
Subject: Re: [RFC] How to handle the rules engine for cgroups
On Thu, Jul 3, 2008 at 8:54 AM, Vivek Goyal <vgoyal@...hat.com> wrote:
>
> As of today it should happen because newly execed process will run into
> same cgroup as parent. But that's what probably we need to avoid.
> For example, if an admin has created three cgroups "database", "browser"
> "others" and a user launches "firefox" from shell (assuming shell is running
> originally in "others" cgroup), then any memory allocation for firefox should
> come from "browser" cgroup and not from "others".
I think that I'm a little skeptical that anyone would ever want to do that.
Wouldn't it be a simpler mechanism for the admin to simply have
wrappers around the "firefox" and "oracle" binaries that move the
process into the "browser" or "database" cgroup before running the
real binaries?
>
> I am assuming that this will be a requirement for enterprise class
> systems. Would be good to know the experiences of people who are already
> doing some kind of work load management.
I can help there. :-) At Google we have two approaches:
- grid jobs, which are moved into the appropriate cgroup (actually,
currently cpuset) by the grid daemon when it starts the job
- ssh logins, which are moved into the appropriate cpuset by a
forced-command script specified in the sshd config.
I don't see the rule-based approach being all that useful for our needs.
It's all very well coming up with theoretical cases that a fancy new
mechanism solves. But it carries more weight if someone can stand up
and say "Yes, I want to use this on my real cluster of machines". (Or
even "Yes, if this is implemented I *will* use it on my desktop" would
be a start)
Paul
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists