From: Greg Freemyer <greg.freemyer@gmail.com>
To: mark delfman <markdelfman@googlemail.com>
Cc: Linux RAID Mailing List <linux-raid@vger.kernel.org>
Subject: Re: xfs > md 50% write performance drop on .30+ kernel?
Date: Tue, 13 Oct 2009 14:49:35 -0400 [thread overview]
Message-ID: <87f94c370910131149o140cfe76nf9768045426481e8@mail.gmail.com> (raw)
In-Reply-To: <66781b10910120958k4afb637ejba79e4c23900c4da@mail.gmail.com>
On Mon, Oct 12, 2009 at 12:58 PM, mark delfman
<markdelfman@googlemail.com> wrote:
> Hi... in recent tests we are seeing a 50% drop in performance from
> XFS>MD on a 2.6.30 kernel (compared to a 2.6.28 kernel)
>
> In short: Performance to MD0 direct = circa 1.7GBsec (see below), via
> xfs circa 850MBsec. On previous system (2.6.28) there was no drop in
> performance (in fact often an increase).
>
> I am hopefully that this is simply a matter of barriers etc on the
> newer kernel and MD, but we have tried many options and nothing seems
> to change this so would very much appreciate advice.
>
>
> Below is the configuration / test results
>
> Hardware: Decent performance quad core with LSI SAS controller: 10 x
> 15K SAS drives
> (note we have tried this on various hardware and various amounts of drives).
>
> Newer kernel setup (performance drop)
> Kernel 2.6.30.8 (open SUSE userspace)
> mdadm - v3.0 - 2nd June 2009
> Library version: 1.02.31 (2009-03-03)
> Driver version: 4.14.0
>
> RAID0 created: mdadm -C /dev/md0 -l0 -n10 /dev/sd[b-k]
> RAID0 Performance:
> dd if=/dev/zero of=/dev/md0 bs=1M count=20000
> 20000+0 records in
> 20000+0 records out
> 20971520000 bytes (21 GB) copied, 12.6685 s, 1.7 GB/s
>
>
> XFS Created: (can see from output it is self aligning - but tried
> various alignments)
>
> # mkfs.xfs -f /dev/md0
> meta-data=/dev/md0 isize=256 agcount=32, agsize=22888176 blks
> = sectsz=512 attr=2
> data = bsize=4096 blocks=732421600, imaxpct=5
> = sunit=16 swidth=160 blks
> naming =version 2 bsize=4096 ascii-ci=0
> log =internal log bsize=4096 blocks=32768, version=2
> = sectsz=512 sunit=16 blks, lazy-count=0
> realtime =none extsz=655360 blocks=0, rtextents=0
>
>
> Mounted: mount -o nobarrier /dev/md0 /mnt/md0
> /dev/md0 on /mnt/md0 type xfs (rw,nobarrier)
> (tried with barriers / async)
>
> Performance:
>
> linux-poly:~ # dd if=/dev/zero of=/mnt/md0/test bs=1M count=20000
> 20000+0 records in
> 20000+0 records out
> 20971520000 bytes (21 GB) copied, 23.631 s, 887 MB/s
>
>
>
> Note:
>
> Older kernel setup (no performance drop)
> Newer kernel setup
> Kernel 2.6.28.4
> mdadm 2.6.8
> Library version: 1.02.27 (2008-06-25)
> Driver version: 4.14.0
It doesn't look like you are using device mapper, but I just saw this posted:
========
We used to issue EOPNOTSUPP in response to barriers (so flushing ceased to be
supported when it became barrier-based). 'Basic' barrier support was added
first (2.6.30-rc2), as Mike says, by waiting for relevant I/O to complete.
Then this was extended (2.6.31-rc1) to send barriers to the underlying devices
for most dm types of dm targets.
To see which dm targets in a particular source tree forward barriers run:
(set to a non-zero value).
grep 'ti->num_flush_requests =' drivers/md/dm*c
=========
So barriers went through a implementation change in 2.6.30. Thought
it might give you one more thing to chase down
Greg
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2009-10-13 18:49 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-12 16:58 xfs > md 50% write performance drop on .30+ kernel? mark delfman
2009-10-12 18:40 ` Richard Scobie
2009-10-13 1:33 ` Christoph Hellwig
2009-10-13 1:57 ` NeilBrown
2009-10-13 11:06 ` mark delfman
2009-10-13 11:09 ` Majed B.
[not found] ` <66781b10910130412x309d9de2l574ba12a9ed4100a@mail.gmail.com>
2009-10-13 11:15 ` Majed B.
2009-10-13 11:29 ` mark delfman
2009-10-13 14:30 ` Asdo
2009-10-13 15:13 ` mark delfman
2009-10-13 15:15 ` mark delfman
2009-10-13 22:52 ` Christoph Hellwig
2009-10-14 19:34 ` mark delfman
2009-10-27 10:28 ` Thomas Fjellstrom
2009-10-27 11:11 ` Thomas Fjellstrom
2010-01-02 6:54 ` fibre raid
2009-10-13 3:38 ` Richard Scobie
2009-10-13 10:21 ` Asdo
2009-10-13 10:34 ` Mikael Abrahamsson
2009-10-13 14:49 ` Asdo
2009-10-13 19:53 ` Richard Scobie
2009-10-13 21:52 ` mark delfman
2009-10-13 18:49 ` Greg Freemyer [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=87f94c370910131149o140cfe76nf9768045426481e8@mail.gmail.com \
--to=greg.freemyer@gmail.com \
--cc=linux-raid@vger.kernel.org \
--cc=markdelfman@googlemail.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;
as well as URLs for NNTP newsgroup(s).