public inbox for linux-kselftest@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] selftests/vm: Run va_128TBswitch test with hugepages
@ 2020-06-16  6:12 Harish
  0 siblings, 0 replies; only message in thread
From: Harish @ 2020-06-16  6:12 UTC (permalink / raw)
  To: linux-kselftest; +Cc: Harish, aneesh.kumar, skhan

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

Signed-off-by: Harish <harish@linux.ibm.com>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-16  6:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-16  6:12 [PATCH] selftests/vm: Run va_128TBswitch test with hugepages Harish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox