Package: systemd
Severity: wishlist
Version: 242-7
Tags: patch

I'd like to propose that we switch to cgroupv2 as the default
configuration for the bullseye release.  This has the potential to
impact quite a few packages (notably, it breaks Docker today), so I
don't think it can be done without engaging with a broader subsection of
the developer community, but this seems like a reasonable place to
start.  By making this transition soon, I expect that we can iron out
the issues well in advance of the bullseye release.

Detailed documentation of cgroupv2 can be found at
https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html, with
rationales and comparison against v1 documented under the "Issues with
v1 and Rationales for v2" heading.

>From systemd's perspective, the switch may be as simple as adding
"-Ddefault-hierarchy=unified" to the configuration options in
debian/rules.  A minimal patch to implement this change is attached.

Thanks
noah

diff -ur systemd-242/debian/rules systemd-242-8~cgroupv2/debian/rules
--- systemd-242/debian/rules	2019-09-04 17:34:17.000000000 +0000
+++ systemd-242-8~cgroupv2/debian/rules	2019-11-01 22:31:54.575052213 +0000
@@ -74,7 +74,8 @@
 	-Dnobody-group=nogroup \
 	-Dbump-proc-sys-fs-nr-open=false \
 	-Ddev-kvm-mode=0660 \
-	-Dgroup-render-mode=0660
+	-Dgroup-render-mode=0660 \
+	-Ddefault-hierarchy=unified
 
 # resolved's DNSSEC support is still not mature enough, don't enable it by
 # default on stable Debian or any Ubuntu releases

Reply via email to