From owner-freebsd-stable@FreeBSD.ORG Wed May 25 22:16:05 2011 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 A3E3F1065675 for ; Wed, 25 May 2011 22:16:05 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from fep21.mx.upcmail.net (fep21.mx.upcmail.net [62.179.121.41]) by mx1.freebsd.org (Postfix) with ESMTP id E681D8FC13 for ; Wed, 25 May 2011 22:16:04 +0000 (UTC) Received: from edge03.upcmail.net ([192.168.13.238]) by viefep20-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110525215704.LLQE24739.viefep20-int.chello.at@edge03.upcmail.net>; Wed, 25 May 2011 23:57:04 +0200 Received: from pinky ([95.96.138.26]) by edge03.upcmail.net with edge id nxx21g01J0aMTqv03xx3fZ; Wed, 25 May 2011 23:57:04 +0200 X-SourceIP: 95.96.138.26 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: "FreeBSD Stable Mailing List" , "Josh Carroll" References: <4DDBB0C4.5010109@FreeBSD.org> Date: Wed, 25 May 2011 23:57:03 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/11.11 (Win32) X-Cloudmark-Analysis: v=1.1 cv=zlRBWuFCZaNL9+WHNm1pWLowY5Lx061w2zJBJiDkNAU= c=1 sm=0 a=2CeqBfwGSwcA:10 a=ESEUSsu7X_kA:10 a=bgpUlknNv7MA:10 a=kj9zAlcOel0A:10 a=pGLkceISAAAA:8 a=6I5d2MoRAAAA:8 a=s0OMC1h7Q3FzNymYiYUA:9 a=dDVboX9cf40vdH3Zap8A:7 a=CjuIK1q_8ugA:10 a=MSl-tDqOz04A:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: Subject: Re: [poll] hyperthreading_allowed, hlt_logical_cpus, mp_watchdog 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, 25 May 2011 22:16:05 -0000 On Tue, 24 May 2011 18:27:47 +0200, Josh Carroll wrote: >> Whatever you do, please leave at least some way (at least a tunable) to >> enable/disable HTT - some workloads are better with, and some without >> it, >> and some BIOSes are unreliable in enabling/disabling it :) > > I noticed that disabling HTT via the machdep.hyperthreading_allowed > tunable resulted in worse performance than disabling HTT via the BIOS. > I'm not sure if that is to be expected due to how the scheduler > ignores those cores or what, but just an observation I found while > testing my i7 2600k to see if I should leave HTT on or off for my > particular workloads. > > I was expecting only certain workloads to perform better with HTT on > and others better with it off. However, I haven't found a task that > performed better with HTT off. Some are almost equal (within a margin > of error), but most are faster with HTT enabled (see below for the > testing I did). > > For the tests below, I used an mdmfs for /usr/obj for all > buildworld/buildkernel tests and they were all performed after caching > the contents of /usr/src. I also ran each test 5 times and for each > data point, I took the best run time. For the ffmpeg tests, I used > -threads 0 to let it pick the number of threads to use. It seems > hyperthreading on the Sandy Bridge i7 may be worth leaving enabled, > though of course what I've tested below is just a small sample of > possible tasks. So as with any benchmark, the only relevant tests are > the things you use your machine for :) My workloads happen to all > benefit from having HTT enabled. > > Josh > > > buildworld (w/o HTT=-j5, w/HTT=-j11) > =============================== > HTT off: 558.65 seconds > HTT on: 501.01 seconds > > buildkernel (w/o HTT=-j5, w/HTT=-j7) > =============================== > HTT off: 188.80 seconds > HTT on: 187.03 seconds > > ffmpeg (10 min SD input - xvid/mp3) > =============================== > HTT off: 7.75 seconds > HTT on: 6.28 seconds > > ffmpeg (5 min 720p input - h264/aac) > =============================== > HTT off: 20.08 seconds > HTT on: 12.97 seconds > > ffmpeg (1 min 1080p input - h264/aac) > =============================== > HTT off: 38.91 seconds > HTT on: 30.79 seconds > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" I ones read about progress Intel made with HTT in newer cpu's. So it might very well depend on cpu type if the rumors about worse performance with HTT are true or not. Ronald.