CPU info

  • Follow


hi, i need some information of the CPU and bytes sent and received by
my network interfaces. on linux i can find that on /proc/ files, but on
solaris i have no idea where to find that. can anyone help me?

thanx.

0
Reply bazoalto (10) 8/20/2005 2:57:54 PM

havis wrote:
> hi, i need some information of the CPU and bytes sent and received by
> my network interfaces. on linux i can find that on /proc/ files, but on
> solaris i have no idea where to find that. can anyone help me?

isainfo(1), psrinfo(1M) & kstat(1M).

And there is a small Java apps to browse the kstat hierarchy there:
http://www.petertribble.co.uk/Solaris/jkstat.html

Laurent
0
Reply Laurent 8/20/2005 3:13:03 PM


havis wrote:
> hi, i need some information of the CPU and bytes sent and received by
> my network interfaces. on linux i can find that on /proc/ files, but on
> solaris i have no idea where to find that. can anyone help me?
>
> thanx.

  Check the isalist and prsinfo commands, they should give you
all the information you might need about the processor(s) on your
system.
  Examples:

$ isalist -v
sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld
sparcv7 sparc

$ psrinfo -v
Status of processor 0 as of: 12/13/00 14:47:41
  Processor has been on-line since 11/05/00 13:26:42.
  The sparcv9 processor operates at 450 MHz, and has a
    sparcv9 floating-point processor.
Status of processor 2 as of: 12/13/00 14:47:41
  Processor has been on-line since 11/05/00 13:26:43.
  The sparcv9 processor operates at 450 MHz, and has a
    sparcv9 floating-point processor.



-- 
Alessandro Selli
http://alessandro.route-add.net
AVVERTENZA: i messaggi inviati a "trappola" non mi arriveranno.
WARNING: messages sent to "trappola" will never reach me.
0
Reply Alessandro 8/20/2005 8:19:48 PM

where can i find the size of the cache memory of the CPU?

0
Reply havis 8/22/2005 5:36:30 PM

havis wrote:
> where can i find the size of the cache memory of the CPU?
> 



# prtdiag -v

System Configuration: Sun Microsystems  sun4u SUNW,Sun-Blade-1000 
(UltraSPARC-III+)
System clock frequency: 150 MHZ
Memory size: 4GB

====================================CPUs====================================
                E$          CPU                    CPU
CPU  Freq      Size        Implementation         Mask    Status 
Location
---  --------  ----------  ---------------------  -----   ------
   0   900 MHz  8MB         SUNW,UltraSPARC-III+     2.3   on-line



                  ^
                  ^
                  |
                 | |

0
Reply Martin 8/22/2005 5:48:35 PM

havis wrote:
> where can i find the size of the cache memory of the CPU?
> 



# prtdiag -v

System Configuration: Sun Microsystems  sun4u SUNW,Sun-Blade-1000 
(UltraSPARC-III+)
System clock frequency: 150 MHZ
Memory size: 4GB

====================================CPUs====================================
                E$          CPU                    CPU
CPU  Freq      Size        Implementation         Mask    Status 
Location
---  --------  ----------  ---------------------  -----   ------
   0   900 MHz  8MB         SUNW,UltraSPARC-III+     2.3   on-line



                  ^
                  ^
                  |
                 | |

0
Reply Martin 8/22/2005 5:49:00 PM

havis wrote:

> where can i find the size of the cache memory of the CPU?
> 

prtdiag

--
Chris
0
Reply Chris 8/22/2005 5:54:24 PM

On 22/8/05 6:54, in article
430a114c$0$6471$cc9e4d1f@news-text.dial.pipex.com, "Chris Lawson"
<email_address@email_address.not> wrote:

> havis wrote:
> 
>> where can i find the size of the cache memory of the CPU?
>> 
> 
> prtdiag

# uname -sr
SunOS 5.10
# prtdiag -v
prtdiag: not implemented on i86pc

:-(

Cheers,

Chris

0
Reply Chris 8/22/2005 5:59:23 PM

Chris Ridd wrote:

> On 22/8/05 6:54, in article
> 430a114c$0$6471$cc9e4d1f@news-text.dial.pipex.com, "Chris Lawson"
> <email_address@email_address.not> wrote:
> 
> 
>>havis wrote:
>>
>>
>>>where can i find the size of the cache memory of the CPU?
>>>
>>
>>prtdiag
> 
> 
> # uname -sr
> SunOS 5.10
> # prtdiag -v
> prtdiag: not implemented on i86pc
> 
> :-(
> 
> Cheers,
> 
> Chris
> 

That's probably because it gets it's info from OBP so that probably 
means prtpicl won't work either.  :-(

--
Chris
0
Reply Chris 8/22/2005 6:15:29 PM

havis wrote:

> where can i find the size of the cache memory of the CPU?
> 

If all else fails look in the source code for http://www.memtest86.com 
as this seems to work out the cache.

--
Chris
0
Reply Chris 8/22/2005 6:23:56 PM

On 22/8/05 7:15, in article
430a163d$0$6470$cc9e4d1f@news-text.dial.pipex.com, "Chris Lawson"
<email_address@email_address.not> wrote:

> That's probably because it gets it's info from OBP so that probably

Probably.

> means prtpicl won't work either.  :-(

Actually, that *does* work. For each of the 4 virtual CPUs (this is on a
dual CPU box with hyperthreading on) it prints something like this:

          :name  cpus
             cpu (cpu, 56000004a3)
              :StateBegin        Fri Aug 19 16:12:54 2005
              :FPUType   i387 compatible
              :ProcessorType     i386
              :State     on-line
              :ID        0
              :device_type       cpu
              :reg       0
              :cpu-mhz   2992
              :vendor-id         GenuineIntel
              :family    15
              :cpu-model         4
              :stepping-id       1
              :type      0
              :ext-family        0
              :chunks    16
              :apic-id   0
              :chip#     0
              :cpuid-features    -1075053569
              :cpuid-features-ecx        25629
              :brand-string      Intel(r) Xeon(tm) CPU 3.00GHz
              :itlb-4K-2M-4M-associativity       0
              :itlb-4K-2M-4M-size        64
              :dtlb-4K-4M-associativity  0
              :dtlb-4K-4M-size   64
              :itrace-cache-associativity        8
              :itrace-cache-size         12288
              :sectored-l2-cache-associativity   8
              :sectored-l2-cache-line-size       64
              :sectored-l2-cache-size    1048576
              :devfs-path        /cpus/cpu
              :binding-name      cpu
              :instance  0
              :_class    cpu
              :name      cpu

I think each CPU has 1 MB of L2 cache, so the ":sectored-l2-cache-size" line
looks like the right value.

Cheers,

Chris

0
Reply Chris 8/22/2005 6:54:53 PM

Chris Ridd wrote:
> I think each CPU has 1 MB of L2 cache, so the ":sectored-l2-cache-size" line
> looks like the right value.

Ahhh, nice, thanks!
But is that a new Solaris 10 feature?
On a Solaris 9 / Celeron box, I get:
[snip]
  :brand-string                  Intel(R) Celeron(R) CPU 2.00GHz
  :itrace-cache-associativity    8
  :itrace-cache-size     12288
  :sectored-dcache-associativity         4
  :sectored-dcache-line-size     64
  :sectored-dcache-size  8192
[snip]

While I'm not sure of the size of the cache, I think it'd be more than 8KB.

On a Solaris 10 / Athlon box, I get the correct value.

Laurent
0
Reply Laurent 8/22/2005 8:29:48 PM

11 Replies
334 Views

(page loaded in 8.33 seconds)

Similiar Articles:


















7/24/2012 6:39:51 PM


Reply: