This is a discussion on Determining physical processors on SMT driven architectures within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi, Is there programatical any way of caliculating physical CPUs on IBM SMT driven archtitural machines. I am aware ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, Is there programatical any 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 |
| |||
| ananth.kandukuri@gmail.com wrote: > Hi, > Is there programatical any 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 > Have you looked in /proc (on the AIX system)? You might be surprised :-} Paul |
| |||
| Ananth - see below sysconf Subroutine The sysconf subroutine returns a number of processors using the following parameters: * _SC_NPROCESSORS_CONF: Number of processors configured * _SC_NPROCESSORS_ONLN: Number of processors online For more information, see sysconf Subroutine in AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 2. |
| ||||
| sergeyt.17@gmail.com wrote: > sysconf Subroutine lpar_get_info() on 5.3 ML03 or greater will also be useful. |