From 373a9ad0abb09ee079da834d251a744cdbe9ae70 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 2 Jul 2009 21:32:59 +0100 Subject: [PATCH] Improve virtio-blk performance (RHBZ#509383). --- appliance/init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appliance/init b/appliance/init index 48c7c34..dbe53f4 100755 --- a/appliance/init +++ b/appliance/init @@ -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 -- 1.8.3.1