From owner-freebsd-stable@FreeBSD.ORG Tue Apr 13 21:11:04 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61D021065672 for ; Tue, 13 Apr 2010 21:11:04 +0000 (UTC) (envelope-from avg@freebsd.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id A39228FC1A for ; Tue, 13 Apr 2010 21:11:03 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id AAA07288; Wed, 14 Apr 2010 00:10:59 +0300 (EEST) (envelope-from avg@freebsd.org) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1O1nNr-000NFQ-67; Wed, 14 Apr 2010 00:10:59 +0300 Message-ID: <4BC4DDE2.3080008@freebsd.org> Date: Wed, 14 Apr 2010 00:10:58 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.24 (X11/20100321) MIME-Version: 1.0 To: Maho NAKATA References: <20100412.131213.4959786962516027.chat95@mac.com> <4BC3311F.5060503@icyb.net.ua> <4BC332F4.4040100@freebsd.org> <20100413.083300.725436840180020236.chat95@mac.com> In-Reply-To: <20100413.083300.725436840180020236.chat95@mac.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Only 70% of theoretical peak performance on FreeBSD 8/amd64, Corei7 920 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Apr 2010 21:11:04 -0000 on 13/04/2010 02:33 Maho NAKATA said the following: > From: Andriy Gapon >> Another question is what compilers (what versions of GCC) were used on both >> system to compile the program? > > Hi > > on Ubuntu $ gcc -v Using built-in specs. Target: x86_64-linux-gnu Configured > with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.1-4ubuntu9' > --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs > --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared > --enable-multiarch --enable-linker-build-id --with-system-zlib > --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix > --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 > --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc > --disable-werror --with-arch-32=i486 --with-tune=generic > --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu > --target=x86_64-linux-gnu Thread model: posix gcc version 4.4.1 (Ubuntu > 4.4.1-4ubuntu9) > > on FreeBSD % gcc44 -v Using built-in specs. Target: x86_64-portbld-freebsd8.0 > Configured with: ./../gcc-4.4-20100330/configure --disable-nls > --libdir=/usr/local/lib/gcc44 --libexecdir=/usr/local/libexec/gcc44 > --program-suffix=44 --with-as=/usr/local/bin/as --with-gmp=/usr/local > --with-gxx-include-dir=/usr/local/lib/gcc44/include/c++/ > --with-ld=/usr/local/bin/ld --with-libiconv-prefix=/usr/local > --with-system-zlib --disable-libgcj --prefix=/usr/local > --mandir=/usr/local/man --infodir=/usr/local/info/gcc44 > --build=x86_64-portbld-freebsd8.0 Thread model: posix gcc version 4.4.4 > 20100330 (prerelease) (GCC) Is this what was used to compile the code in hot path (the code that performs all the actual calculations)? The answer is not obvious. GCC 4.4 is known to produce better code for modern CPUs, partially because it has knowledge of recently introduced instructions. -- Andriy Gapon