-- MikeGore - 20 Jan 2012

Disk Scheduler Optimization

#!/bin/bash
#
# Mike Gore, 20 Jane 2012
# Fix disk scheduler

# List all out disks
disks=`ls /dev/sd?`

# noop anticipatory deadline cfq
method=deadline

for i in $disks
do
   DISK=`basename $i`
   echo $method > /sys/block/$DISK/queue/scheduler
   cat /sys/block/$DISK/queue/scheduler
done

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatEXT fix_scheduler manage 0.3 K 2012-01-20 - 10:59 MikeGore Script to update the disk scheduler settings
Topic revision: r1 - 2012-01-20 - MikeGore
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback