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.
(1) check cgconfig status
# /etc/init.d/cgconfig status
if it stopped, restart it
# /etc/init.d/cgconfig restart
check cgconfig is running
(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
(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
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
How to Stop Page Cache for Disk I/O in My Linux System
Floating Point Exception (Core Dumped) While Doing Division in Assembly
Container Running in Privileged Mode
How to Continue Next Iteration When an Error Occurs in Bash
How to Continously Run a Unix Script in Background Without Using Crontab.
How to Delay Pipe Netcat to Connect on First Input
Most Efficient Way to Concatenate Thousands of Files in Perl
Sorting in Fortran, Undefined Reference to Qsort_
Chef-Server Stuck Ruby_Block[Supervise_Rabbitmq_Sleep] Action Run on Docker Container
_Ldg Causes Slower Execution Time in Certain Situation
Why Is Running Node.Js on Port 80 Might Not Be Safe
How to Find/Cut for Only The Filename from an Output of Ls -Lrt in Perl
Linux Read Whitespaces and Special Characters
Rmpi: Cannot Use Mpi_Comm_Spawn API
How to Convert Multiline File into a String in Bash with Newline Character
What's The Best Way to Move a Directory into Place in a Makefile Install