* [uml-devel] preemption
@ 2004-05-18 13:47 Sam King
2004-05-18 18:38 ` Jeff Dike
0 siblings, 1 reply; 3+ messages in thread
From: Sam King @ 2004-05-18 13:47 UTC (permalink / raw)
To: user-mode-linux-devel
Hello!
I am trying to understand how the UML kernel preempts
guest user mode applications in SKAS mode. I am using
version 2.4.20 of the guest kernel.
From what I can tell, when the guest kernel takes a
timer interrupt (SIGALRM) it eventually updates the
tsk->need_resched parameter for processes that have
been running for too long. However, I do not see
where the actual switch takes place except in the
interrupt_end() function which is only called as a
result of guest application system calls and signals.
Since I am sure that the guest kernel supports
preemption, I must be missing something.
Thank you for you help.
--Sam
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [uml-devel] preemption
2004-05-18 13:47 [uml-devel] preemption Sam King
@ 2004-05-18 18:38 ` Jeff Dike
2004-05-23 9:18 ` BlaisorBlade
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Dike @ 2004-05-18 18:38 UTC (permalink / raw)
To: Sam King; +Cc: user-mode-linux-devel
On Tue, May 18, 2004 at 06:47:26AM -0700, Sam King wrote:
> >From what I can tell, when the guest kernel takes a
> timer interrupt (SIGALRM) it eventually updates the
> tsk->need_resched parameter for processes that have
> been running for too long. However, I do not see
> where the actual switch takes place except in the
> interrupt_end() function which is only called as a
> result of guest application system calls and signals.
Exactly. Every kernel entrance is either a system call or signal (a UML
signal, not a process signal, BTW), so there is a preemption opportunity
at every return to userspace.
Jeff
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [uml-devel] preemption
2004-05-18 18:38 ` Jeff Dike
@ 2004-05-23 9:18 ` BlaisorBlade
0 siblings, 0 replies; 3+ messages in thread
From: BlaisorBlade @ 2004-05-23 9:18 UTC (permalink / raw)
To: user-mode-linux-devel
Alle 20:38, martedì 18 maggio 2004, Jeff Dike ha scritto:
> On Tue, May 18, 2004 at 06:47:26AM -0700, Sam King wrote:
> > >From what I can tell, when the guest kernel takes a
> >
> > timer interrupt (SIGALRM) it eventually updates the
> > tsk->need_resched parameter for processes that have
> > been running for too long. However, I do not see
> > where the actual switch takes place except in the
> > interrupt_end() function which is only called as a
> > result of guest application system calls and signals.
>
> Exactly. Every kernel entrance is either a system call or signal (a UML
> signal, not a process signal, BTW), so there is a preemption opportunity
> at every return to userspace.
But when you say "UML signal" (I guess a signal between the host UML threads)
you mean even a timer interrupt, right? Otherwise I don't see how a
non-syscalling process (a true CPU-hog, like SETI@home or such things) could
be interrupted.
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id66&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-05-23 10:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-18 13:47 [uml-devel] preemption Sam King
2004-05-18 18:38 ` Jeff Dike
2004-05-23 9:18 ` BlaisorBlade
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox