From: Matthew Wilcox <willy@infradead.org>
To: Rong Chen <rong.a.chen@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Johannes Weiner <hannes@cmpxchg.org>,
Alexey Dobriyan <adobriyan@gmail.com>,
Chris Wilson <chris@chris-wilson.co.uk>,
Huang Ying <ying.huang@intel.com>,
Hugh Dickins <hughd@google.com>,
Jani Nikula <jani.nikula@linux.intel.com>,
Matthew Auld <matthew.auld@intel.com>,
William Kucharski <william.kucharski@oracle.com>,
Qian Cai <cai@redhat.com>, LKML <linux-kernel@vger.kernel.org>,
lkp@lists.01.org, lkp@intel.com, feng.tang@intel.com,
zhengjun.xing@intel.com
Subject: Re: [mm] e6e88712e4: stress-ng.tmpfs.ops_per_sec -69.7% regression
Date: Mon, 2 Nov 2020 14:23:52 +0000 [thread overview]
Message-ID: <20201102142352.GK27442@casper.infradead.org> (raw)
In-Reply-To: <d57f327c-a22e-1fb0-26fe-68b4964e75dc@intel.com>
On Mon, Nov 02, 2020 at 01:21:39PM +0800, Rong Chen wrote:
> On 10/30/20 10:58 PM, Matthew Wilcox wrote:
> > Can you reproduce this? Here's my results:
[snipped]
>
> Hi Matthew,
>
> IIUC, yes, we can reproduce it, here is the result from the server:
>
> $ stress-ng --timeout 100 --times --verify --metrics-brief --sequential 96
> --class memory --minimize --exclude spawn,exec,swap,stack,atomic,bad-altstack,bsearch,context,full,heapsort,hsearch,judy,lockbus,lsearch,malloc,matrix-3d,matrix,mcontend,membarrier,memcpy,memfd,memrate,memthrash,mergesort,mincore,null,numa,pipe,pipeherd,qsort,radixsort,remap,resources,rmap,shellsort,skiplist,stackmmap,str,stream,tlb-shootdown,tree,tsearch,vm-addr,vm-rw,vm-segv,vm,wcs,zero,zlib
>
> stress-ng: info: [2765] disabled 'oom-pipe' as it may hang or reboot the
> machine (enable it with the --pathological option)
> stress-ng: info: [2765] dispatching hogs: 96 tmpfs
> stress-ng: info: [2765] successful run completed in 104.67s (1 min, 44.67
> secs)
> stress-ng: info: [2765] stressor bogo ops real time usr time sys
> time bogo ops/s bogo ops/s
> stress-ng: info: [2765] (secs) (secs) (secs)
> (real time) (usr+sys time)
> stress-ng: info: [2765] tmpfs 363 103.02 622.07
> 7289.85 3.52 0.05
> stress-ng: info: [2765] for a 104.67s run time:
> stress-ng: info: [2765] 10047.98s available CPU time
> stress-ng: info: [2765] 622.46s user time ( 6.19%)
> stress-ng: info: [2765] 7290.66s system time ( 72.56%)
> stress-ng: info: [2765] 7913.12s total time ( 78.75%)
> stress-ng: info: [2765] load average: 79.62 28.89 10.45
>
> we compared the tmpfs.ops_per_sec: (363 / 103.02) between this commit and
> parent commit.
Ah, so this was the 60-70% regression reported in the subject, not the 100%
reported in the body. I'd assumed the latter was the intended message.
I'll have another look at this later today. At first glance, I don't
see why it _should_ regress. It would seem to be doing fewer atomic
operations (avoiding getting the page reference) and walks the XArray more
efficiently. I wonder if it's walking the XArray _too_ efficiently --
holding the rcu read lock for too long. I'll try putting a rescheduling
point in the middle and see what happens.
next prev parent reply other threads:[~2020-11-02 14:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-30 7:17 kernel test robot
2020-10-30 13:17 ` Matthew Wilcox
2020-10-30 14:02 ` Chen, Rong A
2020-10-30 14:58 ` Matthew Wilcox
2020-10-31 6:10 ` [LKP] " Philip Li
2020-11-02 5:21 ` Rong Chen
2020-11-02 14:23 ` Matthew Wilcox [this message]
2020-11-06 20:55 ` Matthew Wilcox
2020-11-09 8:10 ` [LKP] " Xing Zhengjun
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=20201102142352.GK27442@casper.infradead.org \
--to=willy@infradead.org \
--cc=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=cai@redhat.com \
--cc=chris@chris-wilson.co.uk \
--cc=feng.tang@intel.com \
--cc=hannes@cmpxchg.org \
--cc=hughd@google.com \
--cc=jani.nikula@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=lkp@lists.01.org \
--cc=matthew.auld@intel.com \
--cc=rong.a.chen@intel.com \
--cc=torvalds@linux-foundation.org \
--cc=william.kucharski@oracle.com \
--cc=ying.huang@intel.com \
--cc=zhengjun.xing@intel.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
all inboxes | Powered by JetHome®