From 625e35fb05dcc898e32687026454146f03df4807 Mon Sep 17 00:00:00 2001 From: Kamalesh Babulal Date: Thu, 16 Feb 2023 17:35:02 +0530 Subject: [PATCH] man: document cgget's -m option Add documentation about the -m option in the cgget's man page. This option prints the current cgroup setup mode. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- doc/man/cgget.1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/man/cgget.1 b/doc/man/cgget.1 index 744a3296..11f947be 100644 --- a/doc/man/cgget.1 +++ b/doc/man/cgget.1 @@ -7,10 +7,10 @@ cgget \- print parameter(s) of given group(s) .SH SYNOPSIS -\fBcgget\fR [\fB-n\fR] [\fB-v\fR] [\fB-r\fR <\fIname\fR>] +\fBcgget\fR [\fB-n\fR] [\fB-v\fR] [\fB-m\fR] [\fB-r\fR <\fIname\fR>] [\fB-g\fR <\fIcontroller\fR>] [\fB-a\fR] <\fBpath\fR> ... .br -\fBcgget\fR [\fB-n\fR] [\fB-v\fR] [\fB-r\fR <\fIname\fR>] +\fBcgget\fR [\fB-n\fR] [\fB-v\fR] [\fB-m\fR] [\fB-r\fR <\fIname\fR>] \fB-g\fR <\fIcontroller\fR>:<\fBpath\fR> ... .SH DESCRIPTION @@ -41,6 +41,11 @@ This option can be used multiple times. .B -h, --help display help and exit +.TP +.B -m +displays the current control groups setup mode. The control groups can be set up in one of three modes, +legacy (cgroup v1 only), unified (cgroup v2 only) or hybrid (cgroup v1/v2). + .TP .B -n do not print headers, i.e. names of groups. @@ -83,6 +88,9 @@ cpu.rt_period_us=1000000 cpu.rt_runtime_us=950000 cpu.shares=1024 +$ cgget -m +Unified Mode (Cgroup v2 only). + .fi .SH ENVIRONMENT VARIABLES -- 2.47.2