Add test programs for lage page

Tests arm64 specific, contiguous bit based large pages as well.

Change-Id: I09edad8cfde6c23a259f1f32cfc97974d9cb63c3
This commit is contained in:
Masamichi Takagi
2018-12-07 19:28:51 +09:00
committed by Dominique Martinet
parent 100754f556
commit 9f7425c152
86 changed files with 5024 additions and 0 deletions

View File

@ -0,0 +1,57 @@
pagesize=$(getconf PAGESIZE)
case $pagesize in
65536)
# mmap + THP: 2MB, 512MB
test_set="${test_set} 001"
# shget + THP: 2MB, 512MB
test_set="${test_set} 101"
# mmap + flag: 2MB, 512MB
test_set="${test_set} 201"
# shmget + flag: 2MB, 512MB
test_set="${test_set} 301"
# brk: 2MB, 512MB
test_set="${test_set} 401 402"
# .data, .bss, .stack: 2MB
test_set="${test_set} 501"
# .data, .bss: 512M
test_set="${test_set} 502"
# hugetlbfs: 2MB, 512MB
test_set="${test_set} 601"
;;
4096)
# mmap + THP: 64KB, 2MB, 32MB, 1GB
test_set="${test_set} 001"
# shget + THP: 64KB, 2MB, 32MB, 1GB
test_set="${test_set} 101"
# mmap + flag: 64KB, 2MB, 32MB, 1GB
test_set="${test_set} 201"
# shmget + flag: 64KB, 2MB, 32MB, 1GB
test_set="${test_set} 301"
# brk: 64KB, 2MB, 32MB. 1GB
test_set="${test_set} 401 402 403 404"
# .data, .bss, .stack: 64KB, 2MB, 32MB
test_set="${test_set} 501 502 503"
# .data, .bss: 1GB
test_set="${test_set} 504"
# hugetlbfs: 64KB, 2MB, 32MB, 1GB
test_set="${test_set} 601"
;;
*) echo "Error: Unknown page size: $pagesize"
exit 1
;;
esac