Skip to contentSkip to conversation

selftests/vm: Run va_128TBswitch test with hugepages

PATCH New Harish 1 participant 1 message Jun 16, 2020 Kselftest

lore
Share & tools
lore

Harish

author
#0 lore raw

PATCH 1/1 selftests/vm: Run va_128TBswitch test with hugepages

Use the --run-hugetlb option to run va_128TBswitch with hugepages configured

---
 tools/testing/selftests/vm/run_vmtests | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
tools/testing/selftests/vm/run_vmtests +4 -1
index a3f4f30f0a2e..ca0be11250bf 100755
@@ -267,13 +267,16 @@ fi
 echo "-----------------------------"
 echo "running virtual address 128TB switch test"
 echo "-----------------------------"
-./va_128TBswitch
+# Configure minimum hugepages to run test with hugepages
+echo $(( $lackpgs + $nr_hugepgs )) > /proc/sys/vm/nr_hugepages
+./va_128TBswitch --run-hugetlb
 if [ $? -ne 0 ]; then
     echo "[FAIL]"
     exitcode=1
 else
     echo "[PASS]"
 fi
+echo $nr_hugepgs > /proc/sys/vm/nr_hugepages
 fi # VADDR64
 
 echo "------------------------------------"
Signature · 1 line
2.24.1