Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8324776

runtime/os/TestTransparentHugePageUsage.java fails with The usage of THP is not enough

XMLWordPrintable

    • b21
    • x86_64, aarch64
    • linux

      The following test fails in the JDK23 CI:

      runtime/os/TestTransparentHugePageUsage.java

      Here's a snippet from the log file:

      #section:driver
      ----------messages:(7/273)----------
      command: driver runtime.os.TestTransparentHugePageUsage
      reason: User specified action: run driver runtime.os.TestTransparentHugePageUsage
      started: Fri Jan 26 17:19:01 UTC 2024
      Mode: agentvm
      Agent id: 33
      finished: Fri Jan 26 17:19:02 UTC 2024
      elapsed time (seconds): 0.793
      ----------configuration:(14/1894)----------

      <snip>

      ----------System.out:(1/2085)----------
      Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+8-499/linux-x64-debug.jdk/jdk-23/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/73e57426-9086-438c-bf1c-51bfaf1790ad-S36649/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/66225702-8d9e-445f-936d-273ad8a1e472/runs/b9c4d990-f663-41ad-9e51-0085eb44307b/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/runtime/os/TestTransparentHugePageUsage.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-23+8-499/src.full/open/test/hotspot/jtreg/runtime/os:/opt/mach5/mesos/work_dir/slaves/73e57426-9086-438c-bf1c-51bfaf1790ad-S36649/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/66225702-8d9e-445f-936d-273ad8a1e472/runs/b9c4d990-f663-41ad-9e51-0085eb44307b/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/4/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/junit-platform-console-standalone-1.9.2.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/testng-7.3.0.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/jcommander-1.82.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.3.1/1/bundles/jtreg-7.3.1+1.zip/jtreg/lib/guice-5.1.0.jar -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/21/35/bundles/linux-x64/jdk-21_linux-x64_bin.tar.gz/jdk-21 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/73e57426-9086-438c-bf1c-51bfaf1790ad-S36649/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/66225702-8d9e-445f-936d-273ad8a1e472/runs/b9c4d990-f663-41ad-9e51-0085eb44307b/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/tmp -XX:+UseTransparentHugePages -XX:+AlwaysPreTouch -Xlog:startuptime,pagesize,gc+heap=debug -XX:+UseSerialGC -Xms1G -Xmx1G runtime.os.TestTransparentHugePageUsage$CatSmaps ]
      ----------System.err:(11/667)----------
      java.lang.RuntimeException: The usage of THP is not enough.
      at runtime.os.TestTransparentHugePageUsage.checkUsage(TestTransparentHugePageUsage.java:94)
      at runtime.os.TestTransparentHugePageUsage.main(TestTransparentHugePageUsage.java:59)
      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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1575)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: The usage of THP is not enough.

        1. madvise_return_values.pdf
          168 kB
          Patrick Zhang
        2. TestAlwaysPreTouchStacks.log.202402021446
          35 kB
          Daniel Daugherty
        3. TestAlwaysPreTouchStacks.log.202402071546
          34 kB
          Daniel Daugherty
        4. TestTransparentHugePageUsage.log.202402021445
          99 kB
          Daniel Daugherty
        5. TestTransparentHugePageUsage.log.202402021450
          97 kB
          Daniel Daugherty
        6. TestTransparentHugePageUsage.log.202402071543
          97 kB
          Daniel Daugherty
        7. TestTransparentHugePageUsage.log.202402071545
          97 kB
          Daniel Daugherty
        8. TestTransparentHugePageUsage.log.202403031639
          112 kB
          Daniel Daugherty
        9. TestTransparentHugePageUsage.log.202403031650
          102 kB
          Daniel Daugherty

            qpzhang Patrick Zhang
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: