Manual Pages for Linux CentOS command on man cgcreate
MyWebUniversity

Manual Pages for Linux CentOS command on man cgcreate

CGCREATE(1) libcgroup Manual CGCREATE(1) NAME

cgcreate - create new cgroup(s) SYNOPSIS

cgcreate [-h] [-t :] [-a :] [-f mode] [-d mode]

[-s mode] -g : [-g ...] DESCRIPTION

The command creates new cgroup(s) defined by the options -g.

-a : 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.

-d, dperm=mode sets the permissions of a control groups directory. The permis‐

sions needs to be specified as octal numbers e.g. -d 775.

-f, fperm=mode sets the permissions of the control groups parameters. The per‐

missions needs to be specified as octal numbers e.g. -f 775. The value is not used as given because the current owner's per‐ missions are used as an umask (so 777 will set group and others permissions to the owners permissions).

-g : defines control groups to be added. controllers is a list of controllers. Character "*" can be used as a shortcut for "all mounted controllers". path is the relative path to control groups in the given controllers list. This option can be speci‐ fied multiple times.

-h, help display this help and exit

-s, tperm=mode sets the permissions of the control group tasks file. The per‐

missions needs to be specified as octal numbers e.g. -s 775. The value is not used as given because the current owner's per‐ missions are used as an umask (so 777 will set group and others permissions to the owners permissions).

-t : 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 CGROUPLOGLEVEL controls verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR. EXAMPLES

cgcreate -g *:student -g devices:teacher create control group student in all mounted hierarchies and cre‐ ate control group teacher in hierarchy containing controller devices. SEE ALSO cgrules.conf (5) cgexec (1) cgclassify (1)

Linux 2009-03-15 CGCREATE(1)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™