mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH for-4.14] xfs: fix AIM7 regression
       [not found]     ` <20171019224431.GO4755@magnolia>
@ 2017-10-20  6:55       ` Christoph Hellwig
  0 siblings, 0 replies; only message in thread
From: Christoph Hellwig @ 2017-10-20  6:55 UTC (permalink / raw)
  To: Darrick J. Wong
  Cc: Christoph Hellwig, Brian Foster, Ye Xiaolong, linux-xfs,
	Peter Zijlstra, Ingo Molnar, linux-kernel

On Thu, Oct 19, 2017 at 03:44:31PM -0700, Darrick J. Wong wrote:
> > > The code looks fine, but this seems really strange. If the trylock
> > > fails, then wouldn't the blocking lock have slept anyways if done
> > > initially? Is there any more background info available on this, or
> > > perhaps a theory on why there is such a significant regression..?
> > 
> > No, unfortunately I don't have a theory, but I agree it is odd
> > behavior in the rwsem code.
> 
> <shrug> I want to know a little more about why there's a performance hit
> in the down_read_trylock -> down_read case.  Are we getting penalized
> for that?  Is it some weird interaction with lockdep?

I don't think the test bot did run with lockdep.  But feel free to take
a look at the mail thread titled

[lkp-robot] [fs]  91f9943e1c:  aim7.jobs-per-min -26.6% regression

on lkml.  Note that synthetic benchmarks on XFS always saw weird
effects from rwsem details.  I remember that a few years ago I had
to back to the mainline patch to move the rwsem fastpath out of line
because thay caused a major performance regressions on CIFS file
serving benchmarks on a very low end ARM NAS box.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-20  6:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20171019074705.24827-1-hch@lst.de>
     [not found] ` <20171019113848.GA8911@bfoster.bfoster>
     [not found]   ` <20171019131407.GA20645@lst.de>
     [not found]     ` <20171019224431.GO4755@magnolia>
2017-10-20  6:55       ` [PATCH for-4.14] xfs: fix AIM7 regression Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome