Thread (26 messages) 26 messages, 10 authors, 2007-12-30

Re: Linux RAID Partition Offset 63 cylinders / 30% performance hit?

From: Michal Soltys <hidden>
Date: 2007-12-20 13:01:40

Jon Nelson wrote:
That, for me, is the next question - how can one educate LVM about the
underlying block device such that logical volumes carved out of that
space align properly - many of us have experienced 30% (or so)
performance losses for the convenience of LVM (and mighty convenient
it is).
When you do pvcreate you can specify --metadatasize. It will add padding 
just to hit next 64K boundary.

So i.e. if you do

#pvcreate --metadatasize 256K /dev/sda

your metadata will have 320K

but with

#pvcreate --metadatasize 255K /dev/sda

it will have 256K

After that, lvm extents will follow - with the size specified during 
vgcreate. Also I tend to use rather large sized extents (512M), as I 
don't really need the granularity offered by the default 4M.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help