Centos Cgconfig Fails to Start

Centos cgconfig fails to start

To use cgroups on newer versions of CentOS you need to install libcgroup as well as libcgroup-tools:

$ sudo yum install libcgroup
$ sudo yum install libcgroup-tools

To create group use cgcreate, e.g.:

$ sudo cgcreate -g memory,cpu,blkio,cpuset:userlimited

To verify that /etc/cgconfig.conf is correct use cgconfigparser

$ cgconfigparser -l /etc/cgconfig.conf

For details check: https://wiki.archlinux.org/index.php/cgroups

Note: In CentOS 6 and earlier versions one only needed to install libcgroup

Docker on RHEL 6 Cgroup mounting failing

I have the same issue.

Sample Image

(1) check cgconfig status

# /etc/init.d/cgconfig status

if it stopped, restart it

# /etc/init.d/cgconfig restart

check cgconfig is running

Sample Image

(2) check cgconfig is on

# chkconfig --list cgconfig

cgconfig 0:off 1:off 2:off 3:off 4:off 5:off 6:off

if cgconfig is off, turn it on

Sample Image

(3) if still does not work, may be some cgroups modules is missing. In the kernel .config file, make menuconfig, add those modules into kernel and recompile and reboot

after that, it should be OK

Sample Image

fatal error: cg_config.h: No such file or directory error when trying to use make command

On xubuntu 18.04 , in order to build this project I had to install:

libsdl2-dev libglfw3-dev libfftw3-dev.

To install them in Centos 7 (you mentioned centos in the previous thread):

https://centos.pkgs.org/7/epel-x86_64/SDL2-2.0.10-1.el7.x86_64.rpm.html  

https://centos.pkgs.org/7/epel-x86_64/SDL2-devel-2.0.10-1.el7.x86_64.rpm.html

https://centos.pkgs.org/7/epel-x86_64/glfw-3.2.1-2.el7.x86_64.rpm.html

https://centos.pkgs.org/7/epel-x86_64/glfw-devel-3.2.1-2.el7.x86_64.rpm.html

https://centos.pkgs.org/7/centos-x86_64/fftw-devel-3.3.3-8.el7.x86_64.rpm.html

Enabling the EPEL repository as mentioned by @Rup would be a good idea.



Related Topics



Leave a reply



Submit