A look at how NCQ, software queue and I/O schedulers impact disk performance

Written by Gionatan Danti on . Posted in Linux & Unix

User Rating:  / 7


In this article, we saw how both NCQ and OS controlled queues are very useful to extract greater performance from the typically slow disk subsystem. Moreover, the deadline scheduler again emerged as the best performing one. CFQ is slower, but this was expected: it primary usage scenario is on desktop clients, where fairness (ie: reasonable per-process I/O resource allocation) is more important that pure throughput.

On server side, I recommend to use the deadline scheduler and to enable all hardware-based queues, both at the disk and at the controller level (if present). The default OS queue size of 128 entry should be enough, but if you typically have a very long QD you can try something bigger (but pay attention not only to total throughput, but to latency also).

Feel free to discuss this article with me writing at This email address is being protected from spambots. You need JavaScript enabled to view it.

Have a nice day!

You have no rights to post comments