RFR: JDK-8266490: Extend the OSContainer API to support the pids controller of cgroups [v8]

Lutz Schmidt lucy at openjdk.java.net
Mon Aug 9 12:57:32 UTC 2021


On Thu, 5 Aug 2021 11:21:59 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
>>   }
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Adjust tests, unlimited pids value can lead on some setups to high number

The changes look good to me. 

I have one question/suggestion re. copyright comments. The files
   test/hotspot/jtreg/containers/docker/TestPids.java
and
   test/jdk/jdk/internal/platform/docker/TestPidsLimit.java
are new with this PR. Shouldn't the copyright then just specify the current year and not a range? 

And how about adding the author's company as additional copyright holder?

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

Marked as reviewed by lucy (Reviewer).

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


More information about the core-libs-dev mailing list