From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 14 13:25:16 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 327D716A47B for ; Thu, 14 Sep 2006 13:25:16 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9585E43D46 for ; Thu, 14 Sep 2006 13:25:15 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id C8FE52094; Thu, 14 Sep 2006 15:25:11 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 4D664208E; Thu, 14 Sep 2006 15:25:11 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 81D50B85E; Thu, 14 Sep 2006 15:00:38 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Danny Braniss References: Date: Thu, 14 Sep 2006 15:00:38 +0200 In-Reply-To: (Danny Braniss's message of "Wed, 13 Sep 2006 09:36:01 +0300") Message-ID: <863bauk3gp.fsf@dwp.des.no> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: numbers don't lie ... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2006 13:25:16 -0000 Danny Braniss writes: > Im testing these 2 boxes, Sun X4100 and Dell-2950, and: > > SUN X4100: Dual Core AMD Opteron(tm) Processor 280 (2393.19-MHz K8-class= CPU) > one 70g sata disk > DELL 2950: Intel(R) Xeon(TM) CPU 3.20GHz (3192.98-MHz K8-class CPU) > 4 sata disks + raid0 > > they both run identical 6.1-STABLE. > > my 'cpu benchmark' shows the amd being much better than the intel. > but, doing a make buildworld give interesting results: > > dell-2950 : make -j16 TARGET_ARCH=3Damd64 buildworld : 24m17.41s real 1h3= m3.26s user 17m15.07s sys > dell-2950 : make -j8 TARGET_ARCH=3Damd64 buildworld : 24m8.28s real 1h2m5= 9.38s user 16m16.20s sys > > sunfire : make -j16 TARGET_ARCH=3Damd64 buildworld : 24m21.38s real 49m6.= 68s user 14m22.64s sys > sunfire : make -j8 TARGET_ARCH=3Damd64 buildworld : 23m47.69s real 48m53.= 58s user 13m44.81s sys > > which probably says something about my 'cpu benchmark' :-( > but why is the user time so much different between the boxes? I don't see what's so surprising. User time reflects time actually spent compiling stuff; you can see there that the Opteron is much faster than the Xeon. Sys time is time spent executing kernel code on behalf of the build, which is mostly time spent processing I/O requests (but does not include time spent actually reading from or writing to disks). The reason why there is no significant difference in wall time between the two is that buildworld is mostly bound by I/O and memory bandwidth, not by CPU power. If you have enough memory, place /usr/src and /usr/obj on malloc()-backed RAM disks and see if it makes any difference. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no