From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28711 invoked by alias); 19 Apr 2004 15:13:42 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 28701 invoked from network); 19 Apr 2004 15:13:40 -0000 Received: from unknown (HELO mgr2.xmission.com) (198.60.22.202) by sources.redhat.com with SMTP; 19 Apr 2004 15:13:40 -0000 Received: from [198.60.22.201] (helo=mgr1.xmission.com) by mgr2.xmission.com with esmtp (Exim 3.35 #1) id 1BFaSn-0008PP-02; Mon, 19 Apr 2004 09:13:37 -0600 Received: from [198.60.22.20] (helo=xmission.xmission.com) by mgr1.xmission.com with esmtp (Exim 4.30) id 1BFaSn-0007mz-Qw; Mon, 19 Apr 2004 09:13:37 -0600 Received: from llewelly by xmission.xmission.com with local (Exim 3.35 #1 (Debian)) id 1BFaSn-00050d-00; Mon, 19 Apr 2004 09:13:37 -0600 To: Grumble Cc: gcc-help@gcc.gnu.org References: <408396AA.1020204@kma.eu.org> From: llewelly@xmission.com Date: Mon, 19 Apr 2004 15:13:00 -0000 In-Reply-To: <408396AA.1020204@kma.eu.org> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Subject: Re: Athlon 64 3400 vs Opteron 148 Content-Type: text/plain; charset=us-ascii X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mgr1.xmission.com X-Spam-Level: X-Spam-Status: No, hits=0.3 required=8.0 tests=NO_REAL_NAME autolearn=no version=2.63 X-SA-Exim-Mail-From: llewelly@xmission.com X-SA-Exim-Version: 3.1 (built Wed Aug 20 09:38:54 PDT 2003) X-SA-Exim-Scanned: Yes X-SW-Source: 2004-04/txt/msg00247.txt.bz2 Grumble writes: > As far as I can tell, the Athlon 64 3400 and the Opteron 148 are quite > similar. They both run at 2.2 GHz, and both have a 1 MB L2 cache. > > The two (minor) differences are: > > Registered vs Unbuffered RAM > Dual-Channel vs Single-Channel memory controller > > I have access to a Mobile Athlon 64 3400: > > processor : 0 > vendor_id : AuthenticAMD > cpu family : 15 > model : 4 > model name : AMD Athlon(tm) 64 Processor 3400+ > stepping : 8 > cpu MHz : 2200.137 > cache size : 1024 KB > fpu : yes > fpu_exception : yes > cpuid level : 1 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm > 3dnowext 3dnow > bogomips : 4336.64 > TLB size : 1088 4K pages > clflush size : 64 > address sizes : 40 bits physical, 48 bits virtual > power management: ts fid vid ttp > > > SPEC CINT2000 Result for AMD's Opteron 148: > http://www.specbench.org/osg/cpu2000/results/res2003q4/cpu2000-20031117-02631.html > > So far, I have only run mcf. > > http://www.spec.org/cpu2000/CINT2000/181.mcf/docs/181.mcf.html > > I am disappointed because my results are worse than AMD's. On the > Opteron, mcf base took 250 seconds to complete. On the Athlon 64, mcf > base took 316 seconds (26.4% slower) to complete. > > I used gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-24) while AMD > used SuSE gcc 3.3.1 compiler (from SuSE Linux 9.0). > > What could explain the large difference? Did gcc improve that much > between 3.2 and 3.3? >From gcc.gnu.org/gcc-3.3/changes.html : * The following changes have been made to the IA-32/x86-64 port: + SSE2 and 3dNOW! intrinsics are now supported. + Support for thread local storage has been added to the IA-32 and x86-64 ports. + The x86-64 port has been significantly improved. The only way to know for sure, however, is download the source for SuSE gcc 3.3.1 (note, linux distro gcc releases generally differ slightly from vanilla FSF releases with the same version number.), build it, and test it. Note that compiler flags can make a substantial difference as well, and sometimes in surprising ways; see http://www.coyotegulch.com/acovea/acovea_4.html for an example with a different version of gcc. > I've read that registered RAM is actually slower > than unbuffered RAM. Would the dual-channel help? [snip] In the most extreme case, dual-channel could double performance (this would be for code that is bound solely by memory bandwidth). This situation is probably very rare, however.