---
name: "cgset"
section: "1"
platform: "linux"
package: "cgroup-tools"
version: "3.1.0-2+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cgset"
---

# cgset(1)

set the parameters of given cgroup(s)

## NAME

cgset - set the parameters of given cgroup(s)

## SYNOPSIS

**cgset** \[**-b**\] \[**-r** \<*name=value*\>\] \<**cgroup\_path**\> ...\
 **cgset** \[**-b**\] **--copy-from** \<*source\_cgroup\_path*\> \<**cgroup\_path**\> ...

## DESCRIPTION

Set the parameters of input cgroups.

- **\<path\>**

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

- **-b**

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

- **-r \<name=value\>**

  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.

- **--copy-from \<source\_cgroup\_path\>**

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

## ENVIRONMENT VARIABLES

- **CGROUP\_LOGLEVEL**

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

## EXAMPLES

- **cgset -r cpuset.cpus=0-1 student**

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

- **cgset --copy-from group1/ group2/**

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

## SEE ALSO

cgrules.conf (1), cgcreate (1), cgget (1)
