[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-serviceability-dev
Subject: Integrated: 8254001: [Metrics] Enhance parsing of cgroup interface files for version detection
From: Severin Gehwolf <sgehwolf () openjdk ! java ! net>
Date: 2021-02-24 19:42:40
Message-ID: 4LRVddMlQLbwuj3ucT_svgTklw2_BA9X_9fk4hfraW0=.57849a24-52e5-47a8-a79f-1e783678f0f4 () github ! com
[Download RAW message or body]
On Mon, 23 Nov 2020 15:46:56 GMT, Severin Gehwolf <sgehwolf@openjdk.org> wrote:
> This is an enhancement which solves two issues:
>
> 1. Multiple reads of relevant cgroup interface files. Now interface files are only \
> read once per file (just like Hotspot). 2. Proxies creation of the impl specific \
> subsystem via `determineType()` as before, but now reads all relevant interface \
> files: `/proc/cgroups`, `/proc/self/mountinfo` and `/proc/self/cgroup`. Once read \
> it passes the parsed information to the impl specific subsystem classes for \
> instantiation. This allows for more flexibility of testing as interface files can \
> be mocked and, thus, more cases can be tested that way without having access to \
> these specific systems. For example, proper regression tests for JDK-8217766 and \
> JDK-8253435 have been added now with this in place.
> * [x] Tested on Linux x86_64 on cgroups v1 and cgroups v2. Container tests pass.
This pull request has now been integrated.
Changeset: a50725db
Author: Severin Gehwolf <sgehwolf@openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/a50725db
Stats: 596 lines in 5 files changed: 323 ins; 144 del; 129 mod
8254001: [Metrics] Enhance parsing of cgroup interface files for version detection
Reviewed-by: hseigel, andrew
-------------
PR: https://git.openjdk.java.net/jdk/pull/1393
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic