Skip to: Site menu | Main content

KVM performance “qcow2″ vs “raw”, “ide” vs “virtio”

I just got a new server for private use and needed to put some virtual machines, I decided to go with KVM as it seems it will be supported longer than XEN

Of course regardless of virtualization platform the decision has to be made – how to store Virtual Disks?

KVM wiki suggests that qcow2 is fast enough, is it really?

Some benchmarks of clean install install of Ubuntu 9.10 with KVM, Virtual Disk stored in qcow2 format:

qcow2+ide

Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
entropy.be       4G 38684  43 53081   9 64187  13 55412  89 360629  43  5278  12

qcow2+virtio

Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
entropy.be       4G 58859  73 76112  13 74583  14 52058  91 546065  44  5725  32

raw(file)+ide

Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
entropy.be       4G 74111  83 86947  15 66292  14 50945  89 347763  41  5892   7

raw(file)+virtio:

Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
entropy.be       4G 74607  90 86478  16 20930   7 51069  88 658254  48  8676  64

as a comparison, native I/O on host filesystem:

Version 1.03c       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
serwer3.itcoms. 16G 75336  82 89196  14 34498   5 46891  79 99439   5 421.1   1

It seems qcow2 perfomance in block input and output is still slightly worse than raw image. Also virtio is faster than ide for qcow2.

All benchmarks were run using `bonnie++ -u root -d /home` using kernel 2.6.31-20-server #58-Ubuntu SMP Fri Mar 12 05:40:05 UTC 2010 x86_64 GNU/Linux

10 Responses to “KVM performance “qcow2″ vs “raw”, “ide” vs “virtio””

  1. Qcow2 Says:

    Kramer auto Pingback[...] but that's an outstanding feature request for someone else to implement. …2010-03-20T12:10:48ZmagKVM performance “qcow2″ vs “raw”, “ide” vs “virtio” | It's a kind …KVM performance “qcow2″ vs “raw”, “ide” vs “virtio”. March 20th, 2010. I just got a [...]

  2. water damage long beach Says:

    I cannot wait to learn to read more of this fantastic topic. So much than me Ive never even considered. You sure did put a whole new twist on something that Ive heard a great deal about. I dont believe Ive actually read most things that does this subject of the same quality justice as you solely did.

  3. effective article marketing Says:

    Even fewer realize the magnitude not to mention investing a week in spinning it around to see how does it feel. Probably many will become addicts if they only gave it a little time.

  4. technotes:configuration_nas78 [nas78] Says:

    Kramer auto Pingback[...] de KVM entre un fichier image et une partition LVM. De mon côté, j'avais trouvé ça et ça, et la différence (en utilisant un fichier image raw + virtio) est franchement négligeable (ou [...]

  5. はてなブックマーク - KVM performance “qcow2″ vs “raw”, “ide” vs “virtio” | It's a kind of Mag'ic Says:

    Kramer auto Pingback[...] KVM performance “qcow2″ vs “raw”, “ide” vs “virtio” | It's a kind of Mag'ic mag.entropy.be [...]

  6. effective article Says:

    ou sure did put a whole new twist on something that Ive heard a great deal about.

  7. Denny Says:

    The other day, while I was at work, my cousin stole my iphone and tested to see if it can survive a forty foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views. I know this is totally off topic but I had to share it with someone!

  8. Anonymous Says:

    Kramer auto Pingback[...] [...]

  9. Retrofit Wall Insulation Says:

    Referring Back…

    Today is the time if ever you want to check out a story like this….

  10. jailbreaking Says:

    When someone writes an article he/she keeps the image of a user in his/her brain that how a user can be aware of it. Thus thats why this piece of writing is perfect. Thanks!

Leave a Reply