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

NAME

7       cgget - print parameter(s) of given group(s)
8
9

SYNOPSIS

11       cgget [-n] [-v] [-r <name>] [-g <controller>] [-a] <path> ...
12       cgget [-n] [-v] [-r <name>] -g <controller>:<path> ...
13
14

DESCRIPTION

16       Prints  the parameter(s) of input cgroup(s).  If neither controller nor
17       variable are specified, the values of all possible variables  are  dis‐
18       played.
19
20
21       <path> is  the name of the cgroup which should be read.  This parameter
22              can be used multiple times.
23
24
25       -a, --all
26              print the variables for all controllers  which  consist  in  the
27              given cgroup
28
29
30       -g <controller>
31              defines  controllers  whose  values  should  be displayed.  This
32              option can be used multiple times.
33
34
35       -g <controller>:<path>
36              defines control groups whose values should be  displayed.   This
37              option can be used multiple times.
38
39
40       -h, --help
41              display help and exit
42
43
44       -n     do not print headers, i.e. names of groups.
45
46
47       -r, --variable <name>
48              defines  parameter to display.  This option can be used multiple
49              times.
50
51
52
53       -v, --values-only
54              print only values, not parameter names.
55
56

EXAMPLES

58       $ cgget -r cpuset.cpus -r cpuset.mems first second
59       first:
60       cpuset.cpus=0-1
61       cpuset.mems=0
62
63       second:
64       cpuset.cpus=0
65       cpuset.mems=0
66
67       $ cgget -n -r cpuset.cpus -r cpuset.mems first second
68       cpuset.cpus=0-1
69       cpuset.mems=0
70       cpuset.cpus=0
71       cpuset.mems=0
72
73       $ cgget -nv -r cpuset.cpus -r cpuset.mems first second
74       0-1
75       0
76       0
77       0
78
79       $ cgget -n -g cpu /
80       cpu.rt_period_us=1000000
81       cpu.rt_runtime_us=950000
82       cpu.shares=1024
83
84
85

ENVIRONMENT VARIABLES

87       CGROUP_LOGLEVEL
88              controls verbosity of the tool. Allowed values are DEBUG,  INFO,
89              WARNING or ERROR.
90
91

SEE ALSO

93       cgrules.conf (1), cgcreate (1), cgget (1)
94
95
96
97
98Linux                             2010-01-18                          CGGET(1)
Impressum