1
2CGCLASSIFY(1)                  libcgroup Manual                  CGCLASSIFY(1)
3
4
5

NAME

7       cgclassify - move running task(s) to given cgroups
8
9

SYNOPSIS

11       cgclassify   [-g  <controllers>:<path>]  [--sticky  |  --cancel-sticky]
12       <pidlist>
13
14

DESCRIPTION

16       this command moves processes defined by the list of processes (pidlist)
17       to the given control groups.
18
19       The pids in the pidlist are separated by spaces
20
21
22       -g <controllers>:<path>
23              defines  the  control groups where the task will be moved.  con‐
24              trollers is a list of controllers and path is the relative  path
25              to control groups in the given controllers list.
26
27              This flag can be used multiple times to define multiple pairs of
28              lists of controllers and relative paths.  Instead of the list of
29              all mounted controllers, the wildcard * can be used.
30
31              If  this  option  is not used then cgclassify will automatically
32              move the task to a control group based on /etc/cgrules.conf.
33
34
35       --sticky
36              If this option is used, the daemon of service cgred (cgrulesengd
37              process)  does  not  change both the specified pidlist and their
38              children tasks.  Without this option, the daemon does not change
39              the  specified  pidlist but it automatically changes their child
40              tasks to the right cgroup based on /etc/cgrules.conf.
41
42
43       --cancel-sticky
44              If this option is used, the daemon of service cgred (cgrulesengd
45              process) can automatically change both the specified pidlist and
46              their   child   tasks   to   the   right   cgroup    based    on
47              /etc/cgrules.conf.
48
49

ENVIRONMENT VARIABLES

51       CGROUP_LOGLEVEL
52              controls  verbosity of the tool. Allowed values are DEBUG, INFO,
53              WARNING or ERROR.
54
55

FILES

57       /etc/cgrules.conf
58              default libcgroup configuration file
59
60       /etc/cgrules.d
61              default libcgroup configuration files directory
62
63

EXAMPLES

65       cgclassify -g cpu:student 1234
66              moves process with pid number 1234 to control group  student  in
67              cpu hierarchy.
68
69
70       cgclassify 1234
71              moves  process  with  pid number 1234 to control groups based on
72              /etc/cgrules.conf configuration file.
73
74
75       cgclassify --sticky -g cpu:/student 1234
76              moves process with pid number 1234 to control group  student  in
77              cpu  hierarchy.   The  daemon  of  service cgred does not change
78              cgroups   of   pid   1234   and   its   children    (based    on
79              /etc/cgrules.conf).
80
81

SEE ALSO

83       cgrules.conf (5), cgexec (1)
84
85
86
87
88Linux                             2009-03-15                     CGCLASSIFY(1)
Impressum