From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by ozlabs.org (Postfix) with ESMTP id 3313F68336 for ; Thu, 29 Sep 2005 15:25:59 +1000 (EST) Received: by xproxy.gmail.com with SMTP id s16so1295484wxc for ; Wed, 28 Sep 2005 22:25:58 -0700 (PDT) Message-ID: Date: Thu, 29 Sep 2005 10:49:16 +0530 From: Anantha Kiran Kandukuri To: linuxppc-dev@ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1152_21834323.1127971156216" Subject: Determining physical processors on SMT driven architectures Reply-To: Anantha Kiran Kandukuri List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_1152_21834323.1127971156216 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Is there a programatical way of caliculating physical CPUs on IBM SMT driven archtitural machines. I am aware of commands of sort "lsdev -C -c processor" and "smtctl". But is there any API to do same thing. I saw "processor_info" strucutre in "/usr/include/sys/iplcb.h" contains information i am looking for. Is there a way to access this. Linux on IntelHT, stores this info in "/proc/cpuinfo" file. Similarly AIX stores this info in "/dev/pmem" file. In KDB, "ipl" subcommand actually parses file "/dev/pmem" to access "processor_info" strctures. Can i simulate these KDB commands in a programatical fashion. Atleast, are there "CPUID" sort of assembly instructions in AIX, so that i can probe for actual number of CPUs. Any help is appreciated. Thanks -Ananth -- ------=_Part_1152_21834323.1127971156216 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi,
 Is there a programatical way of caliculating physical CPUs on=20 IBM
SMT driven archtitural machines.

 I am aware of commands of sort=20 "lsdev -C -c processor" and "smtctl".
But is there any API to do same thing.=20 I saw "processor_info"
strucutre in "/usr/include/sys/iplcb.h" contains=20 information i am
looking for. Is there a way to access this.

 Linux on=20 IntelHT, stores this info in "/proc/cpuinfo" file. Similarly
AIX stores this=20 info in "/dev/pmem" file. In KDB, "ipl" subcommand
actually parses file=20 "/dev/pmem" to access "processor_info" strctures.
Can i simulate these KDB=20 commands in a programatical fashion.

 Atleast, are there "CPUID" sort of=20 assembly instructions in AIX, so
that i can probe for actual number of=20 CPUs.

 Any help is appreciated.

Thanks
-Ananth
--
------=_Part_1152_21834323.1127971156216--