From: Dave Chinner <david@fromorbit.com>
To: Brian Foster <bfoster@redhat.com>
Cc: Carlos Maiolino <cmaiolino@redhat.com>, linux-xfs@vger.kernel.org
Subject: Re: [PATCH V2] Stop searching for free slots in an inode chunk when there are none
Date: Thu, 10 Aug 2017 21:56:18 +1000 [thread overview]
Message-ID: <20170810115617.GN21024@dastard> (raw)
In-Reply-To: <20170807151954.GB43920@bfoster.bfoster>
On Mon, Aug 07, 2017 at 11:19:56AM -0400, Brian Foster wrote:
> On Mon, Aug 07, 2017 at 12:17:10PM +0200, Carlos Maiolino wrote:
> Also note that this has potential for performance side effects in the
> common (non-corruption) case.
I'm not seeing an issue here once the code is corrected. Probably
just me being dumb again, but could you point it out for me, Brian?
> It looks to me that it shouldn't be a major problem because it only
> affects the situation where the cached search "wraps" to the outside of
> the tree, and that probably doesn't happen often with a search distance
> of 10 records and a large tree. I am a bit curious where the
> searchdistance of 10 comes from though (we fit many more records in a
> single inobt leaf block)..?
It was chosen based on CPU profiles and performance measurement to
limit the CPU usage of the problem case the finobt now solves. i.e.
finding the frees inode in a tree that indexes several million
allocated inodes and the free inodes are few and far between. It was
chosen to cap inode allocation performance degradation when free
inodes were extremely sparse at around 50% of the "lots of free
inodes that are easy to find" performance.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2017-08-10 11:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-07 10:17 [PATCH V2] Stop searching for free slots in an inode chunk when there are none Carlos Maiolino
2017-08-07 15:19 ` Brian Foster
2017-08-10 11:56 ` Dave Chinner [this message]
2017-08-10 12:28 ` Brian Foster
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=20170810115617.GN21024@dastard \
--to=david@fromorbit.com \
--cc=bfoster@redhat.com \
--cc=cmaiolino@redhat.com \
--cc=linux-xfs@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox