All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrea Arcangeli <aarcange@redhat.com>
To: lkp@lists.01.org
Subject: Re: [mm] 9cdbf239b5: vm-scalability.throughput -12.4% regression
Date: Sun, 23 May 2021 21:53:06 -0400	[thread overview]
Message-ID: <YKsHAnDB5+ppOVVS@redhat.com> (raw)
In-Reply-To: <20210523150802.GB18821@xsang-OptiPlex-9020>

[-- Attachment #1: Type: text/plain, Size: 1338 bytes --]

On Sun, May 23, 2021 at 11:08:02PM +0800, kernel test robot wrote:
> 
> 
> Greeting,
> 
> FYI, we noticed a -12.4% regression of vm-scalability.throughput due to commit:
> 
> 
> commit: 9cdbf239b521b2d95a3d5e6ca461a105e8547254 ("mm: COW: restore full accuracy in page reuse")
> https://git.kernel.org/cgit/linux/kernel/git/andrea/aa.git mapcount_deshare

This is an artifact of how I ordered the patches.

The lost performance is completely restored in "mm: COW: skip the page
lock in the COW copy path".

776ac3f81e0b mm: COW: skip the page lock in the COW copy path
3b8f05426b5a mm: COW: restore full accuracy in page reuse

You should benchmark the effect of both commits applied at the same
time, that is meaningful.

I'll try to invert the order and see if there aren't too many rejects
in applying the optimization first, and the revert second.

In other words you should benchmark aa34a616511f vs 776ac3f81e0b, then
you won't measure any regression.

776ac3f81e0b mm: COW: skip the page lock in the COW copy path
3b8f05426b5a mm: COW: restore full accuracy in page reuse
aa34a616511f mm: gup: FOLL_UNSHARE: optimize mmu notifier

The good thing is after 776ac3f81e0b the same scalability boosts
applied to 4k pages is applied to 2M pages too, upstream 2M pages are
still slow.

Thanks,
Andrea

  reply	other threads:[~2021-05-24  1:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-23 15:08 [mm] 9cdbf239b5: vm-scalability.throughput -12.4% regression kernel test robot
2021-05-24  1:53 ` Andrea Arcangeli [this message]
2021-05-25 21:20   ` Andrea Arcangeli

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=YKsHAnDB5+ppOVVS@redhat.com \
    --to=aarcange@redhat.com \
    --cc=lkp@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.