SUMMARY (UPDATE): prstat interpretation

From: Pandey, Abhimanyu <apandey_at_worcester.edu>
Date: Wed May 17 2006 - 14:32:58 EDT
Hello Gurus,

Some people wanted a better summary and I apologize to them for such a
cryptic response.  I did get very detailed insights from folks below.

I am including (verbatim) some of their emails:

1.	run mpstat, it will show you the CPU numbers for all processors
in 	your system. That number is not indicitave of the amount of
processors 	in the system.

2.	No, that looks right. If you take a look at the prtdiag -v
output, you'll see how Sun numbers the cores on the CPU's. From a
fully-populated V890:

========= CPUs ================

           Run   E$  CPU    CPU
Brd  CPU   MHz   MB Impl.   Mask
--- ----- ---- ---- ------- ----
 A  0, 16 1350 16.0 US-IV   3.1
 B  1, 17 1350 16.0 US-IV   3.1
 A  2, 18 1350 16.0 US-IV   3.1
 B  3, 19 1350 16.0 US-IV   3.1
 C  4, 20 1350 16.0 US-IV   3.1
 D  5, 21 1350 16.0 US-IV   3.1
 C  6, 22 1350 16.0 US-IV   3.1
 D  7, 23 1350 16.0 US-IV   3.1

This leaves the numbering open for quad-core CPU's, where I'm guessing
processor 0 (Board A, slot 0) will probably have cores numbered
0,8,16,24. So, what you are actually seeing is what _core_ the process
is running on, rather than the less-specific processor, or "CPU".



3. run psrinfo (with -v for verbose) to list the numbered processors.
Their number has to do probably with where they are installed on the
system, not necessarily incrementally.

An example, you might have five houses on say Deadend Ct., house number
1, 5, 9, 6, and 10.  They are not necesarily numbered 1,2,3,4,5, because
it leaves room for growth, and because one side of the street is even
numbers, the other odd.

So if there are multiple boards, they would have certain ranges. And
each board might not be fully populated, so as to spread out the
processing on the backplane.

Other responses were a combination or part of the above.


Regards,
Abhimanyu.






>ORIGINAL QUESTION:
>
>I have a sunfire 890 with 4 dual core cpu's.
>I did prstat on a relatively quiet system today and saw that PID 20138
>is running on cpu16.
>I only have 4 cpu's.  Why am I reading this wrong?  Also I see on PID
>20738 is on CPU17.
>
>
>#prstat (snip)
>20138 root     5168K 2992K cpu16    0    0  43:42:05  12% udtconf/1
>17302 JDICARL    28M   15M cpu1     0    0   0:22:28  12% udt/1
>9 root     9872K 8840K sleep   59    0   2:21:11 0.6% svc.configd/15
>
>
>
>SUMMARY:
>
>The output looks fine as is:
>
>Use following commands to get more info w.r.t. CPU:
>
>1. mpstat
>2. psrinfo
>3. prtdiag -v
>
>
>ACKNOWLEDGEMENTS (reverse chronological order)
>
>
>
>Steve Sandau [ssandau@gwi.net]
>Benton, Roger [Roger.Benton@phlx.com]
>Rainer.Heilke@atcoitek.com
>John Leadeham [jl@lammtarra.fslife.co.uk]
>francisco [frisco@blackant.net]
>Paveza, Gary [gary.paveza@AIG.COM]
>Lineberger, Aaron [alineberger@ncdoc.navy.mil]
>
>
>Thank you very much for such detailed responses.
>
>Regards,
>Abhimanyu Pandey
>_______________________________________________
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Wed May 17 14:33:35 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:58 EST