X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <29929206.post@talk.nabble.com> References: <1613876000 DOT 20080917204140 AT F1-Photo DOT com> <1542859895 DOT 20080918134643 AT F1-Photo DOT com> <21561482 DOT post AT talk DOT nabble DOT com> <27607447 DOT post AT talk DOT nabble DOT com> <29929206 DOT post AT talk DOT nabble DOT com> Date: Mon, 11 Oct 2010 20:16:37 +0200 Message-ID: Subject: Re: Re[2]: Slow fork issue - Win x64 From: Reini Urban To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 2010/10/10 Nicole Hamilton: > Jarkko H=E4kkinen wrote: >> I'm getting rather similar results on my Cygwin 1.7.1, Windows 7 as >> evidenced by the figures below. >> >> [13:41:50 ~]$ while (true); do date; done | uniq -c >> =A0 =A0 =A0 5 Tue Feb 16 14:00:09 FLEST 2010 >> =A0 =A0 =A0 7 Tue Feb 16 14:00:10 FLEST 2010 >> =A0 =A0 =A0 9 Tue Feb 16 14:00:11 FLEST 2010 >> =A0 =A0 =A0 9 Tue Feb 16 14:00:12 FLEST 2010 > > Oh, my. =A0Here's what I get with 64-bit Hamilton C shell on Windows 7 on= a > 2.67GHz Core i7: > > 10 C% date +"%a %b %d %H:%M:%S %Z %Y" > Sun Oct 10 12:03:31 PDT 2010 > 11 C% while (1) !!; end | uniq -c > while ( 1 ) date +"%a %b %d %H:%M:%S %Z %Y" ; end | uniq -c > =A0164 Sun Oct 10 12:03:51 PDT 2010 > =A0170 Sun Oct 10 12:03:52 PDT 2010 > =A0169 Sun Oct 10 12:03:53 PDT 2010 > =A0169 Sun Oct 10 12:03:54 PDT 2010 > > Here's what I get on a MacBook with a 2.4GHz Core 2 Duo, again running > 64-bit code on Win7: > > 8 C% while ( 1 ) date +"%a %b %d %H:%M:%S %Z %Y" ; end | uniq -c > =A017 Sun Oct 10 12:17:21 PDT 2010 > =A084 Sun Oct 10 12:17:22 PDT 2010 > =A077 Sun Oct 10 12:17:23 PDT 2010 > =A078 Sun Oct 10 12:17:24 PDT 2010 > > But this is running native, using threads instead of a fork emulation. And native linux 64-bit bash has these: rurban AT deblap:~$ while (true); do date; done | uniq -c 228 Mon Okt 11 20:12:51 CEST 2010 250 Mon Okt 11 20:12:52 CEST 2010 221 Mon Okt 11 20:12:53 CEST 2010 200 Mon Okt 11 20:12:54 CEST 2010 183 Mon Okt 11 20:12:55 CEST 2010 179 Mon Okt 11 20:12:56 CEST 2010 165 Mon Okt 11 20:12:57 CEST 2010 150 Mon Okt 11 20:12:58 CEST 2010 146 Mon Okt 11 20:12:59 CEST 2010 We know bash is slow, so rurban AT deblap:~$ dash $ while (true); do date; done | uniq -c 232 Mon Okt 11 20:14:51 CEST 2010 508 Mon Okt 11 20:14:52 CEST 2010 508 Mon Okt 11 20:14:53 CEST 2010 510 Mon Okt 11 20:14:54 CEST 2010 507 Mon Okt 11 20:14:55 CEST 2010 511 Mon Okt 11 20:14:56 CEST 2010 502 Mon Okt 11 20:14:57 CEST 2010 508 Mon Okt 11 20:14:58 CEST 2010 --=20 Reini Urban http://phpwiki.org/=A0 =A0 =A0 =A0 =A0=A0 http://murbreak.at/ -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple