public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Dave Chinner <david@fromorbit.com>
Cc: Christoph Hellwig <hch@infradead.org>, xfs@oss.sgi.com
Subject: Re: [PATCH] libxfs: stop caching inode structures
Date: Tue, 15 Oct 2013 09:06:45 -0700	[thread overview]
Message-ID: <20131015160645.GA643@infradead.org> (raw)
In-Reply-To: <20131014201659.GN4446@dastard>

On Tue, Oct 15, 2013 at 07:16:59AM +1100, Dave Chinner wrote:
> This all sounds good and the code looks fine, but there's one
> lingering question I have - what's the impact on performance for
> repair? Does it slow down phase 6/7 at all?

I have to admit that I'm just pulling memory from my hat as this is a
repost of an almost 1 year old patch, and I don't have equipment for
large scale performance testing at the moment.

But the biggest speedups I had seen was in filesystems where we had to
delete lots of inodes and thus manipulate the link count of hundreds of
thousands of directories in phase7 - with the current code we thrash the
inode cache badly there and got into deep swapping, and with this patch
we removed that thrashing (and often got the inodes from the buffer
cache still) and got rid of the swapping, causing speedups up to about
10%.  Upto because the numbers for the previous case weren't too
reliable.

Not sure if my wording in the description wasn't clear enough but I
really can't come up with a case where the inode cache would help
in repair - all the users of it will eventually modify the inode and
thus hit the buffers anyway, so any unlikely help during lookup would
still be mood once we write back.

Actually I'll have to correct myself after going through the scenarious
another time - the no_modify case might get hit a little, but I don't
think it's worth optimizing for that.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2013-10-15 16:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-09 13:02 [PATCH] libxfs: stop caching inode structures Christoph Hellwig
2013-10-14 20:16 ` Dave Chinner
2013-10-15 16:06   ` Christoph Hellwig [this message]
2013-10-31 15:43 ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2012-02-07 18:22 Christoph Hellwig
2012-02-08  5:11 ` Dave Chinner
2012-02-09 18:01   ` Christoph Hellwig

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=20131015160645.GA643@infradead.org \
    --to=hch@infradead.org \
    --cc=david@fromorbit.com \
    --cc=xfs@oss.sgi.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