From owner-freebsd-smp@FreeBSD.ORG Tue Oct 10 18:11:29 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 3918A16A4A0 for ; Tue, 10 Oct 2006 18:11:29 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc91.asp.att.net (sccmmhc91.asp.att.net [204.127.203.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 821FB43D7E for ; Tue, 10 Oct 2006 18:11:19 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc91.asp.att.net (sccmmhc91) with ESMTP id <20061010181118m9100elb5re>; Tue, 10 Oct 2006 18:11:18 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id k9AIBGLb075784; Tue, 10 Oct 2006 13:11:16 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id k9AIBFdB075783; Tue, 10 Oct 2006 13:11:15 -0500 (CDT) (envelope-from brooks) Date: Tue, 10 Oct 2006 13:11:15 -0500 From: Brooks Davis To: Garance A Drosihn Message-ID: <20061010181115.GB75278@lor.one-eyed-alien.net> References: <20061009114520.1355.qmail@web8608.mail.in.yahoo.com> <452AE62B.4000000@nokia.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IiVenqGWf+H9Y6IX" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 Cc: freebsd-smp@freebsd.org 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 18:11:29 -0000 --IiVenqGWf+H9Y6IX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 10, 2006 at 01:59:39PM -0400, Garance A Drosihn wrote: > At 10:15 AM +1000 10/10/06, Arthur Hartwig wrote: > >ext kumaresh pandian wrote: > >>Hi all > >> =20 > >> =20 > >> How do i Find if the CPU is Hyperthreading enabled or not? I have=20 > >>tried using the mtables but i'm not able to figure it out. > >> > >Look for the HTT bit in the CPU features displayed when FreeBSD starts > >up. Here's an example from one of my systems, HTT is third from the > >right hand end of the CPU features list. > > > >Copyright (c) 1992-2005 The FreeBSD Project. > >Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > > The Regents of the University of California. All rights reserved. > >hartwig 1 10.09.2006-151040MPTable: > >Timecounter "i8254" frequency 1193182 Hz quality 0 > >CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2794.59-MHz 686-class CPU) > > Origin =3D "GenuineIntel" Id =3D 0xf27 Stepping =3D 7 > > > >Features=3D0xbfebfbff > > Features2=3D0x4400> > > Hyperthreading: 2 logical CPUs > >real memory =3D 2147483648 (2048 MB) > >avail memory =3D 2100936704 (2003 MB) >=20 > Huh. > I just got a dual-core Athlon64 machine, and the features list for > it says: >=20 > Features=3D0x178bfbff MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2, > HTT> > --- >=20 > My dmesg does not have the line about "Hyperthreading: 2 logical CPUs", > though. But I had been pretty sure the Athlon64 chips didn't have any > hyperthreading support. Why is the HTT there? To trick license managers and schedulers that know HTT, but not true multi-core. They report the physical cores a logical cores and then add an additional flag saying that they are really physical. -- Brooks --IiVenqGWf+H9Y6IX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD4DBQFFK+JCXY6L6fI4GtQRAkyRAJilrOFwvKRAN8PBQwlUY8ZD7fyLAKCrdb5e SsOFlagCl3wquQ7/3Yz1Dg== =VReY -----END PGP SIGNATURE----- --IiVenqGWf+H9Y6IX--