RFR: 8262953: [TESTBUG] Test /runtime/containers/cgroup/PlainRead.java fails if CPU quoata is not enabled
Severin Gehwolf
sgehwolf at openjdk.java.net
Fri Apr 16 09:46:36 UTC 2021
On Fri, 16 Apr 2021 02:26:00 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:
> I agree with David, I think we should throw SkipException in this case.
>
> OTOH this test can catch incorrect behavior if HotSpot could not get CPU related values from cgroups even if `CONFIG_CFS_BANDWIDTH` is configured.
Did you perhaps mean that post-patch the test would actually (wrongly) pass on a system with a broken implementation of CPU quota/period support in the container detection code? If so, I agree and, thus, don't like this suggested fix for that reason.
> So I suggest to check `/boot/config-<kernel version>` in start of the test rather than throwing SkipException. If we cannot see `CONFIG_CFS_BANDWIDTH=y` in it, then we can throw SkipException.
This suggestion depends on `/boot/config-$(uname -r)` being installed on the system under test. If it isn't, you're non the wiser and have to assume something.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3206
More information about the hotspot-runtime-dev
mailing list