From: Zefan Li <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
To: Sverd Johnsen
<sverd.johnsen-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>,
cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Why would cpu cgroup get disabled by the kernel?
Date: Fri, 2 Sep 2016 17:54:38 +0800 [thread overview]
Message-ID: <57C94C5E.3020202@huawei.com> (raw)
In-Reply-To: <CAGmahrS4P7kS6_5MOhHA=ge6mcq0C2f85iN9S3z5dgi+qsEh9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On 2016/9/2 17:12, Sverd Johnsen wrote:
> 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
dmesg | grep "Command line", and then I guess we'll get to know why.
> [ 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
prev parent reply other threads:[~2016-09-02 9:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57C94C5E.3020202@huawei.com \
--to=lizefan-hv44wf8li93qt0dzr+alfa@public.gmane.org \
--cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sverd.johnsen-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.