[PATCH] selftests/vm: Run va_128TBswitch test with hugepages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Harish <harish@xxxxxxxxxxxxx>
---
 tools/testing/selftests/vm/run_vmtests | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/testing/selftests/vm/run_vmtests b/tools/testing/selftests/vm/run_vmtests
index a3f4f30f0a2e..ca0be11250bf 100755
--- a/tools/testing/selftests/vm/run_vmtests
+++ b/tools/testing/selftests/vm/run_vmtests
@@ -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 "------------------------------------"
-- 
2.24.1




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux