All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] Regarding Process creation in UML tracing thread mode
@ 2007-03-21 11:51 Krishnappa Abhijith-A21204
  2007-03-21 13:55 ` Jeff Dike
  0 siblings, 1 reply; 4+ messages in thread
From: Krishnappa Abhijith-A21204 @ 2007-03-21 11:51 UTC (permalink / raw)
  To: user-mode-linux-devel


[-- Attachment #1.1: Type: text/plain, Size: 587 bytes --]

Hi,
             Regarding fork() implementation UML in tracing thread (tt)
mode
Whenever we call fork in UML the following happens:
 
2 process gets created 
1 on UML say U_1 and 1 on HOST say H_1
 
Process in host gets created by tracing thread but how does a process in
UML gets created ?
 
Also whenever a UML process makes a system call UML uses the
corresponding Host process for execution of system call is that true ?
 
Also, How does UML process communicates to irts corresponding host
process
 
 
 
Thanks a lot for all the help.
 
Regards,
Abhi
 

 

[-- Attachment #1.2: Type: text/html, Size: 1531 bytes --]

[-- Attachment #2: Type: text/plain, Size: 345 bytes --]

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

[-- Attachment #3: Type: text/plain, Size: 194 bytes --]

_______________________________________________
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] 4+ messages in thread

* Re: [uml-devel] Regarding Process creation in UML tracing thread mode
  2007-03-21 11:51 [uml-devel] Regarding Process creation in UML tracing thread mode Krishnappa Abhijith-A21204
@ 2007-03-21 13:55 ` Jeff Dike
  2007-03-21 14:11   ` Krishnappa Abhijith-A21204
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Dike @ 2007-03-21 13:55 UTC (permalink / raw)
  To: Krishnappa Abhijith-A21204; +Cc: user-mode-linux-devel

On Wed, Mar 21, 2007 at 07:51:44PM +0800, Krishnappa Abhijith-A21204 wrote:
>              Regarding fork() implementation UML in tracing thread (tt)
> mode
> Whenever we call fork in UML the following happens:
>  
> 2 process gets created 
> 1 on UML say U_1 and 1 on HOST say H_1

No, one process gets created, in which both the process and the kernel run.

				Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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] 4+ messages in thread

* Re: [uml-devel] Regarding Process creation in UML tracing thread mode
  2007-03-21 13:55 ` Jeff Dike
@ 2007-03-21 14:11   ` Krishnappa Abhijith-A21204
  2007-03-21 15:54     ` Jeff Dike
  0 siblings, 1 reply; 4+ messages in thread
From: Krishnappa Abhijith-A21204 @ 2007-03-21 14:11 UTC (permalink / raw)
  To: Jeff Dike; +Cc: user-mode-linux-devel

Hi Jeff,
		But I was confused with the diagram you described here:
http://user-mode-linux.sourceforge.net/slides/als2000/img4.html

Also from your below response it means that: UML just have a
task_structure maintained....
Also I never saw the UML specific schedule() code in .../arch/um does
UML uses the host schedule itself ?

Regards,
Abhi

-----Original Message-----
From: Jeff Dike [mailto:jdike@addtoit.com] 
Sent: Wednesday, March 21, 2007 7:25 PM
To: Krishnappa Abhijith-A21204
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Regarding Process creation in UML tracing
thread mode

On Wed, Mar 21, 2007 at 07:51:44PM +0800, Krishnappa Abhijith-A21204
wrote:
>              Regarding fork() implementation UML in tracing thread 
> (tt) mode Whenever we call fork in UML the following happens:
>  
> 2 process gets created
> 1 on UML say U_1 and 1 on HOST say H_1

No, one process gets created, in which both the process and the kernel
run.

				Jeff

--
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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] 4+ messages in thread

* Re: [uml-devel] Regarding Process creation in UML tracing thread mode
  2007-03-21 14:11   ` Krishnappa Abhijith-A21204
@ 2007-03-21 15:54     ` Jeff Dike
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Dike @ 2007-03-21 15:54 UTC (permalink / raw)
  To: Krishnappa Abhijith-A21204; +Cc: user-mode-linux-devel

On Wed, Mar 21, 2007 at 10:11:48PM +0800, Krishnappa Abhijith-A21204 wrote:
> Also from your below response it means that: UML just have a
> task_structure maintained....
> Also I never saw the UML specific schedule() code in .../arch/um does
> UML uses the host schedule itself ?

UML, like any other port, uses the schedule() in kernel/sched.c.  The
UML-specific context switching indirectly uses the host's scheduler
when it switches from one host process to another.  TT mode has the
outgoing process sleeping in a read() on a pipe after waking up the
incoming process from its read by writing a byte down its pipe.

But the host makes no scheduling decisions between UML processes - the
UML scheduler makes the decisions and the host scheduler just decides
when the process chosen by the UML scheduler actually gets some CPU
time.

				Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2007-03-21 15:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-21 11:51 [uml-devel] Regarding Process creation in UML tracing thread mode Krishnappa Abhijith-A21204
2007-03-21 13:55 ` Jeff Dike
2007-03-21 14:11   ` Krishnappa Abhijith-A21204
2007-03-21 15:54     ` Jeff Dike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.