[jdk8u-dev] Integrated: 8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy

Jonathan Dowland jdowland at openjdk.org
Mon Dec 5 04:18:17 UTC 2022


On Wed, 21 Sep 2022 10:12:07 GMT, Jonathan Dowland <jdowland at openjdk.org> wrote:

> This is a backport of [4def210a22faaec6b47912dd314e6365ea48d28f](https://github.com/openjdk/jdk/commit/4def210a22faaec6b47912dd314e6365ea48d28f) for jdk8u-dev as part of an effort to backport cgroups v2 support.
> 
> It does not apply clean. Paths need unshuffling. A number of changes were needed for 8u support. I've structured the PR as separate commits, with each change made in a separate commit for (hopefully) ease of review.
> 
> Not all the new tests pass:     TestDockerMemoryMetrics  failing one, specifically:
> 
>     Exception in thread "main" java.lang.RuntimeException: Memory and swap limit not equal, expected : [209715200, 1073741824], got : [209715200, 864026624]
> 
> I think this is fixed in a further patch to backport, and will confirm.

This pull request has now been integrated.

Changeset: c9007cd4
Author:    Jonathan Dowland <jdowland at openjdk.org>
URL:       https://git.openjdk.org/jdk8u-dev/commit/c9007cd44db764fbd791218c6f38491f38af70c2
Stats:     5335 lines in 33 files changed: 3621 ins; 1582 del; 132 mod

8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
8275713: TestDockerMemoryMetrics test fails on recent runc
8228585: jdk/internal/platform/cgroup/TestCgroupMetrics.java - NumberFormatException because of large long values (memory limit_in_bytes)

Reviewed-by: sgehwolf, andrew
Backport-of: 4def210a22faaec6b47912dd314e6365ea48d28f

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

PR: https://git.openjdk.org/jdk8u-dev/pull/121


More information about the jdk8u-dev mailing list