Tests arm64 specific, contiguous bit based large pages as well. Change-Id: I09edad8cfde6c23a259f1f32cfc97974d9cb63c3
58 lines
1.1 KiB
Plaintext
58 lines
1.1 KiB
Plaintext
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
|