Re: Wierd lvm2 performance problems

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

 



Sven Eschenberg wrote:
> I tried to create a PE+VG+LV ontop of a mdraid. For no obvious reason 
> the lvm volume show extremely poor performance - The transferrates are 
> as little as 30% of the rates on the md device itself.
> In contrast creating a partition table ontop of the array gives nearly 
> no performance impact.
> 
> Does anybody have the slightest idea, wht might be going wrong here?

> P.S.: I tried aligning the first PE in the VG with the mdraid chunk 
> size, no difference whatsoever.

How did you check that it is properly aligned?
The problem is mostly that data area start is misaligned with underlying
MD chunk size

Please can you paste output of
pvs -o +pe_start --unit b
and
cat /sys/block/<your_md_dev>/md/chunk_size

Please use at least lvm2 version 2.02.40 (see lvm version) for creating
VG - this version has automatic alignmnent option if running over MD
(see md_chunk_alignment in /etc/lvm.conf)

Also increasing readahead value can help (but only for simple linear
read operation). You can increase readahead persistenlty for LV
using (see man for lvchange -r ).

Milan
--
mbroz@redhat.com

_______________________________________________
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/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux