From owner-freebsd-performance@FreeBSD.ORG Thu Feb 14 10:07:02 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0AB7616A418 for ; Thu, 14 Feb 2008 10:07:02 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from postfix1-g20.free.fr (postfix1-g20.free.fr [212.27.60.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6A46113C457 for ; Thu, 14 Feb 2008 10:07:01 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by postfix1-g20.free.fr (Postfix) with ESMTP id 94B1922A3EC9 for ; Thu, 14 Feb 2008 10:45:03 +0100 (CET) Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id A4B983F61AA; Thu, 14 Feb 2008 10:45:01 +0100 (CET) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id 327683F61B8; Thu, 14 Feb 2008 10:45:01 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 143E89BF12; Thu, 14 Feb 2008 09:40:12 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 06024405B; Thu, 14 Feb 2008 10:40:12 +0100 (CET) Date: Thu, 14 Feb 2008 10:40:12 +0100 From: Jeremie Le Hen To: Todorov Message-ID: <20080214094011.GA92006@obiwan.tataz.chchile.org> References: <47A79ADA.9050900@paladin.bulgarpress.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47A79ADA.9050900@paladin.bulgarpress.com> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-performance@freebsd.org Subject: Re: SMP & HTT on 6.3 (P4) X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Feb 2008 10:07:02 -0000 Hi, On Tue, Feb 05, 2008 at 01:08:10AM +0200, Todorov wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > what do you think for HyperThreading (P4 GHz), which serves FBSD 6.3? > Now it's disabled by the BIOS but since today I've upgraded the machine > 5.5 to 6.3 though if under 6.XX series it worths or not. > > I've read for performance penalties under 5.XX series w/ HTT on. I'm not > going to change to ULE (it's said to be better for HTT awareness). ULE is broken on RELENG_6. Forget it. If you really want ULE, you'll have to upgrade to RELENG_7. Regarding HTT, I haven't heard of any performance improvement with HTT on FreeBSD. The scheduler have to be aware of it because HTT processors share the same cache lines (including L1). Unenlightened scheduling leads to an increase of cache miss (42% according [1]). This is not the case on any FreeBSD branch currently. Nonetheless Jeff Roberson is working on a CPU topology-aware scheduler implementation [2] but this is not even in -CURRENT yet. It will probably ends up in RELENG_8. Besides, Colin Percival has shown that HTT could lead to local information leak [3]. WRT to these informations, I advice you to disable HTT. Regards, [1] http://www.theinquirer.net/en/inquirer/news/2006/08/02/arm-is-no-fan-of-hyperthreading [2] http://jeffr-tech.livejournal.com/17426.html [3] http://www.daemonology.net/hyperthreading-considered-harmful/ -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >