From owner-cvs-all@FreeBSD.ORG Sat Nov 10 20:05:51 2007 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80F6D16A419; Sat, 10 Nov 2007 20:05:51 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail05.syd.optusnet.com.au (mail05.syd.optusnet.com.au [211.29.132.186]) by mx1.freebsd.org (Postfix) with ESMTP id B0E6B13C4BD; Sat, 10 Nov 2007 20:05:44 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from c211-30-219-213.carlnfd3.nsw.optusnet.com.au (c211-30-219-213.carlnfd3.nsw.optusnet.com.au [211.30.219.213]) by mail05.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id lAAK5OgB007927 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 11 Nov 2007 07:05:26 +1100 Date: Sun, 11 Nov 2007 07:05:24 +1100 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Robert Watson In-Reply-To: <20071110152850.O29504@fledge.watson.org> Message-ID: <20071111063920.Q37525@delplex.bde.org> References: <200711081945.lA8JjKcW080540@repoman.freebsd.org> <47337724.9040108@FreeBSD.org> <47337940.6040909@root.org> <47340B74.9070004@freebsd.org> <4734B13C.6050008@root.org> <4735008D.7030600@FreeBSD.org> <20071110190555.I35816@delplex.bde.org> <47357937.6080400@FreeBSD.org> <4735CC65.50400@elischer.org> <20071110152850.O29504@fledge.watson.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Mailman-Approved-At: Sat, 10 Nov 2007 20:53:43 +0000 Cc: Maxim Sobolev , src-committers@freebsd.org, Bruce Evans , cvs-src@freebsd.org, cvs-all@freebsd.org, Julian Elischer , Colin Percival , Nate Lawson Subject: Re: cvs commit: src/sys/amd64/amd64 mp_machdep.c src/sys/i386/i386 mp_machdep.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Nov 2007 20:05:51 -0000 On Sat, 10 Nov 2007, Robert Watson wrote: > On Sat, 10 Nov 2007, Julian Elischer wrote: > >>> Bruce Evans wrote: >>>> Off is a good default since hyperthreading seems to be a pessimization in >>>> most casts. >>> >>> Well, actually it all depends on workload and scheduling. I believe ULE is >> ... >> However for most other loads HT turned out to be at best a wash and at >> worst a slight loss, so having it off will help the average user I think. > > This used to be the wisdom, but more recent testing has shown that HTT is at > worst a break-even and often a performance improvement--presumably some of > this is a result of better SMP support in FreeBSD, but some is also an > improvement of the basic HTT technology. A significant factor has been the > replacement of the P4 Xeon line from Intel, which had extortionately high > synchronization costs--more recent processors behave a lot better. While we > can make legitimate security arguments for/against HTT, I think the intuitive > "but it's a bad idea anyway so it doesn't hurt to turn it off" thinking > regarding HTT is no longer valid. To be specific, turning off HTT may lead > to modest or significant performance loss for our users. My comment was based on old wisdom and recent benchmarking of building kernels on nosedive and freefall. When nosedive became freefall, build times seemed to go up by about 10%. (The benchmarks were not very careful since I can't control the machine, and had to estimate the pessimization from gcc-3 -> gcc-4. The scheduler also changed from 4BSD to ULE. The machine is still lightly loaded). User times certainly went up by about 100%, which suggests that each logical processor is waiting half the time for the other on the same core, and makes user times incomparable with the non-HTT case. But freefall is a P4 Xeon, so most non-recent [Athlon] processors also behave better than it. Bruce