Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

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

george's gravatar image

george
1663612
accept rate: 0%

Please accept an answer, or provide more details so we can help.

(14 Jun '11, 11:35) rfelsburg ♦



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:-

# sync

# echo "deadline" > /sys/block/sda/queue/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.

link

answered 23 Apr '10, 14:07

Prasad's gravatar image

Prasad
485
accept rate: 33%

So there's deadline, cfq, anticipatory, noop, are there any others?

Is there one that is more suited to single application with a focus on speed?

(23 Apr '10, 16:50) george

Nope, there are only 4 types. However, with kernel ver. 2.6.33 the anticipatory scheduler will be removed. More info. at http://www.linux-mag.com/id/7724/

(03 May '10, 15:45) Prasad

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.

link

answered 24 Apr '10, 19:32

H_TeXMeX_H's gravatar image

H_TeXMeX_H
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×81
×2
×1
×1
×1

Asked: 23 Apr '10, 02:47

Seen: 15,167 times

Last updated: 14 Jun '11, 11:35

powered by OSQA