Unix Technical Forum

Determining physical processors on SMT driven architectures

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 07:31 AM
ananth.kandukuri@gmail.com
 
Posts: n/a
Default Determining physical processors on SMT driven architectures

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:31 AM
Dohhhh
 
Posts: n/a
Default Re: Determining physical processors on SMT driven architectures

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 07:31 AM
aix@mail.com
 
Posts: n/a
Default Re: Determining physical processors on SMT driven architectures

If kdb has the output that you are wanting, why not use that...?


# kdb << END
ipl
END
#

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 07:31 AM
sergeyt.17@gmail.com
 
Posts: n/a
Default Re: Determining physical processors on SMT driven architectures

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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 07:39 AM
Gary R. Hook
 
Posts: n/a
Default Re: Determining physical processors on SMT driven architectures

sergeyt.17@gmail.com wrote:
> sysconf Subroutine


lpar_get_info() on 5.3 ML03 or greater will also be useful.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com