CGCREATE(1)
π CGCREATE β create new cgroup(s) π
okay so bestie, welcome to cgcreate, one of the lil stars of the libcgroup Manual πΈ this is the tool that literally makes new cgroups for you, no cap.
β¨ SYNOPSIS β¨
cgcreate [-h] [-b] [-c] [-t <tuid>:<tgid>] [-a <agid>:<auid>] [-f mode]
[-d mode] [-s mode] -g <controllers>:<path> [-g ...]
π¦ DESCRIPTION π¦
This command creates new cgroup(s), and those cgroups are defined by the -g options you hand it. That's the whole vibe. π
-a<agid>:<auid>β this one defines the name of the user and the group which own the rest of the defined control group's files. These users are allowed to set subsystem parameters and create subgroups. The default value is the same as has the parent cgroup. π«Ά-bβ ignores the default systemd delegated hierarchy path and constructs the path of the control groups relative to the cgroup root hierarchy. like, it just skips the systemd detour entirely. π«-c,--scopeβ creates a new systemd scope. The cgroup name provided after the-gflag must be of the form<slice-name>.slice/<scope-name>.scope. If the slice does not exist, systemd will create it. Libcgroup will place an idle process in the scope'scgroup.procsfile unless the-pflag is provided. β¨-d,--dperm=modeβ sets the permissions of a control groups directory. The permissions needs to be specified as octal numbers e.g.-d 775. π-f,--fperm=modeβ sets the permissions of the control groups parameters. The permissions needs to be specified as octal numbers e.g.-f 775. The value is not used as given because the current owner's permissions are used as an umask (so777will set group and others permissions to the owners permissions). ngl that last bit is the sneaky part bestie, read it twice. π-g<controllers>:<path>β defines control groups to be added.controllersis a list of controllers. Character"*"can be used as a shortcut for"all mounted controllers".pathis the relative path to control groups in the given controllers list. This option can be specified multiple times. stack 'em, queen. π-h,--helpβ display this help and exit. short and sweet. π-p,--pid=pidβ moves the providedpidinto the<slice-name>.slice/<scope-name>.scope. Must be used in conjunction with-c. β οΈ no-c, no deal.-s,--tperm=modeβ sets the permissions of the control group tasks file. The permissions needs to be specified as octal numbers e.g.-s 775. The value is not used as given because the current owner's permissions are used as an umask (so777will set group and others permissions to the owners permissions). same umask drama as-f, fr fr. π-S,--setdefaultβ sets the scope specified via the-coption as the default libcgroup scope. This default scope is used by libcgroup tools to build up the cgroup path. See the-boption. π§-t<tuid>:<tgid>β defines the name of the user and the group, which owns tasks file of the defined control group. I.e. this user and members of this group have write access to the file. The default value is the same as has the parent cgroup. π
π ENVIRONMENT VARIABLES π
CGROUP_LOGLEVELβ controls verbosity of the tool. Allowed values areDEBUG,INFO,WARNINGorERROR. pick your volume, bestie, from whisper to screaming. π’
π EXAMPLES π
cgcreate -g *:student devices:teacher
create control group student in all mounted hierarchies and create control group teacher in hierarchy containing controller devices. ate. π₯
β SEE ALSO β
cgrules.conf (5) cgexec (1) cgclassify (1)
and that's the whole page babes π this was the libcgroup Manual entry for cgcreate, dated 2009-03-15 β yes it's an elder but it's still serving, and it's part of libcgroup on Linux π
periodt β¨π¦
π¦ where this page comes from
- debian trixie: cgroup-tools 3.1.0-2+b2 Β· LGPL-2.1-only
- ubuntu questing: cgroup-tools 3.1.0-2
- ubuntu resolute: cgroup-tools 3.1.0-2build1 Β· LGPL-2.1-only
- ubuntu stonking: cgroup-tools 3.2.0-1 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms