3.3. Creating Control Groups
cgcreatecommand to create transient cgroups in hierarchies you created yourself. The syntax for
-t(optional) — specifies a user (by user ID, uid) and a group (by group ID, gid) to own the
taskspseudo-file for this cgroup. This user can add tasks to the cgroup.
NoteNote that the only way to remove a process from a cgroup is to move it to a different cgroup. To be able to move a process, the user has to have write access to the destination cgroup; write access to the source cgroup is not necessary.
-a(optional) — specifies a user (by user ID, uid) and a group (by group ID, gid) to own all pseudo-files other than
tasksfor this cgroup. This user can modify the access to system resources for tasks in this cgroup.
-g— specifies the hierarchy in which the cgroup should be created, as a comma-separated list of the controllers associated with hierarchies. The list of controllers is followed by a colon and the path to the child group relative to the hierarchy. Do not include the hierarchy mount point in the path.