Disk Enclosures
1753404 Members
6975 Online
108793 Solutions
New Discussion юеВ

Re: Logical volume size reduces performance on 6404: why?

 
Daniel Pocock
Occasional Advisor

Logical volume size reduces performance on 6404: why?


If I create my volume with the first command below, I get 450MB/sec. If I create the volume with the second command (size incremented by 1MB), the performance drops to 110MB/sec. Why?

hpacucli ctrl slot=2 create type=ld drives=all raid=6 size=261119 stripesize=64

hpacucli ctrl slot=2 create type=ld drives=all raid=6 size=261120 stripesize=64


Background:
- DL585 G1
- SA 6404 in a PCI-X 133 slot
- 28 U320 drives on ports A1 and A2 (same controller)

All firmware has been updated today using the HP Firmware 8.0 CD.

Test procedure:

I have the following command running in one window:

iostat -k /dev/cciss/c?d0

and I do a read test with this command:

cat /dev/cciss/c2d0 > /dev/null

while watching the iostat output.
4 REPLIES 4
Daniel Pocock
Occasional Advisor

Re: Logical volume size reduces performance on 6404: why?


Further information:

- The 28 drives are in MSA30 enclosures
- The drives are 300GB U320 10k RPM drives

We want to create 2TB logical volumes on the array.
raadek
Honored Contributor

Re: Logical volume size reduces performance on 6404: why?

Strange :)

The only thing on my mind is block alignment.

In the first case, for whatever reason, you are lucky & your RAID array sectors are aligned with your file system, so single block write request from the OS level generates just one write to the array.

In the second case you are unlucky, sectors are not aligned & each single block write request actually spans two blocks on the array (because of the offset).

If that's true you should see roughly 50% performance degradation - still not the perfect explanation for your 4x drop!

Rgds.
Don't panic! [THGTTG]
Daniel Pocock
Occasional Advisor

Re: Logical volume size reduces performance on 6404: why?


I've made a further discovery about this problem:

- if the logical volume is partitioned, and I read from a partition, the problem does not occur:

cat /dev/cciss/c2d0p1 > /dev/null

- however, reading the same logical volume directly I do have the problem:

cat /dev/cciss/c2d0 > /dev/null

In the first case (reading c2d0p1), I get 400MB/sec. In the second case (reading c2d0), I get 100MB/sec. The logical volume is 2TB, and the partition fills the logical volume.

Daniel Pocock
Occasional Advisor

Re: Logical volume size reduces performance on 6404: why?


I've now created LVM on the partitions, reading the LVM volume at 400MB/sec is possible after setting the read ahead buffer size.

Basically, this means we can now use the array, but I'm still very curious about the poor performance of the c2d0 device node.

hpacucli ctrl slot=2 array A create type=ld raid=6 stripesize=64
hpacucli ctrl slot=2 array A create type=ld raid=6 stripesize=64
hpacucli ctrl slot=2 array A create type=ld raid=6 stripesize=64
hpacucli ctrl slot=2 array A create type=ld raid=6 stripesize=64
hpacucli ctrl slot=2 logicaldrive all show
fdisk /dev/cciss/c2d0
fdisk /dev/cciss/c2d1
fdisk /dev/cciss/c2d2
fdisk /dev/cciss/c2d3
pvcreate /dev/cciss/c2d0p1
pvcreate /dev/cciss/c2d1p1
pvcreate /dev/cciss/c2d2p1
pvcreate /dev/cciss/c2d3p1
vgcreate vg_array2_test /dev/cciss/c2d?p1
vgscan
lvscan
pvscan
lvcreate -n vol0 -l 1859630 vg_array2_test
cat /dev/mapper/vg_array2_test-vol0 > /dev/null
# the read speed observed with iostat is 150MB/sec, slower than reading the partition
blockdev --getra /dev/mapper/vg_array2_test-vol0
# default value, 256, is too low
blockdev --setra 8192 /dev/mapper/vg_array2_test-vol0
cat /dev/mapper/vg_array2_test-vol0 > /dev/null
# iostat -k reveals a read speed of 400MB/sec while the cat command executes