Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Ralf Habacker" <Ralf.Habacker@freenet.de>
To: "Chris January" <chris@atomice.net>
Cc: "Cygwin@Cygwin.Com" <cygwin@cygwin.com>
Subject: RE: Mozilla 1.3 built on cygwin?
Date: Sun, 6 Apr 2003 22:05:56 +0200
Message-ID: <00d701c2fc77$ef7ed650$0a1c440a@BRAMSCHE>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
In-Reply-To: <LPEHIHGCJOAIPFLADJAHOECHDIAA.chris@atomice.net>
Importance: Normal

> You could buy the Nebett book. Or instead download the sample source code
> (including the fork example) from
> http://www.newriders.com/content/images/1578701996/downloads/1578701996.zip
> and http://www.newriders.com/content/images/1578701996/downloads/ntdll.zip.
> You can find most of the API that's documented in Nebbet's book at
> http://undocumented.ntinternals.net/.
>
Thanks for this hint. This is very helpfull.

In the meantime I've done a little inspection and recognized, that one of the
major problem seems to be in the CreateProcess() call of the fork code, which is
a real time eater. The reason for this behaviour seems partially to be the
issues Ron Parker has told about. Further this depends on the number of loaded
dll's and how these dll's are rebased (correlated with the size of the dll).

See some results below.

a simple cygwin application
[client] fork                           (val)      16343 [us]
[parent] fork                           (val)      13291 [us]

a simple qt application without gui
[client] fork                           (val)      37728 [us]
[parent] fork                           (val)      34568 [us]

a kde application (using kdecore)
[client] fork                           (val)     337855 [us]
[parent] fork                           (val)     334691 [us]

a kde gui application (using kdecore + kdeui)
(first call)
[client] fork                           (val)    1605189 [us]
[parent] fork                           (val)    1599379 [us]

(further calls)
[client] fork                           (val)     636870 [us]
[parent] fork                           (val)     631324 [us]

Ralf


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

