From owner-freebsd-stable@FreeBSD.ORG Wed May 3 17:36:00 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4911E16A402 for ; Wed, 3 May 2006 17:36:00 +0000 (UTC) (envelope-from vinny@tellurian.com) Received: from mail1.tellurian.net (mail1.tellurian.net [216.182.1.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8FE543D4C for ; Wed, 3 May 2006 17:35:59 +0000 (GMT) (envelope-from vinny@tellurian.com) Received: from leviathon.tellurian.com (leviathon.tellurian.net [216.182.41.250]) by mail1.tellurian.net ([216.182.1.23] Tellurian Networks Mail Server version 3.7c-4) with ESMTP id 390170486 for multiple; Wed, 03 May 2006 13:35:58 -0400 Message-Id: <7.0.1.0.2.20060503132315.09da2cf8@tellurian.com> X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 Date: Wed, 03 May 2006 13:36:04 -0400 To: Chuck Swiger ,"Marc G. Fournier" From: Vinny Abello In-Reply-To: <4458CE13.6060804@mac.com> References: <20060503113955.U1147@ganymede.hub.org> <4458CE13.6060804@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Authenticated-User: vinny@tellurian.com X-Ultimate-Internet-Connection: Tellurian Networks Cc: freebsd-stable@freebsd.org Subject: Re: Hyperthreading in 6.x ... still frowned upon? 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, 03 May 2006 17:36:01 -0000 At 11:36 AM 5/3/2006, Chuck Swiger wrote: >Marc G. Fournier wrote: >>In 4.x, it was a 'shut it off' sort of deal .. my new amd64 don't >>appear to have it enabled, but my older i386 server that I just >>upgraded to 6.x does: >> >>user pid %cpu %mem vsz rss tt state start time command >>root 14 104.0 0.0 0 8 ?? RL 11:38AM 0:55.02 [idle: cpu0] >>root 11 99.1 0.0 0 8 ?? RL 11:38AM 0:00.00 [idle: cpu3] >>root 13 99.1 0.0 0 8 ?? RL 11:38AM 0:00.00 [idle: cpu1] >>root 12 98.0 0.0 0 8 ?? RL 11:38AM 0:54.54 [idle: cpu2] >> >>Is it still something that I should disable, and, if so, how in 6.x? >You should test it for the workloads you have, but most of the time, >HT isn't especially helpful. AMD64 CPUs come in dual-core format >rather than HT-enabled. If you've seen "HT" or "HTT" applied to an >AMD system, it's likely an abbreviation for "HyperTransport" or >"HyperTransport Technology". An Intel technical rep that gave a presentation on upcoming Intel VT technology in processors (Virtualization Technology) that I attended indicated that Hyperthreading was really designed to start getting programmers to program threading into their applications in preparation of dual core processors that we now have. Hyperthreading will likely be removed in future processors now that dual core technology is standard. In some instances it created a slight performance boost. Hyperthreading is known to hurt performance under high loads because it diminishes the amount of cache available for each thread. Many times, having no Hyperthreading but more CPU cache available increases performance under high loads. I typically disable Hyperthreading on all my servers as they are dual processor or dual core/dual processor or better anyway. I tend to get better results (with my applications) without Hyperthreading. I've been experimenting with leaving it on with my workstation as it's not a dual core or dual processor. The reason hyperthreading frowned upon in multiuser scenarios of FreeBSD is due to a vulnerability found in Hyperthreading: http://lists.freebsd.org/pipermail/freebsd-security/2005-May/002903.html Hyperthreading needs to be disabled in the BIOS. Often is referred to as a "Virtual Processor" in the BIOS. Vinny Abello Network Engineer Server Management vinny@tellurian.com (973)300-9211 x 125 (973)940-6125 (Direct) PGP Key Fingerprint: 3BC5 9A48 FC78 03D3 82E0 E935 5325 FBCB 0100 977A Tellurian Networks - The Ultimate Internet Connection http://www.tellurian.com (888)TELLURIAN "Courage is resistance to fear, mastery of fear - not absence of fear" -- Mark Twain