From: Neil Brown <neilb@suse.de>
To: Nicolae Mihalache <mache@abcpages.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: slow sequential read on partitioned raid6
Date: Wed, 17 Mar 2010 09:22:19 +1100 [thread overview]
Message-ID: <20100317092219.35393819@notabene.brown> (raw)
In-Reply-To: <4B9FD689.8060700@abcpages.com>
On Tue, 16 Mar 2010 20:05:45 +0100
Nicolae Mihalache <mache@abcpages.com> wrote:
> Hello,
>
> I have created a partitioned raid6 array over 6x1TB SATA disks using the
> command (from memory): mdadm --create --auto=mdp --level=6
> --raid-devices /dev/md_d1 /dev/sd[b-g].
>
> When I run a sequential read test using
> dd if=/dev/md_d1p1 of=/dev/null bs=1M
> I get low read speeds of around 80MB/s but only when the partition is
> mounted.
>
> If I unmount, the speed is around 350MB/s. The filesystems I tried are
> ext3 and xfs.
Thanks for reporting this.
I just did some testing and I get the reverse!!
When a filesystem is mounted I get 135MB/s. When it isn't mounted
I get 64MB/s.
I cannot think what could cause this. I will have to explore.
Can you please double check you results and confirm that it definitely
is faster then unmounted.
>
> The partitions have been created with gparted, the partition table being
> of type GPT.
>
> If I create normal /dev/sdx1 partitions on each disk and then make a
> /dev/md1 raid6 array over them, the read speed is ok.
>
> I played with different read ahead settings and while they changed the
> read speed, it's only marginally around the values reported above.
>
> Can somebody explain what is the difference when accessing a raw disk
> when it is mounted or not? Also when playing with those read ahead
> settings it was not clear how/if the read ahead of the individual disks
> are taken into account.
Only the read-ahead value of the array is considered. The read-ahead settings
of the individual devices in the array are ignored.
NeilBrown
>
> When setting big values of read ahead, I could see with iostat that tps
> for the individual disks is double when accessing the mounted disk as
> opposed to when accessing it unmounted (despite the speed being three
> times lower).
> It's like when accessing the mounted partition, it reads some other
> parts of the disks. I could not find a way to print the blocks read from
> the individual disks. The sysctl vm.block_dump=1 makes the kernel print
> the block numbers on the md array but not on the components of the array.
>
> The system is debian 5 with kernel 2.6.26-2-686.
>
> Thanks for any hint on how to further debug the problem.
>
> nicolae
> --
> 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-03-16 22:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-16 19:05 slow sequential read on partitioned raid6 Nicolae Mihalache
2010-03-16 22:22 ` Neil Brown [this message]
2010-03-16 23:16 ` Nicolae Mihalache
[not found] ` <1268783497.3781.14.camel@localhost.localdomain>
2010-03-17 8:23 ` Nicolae Mihalache
2010-03-18 2:40 ` Michael Evans
2010-03-19 6:47 ` Nicolae Mihalache
2010-03-19 8:16 ` Michael Evans
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=20100317092219.35393819@notabene.brown \
--to=neilb@suse.de \
--cc=linux-raid@vger.kernel.org \
--cc=mache@abcpages.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).