Re: difference between striping using mdadm and LVM



Aragorn <aragorn@xxxxxxxxxxxxxxxxxxx> wrote in news:hj1gta$2hp$5
@news.eternal-september.org:

Thanks for the great explaination!

Writing to a RAID 5 is slower than writing to a single disk because with
each write, the parity block must be updated, which means calculation
of the parity data and writing that parity data to the pertaining disk.

This is where I get confused. Is writing to a RAID5 slower than a single
disk irrespective of how many disks I throw at the RAID5? I currently have
a 7-disk RAID5. Will writing to this be slower than a single disk? Isn't
the parity calculation a fairly fast process especially if one has a
hardware based card? And then if the write gets split into 6 parts shouldnt
that speed up the process since each disk is writing only 1/6th of the
chunk?


In this case, you don't have any redundancy. Writing to the stripeset
is faster than writing to a single disk, and the same applies for
reading. It's not a 2:1 performance boost due to the overhead for
splitting the data for writes and re-assembling it upon reads, but
there is a significant performance improvement, and especially so if
you use more than two disks.

Why doesn;t a similar boost come out of a RAID5 with a large number of
disks? Merely because of the parity calculation overhead?



There are however a few considerations you should take into account with
both of these approaches, i.e. that you should not put the filesystem
which holds the kernels and /initrd/ - and preferably not the root
filesystem either[1] - on a stripe, because the bootloader recognizes

Luckily that is not needed. I have a seperate drive to boot from. The RAID
is intended only for user /home dirs.

--
Rahul
.



Relevant Pages

  • Re: LVM write performance
    ... it and finally write it back to the disk. ... noop [deadline] cfq ... Writing 1 GB ... AACRAID* Controller on a Supermicro. ...
    (Debian-User)
  • Re: LVM write performance
    ... When writing to a logical volume directly through the ... you didn't mentioned what disk drive is in use in this test. ... Security Mode feature set ... WRITE_BUFFER command ...
    (Debian-User)
  • Re: AIX V5.3 & FASTT500 PERFORMANCE TUNING
    ... calculate the parity data every time a write is done, there is a decrease on performance when compared with reads, which doesn’t require the parity calculation. ... On a RAID_10, there is no parity calculation on either read or write, but there’s almost always a small slowdown in the write performance, due to the disk internals. ... commonly used implementation of RAID, Level 4 provides block-level striping with a parity disk. ... the information contained in this communication ...
    (AIX-L)
  • Temporary lock-up under heavy write, MegaRAID RAID-5
    ... LSI Logic MegaRAID 320-1, 64MB cache ... when writing very large files. ... disk write access, actually). ... The RAID controller is currently set to "write-through". ...
    (Debian-User)
  • Re: X-CD Roast question again please
    ... Using generic SCSI-3/mmc CD-R driver. ... Disk sub type: Medium Type A, ... ATIP start of lead in: -11318 ... writing 152 KB of pad data. ...
    (RedHat)