Debian Jessie: Enabling cgroup support in the kernel

Debian Jessie and various other operating systems do not ship with Control Groups enabled. Control Groups allow for policing of memory, CPU and I/O usage. When starting applications relying on this functionality, you might encounter the following errors:


Failed to set cpu.cfs_period_us on /system.slice/systemd-tmpfiles-clean.service: Permission denied
Failed to set cpu.cfs_quota_us on /system.slice/systemd-tmpfiles-clean.service: Permission denied

This error is thrown, due to the fact that cgroups aren't enabled. To enable this functionality, you will have to change the bootline in grub-config (/etc/default/grub) stating:

GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory swapaccount=1"

Update your GRUB configuration by running:

sudo update-grub

Reboot your server and cgroups are now available (at least for the memory component)

Author: Angelique Dawnbringer Published: 2017-03-21 05:06:26 Keywords:
  • PowerDNS
  • Docker
  • dnsdist
  • Debian
  • Jessie
  • CGroup
Modified: 2017-09-10 17:51:15