What are the benefits of both? Are they the only ones for debian base? Which one is better for a SSD only computer? How do I install a new scheduler?
asked 23 Apr '10, 02:47
The noop scheduler is actually for devices which have their own mechanism of handling the data read/writes. It could be in-built as a logic on the device itself,for example a SAN environment. The other schedulers like CFQ,deadline and anticipatory are logic built on the linux kernel itself, which means kernel decides how a I/O request should be handled and when the dirty buffers be written to the disk etc. These scheduler's logic are different from each other. There is no best scheduler, they are meant for different type of work loads.
You can simply switch the schedulers on the fly:
Example: (as root) To use "deadline" scheduler:-
I'm not sure if SSD drives have the intelligence to handle I/O requests. But I can suggest you do a test read/write of huge data size with each scheduler and fins which suits you the best.
Hope this helps.
answered 23 Apr '10, 14:07
I would like to mention that it also depends a lot on what filesystem you use, as well as workload. With JFS for example the deadline I/O scheduler is way better than any of the others for some unknown or unexplained reason, while CFQ causes lags and stuttering audio and video when playing movies. Try each of them out and see which works best.
answered 24 Apr '10, 19:32