Linux Change The I/O Scheduler For A Hard Disk
Q. How do I change the I/O scheduler for a particular hard disk without rebooting my Linux server system?
A. CFQ [cfq] (Completely Fair Queuing) is an I/O scheduler for the Linux kernel and default under many Linux distributions.
Noop scheduler (noop) is the simplest I/O scheduler for the Linux kernel based upon FIFO queue concept.
Anticipatory scheduler (anticipatory) is an algorithm for scheduling hard disk input/output as well as old scheduler which is replaced by CFQ
Deadline scheduler (deadline) - it attempt to guarantee a start service time for a request.
Task: View Current Disk scheduler
Assuming that your disk name /dev/sda, type:
# cat /sys/block/{DEVICE-NAME}/queue/scheduler
# cat /sys/block/sda/queue/scheduler
Sample output:
noop anticipatory deadline [cfq]
Task: Set I/O Scheduler For A Hard Disk
To set a specific scheduler, simply type the command as follows:
# echo {SCHEDULER-NAME} > /sys/block/{DEVICE-NAME}/queue/scheduler
For example, set noop scheduler, enter:
# echo noop > /sys/block/hda/queue/scheduler
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Linux nice command: Run Process With Modified Scheduling Priority ( nicenesses )
- Linux taskset to retrieve or set a processess CPU affinity
- chrt command: Set / Manipulate Real Time Attributes of a Linux Process
- Host a domain without CPanel or Plesk Control Panel
- Change 3d Compiz Settings
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: anticipatory linux scheduler, cfq linux scheduler, deadline linux scheduler, echo command, linux scheduler, linux scheduling priority, noop linux scheduler, sys/block/hda/queue/scheduler




Recent Comments
Yesterday ~ 3 Comments
09/06/2008 11:03 pm (2 days ago) ~ 12 Comments
09/06/2008 02:10 pm (2 days ago) ~ 7 Comments
09/06/2008 06:51 am (2 days ago) ~ 2 Comments
09/06/2008 01:28 am (2 days ago) ~ 3 Comments