RFR [XS]: 8244500: jtreg test error in test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java
David Holmes
david.holmes at oracle.com
Sat May 9 05:29:37 UTC 2020
Hi Matthias,
On 6/05/2020 9:18 pm, Baesken, Matthias wrote:
> Hello,
>
> I noticed issues on one of our Linux test machines with jtreg test test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java
> After 8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy .
> we see errors on one of our Linux test machines in jtreg test test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java .
>
>> Error:
>> test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'OperatingSystemMXBean.getTotalSwapSpaceSize: 0' missing from stdout/stderr
>> Test output reports:
>> OperatingSystemMXBean.getTotalSwapSpaceSize: 16106061824
>> OperatingSystemMXBean.getFreeSwapSpaceSize: 15958736896
>> We also see this output:
>> WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
>>
>
> A check for the warning message "Your kernel does not support swap limit capabilities" could be added to the test.
But according to the comment immediately before your changes:
// in case of warnings like : "Your kernel does not support swap limit
capabilities or the cgroup is not mounted. Memory limited without swap."
// the getTotalSwapSpaceSize does not return the expected result, but 0
we should be returning zero. So this seems to be a bug in the
implementation not in the test.
David
-----
> Bug/webrev :
> https://bugs.openjdk.java.net/browse/JDK-8244500
>
> http://cr.openjdk.java.net/~mbaesken/webrevs/8244500.0/
>
> Thanks, Matthias
>
>
More information about the hotspot-dev
mailing list