From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 28 09:49:55 2011 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69E8F106564A; Thu, 28 Jul 2011 09:49:55 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 485788FC16; Thu, 28 Jul 2011 09:49:55 +0000 (UTC) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id EE10E46B1A; Thu, 28 Jul 2011 05:49:54 -0400 (EDT) Date: Thu, 28 Jul 2011 10:49:54 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Andriy Gapon In-Reply-To: <4E2ED546.2080401@FreeBSD.org> Message-ID: References: <4E2ED546.2080401@FreeBSD.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Hackers Subject: Re: HTT vs SMT in x86 SMP topology reporting X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jul 2011 09:49:55 -0000 On Tue, 26 Jul 2011, Andriy Gapon wrote: > Can anybody explain to me why our _x86_ SMP topology discovery and reporting > code sometimes reports "HTT" and sometimes "SMT"? As in FreeBSD/SMP: %d > package(s) x %d core(s) x %d HTT threads vs FreeBSD/SMP: %d package(s) x %d > core(s) x %d SMT threads > > As I understand, and quoting Wikipedia (I know, I know), SMT stands for > simultaneous multithreading and is a generic term for a particular kind of > hardware multithreading: > http://en.wikipedia.org/wiki/Simultaneous_multithreading > > The only known (to me) implementation of SMT for x86 is Intel's > Hyper-Threading Technology aka HTT aka HT Technology aka hyperthreading: > http://en.wikipedia.org/wiki/Hyper-threading > http://software.intel.com/en-us/articles/intel-hyper-threading-technology-your-questions-answered/?wapkw=%28Intel+Hyper-Threading+Technology%29 Several MIPS platforms we run on support SMT. Typically this means a set of "weaker" threads sharing a single core, usually context switching as a result of memory access stalls in other threads, and perhaps sharing particularly expensive CPU features, such as a TLB. They sometimes come with high-performance message-passing facilities between threads, or even between cores, to supplement shared memory and IPIs. It may be that HTT is, among other things, a trademark of Intel. Robert