Bug 56971

Summary: kernel patched with bfs: "Failed to create cgroup cpu:/: No such file or directory"
Product: systemd Reporter: John <da_audiophile>
Component: generalAssignee: systemd-bugs
Status: RESOLVED WONTFIX QA Contact: systemd-bugs
Severity: minor    
Priority: medium CC: da_audiophile, support
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: kernel config

Description John 2012-11-11 06:26:03 UTC
Created attachment 69888 [details]
kernel config

As I read the cgroups vs cgroups article[1], one need only enable "CONFIG_CGROUPS=y" to use systemd correctly.  My system running a bfs patched kernel[2] that does in deed have that set:

$ zgrep CONFIG_CGROUPS=y /proc/config.gz
CONFIG_CGROUPS=y 

I do see a peculiar line in the journalctl and am wondering if it is a bug or if I need to setup something else that I missed in the article.  Systemd seems to function on my system just fine.  Thank you in advance for any insight into this message.

Error message: "Failed to create cgroup cpu:/: No such file or directory"

I attached /proc/config.gz from the machine which is an older i686 but I get this same message on my workstation which is an x86_64/Corei7.

[1]http://0pointer.de/blog/projects/cgroups-vs-cgroups.html
[2]http://ck.kolivas.org/patches/bfs
Comment 1 John 2012-11-11 06:26:44 UTC
P.S. I posted this to the mailing list but noticed afterwards that only the bugzilla-daemon seems to post there so I opened this task.
Comment 2 Lennart Poettering 2013-01-15 00:54:35 UTC
Where exactly do you see this error messages and how often? Usually it should be safe to ignore it, but we probably should supress it altogether if the "cpu" controller is not available.
Comment 3 Peter Bowey 2013-04-27 12:52:56 UTC
I can also confirm this problem report.

The "systemd" logged error is:

"systemd[1]: Failed to create cgroup cpu:/: No such file or directory"

Despite the documentation at http://0pointer.de/blog/projects/cgroups-vs-cgroups.html stating that "(B) you may disable all of the latter options while enabling "CONFIG_CGROUPS=y", if you want to run systemd on your system.", it now appear to be true that this is not enough, or has been changed in the later kernel release and/or systemd?

The above logged 'error' occurs on every boot instance [with the kernel options = "CONFIG_CGROUPS=y" + "CONFIG_CGROUP_CPUACCT=y".

The *tested solution* [with Linux 3.8.8+] is to compile the kernel with the additional "CONFIG_CGROUP_SCHED=y"! [no official doc's on that yet?].

Another reportor of this [same] issue was seen at "http://lists.freedesktop.org/archives/systemd-devel/2012-June/005500.html" - 10 months ago.

Some updated documentation would be good. [via systemd and the kernel relationship]...
Comment 4 Ross Lagerwall 2013-05-25 14:32:26 UTC
I think this is caused by the following lines in rtkit-daemon.service:
# Work around the fact that the Linux currently doesn't assign any RT
# budget to CPU control groups that have none configured explicitly
ControlGroup=cpu:/

The message then shows up when rtkit-daemon starts.
Comment 5 Alex Leach 2013-06-24 11:16:51 UTC
(In reply to comment #4)
> I think this is caused by the following lines in rtkit-daemon.service:
> # Work around the fact that the Linux currently doesn't assign any RT
> # budget to CPU control groups that have none configured explicitly
> ControlGroup=cpu:/
> 
> The message then shows up when rtkit-daemon starts.

I have that same setting in that same file, and dmesg reports that same error message. However, `systemctl status rtkit-daemon.service` does not catch the error.

Is it safe to comment out that line?

In case it matters: I have a 6 core (12 HT) Intel Westmere CPU, which I believe has its own built-in CPU scheduling mechanism. I'm using Linux 3.9.7-1-ck kernel, which is from the Arch Linux repo-ck repository of Intel-optimised, pre-compiled kernels. I use the Nehalem-optimised one, which is compiled with BFS support...

KR,
Alex
Comment 6 Cristian Rodríguez 2013-12-02 00:25:06 UTC
Bug closed
Reason, there is no ControlGroup, it dissapeared in systemd 205 or later.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.