Re: [RFC] [PATCH -mm] cgroup: uid-based rules to add processes efficiently in the right cgroup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vivek Goyal
Date: Tuesday, August 26, 2008 - 9:00 am

On Tue, Aug 26, 2008 at 11:04:42AM -0400, David Collier-Brown wrote:

Who executes default rules? IOW, how do you make sure tasks of user.davecb
end up in project 101 only and not outside?


Now Linux also will allow admin to specify simple rules in
/etc/cgrules.conf. Rules are based basically on premise that users/groups
own resources in a particular cgroup and one can specify which cgroup
the task should run in. For ex.

#john          cpu              usergroup/faculty/john/
#@student      cpu,memory       usergroup/student/
#@root          *               admingroup/
#*              *               default/

This simply means which user/group's tasks should run in what cgroup for
which controller. (There are some wild cards also). For details, you can
check out libcg-devel source tree and documentation files.


So by default all the tasks of user.davecb will run into project 101 until
user davecb decides to launch some background jobs in project 100 using
newtask?

"newtask" like functionality is being provided by a new command line tool
"cgexec" which will allow launching of a new task in specific cgroup
(project).

Thanks
Vivek
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Tue Jul 1, 12:11 pm)
RE: [RFC] How to handle the rules engine for cgroups, Kazunaga Ikeno, (Wed Jul 2, 2:33 am)
Re: [RFC] How to handle the rules engine for cgroups, KAMEZAWA Hiroyuki, (Wed Jul 2, 6:19 pm)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 3, 8:54 am)
Re: [RFC] How to handle the rules engine for cgroups, KAMEZAWA Hiroyuki, (Thu Jul 3, 5:34 pm)
Re: [RFC] How to handle the rules engine for cgroups, Balbir Singh, (Tue Jul 8, 2:35 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Tue Jul 8, 6:45 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 2:07 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 2:23 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 7:06 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 7:30 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 7:33 am)
Re: [RFC] How to handle the rules engine for cgroups, Rik van Riel, (Thu Jul 10, 7:48 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 8:40 am)
Re: [RFC] How to handle the rules engine for cgroups, Dhaval Giani, (Thu Jul 10, 8:42 am)
Re: [RFC] How to handle the rules engine for cgroups, Ulrich Drepper, (Thu Jul 10, 8:56 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 9:41 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 9:46 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Thu Jul 10, 9:51 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 10:19 am)
Re: [RFC] How to handle the rules engine for cgroups, Rik van Riel, (Thu Jul 10, 10:25 am)
Re: [RFC] How to handle the rules engine for cgroups, Ulrich Drepper, (Thu Jul 10, 10:39 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 10, 11:41 am)
Re: [RFC] How to handle the rules engine for cgroups, Ulrich Drepper, (Thu Jul 10, 3:29 pm)
Re: [RFC] How to handle the rules engine for cgroups, KAMEZAWA Hiroyuki, (Thu Jul 10, 5:55 pm)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Mon Jul 14, 6:57 am)
Re: [RFC] How to handle the rules engine for cgroups, David Collier-Brown, (Mon Jul 14, 7:44 am)
Re: Re: [RFC] How to handle the rules engine for cgroups, kamezawa.hiroyu, (Mon Jul 14, 8:07 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Mon Jul 14, 8:21 am)
RE: [RFC] How to handle the rules engine for cgroups, Kazunaga Ikeno, (Thu Jul 17, 12:05 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Thu Jul 17, 6:47 am)
Re: [RFC] How to handle the rules engine for cgroups, KAMEZAWA Hiroyuki, (Fri Jul 18, 2:52 am)
Re: [RFC] How to handle the rules engine for cgroups, Paul Menage, (Fri Jul 18, 8:46 am)
Re: [RFC] How to handle the rules engine for cgroups, Balbir Singh, (Fri Jul 18, 9:39 am)
Re: [RFC] How to handle the rules engine for cgroups, Vivek Goyal, (Fri Jul 18, 11:55 am)
Re: Re: [RFC] How to handle the rules engine for cgroups, kamezawa.hiroyu, (Fri Jul 18, 4:05 pm)
Re: Re: [RFC] How to handle the rules engine for cgroups, kamezawa.hiroyu, (Fri Jul 18, 4:10 pm)
Re: [RFC] [PATCH -mm] cgroup: uid-based rules to add proce ..., David Collier-Brown, (Tue Aug 26, 8:04 am)
Re: [RFC] [PATCH -mm] cgroup: uid-based rules to add proce ..., Vivek Goyal, (Tue Aug 26, 9:00 am)
Re: [RFC] [PATCH -mm] cgroup: uid-based rules to add proce ..., David Collier-Brown, (Tue Aug 26, 9:32 am)