public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Gurus, a silly question for preemptive behavior
@ 2004-12-21  2:43 jesse
  2004-12-21  5:59 ` Con Kolivas
  2004-12-26 19:30 ` Stephen Satchell
  0 siblings, 2 replies; 11+ messages in thread
From: jesse @ 2004-12-21  2:43 UTC (permalink / raw)
  To: linux-kernel

 
As i know, in linux, user space application is
preemptive at any time. however, linux kernel is NOT
preemptive, that means, even some event is finished,
Linux kernel scheduler itself still can't have
opportunity to interrupt the current user application
and switch it out. it is called scheduler latency.
normally , the latency is about 88us in mean , maximum
: 200ms. Thus, the short latency shouldn't impact user
applications too much and is not a problem. It is an
issue in those embedded voice processing systems by
introducing jitters, thus smart people came up with
two kernel schedule patch: preemptive patch and low
latency patch. 

My application which has nice value as 10 of low
priority, however, it holds the CPU and excludes other
applciations that have higher priority (nice 0) to
run, my application causes CPU pegging. 

Thus, I am wondering: why  user space application
can't be effectively interrupted? why there is CPU
pegging?   Could you please educate me 
on this particular issue and shed me some light to
address it? 

my system: 
[root@sa-c2-7 proc]# uname  -a 
Linux sa-c2-7 2.4.21-15.ELsmp #1 SMP Thu Apr 22
00:18:24 EDT 2004 i686 i686 i386 GNU/Linux 

thanks!

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-12-26 19:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-21  2:43 Gurus, a silly question for preemptive behavior jesse
2004-12-21  5:59 ` Con Kolivas
2004-12-21 18:32   ` jesse
2004-12-21 18:44     ` Paulo Marques
2004-12-21 19:03       ` jesse
2004-12-21 19:23         ` Paulo Marques
2004-12-21 21:35         ` Con Kolivas
2004-12-21 23:07           ` jesse
2004-12-22  2:16             ` Con Kolivas
2004-12-22 12:39             ` K.R. Foley
2004-12-26 19:30 ` Stephen Satchell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox