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

Severin Gehwolf sgehwolf at openjdk.java.net
Fri Jul 9 13:44:56 UTC 2021


On Fri, 9 Jul 2021 11:35:34 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> > This looks pretty good now. Looking forward to seeing container tests for this new code.
> 
> Hi Severin , I did some adjustments following your suggestions.
> I added docker based test coding for testing pids-limit (with limits and also with unlimited value).
> I noticed that on our ppc64le based Linux , the message "WARNING: Your kernel does not support pids limit capabilities or the cgroup is not mounted. PIDs limit discarded." shows up , and the docker "--pids-limit" limitation does not work because of this.
> So I had to take this into account.

OK. Please also add a test on the hotspot side. You may want to add relevant parts to `TestMisc.java`.

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

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


More information about the core-libs-dev mailing list