[jdk8u-dev] Integrated: 8230305: Cgroups v2: Container awareness
Jonathan Dowland
jdowland at openjdk.org
Wed Nov 30 20:12:57 UTC 2022
On Mon, 3 Oct 2022 09:57:22 GMT, Jonathan Dowland <jdowland at openjdk.org> wrote:
> This is a backport of 8230305 (Cgroups v2: Container awareness) for JDK8u, working from the jdk11u-dev backport as part of an effort to backport cgroups v2 to jdk8u-dev.
>
> The patch does not apply clean after unshuffling and path fixing:
>
> * mostly copyright line issues
> * different package name for jdk.test.lib.process.OutputAnalyzer
> * Most of hotspot/src/os/linux/vm/cgroupSubsystem_linux.cpp failed due to context changes, manually resolved (mostly deletions)
>
> A few other changes were made
>
> * Rework use of newer logging API (log_debug etc) to use guarded tty->print_cr
> * replace os::strerror with the libc strerror (which is thread unsafe, but that should be addressed by backporting 8148425 separately)
>
> patch touched hotspot/test/runtime/containers/docker/TestCPUAwareness.java which passes afterwards; I'm running further tests now (and awaiting GitHub CI doing the same)
This pull request has now been integrated.
Changeset: 7eb2803b
Author: Jonathan Dowland <jdowland at openjdk.org>
URL: https://git.openjdk.org/jdk8u-dev/commit/7eb2803b5b3c769827cf02cc40a15b13b74bf588
Stats: 2094 lines in 10 files changed: 1461 ins; 596 del; 37 mod
8230305: Cgroups v2: Container awareness
8216366: Add rationale to PER_CPU_SHARES define
8229202: Docker reporting causes secondary crashes in error handling
8232207: Linux os::available_memory re-reads cgroup configuration on every invocation
8254997: Remove unimplemented OSContainer::read_memory_limit_in_bytes
Implement Cgroups v2 container awareness in hotspot
Reviewed-by: sgehwolf, andrew
Backport-of: d462a6b5c9bd3dae5257cca42ea38c19cb742e3c
-------------
PR: https://git.openjdk.org/jdk8u-dev/pull/127
More information about the jdk8u-dev
mailing list