For those who are wondering what cores are available on their CPUs and how they are related to virtual processors, I put a special version of psrinfo(1M) command at
http://www.opensolaris.org/os/community/performance/files/psrinfo.pl It is a perl script that works as a drop-in replacement for psrinfo91M) command, but with a twist. If you invoke it with '-vp' options it will print additional information for cores if your system is running on a multi-core CPU: On Niagara box: $ psrinfo.pl -vp The physical processor has 8 cores and 32 virtual processors (0-31) The core has 4 virtual processors (0-3) The core has 4 virtual processors (4-7) The core has 4 virtual processors (8-11) The core has 4 virtual processors (12-15) The core has 4 virtual processors (16-19) The core has 4 virtual processors (20-23) The core has 4 virtual processors (24-27) The core has 4 virtual processors (28-31) UltraSPARC-T1 (clock 1000 MHz) And on x86: $ psrinfo.pl -vp The physical processor has 2 cores and 4 virtual processors (0-3) The core has 2 virtual processors (0 1) The core has 2 virtual processors (2 3) x86 (GenuineIntel family 15 model 4 step 4 clock 3211 MHz) Intel(r) Pentium(r) D CPU 3.20GHz Caveat: The script uses kernel support that was introduced in Build 32. Due to a bug in sparc-specific code in builds 34 and 35 the new psrinfo command only supports core information on x86 platforms on these builds. The bug is fixed in build 36. There is a little blog entry about the new psrinfo command at http://blogs.sun.com/roller/page/akolb?entry=get_to_the_core If you have any issues with this command, please drop me an e-mail. - Alexander Kolbasov http://blogs.sun.com/akolb _______________________________________________ perf-discuss mailing list perf-discuss@opensolaris.org