LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2007, 02:09 AM   #1
Kotresh
LQ Newbie
 
Registered: Mar 2007
Posts: 15

Rep: Reputation: 0
DEADLINE Vs ANTICIPATORY(which sheduler is better for multimedia applications)


Hi
one big doubt...
I am looking Linux I/O scheduler.....

In linux 2.6.12.3 we are having 4 I/O schedulers.....

i am running multimedia application so I thought i will go for DEADLINE I/O SCHEDULER..

I tryed tuning of deadline i/o scheduler.....
after tuning of deadline i/o scheduler,i just switched from deadline I/O scheduler to Anticipatory scheduler........

ANTICIPATORY is giving good throughput compared to DEADLINE scheduler....!!!!!!!!

I am really VERY VERY VERY confused........

my doubts are

1)for Soft realtime application (multimedia) which is better i.e DEADLINE or ANTICIPATORY????????

2)what sort of application we should select DEADLINE and ANTICIPATORY


Please help me, i am in big confussion



Kotresh
 
Old 04-20-2007, 07:38 PM   #2
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
deadline is terrible
anticatory is sort of ok

**you should use CFQ (DEFAULT_CFQ)** as your default i/o schedular

for mutimedia this is the way we do the kernel
apply this patch
http://people.redhat.com/mingo/realtime-preempt/
then in the config choose
Default I/O scheduler (CFQ)
and "Complete Preemption" as the preemption model
use 1000 nanoseconds on the high res timer and i use a tickless system.
(tickless most likely doesn't effect realtime preemption but can keep the system from running hot all the time) killed my last cpu pretty quick ;-)
make sure you choose Extended RTC operation
and of course Use RTC as default sequencer timer
 
Old 04-23-2007, 01:51 AM   #3
Kotresh
LQ Newbie
 
Registered: Mar 2007
Posts: 15

Original Poster
Rep: Reputation: 0
thanks for u r kind reply studioj

but I am using 2.6.12.3 in that anticipatory is default one(NOT CFQ).

CFQ became default scheduler after 2.6.18 I think. and u have mentioned some patch also but that is for 2.6.20.

please mention me any patch is there for 2.6.12 ???

and i want to know which is beter in 2.6.12 kernel.




thanks


Regards
Kotresh
 
Old 04-23-2007, 03:34 PM   #4
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
CFQ exists in 2.6.12 so just choose that i'm not sure about the options for default but i bet that is there as well. if you can't set it as default just choose only CFQ.

you are right the older realtime patches seem to have been taken down -- the older patches often had problems so for such an old kernel i guess i would skip that part.

it also helps quite a bit to alter the kernel Makefile after it is built and set optimization flags for your architecture.

Example:

i got a 13% overall kernel speed increase by using
-march=athlon-xp -O3 -ffast-math
instead of the default optimization flags
 
Old 04-24-2007, 12:42 AM   #5
Kotresh
LQ Newbie
 
Registered: Mar 2007
Posts: 15

Original Poster
Rep: Reputation: 0
thank you studioj

ya, i think kernel opimization is one more way to increase speed...

But still i want to do both ie
1)Section of right scheduler and tuning parameters of that scheduler to give best performance for vedio applications
2)Kernel optimization....

but one thing, i am struck up with 2.6.12....

plz tell me in wat manner CFQ is better because deadline perfomance
is better than CFQ (in 2.6.12) in terms of throughput..

plz tell me some ways to decide which scheduler to select..
 
Old 04-24-2007, 09:13 PM   #6
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
this is how i understand it anyway.

CFQ is designed specifically to maintain minimal worst case latency on each and every IO read and write. so it is made specifically to prevent dropped frames etc in multimedia apps.

with anticipatory for instance better throughput for reads can cause writes to wait for vm to fill with dirty writes before the actual write will kick in. etc.

this causes CFQ to appear to use less bandwith in simple tests but in real world multimedia works better and safer. the only thing you care if you run CFQ is the worst case
latency of all reads and writes, never the throughput, 128k/sec is more than enough as
far as you never wait 2 seconds before you can get the next 128k no matter whats going on.

now in a way anticipatory is a form of deadline and in theory deadline should work ok for multimedia but this would require very carefull use of the correct i/o structures by the programmers. BUT if the programmers use RT disk i/o and you use a deadline type schedular
you are going to get large bursts of disk i/o that will get in the way of the overall picture.

hope that helps explain it somewhat
 
  


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
Anticipatory vs Deadline vs CFQ kam1su2 Slackware 12 04-16-2007 10:52 AM
LXer: aKademy Talks Deadline Extended LXer Syndicated Linux News 0 02-18-2007 02:16 PM
LXer: DebConf7 registration/sponsorship/CFP deadline LXer Syndicated Linux News 0 01-06-2007 03:54 AM
LXer: aKademy Deadline Approaching LXer Syndicated Linux News 0 06-29-2006 08:21 AM
Multimedia applications does not work/Sound is there mwj Linux - Hardware 0 09-26-2003 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:14 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