LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2007, 11:05 PM   #1
kam1su2
LQ Newbie
 
Registered: Apr 2004
Location: Mamaroneck, HY-
Distribution: Slackware 9.1
Posts: 5

Rep: Reputation: 0
Anticipatory vs Deadline vs CFQ


Trying to figure out which I/O Schedular is best for every day usage, from playing music to watching videos... all the way to running small databases. I hear mixed opinions... does anyone know the low down exactly?
 
Old 04-14-2007, 11:10 PM   #2
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Rep: Reputation: 30
i use cfq but that doesnt mean its the best
 
Old 04-14-2007, 11:59 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I'm betting either deadline or CFQ. I use deadline. Try 'em out and see.
 
Old 04-15-2007, 05:38 PM   #4
kipp
Member
 
Registered: Sep 2003
Location: South East, PA
Distribution: Slackware -current
Posts: 36
Blog Entries: 1

Rep: Reputation: 15
If my memory servers me right, the kernel help on the 3 different schedulers states the CFQ should be suitable for most dekstops. The Deadline and Anticipatory helps do not mention desktop in their help description, and is why I chose CFQ over them. As far as any real benchmark of it, I can't provide that.
 
Old 04-15-2007, 06:21 PM   #5
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Rep: Reputation: 30
in real life i dont really think its matters like i dropped the timer frequency from 1000hz to 100hz and i dont notice a differnce
 
Old 04-15-2007, 06:24 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Here's more on the schedulers ... how they work and how to switch between them right now if you want.

http://www.linuxhowtos.org/System/iosched.htm
 
Old 04-15-2007, 06:51 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The big commercial distros have been using CFQ for a while. Redhat had a (white ???) paper on their testing up on their site somewhere.
One of the recent kernels has changed the default to be CFQ. (2.6.18)

Last edited by syg00; 04-15-2007 at 07:01 PM.
 
Old 04-15-2007, 07:01 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Dup - deleted
 
Old 04-15-2007, 07:08 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
If anyone finds some nice benchmarks on this, pls post it ... I haven't been able to find any yet. (except for one from oracle ... can't say I trust them tho)
 
Old 04-15-2007, 10:16 PM   #10
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Rep: Reputation: 30
i dont know this is pretty hard to benchmark. all that it is is the order of stuff that gets executed. i would assume that deadline would get stuff with a higher nice run first
 
Old 04-15-2007, 11:23 PM   #11
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, it seems to be a bit more complex ...

Here's a benchmark from Red Hat (2005):
http://www.redhat.com/magazine/008ju...es/schedulers/

Also, it seems to depend on your filesystem (as well as workload):
http://www-941.ibm.com/collaboration...I%2FOSubsystem

Code:
Selectable I/O Schedulers (2.6 feature only)

    * workload & FS dependent
    * CPU bound workload - use noop I/O Scheduler
    * non-CPU bound workload - CFQ and deadline
    * JFS works better on CPU bound workload
I use JFS, so I guess I should be using noop. Maybe I'll try it out.
 
Old 04-16-2007, 04:08 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Mmmm - I hope you re-read that reference.
- are you ppc ??? (IBM proprietry RISC chip)
- are you CPU bound ??? (in the p-series case probably 100% on more than 1 core)
- are your I/O being delayed because of *all* of the above ???.

jfs is very much the after-thought in that recommendation - that wiki is very specific to IBM.

I doubt anybody outside of significant enterprise datacentres could pick the difference in the I/O schedulers unless they have a specific need.
Last time I looked at the code I decided it wasn't even worth testing for. I had thought noop might show some benefit where hardware RAID was in play, but couldn't see any real-world situation where it would be worthwhile testing.
 
Old 04-16-2007, 10:52 AM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Yeah, well, I guess just try them out ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: aKademy Talks Deadline Extended LXer Syndicated Linux News 0 02-18-2007 02:16 PM
LXer: CFQ to become the default I/O scheduler in 2.6.18 LXer Syndicated Linux News 0 08-16-2006 04:54 AM
LXer: aKademy Deadline Approaching LXer Syndicated Linux News 0 06-29-2006 08:21 AM
LXer: KOffice 2 Design Competition Deadline Approaches LXer Syndicated Linux News 0 02-04-2006 08:16 AM
cfq:depth 4 tagging on utanja Debian 1 11-05-2004 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration