RFR: 8349988: Change cgroup version detection logic to not depend on /proc/cgroups [v4]

Matthias Frei duke at openjdk.org
Thu May 8 06:52:00 UTC 2025


On Tue, 1 Apr 2025 13:39:53 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

>> @tstuefe @ashu-mehra Could you please help with a second review?
>
>> @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.

@jerboaa @fitzsim, is there any plan to backport this fix (to 21)?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/23811#issuecomment-2861925488


More information about the hotspot-dev mailing list