LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   SSD Best I/O Scheduler? (https://www.linuxquestions.org/questions/linux-hardware-18/ssd-best-i-o-scheduler-4175520908/)

Daedra 10-03-2014 12:03 AM

SSD Best I/O Scheduler?
 
Ok so the common wisdom here says that with SSD's you should use noop or deadline for your scheduler and not CFQ. However I saw that as far back as 2008 CFQ can recognize a SSD and act accordingly...


CFQ has some optimizations for SSDs and if it detects a non-rotational
media which can support higher queue depth (multiple requests at in
flight at a time), then it cuts down on idling of individual queues and
all the queues move to sync-noidle tree and only tree idle remains. This
tree idling provides isolation with buffered write queues on async tree.


This is taken right out of the kernel txt files.

My question is has anyone actually bench marked and tested which one is in fact best/fastest for SSD's?

Thanks

keefaz 10-03-2014 08:30 AM

Not real benchmark here, but using samsung EVO SSD and hdparm -t test, I found Deadline scheduler slightly faster than other two, but it was by a very few margin

metaschima 10-03-2014 09:58 AM

Here's a benchmark from a while back:
http://ubuntuforums.org/showthread.php?t=1464706

In my tests I got the same results regardless of media being SSD or HDD, deadline is the best. In fact, it is also best regardless of filesystem although I haven't tested all filesystems.

onebuck 10-03-2014 04:35 PM

Member Response
 
Hi,

If you match the 'SSD' to your system via optimization so that the cache & write back are functional(if the SSD supports write back) then noop works fine for me. If you are in need of database management then use 'deadline'.

Get your 'SSD' specifications then optimize your GNU/Linux based on that. Most modern kernels can be optimized for 'SSD' operations. Setup the specific device for a specific scheduler, do not make the scheduler system wide. Assign the scheduler to that device so you will not create a problem.

Be sure to do a LQ Search since this subject has been covered many times.
Hope this helps.
Have fun & enjoy!
:hattip:


All times are GMT -5. The time now is 03:14 PM.