You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cpu.cfs_quota_us: permission denied + mkdir issue on debian jessie #57
If i run it with this patch I get a few different outputs every other run:
DEBU[0000] Apply configuration for net_cls
DEBU[0000] Apply configuration for net_prio
DEBU[0000] Apply configuration for perf_event
DEBU[0000] Apply configuration for cpu
WARN[0000] signal: killed
Timestamp: 2015-06-30 15:49:04.210696523 +0200 CEST
Code: System error
Message: open /sys/fs/cgroup/cpu/user.slice/testbla/cpu.cfs_quota_us: permission denied
DEBU[0000] Apply configuration for cpuset
DEBU[0000] Apply configuration for blkio
DEBU[0000] Apply configuration for memory
WARN[0000] signal: killed
Timestamp: 2015-06-30 15:49:47.228252894 +0200 CEST
Code: System error
Message: mkdir : no such file or directory
DEBU[0000] Apply configuration for hugetlb
DEBU[0000] Apply configuration for net_prio
DEBU[0000] Apply configuration for freezer
DEBU[0000] Apply configuration for memory
WARN[0000] signal: killed
Timestamp: 2015-06-30 15:49:58.24831853 +0200 CEST
Code: System error
Message: mkdir : no such file or directory
DEBU[0000] Apply configuration for net_prio
DEBU[0000] Apply configuration for perf_event
DEBU[0000] Apply configuration for devices
DEBU[0000] Apply configuration for cpu
WARN[0000] signal: killed
Timestamp: 2015-06-30 15:50:11.455998621 +0200 CEST
Code: System error
Message: open /sys/fs/cgroup/cpu/user.slice/testbla/cpu.cfs_quota_us: permission denied
DEBU[0000] Apply configuration for cpuacct
DEBU[0000] Apply configuration for net_cls
DEBU[0000] Apply configuration for perf_event
DEBU[0000] Apply configuration for devices
DEBU[0000] Apply configuration for cpu
WARN[0000] signal: killed
Timestamp: 2015-06-30 15:50:29.479062715 +0200 CEST
Code: System error
Message: open /sys/fs/cgroup/cpu/user.slice/testbla/cpu.cfs_quota_us: permission denied
DEBU[0000] Apply configuration for memory
WARN[0000] signal: killed
Timestamp: 2015-06-30 15:52:02.252456041 +0200 CEST
Code: System error
Message: mkdir : no such file or directory
At least those with the mkdir error seem to have in common that they all are applying the memory stuff before it crashes.
Just a note: On my systems I didn't set the "cgroup_enable=memory swapaccount=1" options that seem to be required for memory limiting, maybe that has something to do with this problem.
@lukas2511 We have optional controllers (e.g. hugetlb), so I think it's possible to make the memory controller optional too, if memory limits are not set.
Normally all cgroup subsystems are optional except device cgroup, but memory cgroup optional was broken by: docker-archive/libcontainer#637
I've sent a PR to fix this, #118 .
Activity
avagin commentedon Jun 30, 2015
I think here are two different problems. I'm going to investigate the second problem with mkdir. Could you apply this patch and show output?
jkahrs commentedon Jun 30, 2015
@avagin I'm getting the same error. Output after Patch:
edit: Missed the update to the container spec. Now the above Debug messages are gone. However, the following remains:
lukas2511 commentedon Jun 30, 2015
If i run it with this patch I get a few different outputs every other run:
At least those with the mkdir error seem to have in common that they all are applying the memory stuff before it crashes.
lukas2511 commentedon Jun 30, 2015
Just a note: On my systems I didn't set the "cgroup_enable=memory swapaccount=1" options that seem to be required for memory limiting, maybe that has something to do with this problem.
avagin commentedon Jun 30, 2015
Could you attache output for
lukas2511 commentedon Jun 30, 2015
cgroup
mountinfo
avagin commentedon Jun 30, 2015
You need to mount the memroy controller:
mount -t cgroup -o memory memory /sys/fs/cgroup/memory/
avagin commentedon Jun 30, 2015
As for cfs_quota_us, you probably use a kernel where this parameter isn't supported
lukas2511 commentedon Jun 30, 2015
Mounting using that command doesn't work.
Even if those two things aren't supported, runc shouldn't fail with an
mkdirfailure. Ideally it shouldn't fail at all.jkahrs commentedon Jul 1, 2015
@lukas2511
You can enable memory support via grub.config.
The option for this is:
GRUB_CMDLINE_LINUX="cgroup_enable=memory"Remember to update-grub2 afterwards
lukas2511 commentedon Jul 1, 2015
@jkahrs
But I don't want to enable it.
avagin commentedon Jul 2, 2015
@lukas2511 We have optional controllers (e.g. hugetlb), so I think it's possible to make the memory controller optional too, if memory limits are not set.
LK4D4 commentedon Jul 2, 2015
I agree with @avagin . Memory shouldn't be mandatory.
Fix error when memory cgroup not mounted
hqhq commentedon Jul 13, 2015
Normally all cgroup subsystems are optional except device cgroup, but memory cgroup optional was broken by: docker-archive/libcontainer#637
I've sent a PR to fix this, #118 .
LK4D4 commentedon Jul 13, 2015
Closed in #118