From: Ayush Jain <ayush.jain3@amd.com>
To: <akpm@linux-foundation.org>, <shuah@kernel.org>,
<pasha.tatashin@soleen.com>, <zhansayabagdaulet@gmail.com>,
<tyhicks@linux.microsoft.com>,
<raghavendra.kodsarathimmappa@amd.com>
Cc: <linux-mm@kvack.org>, <linux-kselftest@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <Narasimhan.V@amd.com>,
<Santosh.Shukla@amd.com>, Ayush Jain <ayush.jain3@amd.com>
Subject: [PATCH 2/2] selftests: mm: add KSM_MERGE_TIME tests
Date: Fri, 28 Jul 2023 11:31:09 +0530 [thread overview]
Message-ID: <20230728060109.4403-2-ayush.jain3@amd.com> (raw)
In-Reply-To: <20230728060109.4403-1-ayush.jain3@amd.com>
add KSM_MERGE_TIME and KSM_MERGE_TIME_HUGE_PAGES tests with
size of 100.
./run_vmtests.sh -t ksm
-----------------------------
running ./ksm_tests -H -s 100
-----------------------------
Number of normal pages: 0
Number of huge pages: 50
Total size: 100 MiB
Total time: 0.399844662 s
Average speed: 250.097 MiB/s
[PASS]
-----------------------------
running ./ksm_tests -P -s 100
-----------------------------
Total size: 100 MiB
Total time: 0.451931496 s
Average speed: 221.272 MiB/s
[PASS]
Signed-off-by: Ayush Jain <ayush.jain3@amd.com>
---
tools/testing/selftests/mm/run_vmtests.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh
index 3f26f6e15b2a..ca3738e042c2 100755
--- a/tools/testing/selftests/mm/run_vmtests.sh
+++ b/tools/testing/selftests/mm/run_vmtests.sh
@@ -262,6 +262,10 @@ CATEGORY="madv_populate" run_test ./madv_populate
CATEGORY="memfd_secret" run_test ./memfd_secret
+# KSM KSM_MERGE_TIME_HUGE_PAGES test with size of 100
+CATEGORY="ksm" run_test ./ksm_tests -H -s 100
+# KSM KSM_MERGE_TIME test with size of 100
+CATEGORY="ksm" run_test ./ksm_tests -P -s 100
# KSM MADV_MERGEABLE test with 10 identical pages
CATEGORY="ksm" run_test ./ksm_tests -M -p 10
# KSM unmerge test
--
2.34.1
next prev parent reply other threads:[~2023-07-28 6:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-28 6:01 [PATCH 1/2] selftests: mm: ksm: Fix incorrect evaluation of parameter Ayush Jain
2023-07-28 6:01 ` Ayush Jain [this message]
2023-07-28 14:35 ` [PATCH 2/2] selftests: mm: add KSM_MERGE_TIME tests David Hildenbrand
2023-07-28 14:35 ` [PATCH 1/2] selftests: mm: ksm: Fix incorrect evaluation of parameter David Hildenbrand
2023-07-28 16:15 ` Ayush Jain
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=20230728060109.4403-2-ayush.jain3@amd.com \
--to=ayush.jain3@amd.com \
--cc=Narasimhan.V@amd.com \
--cc=Santosh.Shukla@amd.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pasha.tatashin@soleen.com \
--cc=raghavendra.kodsarathimmappa@amd.com \
--cc=shuah@kernel.org \
--cc=tyhicks@linux.microsoft.com \
--cc=zhansayabagdaulet@gmail.com \
/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