Hi,<br>
Is there a programatical way of caliculating physical CPUs on
IBM<br>
SMT driven archtitural machines.<br>
<br>
I am aware of commands of sort
"lsdev -C -c processor" and "smtctl".<br>
But is there any API to do same thing.
I saw "processor_info"<br>
strucutre in "/usr/include/sys/iplcb.h" contains
information i am<br>
looking for. Is there a way to access this.<br>
<br>
Linux on
IntelHT, stores this info in "/proc/cpuinfo" file. Similarly<br>
AIX stores this
info in "/dev/pmem" file. In KDB, "ipl" subcommand<br>
actually parses file
"/dev/pmem" to access "processor_info" strctures.<br>
Can i simulate these KDB
commands in a programatical fashion.<br>
<br>
Atleast, are there "CPUID" sort of
assembly instructions in AIX, so<br>
that i can probe for actual number of
CPUs.<br>
<br>
Any help is appreciated.<br>
<br>
Thanks<br>
-Ananth<br>
--<br>