Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing /sys/fs/cgroup/cpu/fapped/cpu.cfs_quota_us ? #2

Open
petterreinholdtsen opened this issue Apr 14, 2016 · 2 comments
Open

Missing /sys/fs/cgroup/cpu/fapped/cpu.cfs_quota_us ? #2

petterreinholdtsen opened this issue Apr 14, 2016 · 2 comments

Comments

@petterreinholdtsen
Copy link

Hi

I tried following the recipe in the README file, and was unable to get it to work. First, I discovered that root needed to give write access to the user (ie add "chmod u+w /sys/fs/cgroup/cpu/"). Next, I try to run "echo 10000 > /sys/fs/cgroup/cpu/fapped/cpu.cfs_quota_us" as myself, but this is rejected with "Permission denied", even though my user have write access to the fapped directory.

Did this file change name since 2013? I got these files in fapped after creation:

-rw-r--r-- 1 pere pere 0 april 14 10:53 cgroup.clone_children
-rw-r--r-- 1 pere pere 0 april 14 10:53 cgroup.procs
-r--r--r-- 1 pere pere 0 april 14 10:53 cpuacct.stat
-rw-r--r-- 1 pere pere 0 april 14 10:53 cpuacct.usage
-r--r--r-- 1 pere pere 0 april 14 10:53 cpuacct.usage_percpu
-rw-r--r-- 1 pere pere 0 april 14 10:53 cpu.shares
-rw-r--r-- 1 pere pere 0 april 14 10:53 notify_on_release
-rw-r--r-- 1 pere pere 0 april 14 10:53 tasks

I'm using kernel 3.16.0.

@petterreinholdtsen
Copy link
Author

I investigated this a bit more and found
http://unix.stackexchange.com/questions/245139/why-cgroup-cpu-items-are-miss-in-debian-8/245344 leading to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789019 which explain that the default kernel in Debian Stable lack CONFIG_CFS_BANDWIDTH=y.

@rugginoso
Copy link
Owner

Also you have to run the chmod as root, as you can note the # at the start of the line:

# chown youruser:yourgroup /sys/fs/cgroup/cpu/ 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants