From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HTzLz-00084p-Q1 for user-mode-linux-devel@lists.sourceforge.net; Wed, 21 Mar 2007 04:51:44 -0700 Received: from mail119.messagelabs.com ([216.82.241.179]) by mail.sourceforge.net with smtp (Exim 4.44) id 1HTzLy-0005Z8-B8 for user-mode-linux-devel@lists.sourceforge.net; Wed, 21 Mar 2007 04:51:43 -0700 Received: from il06exr01.mot.com (il06exr01.mot.com [129.188.137.131]) by motgate8.mot.com (8.12.11/Motorola) with ESMTP id l2LBpeUs018445 for ; Wed, 21 Mar 2007 04:51:40 -0700 (MST) Received: from ZMY16EXM67.ds.mot.com (zmy16exm67.ap.mot.com [10.179.4.27]) by il06exr01.mot.com (8.13.5/8.13.0) with ESMTP id l2LBpcCw025890 for ; Wed, 21 Mar 2007 06:51:39 -0500 (CDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Wed, 21 Mar 2007 19:51:44 +0800 Message-ID: <0A01463223B8164194908CAC85B66A1201B0F01D@ZMY16EXM67.ds.mot.com> From: "Krishnappa Abhijith-A21204" Subject: [uml-devel] Regarding Process creation in UML tracing thread mode List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1435481706==" Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: user-mode-linux-devel@lists.sourceforge.net This is a multi-part message in MIME format. --===============1435481706== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C76BAF.480FCE57" This is a multi-part message in MIME format. ------_=_NextPart_001_01C76BAF.480FCE57 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Regarding fork() implementation UML in tracing thread (tt) mode Whenever we call fork in UML the following happens: =20 2 process gets created=20 1 on UML say U_1 and 1 on HOST say H_1 =20 Process in host gets created by tracing thread but how does a process in UML gets created ? =20 Also whenever a UML process makes a system call UML uses the corresponding Host process for execution of system call is that true ? =20 Also, How does UML process communicates to irts corresponding host process =20 =20 =20 Thanks a lot for all the help. =20 Regards, Abhi =20 =20 ------_=_NextPart_001_01C76BAF.480FCE57 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi,
        &nbs= p;   =20 Regarding fork() implementation UML in tracing thread (tt)=20 mode
Whenever we call fork in UML the following happens:
 
2 process gets created
1 = on UML say=20 U_1 and 1 on HOST say H_1
 
Process in host gets created = by tracing=20 thread but how does a process in UML gets created ?
 
Also whenever a UML process = makes a system=20 call UML uses the corresponding Host process for execution of system = call is=20 that true ?
 
Also, How does UML process = communicates to=20 irts corresponding host process
 
 
 
Thanks a lot for all the=20 help.
 
Regards,
Abhi
 
 
------_=_NextPart_001_01C76BAF.480FCE57-- --===============1435481706== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============1435481706== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel --===============1435481706==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HU1Jd-00046X-Gz for user-mode-linux-devel@lists.sourceforge.net; Wed, 21 Mar 2007 06:57:25 -0700 Received: from [198.99.130.12] (helo=saraswathi.solana.com) by mail.sourceforge.net with esmtp (Exim 4.44) id 1HU1JY-0005fP-W7 for user-mode-linux-devel@lists.sourceforge.net; Wed, 21 Mar 2007 06:57:22 -0700 Date: Wed, 21 Mar 2007 09:55:10 -0400 From: Jeff Dike Message-ID: <20070321135510.GC5398@c2.user-mode-linux.org> References: <0A01463223B8164194908CAC85B66A1201B0F01D@ZMY16EXM67.ds.mot.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <0A01463223B8164194908CAC85B66A1201B0F01D@ZMY16EXM67.ds.mot.com> Subject: Re: [uml-devel] Regarding Process creation in UML tracing thread mode List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Krishnappa Abhijith-A21204 Cc: user-mode-linux-devel@lists.sourceforge.net 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HU1Xl-0005e6-Bn for user-mode-linux-devel@lists.sourceforge.net; Wed, 21 Mar 2007 07:12:01 -0700 Received: from mail119.messagelabs.com ([216.82.241.179]) by mail.sourceforge.net with smtp (Exim 4.44) id 1HU1Xe-0008Oi-Rq for user-mode-linux-devel@lists.sourceforge.net; Wed, 21 Mar 2007 07:12:01 -0700 Received: from il06exr03.mot.com (il06exr03.mot.com [129.188.137.133]) by motgate8.mot.com (8.12.11/Motorola) with ESMTP id l2LEBhTi001516 for ; Wed, 21 Mar 2007 07:11:43 -0700 (MST) Received: from ZMY16EXM67.ds.mot.com (zmy16exm67.ap.mot.com [10.179.4.27]) by il06exr03.mot.com (8.13.1/8.13.0) with ESMTP id l2LEBgbw010535 for ; Wed, 21 Mar 2007 09:11:42 -0500 (CDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Wed, 21 Mar 2007 22:11:48 +0800 Message-ID: <0A01463223B8164194908CAC85B66A1201B0F107@ZMY16EXM67.ds.mot.com> In-Reply-To: <20070321135510.GC5398@c2.user-mode-linux.org> From: "Krishnappa Abhijith-A21204" Subject: Re: [uml-devel] Regarding Process creation in UML tracing thread mode List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Jeff Dike Cc: user-mode-linux-devel@lists.sourceforge.net 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HU3Am-0002hQ-8N for user-mode-linux-devel@lists.sourceforge.net; Wed, 21 Mar 2007 08:56:34 -0700 Received: from [198.99.130.12] (helo=saraswathi.solana.com) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1HU3Aj-0002rW-Ff for user-mode-linux-devel@lists.sourceforge.net; Wed, 21 Mar 2007 08:56:24 -0700 Date: Wed, 21 Mar 2007 11:54:09 -0400 From: Jeff Dike Message-ID: <20070321155409.GB6962@c2.user-mode-linux.org> References: <20070321135510.GC5398@c2.user-mode-linux.org> <0A01463223B8164194908CAC85B66A1201B0F107@ZMY16EXM67.ds.mot.com> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: <0A01463223B8164194908CAC85B66A1201B0F107@ZMY16EXM67.ds.mot.com> Subject: Re: [uml-devel] Regarding Process creation in UML tracing thread mode List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Krishnappa Abhijith-A21204 Cc: user-mode-linux-devel@lists.sourceforge.net 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