git: openjdk/jdk8u-dev: 8253727: [cgroups v2] Memory and swap limits reported incorrectly
Severin Gehwolf
sgehwolf at openjdk.org
Wed Dec 7 15:04:20 UTC 2022
Changeset: 97d00caf
Author: Severin Gehwolf <sgehwolf at openjdk.org>
Date: 2022-12-07 15:03:28 +0000
URL: https://git.openjdk.org/jdk8u-dev/commit/97d00caf3d79f534da431d373dfbae8e93f735cd
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: andrew
Backport-of: 3e96721cd9d1e1f46711e70dfc22064bab212b64
! hotspot/src/os/linux/vm/cgroupV2Subsystem_linux.cpp
! jdk/src/linux/classes/jdk/internal/platform/cgroupv2/CgroupV2Subsystem.java
! jdk/test/lib/jdk/test/lib/containers/cgroup/MetricsTesterCgroupV2.java
More information about the jdk8u-dev-changes
mailing list