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

Re: [linux-lvm] Wierd lvm2 performance problems



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


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