Friday, January 21, 2005

So what CPUs do I have?

There are several ways to get Solaris to tell you what cpus you have. The obvious thing would be for psrinfo to tell you, but it doesn't really:


% psrinfo -v
Status of virtual processor 0 as of: 01/21/2005 10:39:49
on-line since 01/11/2005 09:53:35.
The i386 processor operates at 2000 MHz,
and has an i387 compatible floating point processor.
Status of virtual processor 1 as of: 01/21/2005 10:39:49
on-line since 01/11/2005 09:53:39.
The i386 processor operates at 2000 MHz,
and has an i387 compatible floating point processor.


OK, so you can grope through the output from prtpicl -v, or you can use (at least on Solaris 10 where it works great) kstat cpu_info:::brand cpu_info:::implementation. I've written a cpuinfo script that tells me exactly what I want to know:


% cpuinfo
CPU 0:
AMD Opteron(tm) Processor 246
x86 (AuthenticAMD family 15 model 5 step 10 clock 2000 MHz)
CPU 1:
AMD Opteron(tm) Processor 246
x86 (AuthenticAMD family 15 model 5 step 10 clock 2000 MHz)


That's better than just a generic i386, isn't it?

Technorati:

No comments: