Integrated: 8253714: [cgroups v2] Soft memory limit incorrectly using memory.high

Severin Gehwolf sgehwolf at openjdk.java.net
Tue Sep 29 15:18:58 UTC 2020


On Mon, 28 Sep 2020 15:59:35 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> Tests using `--memory-reservation` started to fail with newer `crun` cgroups v2-capable runtime. It turns out it was
> incorrectly setting `memory.high` in an early version and got fixed to set `memory.low` now instead. This change
> accounts for that.

This pull request has now been integrated.

Changeset: ff6843ca
Author:    Severin Gehwolf <sgehwolf at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/ff6843ca
Stats:     4 lines in 3 files changed: 0 ins; 0 del; 4 mod

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.

Reviewed-by: bobv, adinn

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

PR: https://git.openjdk.java.net/jdk/pull/381


More information about the core-libs-dev mailing list