On Friday 22 June 2001 23:43, chandu Reddy wrote:
> HI
>  all
>   Is there any limit on no of threads supported by a rt linux kernel
>   i mean  if there is an  big application and how many no of threads we
> can implement with out any performance over head.

There's always some overhead. (Unless you're working with a "CPU" with the 
threads built into the core - haven't seen such a design since the early days 
of digital wavetable synths, BTW...) The question is whether or not it's 
acceptable WRT available CPU power and price/performance requirements.

Anyway; Without knowing *exactly* how the RTL scheduler works, I'm still 
pretty sure that itn doesn't matter how many threads you have (as long as 
their code and data fits in memory). What matters is how often new threads 
are "woken up" (made ready for execution), and how many threads there are in 
the "runnable queue" at the time of each evaluation. (Some schedulers do the 
actual evaluation when a thread is woken up, rather than every time a
reschedule is requested - not sure about RTL.)


As to real figures; way back there was some figure like "7 kHz periodic 
thread on a Pentium CPU", which would correspond to a real work/overhead 
ratio that would be acceptable in the general case.

Having some fresh figures, and knowing what kind of ratio we're talking about 
here, would make it possible to get an idea of how many context switches per 
second one can handle at any given real work/overhead ratio.


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'

----- End of forwarded message from [EMAIL PROTECTED] -----
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to