0

the kernel version for debian 8 use 3.10. But under /sys/fs/cgroup/cpu, miss a lot of cpu items.

vagrant@debian-jessie:/sys/fs/cgroup/cpu$ ls -1 .
cgroup.clone_children
cgroup.procs
cgroup.sane_behavior
cpuacct.stat
cpuacct.usage
cpuacct.usage_percpu
cpu.shares
notify_on_release
release_agent
tasks

How do I enable cpu.cfs_quota_us in debian 8?

2 Answers 2

3

I purchased the cgroup extension today (Plesk add on extension) and only found out that it did not support debian 8.7 with default kernel afterwards.

I manage a dedicated server hosted at Hetzner.
Debian 8.6 Kernel 3.16.0-4-amd64

Only option I had available on the server after install the extension was a way to control disk usage.

Making this change in /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="cgroup_enable=memory swapaccount=1"
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"

Did not solve the issue

Output of the command:

 plesk sbin resctrl --features
 {"cpu": false, "cpuacct": true, "memory": true, "blkio": true, "vhosts_blkio": false}

Web interface only show the option for disk usage.

This is what worked in the end:

echo deb http://http.debian.net/debian jessie-backports main > /etc/apt/sources.list.d/jessie-backports.list
apt-get update
apt-get -t jessie-backports install linux-image-amd64

in /etc/default/grub:

GRUB_CMDLINE_LINUX_DEFAULT="cgroup_enable=memory swapaccount=1"
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"

reboot

After rebooting the system the out put of the command

plesk sbin resctrl --features
{"cpu": true, "cpuacct": true, "memory": true, "blkio": true, "vhosts_blkio": false}

Reinstall Plesk extension...

2

You recompile your kernel with CONFIG_CFS_BANDWIDTH=y. There is a feature request about this already.

4
  • how about kernel 4 from backports do you have any idea if it supports cgroups? Nov 25, 2015 at 9:30
  • Cgroup support is present in all recent Debian Linux kernels (it's required for systemd). However, I couldn't find any trace of CFS_BANDWIDTH being enabled in the SVN trunk of the kernel package. And it would be noted in the linked bug report, too. Nov 25, 2015 at 9:43
  • Interesting. How does it affects docker deployments? Nov 25, 2015 at 9:44
  • No personal experience, but the upstream docs imply that it's OK. Others seem to regard it a problem, though. Nov 25, 2015 at 9:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .