Disable Harddisk Caching for qcow2

nmue

Member
Nov 30, 2009
8
0
21
Hi,

We are evaluating KVM/proxmox to replace our current virtual environment. I made some tests on CPU and Harddisk. CPU is faster in KVM (about 10%) but the Harddisk is about 50% slower than our current system.

I started googling and reading trough this forums and couldn't find any hints. In the KVM manpage there is some info about the caching part of the harddisk. They say if you want more performance with your qcow2 image, the cache should be disabled (even tough this can lead to problems if the host loses power or something like that).

Well actually I would like to redo the tests with caching disabled, but how do I do it in proxmox? Didn't found any option on this.
 
Hi,

We are evaluating KVM/proxmox to replace our current virtual environment. I made some tests on CPU and Harddisk. CPU is faster in KVM (about 10%) but the Harddisk is about 50% slower than our current system.

I started googling and reading trough this forums and couldn't find any hints. In the KVM manpage there is some info about the caching part of the harddisk. They say if you want more performance with your qcow2 image, the cache should be disabled (even tough this can lead to problems if the host loses power or something like that).

Well actually I would like to redo the tests with caching disabled, but how do I do it in proxmox? Didn't found any option on this.

you have several option to use storage:
see http://pve.proxmox.com/wiki/Storage_Model

so the questions is what you use and even more - how do you benchmark?
 
That depends on configuration. You can easily disable cache by expanding one line in the config, for exaple you have file /etc/qemu-server/101.conf (or any other config):

scsi0: local:101/vm-101-disk-1.raw

You can change this to:

scsi0: local:101/vm-101-disk-1.raw,cache=none

More options about cache are in qemu documentation:
http://www.nongnu.org/qemu/qemu-doc.html#SEC10
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!