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 Debian
apt-get install cgroup-tools
Ubuntu
apt-get install cgroup-tools
image/svg+xml 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

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