A Proposal To Change The Default I/O Scheduler
Phoronix: A Proposal To Change The Default I/O Scheduler
A patch was volleyed into the Linux kernel development camp to change the default I/O scheduler for non-SATA disk drives...
Sounds good to me.
CFQ shouldn't be used for PCI Express storage devices. It should be either deadline or noop.
I love my SSD <3
I wonder if IO-scheduler should be a mount option.
Can't the two schedulers coexist in some way? I'm ignorant about that, but it obviously would be the better solution, because penalizing HDD users (which are more than SSD users, not only in the desktop market) sounds like a bad idea.
This will be only for non-SATA drives (pci-e SSD, etc.), so most rotating media should be unaffected.
Shouldn't it say non-ATA, though? That should also exclude SATA, though I guess they could want to include ATA for some reason....
Last edited by Nobu; 04-10-2012 at 08:27 PM.
Reason: Added link for example
Is the IO scheduler defined on build time or mount time (or any other criteria I can't think about)? How do I change it if it's not defined at build time?
No, because it is not a feature at the file-system level, also I would imagine the kernel only creates a per-disk queue, rather than a per-partition queue. If it were a mount option, you could get conflicts about what block on the device the kernel should access next. (It would require you write a scheduler to schedule each schedulers access to the block device, which is messy to say the least)
Originally Posted by russofris
There is a sysFS interface for per-disk schedulers.
Originally Posted by mrugiero
echo the name of the scheduler you want into
echo "cfq" > /sys/block/sdb/queue/scheduler
(running cat on that file will tell you the current selection and all valid options)
Make it permanent by adding it to you local level rc or init file.
You can set your default block device scheduler when configuring a custom kernel, or by passing a boot option.
There first is permenant by itself, the second requires editing the grub defaults file.
Last edited by WorBlux; 04-10-2012 at 09:00 PM.
Just start a little program that reads a few sectors across the LBA range. That'll tell you immediately if you have a slowpoke rotating drive or not.