Determining physical processors on SMT driven architectures
Anantha Kiran Kandukuri
ananthakiran at gmail.com
Thu Sep 29 15:19:16 EST 2005
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
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20050929/d42c1c41/attachment.htm>
More information about the Linuxppc-dev
mailing list