[systemd-devel] cgroupsv2 and realtime processes

Michał Zegan webczat at outlook.com
Sun Jun 5 13:28:23 UTC 2022


Hello,

This is more of a kernel than systemd question but I am not subscribed 
to any kernel ml and I assume systemd people should know the answer.

I have kernel 5.17 on archlinux. The cgroupsv2 documentation states that 
cgroup cpu controller currently does not support realtime processes, so 
to enable it all realtime processes must be moved to root cgroup.

Is that still true?

I ask because what I currently have is that things like pipewire sound 
server are running on the system, and some of pipewire's threads do have 
realtime priority, it seems.

Yet, checking /proc/(pid)/cgroup states these processes are not in a 
root cgroup, yet the cpu controller is enabled on the root cgroup 
(/sys/fs/cgroup/cgroup.subtree_control lists "cpu" as one of the 
controllers and I see the interface files in children).

Can anyone explain the situation?

The user.slice which contains, indirectly, the pipewire cgroup 
(pipewire.service) doesn't have the cpu controller enabled, but I assume 
that shouldn't make a difference.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xE6516A8A8E25955D.asc
Type: application/pgp-keys
Size: 10971 bytes
Desc: OpenPGP public key
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20220605/8b6f80db/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20220605/8b6f80db/attachment.sig>


More information about the systemd-devel mailing list