~ubuntu-branches/ubuntu/maverick/libcgroup/maverick-proposed

« back to all changes in this revision

Viewing changes to samples/cgrules.conf

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2009-08-26 11:29:17 UTC
  • Revision ID: james.westby@ubuntu.com-20090826112917-402ews2uj6v350d2
Tags: upstream-0.34
ImportĀ upstreamĀ versionĀ 0.34

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# /etc/cgrules.conf
 
2
#
 
3
#Each line describes a rule for a user in the forms:
 
4
#
 
5
#<user>                 <controllers>           <destination>
 
6
#<user>:<process name>  <controllers>           <destination>
 
7
#
 
8
#Where:
 
9
# <user> can be:
 
10
#        - an user name
 
11
#        - a group name, with @group syntax
 
12
#        - the wildcard *, for any user or group.
 
13
#        - The %, which is equivalent to "ditto". This is useful for
 
14
#          multiline rules where different cgroups need to be specified
 
15
#          for various hierarchies for a single user.
 
16
#
 
17
# <process name> is optional and it can be:
 
18
#        - a process name
 
19
#        - a full command path of a process
 
20
#
 
21
# <controller> can be:
 
22
#        - comma separated controller names (no spaces)
 
23
#        - * (for all mounted controllers)
 
24
#
 
25
# <destination> can be:
 
26
#        - path with-in the controller hierarchy (ex. pgrp1/gid1/uid1)
 
27
#
 
28
# Note:
 
29
# - It currently has rules based on uids, gids and process name.
 
30
#
 
31
# - Don't put overlapping rules. First rule which matches the criteria
 
32
#   will be executed.
 
33
#
 
34
# - Multiline rules can be specified for specifying different cgroups
 
35
#   for multiple hierarchies. In the example below, user "peter" has
 
36
#   specified 2 line rule. First line says put peter's task in test1/
 
37
#   dir for "cpu" controller and second line says put peter's tasks in
 
38
#   test2/ dir for memory controller. Make a note of "%" sign in second line.
 
39
#   This is an indication that it is continuation of previous rule.
 
40
#
 
41
#
 
42
#<user>         <controllers>   <destination>
 
43
#
 
44
#john          cpu              usergroup/faculty/john/
 
45
#john:cp       cpu              usergroup/faculty/john/cp
 
46
#@student      cpu,memory       usergroup/student/
 
47
#peter         cpu              test1/
 
48
#%             memory           test2/
 
49
#@root          *               admingroup/
 
50
#*              *               default/
 
51
# End of file