From: Chris Mason <chris.mason@oracle.com>
To: Dave Chinner <david@fromorbit.com>
Cc: linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: [BUG 3.0-rc1] oops during file removal, severe lock contention
Date: Thu, 02 Jun 2011 18:21:22 -0400 [thread overview]
Message-ID: <1307053107-sup-492@shiny> (raw)
In-Reply-To: <20110602011139.GP561@dastard>
Excerpts from Dave Chinner's message of 2011-06-01 21:11:39 -0400:
> Hi Folks,
>
> Running on 3.0-rc1 on an 8p/4G RAM VM with a 16TB filesystem (12
> disk DM stripe) a 50 million inode 8-way fsmark creation workload
> via:
>
> $ /usr/bin/time ./fs_mark -D 10000 -S0 -n 100000 -s 0 -L 63 \
> > -d /mnt/scratch/0 -d /mnt/scratch/1 \
> > -d /mnt/scratch/2 -d /mnt/scratch/3 \
> > -d /mnt/scratch/4 -d /mnt/scratch/5 \
> > -d /mnt/scratch/6 -d /mnt/scratch/7
>
> followed by an 8-way rm -rf on the result via:
>
> $ for i in /mnt/scratch/*; do /usr/bin/time rm -rf $i 2>&1 & done
>
> resulted in this oops:
Josef is looking at this one, we have a theory.
>
> Also, there is massive lock contention while running these workloads.
> perf top shows this for the create after about 5m inodes have been
> created:
For the fs_mark workload, the lock contention mostly goes away if you
do:
btrfs subvol create /mnt/scratch/0
btrfs subvol create /mnt/scratch/1
btrfs subvol create /mnt/scratch/2
...
btrfs subvol create /mnt/scratch/8
(etc)
This switches one btree root for 8 btree roots.
I'm working on really fixing that as well.
-chris
prev parent reply other threads:[~2011-06-02 22:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-02 1:11 [BUG 3.0-rc1] oops during file removal, severe lock contention Dave Chinner
2011-06-02 19:46 ` Andi Kleen
2011-06-02 22:21 ` Chris Mason [this message]
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=1307053107-sup-492@shiny \
--to=chris.mason@oracle.com \
--cc=david@fromorbit.com \
--cc=linux-btrfs@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;
as well as URLs for NNTP newsgroup(s).