From: Pavel Tatashin <pasha.tatashin@soleen.com>
To: Tyler Hicks <tyhicks@linux.microsoft.com>
Cc: Zhansaya Bagdauletkyzy <zhansayabagdaulet@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm <linux-mm@kvack.org>,
linux-kselftest@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v3 2/2] selftests: vm: add COW time test for KSM pages
Date: Fri, 20 Aug 2021 13:20:04 -0400 [thread overview]
Message-ID: <CA+CK2bB5kC=wVO0g4mC0VVFHhJyuoL_Kd7zqiHrmXC7jwejcWQ@mail.gmail.com> (raw)
In-Reply-To: <20210819163117.GO5469@sequoia>
On Thu, Aug 19, 2021 at 12:31 PM Tyler Hicks
<tyhicks@linux.microsoft.com> wrote:
>
> On 2021-08-19 21:33:43, Zhansaya Bagdauletkyzy wrote:
> > Since merged pages are copied every time they need to be modified,
> > the write access time is different between shared and non-shared pages.
> > Add ksm_cow_time() function which evaluates latency of these COW
> > breaks. First, 4000 pages are allocated and the time, required to modify
> > 1 byte in every other page, is measured. After this, the pages are
> > merged into 2000 pairs and in each pair, 1 page is modified (i.e. they
> > are decoupled) to detect COW breaks. The time needed to break COW of
> > merged pages is then compared with performance of non-shared pages.
> >
> > The test is run as follows: ./ksm_tests -C
> > The output:
> > Total size: 15 MiB
> >
> > Not merged pages:
> > Total time: 0.002185489 s
> > Average speed: 3202.945 MiB/s
> >
> > Merged pages:
> > Total time: 0.004386872 s
> > Average speed: 1595.670 MiB/s
> >
> > Signed-off-by: Zhansaya Bagdauletkyzy <zhansayabagdaulet@gmail.com>
> > ---
> > v2 -> v3:
> > - address Tyler's feedback
>
> Thanks for incorporating my suggestions! I can confirm that my feedback
> was completely addressed.
>
> Reviewed-by: Tyler Hicks <tyhicks@linux.microsoft.com>
>
> Tyler
Reviewed-by: Pavel Tatashin <pasha.tatashin@soleen.com>
prev parent reply other threads:[~2021-08-20 17:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-19 15:33 [PATCH v3 0/2] add KSM performance tests Zhansaya Bagdauletkyzy
2021-08-19 15:33 ` [PATCH v3 1/2] selftests: vm: add KSM merging time test Zhansaya Bagdauletkyzy
2021-08-19 16:29 ` Tyler Hicks
2021-08-20 17:19 ` Pavel Tatashin
2021-08-19 15:33 ` [PATCH v3 2/2] selftests: vm: add COW time test for KSM pages Zhansaya Bagdauletkyzy
2021-08-19 16:31 ` Tyler Hicks
2021-08-20 17:20 ` Pavel Tatashin [this message]
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='CA+CK2bB5kC=wVO0g4mC0VVFHhJyuoL_Kd7zqiHrmXC7jwejcWQ@mail.gmail.com' \
--to=pasha.tatashin@soleen.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.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