티스토리 뷰

linux

centos 7 cgroup limit 해제

fendys 2021. 8. 19. 13:35
반응형

 

  • centos7 에서 발생하는 cgroup memory leak에 대한 문제 해결
  • cgroup limit 해제

1 - Set the kernel parameter (cgroup.memory=nokmem) in /etc/default/grub

[root@fendys]# vi /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto biosdevname=0 net.ifnames=0 rhgb ipv6.disable=1 quiet cgroup.memory=nokmem"
GRUB_DISABLE_RECOVERY="true"

2 - Upgrade to kernel-3.10.0-1062.4.1.el7.x86_64 or higher

 

반응형