From: Harish <harish@linux.ibm.com>
To: linux-kselftest@vger.kernel.org
Cc: Harish <harish@linux.ibm.com>,
aneesh.kumar@linux.ibm.com, skhan@linuxfoundation.org
Subject: [PATCH] selftests/vm: Run va_128TBswitch test with hugepages
Date: Tue, 16 Jun 2020 11:42:45 +0530 [thread overview]
Message-ID: <20200616061246.51754-1-harish@linux.ibm.com> (raw)
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
reply other threads:[~2020-06-16 6:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200616061246.51754-1-harish@linux.ibm.com \
--to=harish@linux.ibm.com \
--cc=aneesh.kumar@linux.ibm.com \
--cc=linux-kselftest@vger.kernel.org \
--cc=skhan@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox