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
--