From owner-freebsd-arch@FreeBSD.ORG Sat Oct 8 03:43:40 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3D8316A41F for ; Sat, 8 Oct 2005 03:43:39 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 995EB43D46 for ; Sat, 8 Oct 2005 03:43:39 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by xproxy.gmail.com with SMTP id t15so586164wxc for ; Fri, 07 Oct 2005 20:43:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=HoVrmUvoT/5PKKpyG+DleJWFVBcFJzZ8Yd2Pdg8QK1Ux0d5iSbxuaHC+Rtb2qHKBfibJNceZStRJ4cOro5t34f1JccBtyGcG2XN+BsYeBDqv7wneCeQYoSg9BEzzcQ+cDB9kT0Dpt0td4WRrDaTr6pdWE/MS7LGUx6gIiWTCk3E= Received: by 10.70.103.14 with SMTP id a14mr2704105wxc; Fri, 07 Oct 2005 20:43:35 -0700 (PDT) Received: by 10.70.115.15 with HTTP; Fri, 7 Oct 2005 20:43:35 -0700 (PDT) Message-ID: <84dead720510072043x45a2181ch5eea8cbfe9ea50cb@mail.gmail.com> Date: Sat, 8 Oct 2005 09:13:35 +0530 From: Joseph Koshy To: freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Determining CPU topology on multi-core CPUs X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joseph Koshy List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2005 03:43:40 -0000 On multi-core P4/HTT CPU packages I need to distinguish between physically distinct CPUs in separate cores from HT CPU (a.k.a., 'threads') pairs. What is the best way a driver can obtain the CPU topology of a system? The bits in 'logical_cpus_mask' do not distinguish between multi-core and HT cpus. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy