Tips/io scheduler

From Wikux.org
Jump to: navigation, search

How to Change You IO Scheduler in Linux 2.6

This is actually a pertty simple proceedure. To figure out which scheduler is currently active simply type:
cat /sys/block/sda/queue/scheduler at the command prompt. You need to substitute sda for the corresponding block device on your machine.
The output will look something like this.
noop deadline [cfq]
To actually change the scheduler, the boot line that is passed to the kernel. This is usually in the grub.conf file. Append the string elevator=<scheduler> where <scheduler> is one of the schedulers that were listed in the previous output.