Solaris Tips : CPU Cache Sizes, Changing System Date

Tip #1: Finding the CPU cache sizes from Solaris operating environment

Use the prtpicl utility to list out system configuration, and look for the cache sizes within that output.

eg.,

$ /usr/sbin/prtpicl -v |grep cache
              :l1-icache-size    0x10000
              :l1-icache-line-size       0x40
              :l1-icache-associativity   0x2
              :l1-dcache-size    0x10000
              :l1-dcache-line-size       0x40
              :l1-dcache-associativity   0x2
              :l2-cache-size     0x500000
              :l2-cache-line-size        0x100
              :l2-cache-associativity    0xa

[Updated 01/14/13] The above output was gathered from an M4000 system that has SPARC64 VII processors.

Recent update releases of Solaris 10 and 11 show the prtpicl reported cache sizes in decimal numbers.

Here is a slightly improved prtpicl command that filters out unwanted output. (Courtesy: Georg)

/usr/sbin/prtpicl -v -c cpu | egrep "^ +cpu|ID|cache"

Tip #2: Changing the System Date

Use date to change the system date. For example, to set the system date to March 9, 2008 08:15 AM, run the following command. Syntax: date mmddHHMMyy

#date 0309081508

Sun Mar 9 08:15:03 PST 2008
Comments:

Hi,

0x10000 is 65536 in decimal. is this 64kbit, that is 8kbyte L1$?
How do you interpret these numbers?
What CPU is this?

wbr,

charlie

Posted by Karoly Vegh on January 14, 2013 at 08:40 AM PST #

Charlie, SPARC64 VII is the processor. 64 KB is the L1 I-cache size, and it has the same 64 KB size for L1 D-cache too. The output in the example shows 5 MB L2 cache. Note that those are per core cache sizes.

Recent updates of Solaris 10 and 11 show the prtpicl reported cache sizes in decimal numbers.

Posted by Giri Mandalika on January 14, 2013 at 09:40 AM PST #

Nice information.
I know this is not releted with this topic but would like to know...

I need information to consolidate/refresh old servers into new one.

do we have any tool for Sun servers?

Please suggest.

Pk

Posted by guest on January 15, 2013 at 12:57 AM PST #

Hey, Many thanks for this post!

Your tips are awesome and I'll start implementing them on my blog as well.

Anyone is invited to visit:

http://ITTips4Pros.blogspot.com

Thanks,
IT Tips 4 Pros Team
(http://ITTips4Pros.blogspot.com)

Posted by IT Tips 4 Pros on January 29, 2013 at 02:46 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Benchmark announcements, HOW-TOs, Tips and Troubleshooting

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today