From owner-freebsd-stable@FreeBSD.ORG Thu Nov 25 09:10:02 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAD8A16A4D2 for ; Thu, 25 Nov 2004 09:10:02 +0000 (GMT) Received: from smtp16.wxs.nl (smtp16.wxs.nl [195.121.6.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 532DC43D4C for ; Thu, 25 Nov 2004 09:10:02 +0000 (GMT) (envelope-from ronald-freebsd8@klop.yi.org) Received: from ronald.echteman.nl (ip51cdc5d2.speed.planet.nl [81.205.197.210])2004))freebsd-stable@freebsd.org; Thu, 25 Nov 2004 10:09:42 +0100 (CET) Received: (qmail 11539 invoked from network); Thu, 25 Nov 2004 09:09:39 +0000 Received: from unknown (HELO laptop.thuis.klop.ws) (192.168.1.4) by ronald.echteman.nl with SMTP; Thu, 25 Nov 2004 09:09:39 +0000 Received: (qmail 769 invoked from network); Thu, 25 Nov 2004 09:09:38 +0000 Received: from localhost.thuis.klop.ws (HELO smtp.local) (127.0.0.1) by localhost.thuis.klop.ws with SMTP; Thu, 25 Nov 2004 09:09:38 +0000 Date: Thu, 25 Nov 2004 10:09:35 +0100 From: Ronald Klop In-reply-to: <41A58766.8030607@yahoo.com> To: Rob , freebsd-stable@freebsd.org Message-id: MIME-version: 1.0 Content-type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 Content-transfer-encoding: 7BIT User-Agent: Opera M2/7.54 (FreeBSD, build 751) References: <41A2C5C0.3080908@yahoo.com> <2566.10.0.0.26.1101241872.squirrel@10.0.0.26> <41A3EA0F.3080500@yahoo.com> <41A58766.8030607@yahoo.com> Subject: port make index (was: Re: make -j$n buildworld : use of -j investigated) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2004 09:10:02 -0000 On Thu, 25 Nov 2004 16:19:02 +0900, Rob wrote: > Rob wrote: >> Brian Szymanski wrote: >> >>> Did you try any machines that used Hyperthreading? I'd be interested to >>> see how those machines fare based on the number of logical and real >>> CPUs. >>> >>> >>>> Although people suggest "-j4" as optimal in general >>>> case, I have come to a very different conclusion: >>>> >>>> 1) single CPU with enough RAM (2 GHz, 512 MB) >>>> there's no significant speed up in the range >>>> "-j1" to "-j9". >>>> So "-j1" is as good as "-j9". >>> >>> >>> >>> If you went to all that trouble, you might as well post the numbers :-) >> Time unit is minutes. >> CPU: 2x800 MHz 2000 MHz 333 MHz >> RAM: 1024 MB 512 MB 64 MB >> -j -------------------------------- >> 1 99 50 276 >> 2 58 49 291 >> 3 58 50 367 >> 4 57 50 547 >> 5 58 49 >> 6 58 50 >> 7 57 50 >> 8 58 50 >> 9 58 50 > > I have run another test on a 700 MHz, 128 MB PC, > and the following equation seems to hold for all > my tests. Calculate: > > time(minutes) * speed(MHz) * nproc / 1000 MHz > > and if this results in approximately 1, the system > is optimized. > > For example, in the above case, > > column 1: > -j1 : 99 * 800 * 2 / 1000 = 1.5 > -j2 : 58 * 800 * 2 / 1000 = 0.928 > > column 2: > -j1 : 50 * 2000 * 1 / 1000 = 1 > > column 3: > -j1 : 276 * 333 * 1 / 1000 = 0.919 > > another PC: > -j1 : 142 * 700 * 1 / 1000 = 0.994 > > -------------- > > All PCs have "standard" hardware. Off-the-shelf > mainboard, IDE harddisks, nothing special really. > > All this is done on 5.3-Stable systems and the time > listed (in minutes) is for the buildworld only: > "make -jn buildworld" > > Rob. Would all this work for 'make index' for the ports also? Or is this more io bound? I can't test this myself, because my laptop is to slow for making these tests any fun. Ronald. -- Ronald Klop, Amsterdam, The Netherlands