diff options
author | Richard Jones <rjones@redhat.com> | 2010-06-07 15:29:31 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-06-07 15:29:31 +0100 |
commit | 1253f577fa162b9170b22f3c543167aa99795920 (patch) | |
tree | fe4a7a5e0db416c4bf7b73929db9780c204646b7 /appliance | |
parent | 1fd03b8400635d9c62ec0d635984128868e5bb63 (diff) | |
download | libguestfs-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-x | appliance/init | 3 |
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 |