On Thu, Jul 04, 2019 at 02:42:15PM +0200, Florian Weimer wrote:
* Zbigniew Jędrzejewski-Szmek:
> We know that cgroupv2 already (and for a long time...) works better
> than v1, so I'd rather make the switch unconditional, using the usual
> phrasing of "In the unlikely case catastrophic problems are discovered
> with v2, the default will be reverted to v1.".
Do you know if cgropvs2 makes process termination reporting less or more
exact? It's this bug:
<
https://bugzilla.kernel.org/show_bug.cgi?id=154011>
I think in the past, cgroups changes have occasionally made this issue
significantly worse, to the extent that it was no longer possible to run
tests reliably that spawn and join many threads (but never running more
than a reasonable count in parallel).
No idea if v2 affects this specific issue with RLIMIT_NPROC and
threads in any way. But in a related matter — v2 makes improves the
reporting of empty cgroups, which makes process termination detection
much easier. This fixes some corner cases and bugs with service termination
in systemd.
Zbyszek