From owner-freebsd-current@FreeBSD.ORG Fri Dec 15 20:52:07 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 166D216A403 for ; Fri, 15 Dec 2006 20:52:07 +0000 (UTC) (envelope-from obrien@NUXI.org) Received: from dragon.NUXI.org (trang.nuxi.org [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 366F343CC2 for ; Fri, 15 Dec 2006 20:49:56 +0000 (GMT) (envelope-from obrien@NUXI.org) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.8/8.13.8) with ESMTP id kBFKpdC0055572; Fri, 15 Dec 2006 12:51:39 -0800 (PST) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.8/8.13.7/Submit) id kBFKpcGA055571; Fri, 15 Dec 2006 12:51:38 -0800 (PST) (envelope-from obrien) Date: Fri, 15 Dec 2006 12:51:38 -0800 From: "David O'Brien" To: Stefan Ehmann Message-ID: <20061215205138.GB55276@dragon.NUXI.org> Mail-Followup-To: obrien@freebsd.org, Stefan Ehmann , freebsd-current@freebsd.org, Peter Jeremy , Steve Kargl References: <20061213192150.CF83D16A417@hub.freebsd.org> <458235EC.80300@samsco.org> <200612151250.10033.shoesoft@gmx.net> <200612151914.53705.shoesoft@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200612151914.53705.shoesoft@gmx.net> X-Operating-System: FreeBSD 7.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.11 Cc: Peter Jeremy , freebsd-current@freebsd.org, Steve Kargl Subject: Re: Let's use gcc-4.2, not 4.1 -- OpenMP X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 20:52:07 -0000 On Fri, Dec 15, 2006 at 07:14:53PM +0100, Stefan Ehmann wrote: > > CPU: AMD Athlon(TM) XP 2700+ (2166.44-MHz 686-class CPU) .. > Settings/Compiler | gcc-3.4 | gcc-4.1 | gcc-4.2 > ----------------------------+---------+---------+--------- > -O2 | 6.46s | 6.67s | 6.38s > -O2 -funroll-loops | 4.44s | 4.16s | 4.02s > -O2 -march=athlon-xp -fun.. | 4.39s | 4.38s | 4.26s > -O3 | 6.14s | 5.23s | 5.16s > -O3 -funroll-loops | 4.24s | 4.87s | 4.95s > -O3 -march=athlon-xp -fun.. | 4.19s | 4.90s | 5.07s A fine example that -O3 isn't always better than -O2. I wonder if you're blowing the L2 cache. IIRC, all Athlon XP 2700+ are the Thoughbread core, which has only 256KB L2. -- -- David (obrien@FreeBSD.org)