Use writeback caching by default with qcow2
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 4 Dec 2008 21:39:21 +0000 (21:39 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 4 Dec 2008 21:39:21 +0000 (21:39 +0000)
commit429a2c35442b2dc50365c2eb6efb7d631a12d519
tree743ea1d2ed14426c2d9f3da8d48d24b14f990df0
parentbd20f0e07cb5be9dc5e12f74f5da8b7d7ffa0399
Use writeback caching by default with qcow2

qcow2 writes a cluster reference count on every cluster update.  This causes
performance to crater when using anything but cache=writeback.  This is most
noticeable when using savevm.  Right now, qcow2 isn't a reliable format
regardless of the type of cache your using because metadata is not updated in
the correct order.  Considering this, I think it's somewhat reasonable to use
writeback caching by default with qcow2 files.

It at least avoids the massive performance regression for users until we sort
out the issues in qcow2.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5879 c046a42c-6fe2-441c-8c8c-71466251a162
block-qcow2.c
block.h
qemu-doc.texi
vl.c