From 30e7368b30f1260cd50d99d57f9f526f31330727 Mon Sep 17 00:00:00 2001 From: Ray Voice <33094591+Ray6464@users.noreply.github.com> Date: Tue, 9 Nov 2021 12:53:58 +0500 Subject: [PATCH] cgcreate: add page (#6768) --- pages/linux/cgcreate.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/linux/cgcreate.md diff --git a/pages/linux/cgcreate.md b/pages/linux/cgcreate.md new file mode 100644 index 000000000..4dde315d1 --- /dev/null +++ b/pages/linux/cgcreate.md @@ -0,0 +1,17 @@ +# cgcreate + +> Create cgroups, used to limit, measure, and control resources used by processes. +> `cgroups` types can be `memory`, `cpu`, `net_cls`, etc. +> More information: . + +- Create a new group: + +`cgcreate -g {{group_type}}:{{group_name}}` + +- Create a new group with multiple cgroup types: + +`cgcreate -g {{group_type1}},{{group_type2}}:{{group_name}}` + +- Create a subgroup: + +`mkdir /sys/fs/cgroup/{{group_type}}/{{group_name}}/{{subgroup_name}}`