From owner-freebsd-stable@FreeBSD.ORG Wed Apr 14 16:34:47 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 2A2B01065678 for ; Wed, 14 Apr 2010 16:34:47 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.24]) by mx1.freebsd.org (Postfix) with ESMTP id B9AB08FC08 for ; Wed, 14 Apr 2010 16:34:46 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 5so101317qwi.7 for ; Wed, 14 Apr 2010 09:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=3phWfxi39q2q2c3iAYiZz38ZWcFKjPTaLgxw/2j3tKc=; b=LNxAMli2HViDcqTZtMGWPlhfbKhaUoquU2YiaiMEK7MhJnPNeErkP4eLZZUMg2Ve0q /b0InqN8ZB/RVAA0lv9cHqQMMyWkjQzfOyWGhpuP4tpy+vfQAdfeoX86V8SqJozeNTz0 gub6Lfq4yzA4kRYw0oIxZo/EuFpnyyJQslxRs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=sBjFcfqQl5L1kHVjqBaKNrwUGAjxac8PVgROliK86ASUUaYjNT7sCoi+sdWFkbntS8 iiPCgbjsVnXXvg2xnYNEyu08Q8xipC3WY8+ylmsqRCVlUSpuayPr9HKo2LbL1d9dApj8 rTn/e9PN1xDiUHFM8Edoe0zpY6ohwKsrMtyZg= MIME-Version: 1.0 Received: by 10.229.85.147 with HTTP; Wed, 14 Apr 2010 09:34:45 -0700 (PDT) In-Reply-To: <4BC5DEB4.1090208@freebsd.org> References: <4BC402B7.5000400@modulus.org> <20100414.082109.29593248145846106.chat95@mac.com> <4BC5DEB4.1090208@freebsd.org> Date: Wed, 14 Apr 2010 11:34:45 -0500 Received: by 10.229.191.1 with SMTP id dk1mr3790724qcb.18.1271262885702; Wed, 14 Apr 2010 09:34:45 -0700 (PDT) Message-ID: From: Adam Vande More To: Andriy Gapon Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: alc@freebsd.org, Maho NAKATA , alan.l.cox@gmail.com, freebsd-stable@freebsd.org, als@modulus.org Subject: Re: How to reproduce: 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: Wed, 14 Apr 2010 16:34:47 -0000 On Wed, Apr 14, 2010 at 10:26 AM, Andriy Gapon wrote: > on 14/04/2010 02:21 Maho NAKATA said the following: > > 4. run dgemm. > > % ./dgemm > > n: 3000 > > time : 134.648208 or 16.910525 > > Mflops : 31943.419695 > > n: 3100 > > time : 148.122279 or 18.615284 > > Mflops : 32017.357408 > > n: 3200 > > time : 162.488885 or 20.430651 > > Mflops : 32087.318295 > > n: 3300 > > time : 178.497079 or 22.446093 > > Mflops : 32030.420499 > > n: 3400 > > time : 195.550715 or 24.586152 > > Mflops : 31981.873273 > > n: 3500 > > time : 213.403379 or 26.825058 > > Mflops : 31975.513363 > > n: 3600 > > ... > > above output is on Core i7 920 (2.66GHz; TurboBoost on) > > My results: > $ ./dgemm > n: 3000 > time : 54.151302 or 28.189781 > Mflops : 19162.263125 > n: 3100 > time : 60.157449 or 32.214141 > Mflops : 18501.570537 > n: 3200 > time : 65.753191 or 34.114872 > Mflops : 19216.393378 > > CPU: > CPU: Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz (2653.35-MHz K8-clas= s > CPU) > Origin =3D "GenuineIntel" Id =3D 0x10676 Stepping =3D 6 > > > Features=3D0xbfebfbff > > Features2=3D0x8e39d > AMD Features=3D0x20100800 > AMD Features2=3D0x1 > TSC: P-state invariant > =E2=8B=AE > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > FreeBSD/SMP: 1 package(s) x 2 core(s) > > FreeBSD: > FreeBSD 8.0-STABLE r205070 amd64 > > Please note that the system was not dedicated to the test, I had > Xorg+KDE3+thunderbird+skype+kopete+konsole(s) plus a bunch of daemons > running. > That probably explains irregularities in the results. > > I am not sure how exactly theoretical maximum should be calculated, I use= d > 2 * > 2.66G * 4 =E2=89=88 21.3G. > And so 19.2G / 21.3G =E2=89=88 90%. > > Not as bad as what you get. > Although not as good as what you report for Linux. > But given the impurity and imprecision of my test=E2=80=A6 > > P.S. the machine is two-core obviously :-) > Don't have anything with more cpus/cores handy. > > P.P.S. Having _only glimpsed_ at the source I think that there are some > things > that GotoBLAS doesn't try to do on FreeBSD that it tries to do on Linux. > Like setting CPU-affinity for the threads, or avoiding HTT pseudo-cores. > Those things are possible on FreeBSD. > Perhaps, there are more things like that. > > Mine is also a live desktop enviro, kde4+ n: 3000 time : 116.377609 or 16.696066 Mflops : 32353.729042 n: 3100 time : 127.230336 or 17.274867 Mflops : 34501.695325 n: 3200 time : 139.018175 or 18.342056 Mflops : 35741.074976 n: 3300 time : 152.519365 or 20.154714 Mflops : 35671.942364 n: 3400 time : 166.248145 or 21.952426 Mflops : 35818.874941 n: 3500 time : 182.565385 or 24.492597 Mflops : 35020.581786 n: 3600 time : 198.551018 or 26.906992 Mflops : 34689.094992 n: 3700 time : 215.428919 or 28.574964 Mflops : 35462.294838 n: 3800 ^C CPU: Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz (3313.71-MHz K8-class CPU) Origin =3D "GenuineIntel" Id =3D 0x106e5 Family =3D 6 Model =3D 1e St= epping =3D 5 Features=3D0xbfebfbff Features2=3D0x98e3fd AMD Features=3D0x28100800 AMD Features2=3D0x1 TSC: P-state invariant That's about 67% utilization, turning off HTT drops it more. HTT on the newer cores is good, not bad. --=20 Adam Vande More