summaryrefslogtreecommitdiffstats
path: root/appliance
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-06-07 15:29:31 +0100
committerRichard Jones <rjones@redhat.com>2010-06-07 15:29:31 +0100
commit1253f577fa162b9170b22f3c543167aa99795920 (patch)
treefe4a7a5e0db416c4bf7b73929db9780c204646b7 /appliance
parent1fd03b8400635d9c62ec0d635984128868e5bb63 (diff)
downloadlibguestfs-1253f577fa162b9170b22f3c543167aa99795920.tar.gz
libguestfs-1253f577fa162b9170b22f3c543167aa99795920.tar.xz
libguestfs-1253f577fa162b9170b22f3c543167aa99795920.zip
Use the noop scheduler inside the appliance.
In my limited tests, this seems to make a small but noticable difference, improving the performance of some straightforward read operations by a little over 10%. For more information see: http://kbase.redhat.com/faq/docs/DOC-5428
Diffstat (limited to 'appliance')
-rwxr-xr-xappliance/init3
1 files changed, 3 insertions, 0 deletions
diff --git a/appliance/init b/appliance/init
index c622788c..b8133caf 100755
--- a/appliance/init
+++ b/appliance/init
@@ -66,6 +66,9 @@ lvm vgchange -ay --ignorelockingfailure
# Improve virtio-blk performance (RHBZ#509383).
for f in /sys/block/vd*/queue/rotational; do echo 1 > $f; done
+# http://kbase.redhat.com/faq/docs/DOC-5428
+for f in /sys/block/[hsv]d*/queue/scheduler; do echo noop > $f; done
+
# Keep these to enhance the usefulness of debug output.
ls -l /dev
cat /proc/mounts