All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anantha Kiran Kandukuri <ananthakiran@gmail.com>
To: linuxppc-dev@ozlabs.org
Subject: Determining physical processors on SMT driven architectures
Date: Thu, 29 Sep 2005 10:49:16 +0530	[thread overview]
Message-ID: <dc204d3f0509282219580befb3@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1034 bytes --]

                 reply	other threads:[~2005-09-29  5:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dc204d3f0509282219580befb3@mail.gmail.com \
    --to=ananthakiran@gmail.com \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.