Integrated: JDK-8266490: Extend the OSContainer API to support the pids controller of cgroups

Matthias Baesken mbaesken at openjdk.java.net
Tue Aug 10 07:44:45 UTC 2021


On Thu, 17 Jun 2021 12:27:25 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Hello, please review this PR; it extend the OSContainer API in order to also support the pids controller of cgroups.
> 
> I noticed that unlike the other controllers "cpu", "cpuset", "cpuacct", "memory"  on some older Linux distros (SLES 12.1, RHEL 7.1) the pids controller might not be there (or not fully supported) so it was added as optional  , see the coding
> 
> 
>   if (!cg_infos[PIDS_IDX]._data_complete) {
>     log_debug(os, container)("Optional cgroup v1 pids subsystem not found");
>     // keep the other controller info, pids is optional
>   }

This pull request has now been integrated.

Changeset: 089e83bf
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/089e83bf1bf6f28cec8dd30288720b6d066301f0
Stats:     555 lines in 22 files changed: 476 ins; 28 del; 51 mod

8266490: Extend the OSContainer API to support the pids controller of cgroups

Reviewed-by: sgehwolf, lucy

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

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


More information about the core-libs-dev mailing list