<div>Hi Martin:</div><div> Which os version on your host machines? I tested kvm on rhel 6.1 have this issue, guest os is freebsd & virtio, on rhel 6.2 performance is well.</div><div><br> </div><div class="gmail_quote">
2012/3/26 Pádraig Brady <span dir="ltr"><<a href="mailto:P@draigbrady.com">P@draigbrady.com</a>></span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div class="im">On 03/26/2012 01:59 PM, Martin van Wilderen - JDN BV wrote:<br>
> Hi List,<br>
><br>
> I have a question about KVM disk performance. We are using Openstack Nova on three machines. These machines have a SSD drive with a dd write performance of about 130mb/s<br>
><br>
> Within the instance the write performance is down to about 5 mb/s. When using the allocate trick (dd zero to disk before newfs) we get a performance of 20 mb/s.<br>
<br>
</div>Interesting. I presume this performance difference is when growing the allocation.<br>
I.E. without the "dd allocate trick", writes to new files = 5MB/s, but old files = 20MB/s ?<br>
<br>
What file did you do the `dd` on exactly and what size was it?<br>
<br>
I could do a patch to nova to do something like:<br>
<br>
fallocate --version || exit 0<br>
fallocate -l $SIZE "$DISKIMG" || { rm -f "$DISKIMG"; exit 1; }<br>
<br>
But only when I get a better understand of your setup.<br>
Note it would need to be optional too, akin to a memory<br>
overcommit like flag.<br>
<br>
Note the above change would also give the benefit of<br>
immediate feedback of ENOSPC<br>
<div class="im"><br>
> Things a have tried but don't give any extra results are:<br>
> - Settings the disklayout from qcow2 to raw<br>
<br>
</div>I'm a bit surprised that had no effect.<br>
<div class="im"><br>
> - Settings the cache type in libvirt.xml (writeback, writethrough, none)<br>
> - Switching KSM on and off.<br>
> - Tested with different guests OS, Linux, FreeBSD, Windows.<br>
><br>
> Is there someone who had some extra info i can check? Or are there more people with this issue?<br>
><br>
> Snippet from libvirt.xml<br>
> <driver type='qcow2'/ cache='writeback'/><br>
> <source file='/var/lib/nova/instances/instance-00000113/disk'/><br>
> <target dev='vda' bus='virtio'/><br>
<br>
</div>I'll let others more knowledgeable comment on<br>
general virt IO overheads.<br>
<br>
cheers,<br>
Pádraig.<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</div></div></blockquote></div><br>