20 Apr 2010 10:09
domU is causing misaligned disk writes
Anyone know why my xen xvda devices would be doing (apparently) unaligned writes to my SAN causing horrible performance and massive seeking and lots of reading for page cache backfill? BUT writing to the device in the dom0 is very fast and causes no extra reads? I am running the 2.6.18-164.11.1.el5xen xen/kernel which came with CentOS 5.4 After spending a lot of time banging my head on this I seem to have finally tracked it down to a difference between domU and dom0. I never would have thought it would be this but it is extremely reproduceable. We're talking a difference of 4-5x in write speed. Reads are equally fast everywhere. I am using AoE v72 kernel module (initiator) on a Dell R610's to talk to vblade-19 (target) on Dell R710's all running CentOS 5.4. I have striped two 7200 RPM SATA disks and exported the md with AoE (although I have done these tests with individual disks also). Read performance is excellent: # dd of=/dev/null if=/dev/xvdg1 bs=4096 count=3000000 3000000+0 records in 3000000+0 records out 12288000000 bytes (12 GB) copied, 106.749 seconds, 115 MB/s I dropped the cache with: echo 1 > /proc/sys/vm/drop_caches on both target and initiator before starting the test. This is great(Continue reading)
RSS Feed