Hi Eric, et.al.,

Sorry for the delay :p

On 2/2/07, Eric Saxe <[EMAIL PROTECTED]> wrote:
For which versions of Solaris are you interested?
That's still an open question.  Say 2.5 and up.  Since the info is
mostly arch specific, I'm hoping that the detection method won't be
unique for every combination of os_version and arch.


For sun4u systems, this information is generally encoded in the cpu id,
in a platform specific way.

Did sun4u procs even support multicores/threads?  If not, I can assume
that whatever sysconfig(_SC_NPROCESSORS_CONF) returns is all physical
procs.

For sun4v, as Dave said, the mappings are defined by a "machine
description" that the Hypervisor produces.

For Niagara I, cpuid/4 will give you a core / instruction pipeline id.
Obviously that's very processor specific. :)

Wow.  I'm really just looking for a way to determine the number of
cores per chip and the number of threads per core.

Right now I use kstat cpu_info and count the number of unique
chip_id's and core_is's, and do the math.


Thanks for the help!

Mike Closson
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to