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

David Holmes dholmes at openjdk.java.net
Fri Apr 16 01:15:37 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.

Hi Anton,

Your change certainly fixes the test, but I have to wonder whether the real problem isn't that our cgroup code should handle this case better and still report the "not available" value rather than skipping it completely? @jerboaa and @YaSuenag what are your thoughts?

Thanks,
David

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

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


More information about the hotspot-runtime-dev mailing list