From owner-freebsd-ports@FreeBSD.ORG Fri May 11 21:40:20 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A50F216A404 for ; Fri, 11 May 2007 21:40:20 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from popeye1.ggamaur.net (popeye1.ggamaur.net [213.160.40.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1F6F513C4C3 for ; Fri, 11 May 2007 21:40:19 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from maxlor.mine.nu (c-82-192-240-247.customer.ggaweb.ch [82.192.240.247]) by popeye1.ggamaur.net (8.13.7/8.13.7/Submit) with ESMTP id l4BLeGZT071678 for ; Fri, 11 May 2007 23:40:18 +0200 (CEST) (envelope-from mail@maxlor.com) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id B86FD2E21E for ; Fri, 11 May 2007 23:40:11 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pl4xNv+5PdDW for ; Fri, 11 May 2007 23:40:11 +0200 (CEST) Received: from mini.intranet (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id 877B52E21D for ; Fri, 11 May 2007 23:40:11 +0200 (CEST) From: Benjamin Lutz To: ports@freebsd.org Date: Fri, 11 May 2007 23:40:05 +0200 User-Agent: KMail/1.9.5 X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"_+ R2@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@g? 4f,\c7|Ghwb&ky$b2PJ^\0b83NkLsFKv|smL/cI4UD%Tu8alAD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart19990703.rZQdD007cc"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200705112340.09640.mail@maxlor.com> X-Scanned-By: MIMEDefang 2.61 on 213.160.40.60 Cc: Subject: Benchmark: -j{$NCPU} vs -j{$NCPU+1} X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2007 21:40:20 -0000 --nextPart19990703.rZQdD007cc Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello, Now that I'm back from having to serve in the armed services, I've=20 picked up work on parallel building for the ports again. There is some=20 conventional wisdom floating around these parts that says you should=20 run make -j with a number one higher than the number of CPUs you have.=20 As I wondered what difference that makes, I ran some benchmarks. Since=20 maybe someone else is curious about this too, I'll publish my results=20 here. Here's the summary: on my core 2 duo machine (=3D 2 CPUs), this is the=20 time improvement to build the port (just configuring and building, no=20 installation) with -j3 over -j2: x11-toolkits/gtk20: 2% x11/kdebase3: 1% graphics/gimp-app: 24% lang/gcc41: 12% So basically, -j3 really is faster than -j2, although the difference is=20 substantial only for some ports. Here's the script I use to produce the numbers, as well as my raw=20 results which contain much more detail: http://www.maxlor.com/freebsd/files/parallel_benchmark.sh http://www.maxlor.com/freebsd/files/parallel_benchmark.ods Cheers Benjamin --nextPart19990703.rZQdD007cc Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGROK5zZEjpyKHuQwRAjlaAJ4lGWxnwHSOkGEfKd+Ba14yfWamLACeK+Nx jMHFByCWHjOsTxXnQqIpsn8= =di5W -----END PGP SIGNATURE----- --nextPart19990703.rZQdD007cc--