From: Chris Mason <chris.mason@oracle.com>
To: Mitch Harder <mitch.harder@sabayonlinux.org>
Cc: Linux Btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Btrfs Slowdown (due to Memory Handling?)
Date: Thu, 04 Aug 2011 10:22:01 -0400 [thread overview]
Message-ID: <1312467261-sup-951@shiny> (raw)
In-Reply-To: <CAKcLGm_VFTjLPJjQXe9Vg2C5Cm3kwx_H8tthXsu+kJb1mxZB0g@mail.gmail.com>
Excerpts from Mitch Harder's message of 2011-08-02 10:35:54 -0400:
> I'm running into a significant slowdown in Btrfs (> 10x slower than
> normal) that appears to be due to some issue between how Btrfs is
> allocating memory, and how the kernel is expecting Btrfs to allocate
> memory.
>
> The problem does seem to be somewhat hardware specific. I can
> reproduce on two of my computers (an older AMD Athlon(tm) XP 2600+
> with PATA, and a newer ACER Aspire netbook with an Atom CPU). My
> Core2Duo computer with SATA seems unaffected by this slowdown.
>
> I've replicated this on 2.6.38, 2.6.39, and 3.0 kernels. The
> following information was all obtained running on a 3.0 kernel merged
> with the latest 'for-linus' branch of Chris' git repo. I've also
> tested on ext4 (no slow down encountered) to make sure the issue
> wasn't completely unrelated to Btrfs.
Just to double check, what was the top commit of for-linus when you did
this?
The tracing shows that you're spending your time in mmap'd readahead.
So one of three things is happening:
1) The VM is favoring our metadata over data pages for the git packed
file
2) We're reading ahead too aggressively, or not aggressively enough
3) The git pack file is somehow more fragmented, and this is making the
read ahead much less effective.
The very first thing I'd check is to make sure the .git repo between the
slow machines and the fast machines are identical. Git does a lot of
packing behind the scenes, and so an older repo that isn't freshly
cloned is going to be slower than a new repo.
-chris
next prev parent reply other threads:[~2011-08-04 14:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-02 14:35 Btrfs Slowdown (due to Memory Handling?) Mitch Harder
2011-08-04 14:22 ` Chris Mason [this message]
[not found] ` <CAKcLGm_aDZ8L5dnETP_-NH1tkacu=1em59rocX0zTE+WTzTYFw@mail.gmail.com>
[not found] ` <1312470248-sup-2811@shiny>
[not found] ` <1312470311-sup-3193@shiny>
2011-08-04 18:40 ` Mitch Harder
2011-08-04 19:09 ` Chris Mason
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=1312467261-sup-951@shiny \
--to=chris.mason@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=mitch.harder@sabayonlinux.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