From owner-freebsd-current@FreeBSD.ORG Sat Sep 22 14:46:57 2012 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 070B6106564A; Sat, 22 Sep 2012 14:46:57 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id B79BF8FC0A; Sat, 22 Sep 2012 14:46:56 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id q8MEkjl1010174; Sat, 22 Sep 2012 07:46:45 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id q8MEkjmB010173; Sat, 22 Sep 2012 07:46:45 -0700 (PDT) (envelope-from sgk) Date: Sat, 22 Sep 2012 07:46:45 -0700 From: Steve Kargl To: Konstantin Belousov Message-ID: <20120922144645.GA10139@troutmask.apl.washington.edu> References: <505CDE9C.3060504@andric.com> <20120922112014.GH37286@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120922112014.GH37286@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Dimitry Andric , freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org Subject: Re: More kernel performance tests on FreeBSD 10.0-CURRENT 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: Sat, 22 Sep 2012 14:46:57 -0000 On Sat, Sep 22, 2012 at 02:20:14PM +0300, Konstantin Belousov wrote: > On Fri, Sep 21, 2012 at 11:39:40PM +0200, Dimitry Andric wrote: > > Hi all, > > > > As a followup to my previous post about the performance of FreeBSD 10.0 > > kernels compiled with different compilers (clang and gcc), I did another > > series of tests, now on a more modern machine (Core i5-based). I also > > tested the performance with different compiler optimization settings. > > > > The attached text file[1] contains more information about these tests, > > performance data, and my conclusions. Any errors and omissions are also > > my fault, so if you notice them, please let me know. > > > > The executive summary: GENERIC kernels compiled with clang 3.2 are again > > a little faster than those compiled with gcc 4.2.1. For gcc, compiling > > with -O2 also gives a slightly faster kernel than with -O1, but for > > clang there is no measurable difference between those flags. > > > > Again, many thanks to Gavin Atkinson for providing the required > > hardware. > ... > > > Conclusion: > > ----------- > > Kernels compiled with clang are a little faster in real time for building world, > > and in system time the difference is even larger, roughly 10%. For clang, the > > difference between -O1 and -O2 is not measurable, but for gcc, -O2 is slightly > > faster than -O1. > > > > Thank you very much for finishing the initial assessment. > In my opinion, this positively closes the issue of the uncertainicity > of the performance impact of the proposed clang use by default for the > base system. It does not close everything. The kernel does not use floating point. I showed last week that clang may have problems with floating point. -- Steve