Skip to contentSkip to conversation

New: Systemd nowadays mounts Cgroups v2

Bug 217838 [email protected] 1 participant 6 messages Aug 28, 2023 – Dec 30, 2023 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=217838

Bug ID: 217838
Summary: Systemd nowadays mounts Cgroups v2
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P3
Component: man-pages
Assignee: [email protected]
Reporter: [email protected]
Regression: No

There is a note in the cgroups.7 manual page saying that systemd automatically all the cgroups v1 controllers. This is no longer correct; at least on my Fedora system it mounts a cgroup2 hierarchy instead.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 217838] Systemd nowadays mounts Cgroups v2

https://bugzilla.kernel.org/show_bug.cgi?id=217838

Rajesh ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Rajesh ([email protected]) --- Hi Göran,

Can you give us more info?

- How to replicate this?
- What version of Fedora are you using?

Rajesh

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 217838] Systemd nowadays mounts Cgroups v2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217838

--- Comment #2 from Rajesh ([email protected]) --- Ok Göran,

I get what you mean but when I check man cgroups I find enough reference for v2. So what's the exact note you are referring to?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw

[Bug 217838] Systemd nowadays mounts Cgroups v2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217838

--- Comment #3 from Göran Uddeborg ([email protected]) ---
You are correct that the text is often amended by saying systemd mounts the v2 hierarchy on modern systems. But there is one section saying

Note that on many systems, the v1 controllers are automatically mounted under /sys/fs/cgroup; in particular, systemd(1) automatically creates such mounts.

In that place there is no mention that the comment only applies to older systems.

(FYI: When I wrote the bug I was running Fedora 38, and have since upgraded to Fedora 39. But you can see the problem also at
https://www.man7.org/linux/man-pages/man7/cgroups.7.html I discovered the issue when translating the manual page to Swedish.)

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#4 lore raw

[Bug 217838] Systemd nowadays mounts Cgroups v2

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=217838

--- Comment #4 from Rajesh ([email protected]) --- (In reply to Göran Uddeborg from comment #3)

Quoted 7 lines

You are correct that the text is often amended by saying systemd mounts the v2 hierarchy on modern systems. But there is one section saying

Note that on many systems, the v1 controllers are automatically mounted under /sys/fs/cgroup; in particular, systemd(1) automatically creates such mounts.

Quoted 7 lines

In that place there is no mention that the comment only applies to older systems.

(FYI: When I wrote the bug I was running Fedora 38, and have since upgraded to Fedora 39. But you can see the problem also at
https://www.man7.org/linux/man-pages/man7/cgroups.7.html I discovered the issue when translating the manual page to Swedish.)

Got you. I also see the following mentioned under the section

"Cgroups v2 unified hierarchy"

"Note that on many modern systems, systemd(1) automatically mounts the cgroup2 filesystem at /sys/fs/cgroup/unified during the boot process."

May be reuse that and replace the one you have noted with the above? Does that work?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.