sudo apt-get install cgroup-bin cgroup-lite cgroup-tools cgroupfs-mount libcgroup1
whoami
sudo cgcreate -t rohit -a rohit -g memory:test1
sudo cgreate -t <username> -a <username> -g <controlP_param>:<cgroup_name>
cgset -r memory.limit_in_bytes=90G test1
cgest -r <control_param>=<value> <cgroup_name>
cgexec -g memory:test1 python3 multigate_sim.py
cgexec -g <control_param>:<cgroup_name> <whatever you wanna run>
Links: