RFR: 8349988: Change cgroup version detection logic to not depend on /proc/cgroups [v4]
Thomas Fitzsimmons
duke at openjdk.org
Tue Apr 1 13:55:27 UTC 2025
On Tue, 1 Apr 2025 13:39:53 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:
> > @jerboaa @fitzsim Does the current mainline code handles mixed configuration where in some controllers are v1 and others v2? For example cpu controller is mounted as v1 while memory controller as v2. If yes, does this patch continue to support such configuration?
>
> The current code does not allow mixed configuration for "relevant" controllers (essentially cpu and memory). That is, they ought to be v1 or v2. In the hybrid case (systemd running on unified), it's considered v1. I don't think this patch changes any of it.
Yes, I tried to keep the logic the same. There are some hybrid test cases (though none testing exactly the setup you described), and they continue to pass.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23811#issuecomment-2769437121
More information about the hotspot-dev
mailing list