cgroups is a kernel feature and with userspace utilities, we can use the feature to control the cpu and memory for per process. So, lets first install the required tools.
sudo yum install libcgroup-tools Now, we need to enable the service.
sudo systemctl enable cgconfig.service
sudo systemctl enable cgred.service cgconfig.service is to enable configuration for cgroups and
cgred.service is to enable configuration for cgroups for processes depending on the name.
Continue reading