should use cache=unsafe for improved performance
Bug #1542012 reported by
Scott Moser
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UTAH |
Confirmed
|
Undecided
|
Max Brustkern |
Bug Description
https:/
using 'cache=unsafe' on the disks will probably make installs go much faster.
That renders down to qemu 'cache=unsafe' on the -drive options.
It means that qemu does not sync when the guest vm does a sync() to that disk.
This really improves performance, and for install data you dont really care about the safety of that data.
To my knowledge, qemu will still do a 'close()' on the file descriptors prior to exit, which will get the data ensured to be written to the file.
To post a comment you must log in.
=== modified file 'utah/provision ing/vm. py' ng/vm.py 2016-02-04 16:29:18 +0000 ng/vm.py 2016-02-04 19:49:27 +0000 Element( 'driver' )
driver. set('name' , 'qemu')
driver. set('type' , disk['type'])
diske. append( driver) Element( 'source' )
source. set('file' , disk['file'])
--- utah/provisioni
+++ utah/provisioni
@@ -352,6 +352,7 @@
driver = ElementTree.
+ driver.set('cache', 'unsafe')
source = ElementTree.
I'm testing with the above right now. the install went fine. waiting to make sure it booted and such.