> > 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.
The psrinfo(1M) command does this for you when you run it with "-vp" flags. - Alex Kolbasov _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
