cgexec
Limit, measure, and control resources used by processes. Multiple cgroup types (aka controllers) exist, such as cpu, memory, etc. More information: <https://manned.org/cgexec>.
Install
- All systems
-
curl cmd.cat/cgexec.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/cgexec
Limit, measure, and control resources used by processes. Multiple cgroup types (aka controllers) exist, such as cpu, memory, etc. More information: <https://manned.org/cgexec>.
-
Execute a process in a given cgroup with given controller:
cgexec -g controller:cgroup_name process_name
© tl;dr; authors and contributors