cgcreate
Create cgroups, used to limit, measure, and control resources used by processes. cgroups types can be memory, cpu, net_cls, etc. More information: <https://manned.org/cgcreate>.
Install
- All systems
-
curl cmd.cat/cgcreate.sh
- Debian
-
apt-get install cgroup-tools
- Ubuntu
-
apt-get install cgroup-tools
- Kali Linux
-
apt-get install cgroup-tools
- CentOS
-
yum install libcgroup
- Fedora
-
dnf install libcgroup-tools
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install cgroup-tools
- Raspbian
-
apt-get install cgroup-tools
- Dockerfile
- dockerfile.run/cgcreate
Create cgroups, used to limit, measure, and control resources used by processes. cgroups types can be memory, cpu, net_cls, etc. More information: <https://manned.org/cgcreate>.
-
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
© tl;dr; authors and contributors