On Thu, Jun 13, 2002 at 10:01:28AM -0400, [EMAIL PROTECTED] wrote:
> I have a C program I use to determine the number, type and speed of
> processors on a solaris system, which I have included at the end of this
> message.  I am interested in coming up with similar scripts for HPUX, Tru64,
> Linux and AIX.  Any suggestions as to what are the right system calls or, if
> anyone already has them, completed scripts, would be greatly appreciated.

For Linux, you can look at /proc/cpuinfo.  I don't have a MP machine
(yet?) but here's a sample of a SP machine:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 5
model           : 4
model name      : Pentium MMX
stepping        : 3
cpu MHz         : 200.458
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : yes
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8 mmx
bogomips        : 399.76

-- 
Theo Van Dinter, [EMAIL PROTECTED][EMAIL PROTECTED]
Consultant, Collective Technologies (www.collectivetech.com)
Systems Administrator, bblisa.org/kluge.net


---
Send mail for the `bblisa' mailing list to `[EMAIL PROTECTED]'.
Mail administrative requests to `[EMAIL PROTECTED]'.

Reply via email to