Improve virtio-blk performance (RHBZ#509383).
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 2 Jul 2009 20:32:59 +0000 (21:32 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 2 Jul 2009 20:32:59 +0000 (21:32 +0100)
appliance/init

index 48c7c34..dbe53f4 100755 (executable)
@@ -44,6 +44,9 @@ ls -l /dev
 lvm vgscan --ignorelockingfailure
 lvm vgchange -ay --ignorelockingfailure
 
+# Improve virtio-blk performance (RHBZ#509383).
+for f in /sys/block/vd*/queue/rotational; do echo 1 > $f; done
+
 if grep -sq guestfs_rescue=1 /proc/cmdline; then
   bash -i
 fi