git: openjdk/jdk: 8253727: [cgroups v2] Memory and swap limits reported incorrectly
Severin Gehwolf
sgehwolf at openjdk.java.net
Thu Oct 1 09:29:18 UTC 2020
Changeset: 3e96721c
Author: Severin Gehwolf <sgehwolf at openjdk.org>
Date: 2020-10-01 09:28:40 +0000
URL: https://git.openjdk.java.net/jdk/commit/3e96721c
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.
Reviewed-by: bobv, shade
! 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-changes
mailing list