All of lore.kernel.org
 help / color / mirror / Atom feed
* Why would cpu cgroup get disabled by the kernel?
@ 2016-09-02  9:12 Sverd Johnsen
       [not found] ` <CAGmahrS4P7kS6_5MOhHA=ge6mcq0C2f85iN9S3z5dgi+qsEh9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Sverd Johnsen @ 2016-09-02  9:12 UTC (permalink / raw)
  To: cgroups-u79uwXL29TY76Z2rM5mHXA

Hi! I'am on 4.4.19 (arm)  and seem to have all requirements for CPU
cgroups build into the kernel:

 # zgrep -P "CGROUP|GROUP|FAIR" /proc/config.gz
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
# CONFIG_CGROUP_FREEZER is not set
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
# CONFIG_CGROUP_PERF is not set
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_BLK_CGROUP=y
# CONFIG_DEBUG_BLK_CGROUP is not set
# CONFIG_SCHED_AUTOGROUP is not set
CONFIG_CFQ_GROUP_IOSCHED=y
# CONFIG_NET_CLS_CGROUP is not set
# CONFIG_CGROUP_NET_PRIO is not set
# CONFIG_CGROUP_NET_CLASSID is not set
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
# CONFIG_THERMAL_GOV_FAIR_SHARE is not set

Other cgroups also work:

# findmnt -a
TARGET                       SOURCE
FSTYPE     OPTIONS
|-/sys                       sysfs
sysfs      rw,nosuid,nodev,noexec,relatime
| |-/sys/kernel/security     securityfs
securityfs rw,nosuid,nodev,noexec,relatime
| |-/sys/fs/cgroup           tmpfs
tmpfs      ro,nosuid,nodev,noexec,mode=755
| | |-/sys/fs/cgroup/systemd cgroup
cgroup     rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd
| | |-/sys/fs/cgroup/devices cgroup
cgroup     rw,nosuid,nodev,noexec,relatime,devices
| | |-/sys/fs/cgroup/blkio   cgroup
cgroup     rw,nosuid,nodev,noexec,relatime,blkio
| | |-/sys/fs/cgroup/pids    cgroup
cgroup     rw,nosuid,nodev,noexec,relatime,pids
| | `-/sys/fs/cgroup/cpuacct cgroup
cgroup     rw,nosuid,nodev,noexec,relatime,cpuacct

However I get this:

# dmesg | egrep "cgroup|control group"
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.001242] Disabling cpu control group subsystem
[    0.001263] Initializing cgroup subsys io
[    0.001289] Initializing cgroup subsys devices
[    0.001304] Initializing cgroup subsys pids

# column -t /proc/cgroups
#subsys_name  hierarchy  num_cgroups  enabled
cpu           0          1            0
cpuacct       5          59           1
blkio         3          9            1
devices       2          56           1
pids          4          64           1

Why? really weird. I control the boot process (systemd 231)
and nothing there apparently disables it. When I try to mount cpu
cgroup manually I just
get ENOENT

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-02 13:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-02  9:12 Why would cpu cgroup get disabled by the kernel? Sverd Johnsen
     [not found] ` <CAGmahrS4P7kS6_5MOhHA=ge6mcq0C2f85iN9S3z5dgi+qsEh9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-02  9:44   ` Rosen, Rami
     [not found]     ` <9B0331B6EBBD0E4684FBFAEDA55776F92CE0E032-cNwSTNrqBuVnIh7sxsoRyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-09-02  9:59       ` Zefan Li
     [not found]         ` <57C94D7E.4090204-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2016-09-02 11:49           ` Sverd Johnsen
     [not found]             ` <CAGmahrTwRC3cr72S2sJC9pzCxuGmYeWHe-iprz9D20DDDvU7MA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-02 13:29               ` Tejun Heo
2016-09-02  9:54   ` Zefan Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.