From owner-freebsd-smp@FreeBSD.ORG Tue Oct 10 19:46:03 2006 Return-Path: X-Original-To: freebsd-smp@freebsd.org Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A87CE16A5A0 for ; Tue, 10 Oct 2006 19:46:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DD4843D70 for ; Tue, 10 Oct 2006 19:45:59 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k9AJjrIJ089790; Tue, 10 Oct 2006 15:45:53 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-smp@freebsd.org Date: Tue, 10 Oct 2006 15:43:28 -0400 User-Agent: KMail/1.9.1 References: <20061009114520.1355.qmail@web8608.mail.in.yahoo.com> <20061010181115.GB75278@lor.one-eyed-alien.net> <200610101555.55558.joao@matik.com.br> In-Reply-To: <200610101555.55558.joao@matik.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200610101543.29138.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Tue, 10 Oct 2006 15:45:53 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/2020/Tue Oct 10 14:11:22 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: JoaoBR Subject: Re: Hyperthreading Issues (on Athlon64?) X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Oct 2006 19:46:03 -0000 On Tuesday 10 October 2006 14:55, JoaoBR wrote: > On Tuesday 10 October 2006 15:11, Brooks Davis wrote: > > > My dmesg does not have the line about "Hyperthreading: 2 logical CPUs= ", > > > though. =A0But I had been pretty sure the Athlon64 chips didn't have = any > > > hyperthreading support. =A0Why is the HTT there? >=20 >=20 > HTT is NOT hyperthreading, HT is and HT does not exist on AMD64 Err, no. The HTT there stands for HyperThreading Technology. I should know as I added it. :) What it really means is that you can check one of the registers returned by cpuid 1 to see how many logical CPUs the current physical CPU package contains. Originally this was only used for hyperthreads, but it was reused for multi-core as well, so if you have a dual-core chip with 2 hyperthreads in each core, it reports 4 logical CPUs. If you have 2 cores, it reports 2 logical CPUs. If you have 1 core with 2 hyperthreads, it reports 2 logical CPUs. =2D-=20 John Baldwin