From owner-freebsd-current@FreeBSD.ORG Sun Jan 11 18:06:09 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A55B91065677 for ; Sun, 11 Jan 2009 18:06:09 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from cauchy.math.missouri.edu (cauchy.math.missouri.edu [128.206.184.213]) by mx1.freebsd.org (Postfix) with ESMTP id 290B28FC13 for ; Sun, 11 Jan 2009 18:06:08 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from laptop3.gateway.2wire.net (cauchy.math.missouri.edu [128.206.184.213]) by cauchy.math.missouri.edu (8.14.3/8.14.3) with ESMTP id n0BHp1rq051074; Sun, 11 Jan 2009 11:51:02 -0600 (CST) (envelope-from stephen@math.missouri.edu) Message-ID: <496A31C7.2020107@math.missouri.edu> Date: Sun, 11 Jan 2009 11:52:07 -0600 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.19) Gecko/20090109 SeaMonkey/1.1.14 MIME-Version: 1.0 To: "Pedro F. Giffuni" References: <61484.71762.qm@web32708.mail.mud.yahoo.com> <20090111044448.GC5661@server.vk2pj.dyndns.org> <4969CC6D.6030707@mail.zedat.fu-berlin.de> <458984.49823.qm@web32708.mail.mud.yahoo.com> In-Reply-To: <458984.49823.qm@web32708.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "O. Hartmann" , freebsd-current@freebsd.org Subject: Re: Alternatives to gcc (was Re: gcc 4.3: when will it become standard compiler?) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jan 2009 18:06:09 -0000 Pedro F. Giffuni wrote: > > ----- Original Message ---- > ... >> Well, initially my question was triggered by reading a performance duell >> between FreeBSD 7/8, most recent U(n)buntu and OpenSolaris and someone >> stated the 3% performance gain of U(n)buntu over FreeBSD was due to the >> gcc4.3 compiler, which generates more efficient code. 3% mean >> performance gain could mean (as I made this experience) a better >> advantage in some special cases and having in mind numerical modelling >> running on my lab's FreeBSd box (yet, but I think this is about to >> change and move towards a RH Linux system due to the better support of >> HPC and, a pitty, our admins build the cluster with RH and not FBSD). >> > > Even when it can be measured, performance can be very subjective, performance > depends on many factors: the threading libraries, the options used to build the > packages, the filesystems and maybe even the position of the moon ;-). Most of > my numerical packages don't depend on the system compiler but rather depend on > what the ports system uses as the Fortran compiler so you will be glad to know > that we are indeed using gcc4.3 since last week. I also do quite a bit of numerical work. For me a 3% performance gain is not that much, and really becomes negligible compared to other issues. I have written some software that, a year ago, ran twice as fast under Fedora Linux than it did under FreeBSD. Now FreeBSD has completely caught up! And I didn't change the software itself in any substantial manner. My guess is that FreeBSD has improved its cache management/threading management considerably (because my programs (a) use large amounts of data and (b) are threaded). So, for me, a big difference is 2 to 1. A factor of 3% is definitely something dependent on the "position of the moon" as Pedro put it so eloquently. Stephen