git: openjdk/jdk11u-dev: 8253727: [cgroups v2] Memory and swap limits reported incorrectly

Severin Gehwolf sgehwolf at openjdk.java.net
Wed Mar 23 14:04:13 UTC 2022


Changeset: 3fc205cf
Author:    Severin Gehwolf <sgehwolf at openjdk.org>
Date:      2022-03-23 14:03:26 +0000
URL:       https://git.openjdk.java.net/jdk11u-dev/commit/3fc205cf8d09e2ab924fbb33ab4f3a9cc86ae470

8253727: [cgroups v2] Memory and swap limits reported incorrectly

Account for interface files for swap and memory being reported independently.
The cgroup v1-like value is now reported by adding the memory.max value to
the memory.swap.max value, and memory.current and memory.swap.current
respectively.

Backport-of: 3e96721cd9d1e1f46711e70dfc22064bab212b64

! src/hotspot/os/linux/cgroupV2Subsystem_linux.cpp
! src/java.base/linux/classes/jdk/internal/platform/cgroupv2/CgroupV2Subsystem.java
! test/lib/jdk/test/lib/containers/cgroup/MetricsTesterCgroupV2.java



More information about the jdk-updates-changes mailing list