RFR: 8262953: [TESTBUG] Test /runtime/containers/cgroup/PlainRead.java fails if CPU quoata is not enabled

Yasumasa Suenaga ysuenaga at openjdk.java.net
Fri Apr 16 07:18:34 UTC 2021


On Thu, 25 Mar 2021 20:11:30 GMT, Anton Ostrouhhov <github.com+22177208+aostrouhhov at openjdk.org> wrote:

> Hello!
> Both _CPU Quota_ and _CPU Period_ are missing from output if kernel was built without `CONFIG_CFS_BANDWIDTH`.
> 
> This is my first contribution so please tell me if i am wrong somewhere.

Hmm... I don't like it because it looks like ad hoc to me. Do similar issues happen in other place? e.g. `GET_CONTAINER_INFO_LINE`. I worried HotSpot has similar issues.

We've seen some issues that container support in HotSpot is not enough.IMHO we should separate cgroups and container support in both HotSpot and JMX cleanly, then we should improve cgroups support. I think we can just fix the test until then.

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

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


More information about the hotspot-runtime-dev mailing list