[linux-lvm] LVM / 3ware performance
Rudolph Bott
rb at megabit.net
Wed Dec 17 15:26:46 UTC 2008
Hi list,
I know this has been a topic on this and other lists before but I couldn't find a solution to my problem. I'lve already contacted 3ware support and I'm waiting for an answer from their site (but maybe someone comes up with a quick solution here).
My setup:
Hardware: Xeon Quad Core, Intel Mainboard, 2GB RAM, 3ware 9560SE PCI-Express, 4x 1TB WD Disks, RAID-10 Array
Software: Ubuntu Hardy LTS, Kernel 2.6.26
When I create an ext3 FS directly on the RAID array (/dev/sda1) I get write speeds at ~95MB/sec and read speeds at ~390MB/sec. But when I add LVM into the mix, write speed drops down to 39MB/sec (all tested with dd + /dev/zero or /dev/null). After some research I found out that this might be related to bad performance of the 3ware driver with non-4K blocksizes:
blockdev --getbsz /dev/sda1
4096
blockdev --getbsz /dev/sda3
512
sda1 is formatted with ext3, sda3 acts as the physical volume for LVM. Is there any way to change the blocksize of an LVM PV or does anyone know if theres a way to tweak the 3ware driver to handle 512-Byte blocksizes better than it does now?
Mit freundlichen Grüßen / with kind regards
Rudolph Bott
--
Megabit Informationstechnik GmbH
Karstr.25 41068 Moenchengladbach Tel:02161/30898-0 Fax:-18
AG MG HRB 10141, GF: Dipl.-Ing. Thomas Tillig, Michael Benten
More information about the linux-lvm
mailing list