[jdk21u-dev] RFR: 8343191: Cgroup v1 subsystem fails to set subsystem path

Sergey Chernyshev schernyshev at openjdk.org
Mon Sep 29 22:05:26 UTC 2025


This is a clean backport of JDK-8343191 except for the only difference is in the copyright header in cgroupV1Subsystem_linux.cpp

JDK-8343191 has immediate follow up fixes:

1. JDK-8351382: New test containers/docker/TestMemoryWithSubgroups.java is failing

The newly added test failed in rootless docker/podman setups
PR: TBD

2. JDK-8352926: New test TestDockerMemoryMetricsSubgroup.java fails
3. JDK-8360533: ContainerRuntimeVersionTestUtils fromVersionString fails with some docker versions

The test failed in docker versions < 20.10 and podman < 1.5 that don't support `--cgroupns` switch. 8360533 is the direct follow up of 8352926.
PR: TBD

4. 8354475: TestDockerMemoryMetricsSubgroup.java fails with exitValue = 1

Test failed in rootless docker/podman, similar to 8351382.
PR: TBD

The following test:
test/hotspot/jtreg/containers/docker/TestMemoryWithSubgroups.java

is failing on newer Linux kernels (6.14) in Ubuntu 24, because 'required' cgroup controllers are not mounted. It is unrelated to this fix. The failure can be fixed separately for newer kernels with JDK-8347811/JDK-8349988 that is currently in the LTS release (25), it should be fine for 21.0.10. The fix works for both Cgroup v1 & v2 hosts.

There are more test failures in newer kernels in

test/hotspot/jtreg/containers/
test/jdk/jdk/internal/platform/

they are not related to this backport and its follow ups.

In kernel 6.11 there are 2 failed tests,

test/jdk/jdk/internal/platform/docker/TestPidsLimit.java
test/hotspot/jtreg/containers/docker/TestPid.java

the failures are not related to this backport.

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

Commit messages:
 - Backport de29ef3bf3a029f99f340de9f093cd20544217fd

Changes: https://git.openjdk.org/jdk21u-dev/pull/2278/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2278&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8343191
  Stats: 491 lines in 9 files changed: 449 ins; 3 del; 39 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/2278.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/2278/head:pull/2278

PR: https://git.openjdk.org/jdk21u-dev/pull/2278


More information about the jdk-updates-dev mailing list