summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorIvana Hutarova Varekova <varekova@redhat.com>2010-02-08 13:32:18 +0100
committerBalbir Singh <balbir@linux.vnet.ibm.com>2010-02-10 16:43:37 +0530
commit82d4499dd8626cfad839683e9abd9dc7e45ed7a1 (patch)
treeca509bb97f3b8b732840068a6e612cef550084df /doc
parent3b85cd32d20b674325114f045cf972fb07a29079 (diff)
downloadlibcg-82d4499dd8626cfad839683e9abd9dc7e45ed7a1.tar.gz
libcg-82d4499dd8626cfad839683e9abd9dc7e45ed7a1.tar.xz
libcg-82d4499dd8626cfad839683e9abd9dc7e45ed7a1.zip
adds new option -g to cgget command
adds new option -g to cgget command * the option has one argument - controller * cgget -g devices / returns the values of all variables of controller devices * the option could be used multiple times EXAMLES: $ ./cgget -n -g cpu -r cpuset.mems / cpu.rt_period_us=1000000 cpu.rt_runtime_us=950000 cpu.shares=1024 cpuset.mems=0 Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com> Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/man/cgget.114
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/man/cgget.1 b/doc/man/cgget.1
index 485d562..67f6bef 100644
--- a/doc/man/cgget.1
+++ b/doc/man/cgget.1
@@ -7,7 +7,8 @@
cgget \- print parameter(s) of given group(s)
.SH SYNOPSIS
-\fBcgget\fR [\fB-n\fR] [\fB-v\fR] [\fB-r\fR <\fIname\fR>] <\fBcgroup_path\fR> ...
+\fBcgget\fR [\fB-n\fR] [\fB-v\fR] [\fB-r\fR <\fIname\fR>]
+[\fB-g\fR <\fIcontroller\fR>] <\fBcgroup_path\fR> ...
.SH DESCRIPTION
The command prints the parameter(s) of input cgroup(s).
@@ -23,6 +24,11 @@ defines parameter to display.
This option can be used multiple times.
.TP
+.B -g <contoller>
+defines controller which values should be displaied.
+This option can be used multiple times.
+
+.TP
.B -n
do not print headers, i.e. name of groups.
@@ -52,6 +58,12 @@ $ cgget -nv -r cpuset.cpus -r cpuset.mems first second
0
0
0
+
+$ cgget -n -g cpu /
+cpu.rt_period_us=1000000
+cpu.rt_runtime_us=950000
+cpu.shares=1024
+
.fi
.SH SEE ALSO