Test fails on old kernel with thp mode "always".
Test:
runtime/os/TestTracePageSizes.java
Stack trace:
java.lang.AssertionError: Page sizes mismatch: 4 != 2048
at TestTracePageSizes.main(TestTracePageSizes.java:307)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
Details:
Test relaxes page size check if mapping uses THP. Detection logic depends of THPeligible line from smaps, when THP mode is "always" (default on RHEL-7). This information however only appeared in kernel 5.0. Tests passes with THP mode switched to "madvise" on RHEL-7.
Test:
runtime/os/TestTracePageSizes.java
Stack trace:
java.lang.AssertionError: Page sizes mismatch: 4 != 2048
at TestTracePageSizes.main(TestTracePageSizes.java:307)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1575)
Details:
Test relaxes page size check if mapping uses THP. Detection logic depends of THPeligible line from smaps, when THP mode is "always" (default on RHEL-7). This information however only appeared in kernel 5.0. Tests passes with THP mode switched to "madvise" on RHEL-7.