Michael Closson wrote:
Hello All.

I'm looking for ways to do chip/core/thread detection on versions of solaris 
that don't support the core_id field in kstat's cpu_info.
For which versions of Solaris are you interested?
For AMD/Intel procs I can use sysconf() and CPUID.

For Sparc procs (like Niagra), I don't know how to get this information.  Is 
there an assemply language instruction similar to CPUID?
For sun4u systems, this information is generally encoded in the cpu id, in a platform specific way. 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. :)

Looking ahead, providing better observability into the hardware sharing relationships existing between CPU is something we're looking at now. Obviously, we can only go so far with psrinfo -vp. :)

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

Reply via email to