CGSET(1)
π CGSET(1) β the libcgroup manual, but make it a group chat π
okay so bestie, this is cgset from the libcgroup manual, and it's about to be your new fave. it sets the parameters of given cgroups. that's the whole thing. it's giving tiny but mighty. π
β¨ NAME β¨
cgset β set the parameters of given cgroup(s). literally what it says on the tin, no cap. π
π¦ SYNOPSIS π¦
cgset [-b] [-R] [-r <name=value>] <cgroup_path> ...
cgset [-b] [-R] --copy-from <source_cgroup_path> <cgroup_path> ...
two whole moods. pick one. π«Ά
πΈ DESCRIPTION πΈ
Set the parameters of input cgroups. that's the mission, that's the vibe.
<path> is the name of the cgroup which should be changed. and the way that you can use this parameter multiple times?? yes. stack it. repeat it. it's iconic. π
-bβ ignores the default systemd delegated hierarchy path and constructs the path of the control groups relative to the cgroup root hierarchy. lowkey it just says "no thanks to the systemd path, we're going relative to root." π-r <name=value>β defines the name of the file to set and the value which should be written to that file. and bestie, this parameter can be used multiple times too. go off. β¨-Rβ recursively sets variable settings passed with-roption tocgroup_pathand its descendant cgroups. it's not just the cgroup, it's the whole family tree. main character energy fr fr. π--copy-from <source_cgroup_path>β defines the name of the cgroup whose parameters will be copied to the input cgroup. stealing the fit and wearing it better, respectfully. π
π§ ENVIRONMENT VARIABLES π§
CGROUP_LOGLEVELβ controls verbosity of the tool. allowed values areDEBUG,INFO,WARNINGorERROR. pick your volume, bestie, from yell everything to only yell when it's bad. π’
π 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?? easy. slay. π β¨
π₯ SEE ALSO π₯
cgrules.conf(1)cgcreate(1)cgget(1)
bestie reminder: this is the manpage voice, not a soft launch. every flag above does exactly what it says and nothing more. don't invent options, don't merge them, don't guess. π
and that's a wrap on our little CGSET(1) moment π β shoutout to Linux, dated 2009-03-15, sipping its tea in the libcgroup manual. if you read all the way down here, you're the real main character. periodt. ππ¦π
π¦ where this page comes from
- ubuntu stonking: cgroup-tools 3.2.0-1 Β· LGPL-2.1-only
- Copyright (C) 2009 Red Hat, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms