You could use the bb-cpu2 script from deadcat... Sample output (formatting hosed from email) Note this is a dual core so the difference in System/physical cpus (also works for hyperthreading):
Thu Jan 25 08:37:23 EST 2007
mpstat info (/usr/bin/mpstat )
Linux 2.6.16.27-0.6-smp (hornet) 01/25/2007
08:37:22 AM CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s 08:37:22 AM all 12.06 0.00 1.23 0.63 0.06 0.29 0.00 85.73 1037.52
prtdiag info (from /proc/cpuinfo )
CPU CPU MHz CACHE (KB) Bogomips
0 3600.249 1024 KB 7206.22 Intel(R) Xeon(TM) CPU 3.60GHz 1 3600.249 1024 KB 7200.61 Intel(R) Xeon(TM) CPU 3.60GHz 2 3600.249 1024 KB 7200.34 Intel(R) Xeon(TM) CPU 3.60GHz 3 3600.249 1024 KB 7200.49 Intel(R) Xeon(TM) CPU 3.60GHz
uname info (/bin/uname -X | /usr/bin/egrep Node|NumCPU )
Node = hornet System CPUs = 4 Physical CPUs = 2 Boot Command = root=/dev/disk/by-label/root apm=off acpi=off resume=/dev/sda2 splash=silent elevator=as acpi=ht showopts Kernel Version = Linux version 2.6.16.27-0.6-smp (geeko at buildhost) (gcc version 4.1.0 (SUSE Linux)) #1 SMP Wed Dec 13 09:34:50 UTC 2006 Version Release: LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64 " SUSE LINUX 10.1 (X86-64) VERSION = 10.1
- ID: bb-cpu2.sh, v 3.9 2005/09/05 -
From: Trent Melcher <trent at wispair.net> Reply-To: <hobbit at hswn.dk> Date: Thu, 25 Jan 2007 07:37:41 -0600 To: <hobbit at hswn.dk> Subject: RE: [hobbit] number of cpu on the client
-----Original Message----- From: Gildas Le Nadan [mailto:gn1 at sanger.ac.uk] Sent: Thursday, January 25, 2007 3:29 AM To: hobbit at hswn.dk Subject: [hobbit] number of cpu on the client
Hi,
Would it be possible to have the hobbit client reporting the number and type of CPU (creating a new [cpu] section)?
A "cat /proc/cpuinfo" on a linux machine will do the trick, but I don't know if this would be easy for the other OSes.
Cheers, Gildas
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk