Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[upstream]aarch64平台gtest/LargePageGtests.java#use-large-pages失败 #50

Open
sendaoYan opened this issue Feb 23, 2023 · 2 comments
Open

Comments

@sendaoYan
Copy link
Collaborator

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/148462?tab=2

Command line: [/tmp/tone/run/jtreg/test-images/hotspot/gtest/server/gtestLauncher -jdk /opt/java/openjdk --gtest_output=xml:test_result.xml --gtest_catch_exceptions=0 --gtest_filter=os* -XX:-PrintWarnings -XX:+UseLargePages]
[2023-02-22T22:24:46.032290044Z] Gathering output for process 374135
[2023-02-22T22:24:46.505727012Z] Waiting for completion for process 374135
[2023-02-22T22:24:46.506120661Z] Waiting for completion finished for process 374135
Output and diagnostic info for process 374135 was saved into 'pid-374135-output.log'
Note: Google Test filter = os*
[==========] Running 36 tests from 3 test cases.
[----------] Global test environment set-up.
[----------] 24 tests from os
[ RUN      ] os.page_size_for_region_vm
[0.001s][warning][pagesize] UseLargePages disabled, no large pages configured and available on the system.
[       OK ] os.page_size_for_region_vm (0 ms)
[ RUN      ] os.page_size_for_region_aligned_vm
[       OK ] os.page_size_for_region_aligned_vm (0 ms)
[ RUN      ] os.page_size_for_region_alignment_vm
[       OK ] os.page_size_for_region_alignment_vm (0 ms)
[ RUN      ] os.page_size_for_region_unaligned_vm
[       OK ] os.page_size_for_region_unaligned_vm (0 ms)
[ RUN      ] os.test_random
[       OK ] os.test_random (0 ms)
[ RUN      ] os.test_print_hex_dump_vm
[       OK ] os.test_print_hex_dump_vm (1 ms)
[ RUN      ] os.vsnprintf_vm
[       OK ] os.vsnprintf_vm (0 ms)
[ RUN      ] os.snprintf_vm
[       OK ] os.snprintf_vm (0 ms)
[ RUN      ] os.jio_vsnprintf_vm
[       OK ] os.jio_vsnprintf_vm (0 ms)
[ RUN      ] os.jio_snprintf_vm
[       OK ] os.jio_snprintf_vm (0 ms)
[ RUN      ] os.release_multi_mappings_vm
A
Range [ffff96466000-ffff9646c000) contains: 
ffff96466000-ffff96467000 rwxp 00000000 00:00 0 
ffff96467000-ffff96468000 rw-p 00000000 00:00 0 
ffff96468000-ffff96469000 rwxp 00000000 00:00 0 
ffff96469000-ffff9646a000 rw-p 00000000 00:00 0 
ffff9646a000-ffff9646b000 rwxp 00000000 00:00 0 
ffff9646b000-ffff9646c000 rw-p 00000000 00:00 0 

B
Range [ffff96466000-ffff9646c000) contains: 
ffff96466000-ffff96467000 rwxp 00000000 00:00 0 
ffff9646b000-ffff9646c000 rw-p 00000000 00:00 0 

C
Range [ffff96466000-ffff9646c000) contains: 
ffff96466000-ffff96467000 rwxp 00000000 00:00 0 
ffff96467000-ffff9646b000 ---p 00000000 00:00 0 
ffff9646b000-ffff9646c000 rw-p 00000000 00:00 0 

[       OK ] os.release_multi_mappings_vm (0 ms)
[ RUN      ] os.release_one_mapping_multi_commits_vm
A
Range [ffff20584000-ffff21584000) contains: 
ffff20584000-ffff20984000 rw-p 00000000 00:00 0 
ffff20984000-ffff20d84000 ---p 00000000 00:00 0 
ffff20d84000-ffff21184000 rw-p 00000000 00:00 0 
ffff21184000-ffff21584000 ---p 00000000 00:00 0 

B
Range [ffff20584000-ffff21584000) contains: 
nothing.

test/hotspot/gtest/runtime/test_os.cpp:528: Failure
Expected equality of these values:
  p2
    Which is: NULL
  p
    Which is: 0xffff20584000
[  FAILED  ] os.release_one_mapping_multi_commits_vm (0 ms)
[ RUN      ] os.show_mappings_small_range_vm
[       OK ] os.show_mappings_small_range_vm (1 ms)
[ RUN      ] os.show_mappings_full_range_vm
[       OK ] os.show_mappings_full_range_vm (0 ms)
[ RUN      ] os.os_pagesizes_vm
4k, 2M
[       OK ] os.os_pagesizes_vm (0 ms)
[ RUN      ] os.pagesizes_test_range_vm
[       OK ] os.pagesizes_test_range_vm (0 ms)
[ RUN      ] os.pagesizes_test_print_vm
[       OK ] os.pagesizes_test_print_vm (0 ms)
[ RUN      ] os.dll_address_to_function_and_library_name_vm
[       OK ] os.dll_address_to_function_and_library_name_vm (12 ms)
[ RUN      ] os.iso8601_time_vm
2023-02-22T22:24:46.464+0000
2023-02-22T22:24:46.464+0000
1970-01-01T00:00:00.000+0000
1970-01-01T00:00:00.017+0000
[       OK ] os.iso8601_time_vm (0 ms)
[ RUN      ] os.is_first_C_frame_vm
[       OK ] os.is_first_C_frame_vm (0 ms)
[ RUN      ] os.safefetch_can_use_vm
[       OK ] os.safefetch_can_use_vm (0 ms)
[ RUN      ] os.safefetch_positive_vm
[       OK ] os.safefetch_positive_vm (0 ms)
[ RUN      ] os.safefetch_negative_vm
[       OK ] os.safefetch_negative_vm (0 ms)
[ RUN      ] os.safefetch_negative_at_safepoint_vm
[       OK ] os.safefetch_negative_at_safepoint_vm (9 ms)
[----------] 24 tests from os (479 ms total)

[----------] 7 tests from os_linux
[ RUN      ] os_linux.reserve_memory_special_huge_tlbfs_size_aligned_vm
[       OK ] os_linux.reserve_memory_special_huge_tlbfs_size_aligned_vm (0 ms)
[ RUN      ] os_linux.reserve_memory_special_huge_tlbfs_size_not_aligned_without_addr_vm
[       OK ] os_linux.reserve_memory_special_huge_tlbfs_size_not_aligned_without_addr_vm (0 ms)
[ RUN      ] os_linux.reserve_memory_special_huge_tlbfs_size_not_aligned_with_good_req_addr_vm
[       OK ] os_linux.reserve_memory_special_huge_tlbfs_size_not_aligned_with_good_req_addr_vm (0 ms)
[ RUN      ] os_linux.reserve_memory_special_huge_tlbfs_size_not_aligned_with_bad_req_addr_vm
[       OK ] os_linux.reserve_memory_special_huge_tlbfs_size_not_aligned_with_bad_req_addr_vm (0 ms)
[ RUN      ] os_linux.reserve_memory_special_shm_vm
[       OK ] os_linux.reserve_memory_special_shm_vm (0 ms)
[ RUN      ] os_linux.reserve_memory_special_vm
[       OK ] os_linux.reserve_memory_special_vm (0 ms)
[ RUN      ] os_linux.reserve_memory_special_concurrent_vm
[       OK ] os_linux.reserve_memory_special_concurrent_vm (0 ms)
[----------] 7 tests from os_linux (0 ms total)

[----------] 5 tests from ostream
[ RUN      ] ostream.stringStream_dynamic_start_with_internal_buffer_vm
[       OK ] ostream.stringStream_dynamic_start_with_internal_buffer_vm (0 ms)
[ RUN      ] ostream.stringStream_dynamic_start_with_malloced_buffer_vm
[       OK ] ostream.stringStream_dynamic_start_with_malloced_buffer_vm (0 ms)
[ RUN      ] ostream.stringStream_static_vm
[       OK ] ostream.stringStream_static_vm (0 ms)
[ RUN      ] ostream.bufferedStream_static_vm
[       OK ] ostream.bufferedStream_static_vm (0 ms)
[ RUN      ] ostream.bufferedStream_dynamic_small_vm
[       OK ] ostream.bufferedStream_dynamic_small_vm (0 ms)
[----------] 5 tests from ostream (0 ms total)

[----------] Global test environment tear-down
[==========] 36 tests from 3 test cases ran. (479 ms total)
[  PASSED  ] 35 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] os.release_one_mapping_multi_commits_vm

 1 FAILED TEST
ERROR: RUN_ALL_TESTS() failed. Error 1

[2023-02-22T22:24:46.515201753Z] Waiting for completion for process 374135
[2023-02-22T22:24:46.515344949Z] Waiting for completion finished for process 374135
STDERR:
java.lang.AssertionError: gtest execution failed; exit code = 2. the failed tests: [os::release_one_mapping_multi_commits_vm]
	at GTestWrapper.main(GTestWrapper.java:98)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)

JavaTest Message: Test threw exception: java.lang.AssertionError: gtest execution failed; exit code = 2. the failed tests: [os::release_one_mapping_multi_commits_vm]
JavaTest Message: shutting down test
@sendaoYan
Copy link
Collaborator Author

jdk17u-dev已经修复

image

@sendaoYan sendaoYan changed the title 【上游问题】aarch64平台gtest/LargePageGtests.java#use-large-pages失败 [upstream]aarch64平台gtest/LargePageGtests.java#use-large-pages失败 Dec 8, 2023
@dzchun
Copy link

dzchun commented Aug 22, 2024

最新版本已修复

[dongzhichun@CompilerTest-aarch64-5 dragonwell17]$ export native=-nativepath:images-dragonwell17/dragonwell-17.0.11.0.12+9-GA-test-image/hotspot/jtreg/native
[dongzhichun@CompilerTest-aarch64-5 dragonwell17]$ export test=jdk-repo-dragonwell17/test/hotspot/jtreg/gtest/LargePageGtests.java
[dongzhichun@CompilerTest-aarch64-5 dragonwell17]$
[dongzhichun@CompilerTest-aarch64-5 dragonwell17]$ alias 'j=which java ; rm -rf tmp ; time jtreg -w tmp -nr -v:fail,error'
[dongzhichun@CompilerTest-aarch64-5 dragonwell17]$ j -Xmixed $native $test
~/working/tone/dragonwell17/bin-dragonwell17/dragonwell-17.0.11.0.12+9-GA/bin/java
Directory "tmp" not found: creating
--------------------------------------------------
TEST: gtest/LargePageGtests.java#use-large-pages
TEST RESULT: Passed. Execution successful
--------------------------------------------------
TEST: gtest/LargePageGtests.java#use-large-pages-1G
TEST RESULT: Passed. Execution successful
--------------------------------------------------
TEST: gtest/LargePageGtests.java#use-large-pages-sysV
TEST RESULT: Passed. Execution successful
--------------------------------------------------
Test results: passed: 3
Results written to /home/dongzhichun/working/tone/dragonwell17/tmp

real    0m7.123s
user    0m22.053s
sys     0m1.759s
[dongzhichun@CompilerTest-aarch64-5 dragonwell17]$ function runJtreg() { jtreg -Xmixed -ea -esa $native -timeoutFactor:4 -v:fail,error,time,nopass -nr -w $dir/index-$1 $test &> $dir/$1.log ; if [[ 0 -ne $? ]] ; then echo -n "$1 " ; else rm -rf $dir/index-$1 $dir/$1.log ; fi ; } ; export -f runJtreg ; export dir="tmp-jtreg-"`basename ${test##* } .java | sed "s|#|_|"` ; rm -rf $dir ; mkdir -p $dir ; time seq 1000 | xargs -i -n 1 -P `nproc` bash -c "runJtreg {}" ; echo total fail number: `ls $dir/*.log 2> /dev/null | wc | awk '{print $1}'`

real    14m2.085s
user    401m12.984s
sys     30m57.914s
total fail number: 0
[dongzhichun@CompilerTest-aarch64-5 dragonwell17]$ java -version;java -Xinternalversion
openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment (Alibaba Dragonwell Standard Edition)-17.0.11.0.12+9-GA (build 17.0.12+9)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Standard Edition)-17.0.11.0.12+9-GA (build 17.0.12+9, mixed mode, sharing)
OpenJDK 64-Bit Server VM (17.0.12+9) for linux-aarch64 JRE (17.0.12+9), built on Jul 16 2024 00:00:00 by "dragonwell" with gcc 10.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants