git: openjdk/jdk11u-dev: 8253714: [cgroups v2] Soft memory limit incorrectly using memory.high
Zhengyu Gu
zgu at openjdk.java.net
Wed Mar 23 13:36:00 UTC 2022
Changeset: f76091ec
Author: Zhengyu Gu <zgu at openjdk.org>
Date: 2022-03-23 13:33:25 +0000
URL: https://git.openjdk.java.net/jdk11u-dev/commit/f76091ec9a05a8cb40514082dcff22c7829fa3aa
8253714: [cgroups v2] Soft memory limit incorrectly using memory.high
The early implementation of cgroups v2 support was done with
crun 0.8 and it contained a bug which set memory.high over
memory.low when --memory-reservation was being used as a CLI
option.
This bug has been fixed in later crun versions, starting with
crun 0.11. Use memory.low in OpenJDK as well.
Backport-of: ff6843ca4842498791061f924c545fa9469cc1dc
! 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