SUMMARY: CPU cache query

From: Fletcher Cocquyt (fletcherc@ttmc.com)
Date: Fri Oct 11 1996 - 15:14:17 CDT


I asked:

Is there a way to query how much cache memory a CPU is running with
(Under Solaris 2.5)?
I know, in most cases, you can decode the banner string, but is there
a dynamic way to get it while the machine is up?

For example:

I ordered an Ultra 200 MHz CPU with 1Meg cache (part X1188A) and I want
to verify it actually has 1Meg of cache.

---------------------------------------------------------------------------

"Trevor Paquette" <TrevorPaquette@aec.ca> replied:

prtdiag -v will tell you..
gambler# /usr/platform/sun4u/sbin/prtdiag -v

System Configuration: Sun Microsystems sun4u Sun Ultra 1 UPA/SBus (UltraSPARC
167MHz)
System clock frequency: 84 MHz
Memory size: 256 Megabytes
       CPU Units: Frequency Cache-Size Version
            A: MHz MB Impl. Mask B: MHz MB Impl. Mask
            ---------- ----- ---- ---------- ----- ----
               167 0.5 10 2.2
                   ^^^ This is the Cache size ****

----------------------------------------------------------------------

NOTE: I could not find prtdiag in my SUNWkvm.u package (Solaris 2.5 rev A).
Looks like it might only come with Solaris 2.5.1 and only for the sun4d and u
architectures.
A truss reveals a call to openprom (7m) - has anyone written a good utility
to take advantage of all the info from this call?

----------------------------------------------------------------------
Fletcher Cocquyt fletch@ttmc.com (441) 299-2900
System Administrator Trout Trading Hamilton, Bermuda
----------------------------------------------------------------------

PS: Sun labelled the box wrong, I got the 1MB cache I paid for.



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:13 CDT