CGSET(1) libcgroup Manual CGSET(1)

# [NAME](#NAME)

cgset - set the parameters of given cgroup(s)

# [SYNOPSIS](#SYNOPSIS)

**cgset** \[**-b**] \[**-R**] \[**-r** &lt;*name=value*&gt;] &lt;**cgroup\_path**&gt; ...  
**cgset** \[**-b**] \[**-R**] **--copy-from** &lt;*source\_cgroup\_path*&gt; &lt;**cgroup\_path**&gt; ...

# [DESCRIPTION](#DESCRIPTION)

Set the parameters of input cgroups.

**&lt;path&gt;**

is the name of the cgroup which should be changed. This parameter can be used multiple times.

[**-b**](#b)

ignores the default systemd delegated hierarchy path and constructs the path of the control groups relative to the cgroup root hierarchy.

[**-r &lt;name=value&gt;**](#r)

defines the name of the file to set and the value which should be written to that file. This parameter can be used multiple times.

[**-R**](#R)

recursively sets variable settings passed with -r option to cgroup\_path and its descendant cgroups.

[**--copy-from &lt;source\_cgroup\_path&gt;**](#copy-from)

defines the name of the cgroup whose parameters will be copied to the input cgroup.

# [ENVIRONMENT VARIABLES](#ENVIRONMENT_VARIABLES)

[**CGROUP\_LOGLEVEL**](#CGROUP_LOGLEVEL)

controls verbosity of the tool. Allowed values are **DEBUG**, **INFO**, **WARNING** or **ERROR**.

# [EXAMPLES](#EXAMPLES)

[**cgset -r cpuset.cpus=0-1 student**](#cgset)

set variable cpus in control group student (controller cpuset) to 0-1

[**cgset --copy-from group1/ group2/**](#cgset~2)

copy all parameters of group group1 to group group2 (for all path where both cgroups are defined)

# [SEE ALSO](#SEE_ALSO)

[cgrules.conf (1)](/man/enterprise-packages/libcgroup/cgrules.conf.1), [cgcreate (1)](/man/enterprise-packages/libcgroup/cgcreate.1), [cgget (1)](/man/enterprise-packages/libcgroup/cgget.1)

2009-03-15 Linux

---

Document: cgset(1) from libcgroup 3.2.0-r10 (Chainguard OS)
Source: https://github.com/libcgroup/libcgroup
