delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
X-IronPort-AV: | E=McAfee;i="5300,2777,5408"; a="11167675" |
From: | "Manning, Sid" <sidneym AT qualcomm DOT com> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Date: | Mon, 20 Oct 2008 09:48:32 -0700 |
Subject: | Compile time Local Cygwin vs. VMware session on same system |
Message-ID: | <D1CE63BB766844448B4A8CDC82658DE4020CB9A3E0@NALASEXMB03.na.qualcomm.com> |
Accept-Language: | en-US |
acceptlanguage: | en-US |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id m9KGoBwr003875 |
I've been happily using cygwin for many years but I recently loaded VMware on my system and it seemed pretty snappy, so much so I decided to see how it compared to native execution. I was surprised to see that I could compile much faster under VMware than on Cygwin on the same host. I pasted a short script (bottom of message) that I hope one could just cut and run to verify my results. To get a generally accessibly benchmark I download and time the compile binutils-2.18. My initial results where so skewed that I downloaded an updated cygwin.dll (1.5.24.2 -> 1.5.25.2) but after the upgrade my performance dropped further. Here are my results: Compile binutils-2.18 (vanilla configure and make) Cygwin (cygwin.dll version 1.5.25.15) (from time) real 19m36.301s user 13m45.618s sys 5m31.415s Cygwin (cygwin.dll version 1.5.24.2) (from time) real 12m35.622s user 13m56.539s sys 6m57.319s VMWare (Linux opensuse-vm 2.6.22.9-0.4/openSUSE 10.3 (i586)) real 3m9.116s user 1m31.326s sys 1m27.417s So there is a 4-6x slowdown under native execution under cygwin, the performance for remote compiles (either SMB or NFS mounted) is even slower, somewhere in the neighborhood of 35-40 minutes to compile vs. 10 minutes under VMware. This script may not be perfect but here it is: # run like this: # bash -x doit.sh <obj-dir> <src-dir> # LEVEL=binutils-2.18 SRCDIR=$2 START=$PWD if test -e $SRCDIR/$LEVEL.tar.gz then echo "No download needed" else cd $SRCDIR wget ftp://ftp.gnu.org/gnu/binutils/$LEVEL.tar.gz cd - mkdir $SRCDIR/src cd $SRCDIR/src tar zxvf $SRCDIR/$LEVEL.tar.gz cd $START fi mkdir $1 cd $1 rm -rf * $SRCDIR/src/$LEVEL/configure time make -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |