<div dir="ltr">Hi all,<div><br></div><div>I'm running a VM using libvirt+KVM and I have a disk performance issue.</div><div><br></div><div>The host is the following:</div><div>4 cores Intel Xeon 5140@2.33 GHz, 16 GB of RAM, SATA HDD, OS Debian Wheezy, libvirt 0.9.12-11, QEMU-KVM 1.1.2+dfsg-2.</div>
<div><br></div><div>The guest:</div><div>1 CPU, 2 GB RAM running Debian 7.0, image in compressed qcow2 format.</div><div><br></div><div>When I try do run "dd if=/dev/zero of=io.test bs=32768k count=40" I get around 500 MB/s on bare metal, while only around 30 MB/s inside the VM.</div>
<div><br></div><div>I'm trying to get something more out of the virtualization layer, I hope that there's room for improvement.</div><div><br></div><div>I'm using virtio, I aready set cache='none' and io='native' in the domain definition. Both host and guest are using deadline as I/O scheduler. The VM uses an ext4 filesystem, while the image is saved on an ext3 disk. I mounted the host and guest filesystems specifying nodiratime and noatime options. Even if I convert the image to raw format nothing changes.</div>
<div>I didn't mess with iotune nor blockio.</div><div><br></div><div>Is there something that I overlooked or any other suggestion?</div><div><br></div><div>Thanks in advance for your help.</div><div><br></div><div>Matteo</div>
<div><br></div><div><br clear="all"><div><br></div>-- <br>A refund for defective software might be nice, except it would bankrupt the entire software industry in the first year.<br><br> Andrew S. Tanenbaum, Computer Networks, 2003, Introduction, page 14<br>
<br>Linux registered user #463400
</div></div>