* [linux-lvm] lvm2 on raid5 speed, not so bad
@ 2005-03-03 8:16 Scott Serr
2005-03-07 20:24 ` Sam Vilain
0 siblings, 1 reply; 3+ messages in thread
From: Scott Serr @ 2005-03-03 8:16 UTC (permalink / raw)
To: LVM general discussion and development
Just to share some information...
Here is a "bonnie -s 1024" on a P4 2.4 with 512MB RAM. The RAID5 is my
weirdo way of doing multiple RAID5 devices so that I can move things
around. All 4 RAID5 meta devices are on the same 5 disks... 300GB SATA
and (4) 200GB PATA drives.
LVM2 over RAID5
-------Sequential Output-------- ---Sequential Input--
--Random--
-Per Char- --Block--- -Rewrite-- -Per Char- --Block---
--Seeks---
MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU
/sec %CPU
1024 16987 69.9 34777 7.4 16659 4.1 21532 86.4 49760 9.2
470.7 1.7
"Hot" SATA 300GB (Maxtor)
-------Sequential Output-------- ---Sequential Input--
--Random--
-Per Char- --Block--- -Rewrite-- -Per Char- --Block---
--Seeks---
MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU
/sec %CPU
1024 23553 96.2 62613 14.0 26123 5.1 22094 87.5 57233 6.9
200.9 0.4
Forgot to mention that the RAID5 devices are 1024k "chunk-size".
Filesystem is reiserfs.
-Scott
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] lvm2 on raid5 speed, not so bad
2005-03-03 8:16 [linux-lvm] lvm2 on raid5 speed, not so bad Scott Serr
@ 2005-03-07 20:24 ` Sam Vilain
2005-07-08 3:54 ` [linux-lvm] " Dan Christensen
0 siblings, 1 reply; 3+ messages in thread
From: Sam Vilain @ 2005-03-07 20:24 UTC (permalink / raw)
To: LVM general discussion and development
Hi there,
Satisfying yourself with benchmarks rather than just listening to
argumentative gits in mailing lists like myself is always good. Let's look
at the result in a little more detail.
Firstly, you'll notice that the write performance of the RAID 5 array is
lower than for an individual disk. This is expected, as for RAID 5 updates
the system needs to first read two sectors (real + parity), perform a little
calculation that modern processors can do quickly enough, and write the two
blocks out again. A large cache can help sometimes, but usually only in
Benchmarks ;-).
The read access is of comparable speed - this is also expected. Try
simulating a failure (one fun way is to power a device down with hdparm,
then unplug it :->), and see what happens with performance then. Be
prepared to wait a long time while a massive array like this re-syncs. You
should also be sure that you see what messages the system raises, and
satisfy yourself that you would notice if a failure happened (other than by
wondering why the system's running so slowly...;) )
I'm slightly surprised that the random seek performance is quite poor.
You'd expect to see a random seek time of almost 5 times the performance of
a single device with a 5 disk RAID5 array. You may be encountering other
limitations there.
Also, bear in mind that different parts of discs have different transfer
rates and possibly even access times - one of the reasons that homogenous
arrays are a good idea. All hard disks are constant angular velocity, and
afaik most use a constant bit density across the entire platter. So, this
means at the rim of the disk the bits can be transferred faster. Modern
devices seem to map this high performance region to the beginning of the
logical disk.
Sam.
Scott Serr wrote:
> Just to share some information...
>
> Here is a "bonnie -s 1024" on a P4 2.4 with 512MB RAM. The RAID5 is my
> weirdo way of doing multiple RAID5 devices so that I can move things
> around. All 4 RAID5 meta devices are on the same 5 disks... 300GB SATA
> and (4) 200GB PATA drives.
>
> LVM2 over RAID5
> -------Sequential Output-------- ---Sequential Input--
> --Random--
> -Per Char- --Block--- -Rewrite-- -Per Char- --Block---
> --Seeks---
> MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec
> %CPU
> 1024 16987 69.9 34777 7.4 16659 4.1 21532 86.4 49760 9.2
> 470.7 1.7
>
>
> "Hot" SATA 300GB (Maxtor)
> -------Sequential Output-------- ---Sequential Input--
> --Random--
> -Per Char- --Block--- -Rewrite-- -Per Char- --Block---
> --Seeks---
> MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec
> %CPU
> 1024 23553 96.2 62613 14.0 26123 5.1 22094 87.5 57233 6.9
> 200.9 0.4
>
> Forgot to mention that the RAID5 devices are 1024k "chunk-size".
> Filesystem is reiserfs.
>
> -Scott
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
--
Sam Vilain, sam /\T vilain |><>T net, PGP key ID: 0x05B52F13
(include my PGP key ID in personal replies to avoid spam filtering)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linux-lvm] Re: lvm2 on raid5 speed, not so bad
2005-03-07 20:24 ` Sam Vilain
@ 2005-07-08 3:54 ` Dan Christensen
0 siblings, 0 replies; 3+ messages in thread
From: Dan Christensen @ 2005-07-08 3:54 UTC (permalink / raw)
To: linux-lvm
[Sorry for following up to a message from March. I'm just scanning
the old postings...]
Sam Vilain <sam@vilain.net> writes:
> Firstly, you'll notice that the write performance of the RAID 5 array is
> lower than for an individual disk. This is expected, as for RAID 5 updates
> the system needs to first read two sectors (real + parity), perform a little
> calculation that modern processors can do quickly enough, and write the two
> blocks out again. A large cache can help sometimes, but usually only in
> Benchmarks ;-).
This explanation makes sense. Just to elaborate, for my own
understanding, the situation where you can get better raid-5 write
speeds than single device write speeds is when you are doing long
sequential writes. It's true that raid has to write twice as many
blocks out, but my bus bandwidth is about 3 times my individual disk
write speed, so I should still be able to get 1.5 times the write
speed, and that's in fact what I observe. (Because I'm considering
long sequential writes, the sectors that need to be read to compute
parity should be in cache.)
Idle thinking...If the raid layer was smart enough to notice that
consecutive writes were being done and group them together, only
writing the parity once, it would only have to do 33% more writes if
there are four disks. This would require the raid layer to do some
caching. Has this been thought about? Or does this happen
automatically because of the write caching done by lower layers?
> The read access is of comparable speed - this is also expected.
This surprises me, but is also what I observe in practice. If I'm
doing a long sequential read, shouldn't the kernel be able to read in
parallel from the drives?
On my system, I can get about 59MB/s from each component drive, and
I also get about 59MB/s from the raid device. If I read in parallel
directly from the four drives, I get around 25-30MB/s from each one,
over 100MB/s in total. Shouldn't the kernel take advantage of that?
> I'm slightly surprised that the random seek performance is quite poor.
My seek performance is also only about twice as good as on a single
device. Not sure why.
Dan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-08 4:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-03 8:16 [linux-lvm] lvm2 on raid5 speed, not so bad Scott Serr
2005-03-07 20:24 ` Sam Vilain
2005-07-08 3:54 ` [linux-lvm] " Dan Christensen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.