Re: raid-0 with mdadm vs lvm striping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 13, 2009 at 04:09:10AM +0200, Goswin von Brederlow wrote:
> Billy Crook <billycrook@xxxxxxxxx> writes:
> 
> > On Wed, Aug 12, 2009 at 04:14, Henry, Andrew<andrew.henry@xxxxxxxxxx> wrote:
> >> That's what my question was:  Will raid0 (striping) be faster or easier to manage than lvm striping
> >
> > LVM striping won't change performance for small files. (That is files,
> > smaller than the extent size.)  To be fair, RAID-0 striping won't
> > accelerate file access for files smaller than the stripe size either.

Have you tested this? In theory, both LVM and raid0 striping should
accellerate access to small files substantially, for example if a
process accesses a number of small files, which are laid out in sequence
on the file system. This is a common case. 

I think this could come about eg if you roll in a tarball or package of
a system, then the small files are created in sequence, and the file
system should lay them out in sequence on the disk. When reading again,
the disk read ahead would secure that most of the data for a number of
small files were already read into the kernel cache when asked for, and
thus the files would be read at striping speeds. 

> > However, traditionally, raid0 stripe sizes are much much smaller than
> > LVM extent sizes.  Both are however adjustable.

What are the parameters? raid normally assumes 64 kiB chunks, but i
normally use 256 kiB chunks, which is the lowest chunk size that we are
recommending out of the linux-raid group. What are normal with LVM?

best regards
keld
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux