From: fibre raid <fibreraid@gmail.com>
To: tfjellstrom@shaw.ca, mark delfman <markdelfman@googlemail.com>,
Christoph Hellwig <hch@infradead.org>,
Linux RAID Mailing List <linux-raid@vger.kernel.org>
Subject: Re: xfs > md 50% write performance drop on .30+ kernel?
Date: Fri, 1 Jan 2010 22:54:11 -0800 [thread overview]
Message-ID: <5817fbed1001012254u7adad025od1973e517ca98530@mail.gmail.com> (raw)
In-Reply-To: <200910270511.45834.tfjellstrom@shaw.ca>
Hi Mark,
I'm catching up on my thread-reading and saw your performance report
concerning MD on 2.6.30 (running RAID 0 at 1.7GBps) versus layering
XFS on top, which reduces performance about 50%. Having read (what I
think is) the full thread, it does not seem there was any conclusion
on this. Did you reach a conclusion to determine the cause, etc? I am
curious to see what the issue what be as I'm seeing this issue as well
on my end.
Best regards,
-T
On Tue, Oct 27, 2009 at 3:11 AM, Thomas Fjellstrom <tfjellstrom@shaw.ca> wrote:
> On Tue October 27 2009, Thomas Fjellstrom wrote:
>> On Wed October 14 2009, mark delfman wrote:
>> > Hi Chris... we tried the direct DD as requested and the problem is
>> > still there...
>> > 1.3GBsec > 325MBsec (even more dromatic)... hopefully this helps
>> > narrow it down?
>> >
>> >
>> > Write > MD
>> > linux-poly:~ # dd if=/dev/zero of=/dev/md0 oflag=direct bs=1M
>> > count=20000 20000+0 records in
>> > 20000+0 records out
>> > 20971520000 bytes (21 GB) copied, 15.7671 s, 1.3 GB/s
>> >
>> >
>> > Write > XFS > MD
>> > linux-poly:~ # dd if=/dev/zero of=/mnt/md0/test oflag=direct bs=1M
>> > count=20000 20000+0 records in
>> > 20000+0 records out
>> > 20971520000 bytes (21 GB) copied, 64.616 s, 325 MB/s
>>
>> If it helps, I'm seeing the same sort of thing.
>> The most I can seemingly tweak out of my new 5x1TB array is 170MB/s
>> write. Using dd with oflags=direct drops it down to 31MB/s.
>>
>> Oddly, I see spikes of over 200MB/s write when not using oflags=direct,
>> but it slows down in between to 11MB/s so over all,
>> it averages a max of 170MB/s. the device itself is capable of over
>> 500MB/s. (66% drop?)
>>
>> small test:
>>
>> $ dd if=/dev/zero of=/mnt/test-data/test.file bs=512KiB count=4096
>> oflag=direct 4096+0 records in
>> 4096+0 records out
>> 2147483648 bytes (2.1 GB) copied, 71.8088 s, 29.9 MB/s
>>
>> $ dd if=/dev/zero of=/mnt/test-data/test.file bs=512KiB count=4096
>> 4096+0 records in
>> 4096+0 records out
>> 2147483648 bytes (2.1 GB) copied, 19.7101 s, 109 MB/s
>>
>> $ sudo dd if=/dev/md0 of=/tmp/test-data.img bs=1M count=1024
>> 1024+0 records in
>> 1024+0 records out
>> 1073741824 bytes (1.1 GB) copied, 2.39796 s, 448 MB/s
>>
>> $ sudo dd if=/tmp/test-data.img of=/dev/md0 bs=1M count=1024
>> 1024+0 records in
>> 1024+0 records out
>> 1073741824 bytes (1.1 GB) copied, 2.05666 s, 522 MB/s
>>
>> $ cd /mnt/test-data/test
>> $ iozone -A -s4G -y512k -q512k
>> ...
>> KB reclen write rewrite read reread
>> 4194304 512 161732 333316 382361 388726
>>
>>
>> [snip]
>>
>>
>>
>> info, if it helps:
>>
>> # mdadm -D /dev/md0
>> /dev/md0:
>> Version : 1.01
>> Creation Time : Wed Oct 14 08:55:25 2009
>> Raid Level : raid5
>> Array Size : 3907049472 (3726.05 GiB 4000.82 GB)
>> Used Dev Size : 976762368 (931.51 GiB 1000.20 GB)
>> Raid Devices : 5
>> Total Devices : 5
>> Persistence : Superblock is persistent
>>
>> Update Time : Tue Oct 27 04:18:50 2009
>> State : clean
>> Active Devices : 5
>> Working Devices : 5
>> Failed Devices : 0
>> Spare Devices : 0
>>
>> Layout : left-symmetric
>> Chunk Size : 512K
>>
>> Name : natasha:0 (local to host natasha)
>> UUID : 7d0e9847:ec3a4a46:32b60a80:06d0ee1c
>> Events : 4952
>>
>> Number Major Minor RaidDevice State
>> 0 8 64 0 active sync /dev/sde
>> 1 8 80 1 active sync /dev/sdf
>> 2 8 32 2 active sync /dev/sdc
>> 3 8 48 3 active sync /dev/sdd
>> 5 8 96 4 active sync /dev/sdg
>>
>> # xfs_info /dev/md0
>> meta-data=/dev/md0 isize=256 agcount=32, agsize=30523776
>> blks = sectsz=4096 attr=2
>> data = bsize=4096 blocks=976760832, imaxpct=5
>> = sunit=128 swidth=512 blks
>> naming =version 2 bsize=4096 ascii-ci=0
>> log =internal bsize=4096 blocks=476934, version=2
>> = sectsz=4096 sunit=1 blks, lazy-count=0
>> realtime =none extsz=2097152 blocks=0, rtextents=0
>>
>
> ran 4 dd's in parallel all writing to a different file on the array:
>
> 4096+0 records in
> 4096+0 records out
> 2147483648 bytes (2.1 GB) copied, 33.4193 s, 64.3 MB/s
> 4096+0 records in
> 4096+0 records out
> 2147483648 bytes (2.1 GB) copied, 35.5599 s, 60.4 MB/s
> 4096+0 records in
> 4096+0 records out
> 2147483648 bytes (2.1 GB) copied, 36.4677 s, 58.9 MB/s
> 4096+0 records in
> 4096+0 records out
> 2147483648 bytes (2.1 GB) copied, 37.912 s, 56.6 MB/s
>
> iostat showed spikes of up to 300MB/s and it usually hovered over 200MB/s.
> I tried bumping it to 8 at a time, but it seems to max out at just over
> 200MB/s. was hoping that with enough jobs, it might scale up to the devices
> actual max throughput.
>
> --
> Thomas Fjellstrom
> tfjellstrom@shaw.ca
> --
> 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
>
--
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
next prev parent reply other threads:[~2010-01-02 6:54 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 [this message]
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
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=5817fbed1001012254u7adad025od1973e517ca98530@mail.gmail.com \
--to=fibreraid@gmail.com \
--cc=hch@infradead.org \
--cc=linux-raid@vger.kernel.org \
--cc=markdelfman@googlemail.com \
--cc=tfjellstrom@shaw.ca \
/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).