[gnome-boxes] vm-configurator: Use 'writeback' disk cache option



commit d77856f21b959646aedf28c07324be2dab34d79f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Mar 26 17:08:57 2015 +0000

    vm-configurator: Use 'writeback' disk cache option
    
    Turns out that cache=none did not help much in reducing the installation
    time of Windows 7 from hours to 20mins (like we thought) and cache=none
    requires O_DIRECT and hence makes this option very non-portable.
    
    Let's use 'writeback' cache option, which is reported to be more
    efficient than the default option.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679837

 src/vm-configurator.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vm-configurator.vala b/src/vm-configurator.vala
index 442db49..a73eb4d 100644
--- a/src/vm-configurator.vala
+++ b/src/vm-configurator.vala
@@ -274,7 +274,7 @@ private class Boxes.VMConfigurator {
         disk.set_driver_name ("qemu");
         disk.set_driver_format (DomainDiskFormat.QCOW2);
         disk.set_source (target_path);
-        disk.set_driver_cache (DomainDiskCacheType.NONE);
+        disk.set_driver_cache (DomainDiskCacheType.WRITEBACK);
 
         if (install_media.supports_virtio_disk) {
             debug ("Using virtio controller for the main disk");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]