Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I find the speed and number of CPUs

Status
Not open for further replies.

jlstitt

IS-IT--Management
Nov 8, 2002
3
US
How can I quickly find out the number and speed of processors in a box I'm telneted into. And how do I find out what sort of a load they're under?
 
Hi,

You can get info via 'sysinfo', e.g.

SUNW,Ultra-80
cpu0 is a "450 MHz SUNW,UltraSPARC-II" CPU
cpu1 is a "450 MHz SUNW,UltraSPARC-II" CPU
cpu2 is a "450 MHz SUNW,UltraSPARC-II" CPU
cpu3 is a "450 MHz SUNW,UltraSPARC-II" CPU

Run 'prstat' to see the load on a process basis, or use the
the 'share-ware 'top'. To sample the CPU load use 'iostat'

iostat 3 10
tty sd0 sd1 nfs2 nfs3 cpu
tin tout kps tps serv kps tps serv kps tps serv kps tps serv us sy wt id
0 37 660 18 13 623 49 7 0 0 5 0 0 9 19 7 8 66
0 78 572 13 13 858 92 6 0 0 0 0 0 0 15 5 14 66
0 27 768 16 14 878 90 6 0 0 0 0 0 0 16 6 14 63

cheers,
Andrew B. cheers,
Andrew
 
Thanks much... I tried to find "sysinfo" but it didn't appear to be a command or a file in /etc ... The box is running Solaris 8 on a Sun 280 (I think)
 
Hi,

/usr/platform/`uname -m`/sbin/prtdiag -v

also give you lot of information
 
Try psrinfo. That's what it's for...

$ psrinfo -v
Status of processor 0 as of: 11/08/02 16:49:11
Processor has been on-line since 08/17/02 22:22:41.
The sparc processor operates at 400 MHz,
and has a sparc floating point processor.
Status of processor 1 as of: 11/08/02 16:49:11
Processor has been on-line since 08/17/02 22:22:45.
The sparc processor operates at 400 MHz,
and has a sparc floating point processor.
Status of processor 4 as of: 11/08/02 16:49:11
Processor has been on-line since 08/17/02 22:22:45.
The sparc processor operates at 400 MHz,
and has a sparc floating point processor.
Status of processor 5 as of: 11/08/02 16:49:11
Processor has been on-line since 08/17/02 22:22:45.
The sparc processor operates at 400 MHz,
and has a sparc floating point processor.
$
 
For the load, try top. It may be /usr/local/bin/top, or elsewhere. You may need to "find" it, but it gives you some good info on the load and who's creating the load...

$ which top
/usr/bin/top
$ top
[tt]last pid: 2364; load averages: 0.85, 0.90, 0.89 16:52:13
139 processes: 132 sleeping, 5 zombie, 2 on cpu
CPU states: % idle, % user, % kernel, % iowait, % swap
Memory: 4352M real, 802M free, 595M swap in use, 3496M swap free

PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
28314 brownr 1 20 0 4240K 3344K cpu1 35:42 17.11% sqlplus
28313 brownr 1 53 0 1640K 1200K sleep 6:11 2.93% compress
2364 root 1 0 0 1752K 1560K cpu5 0:00 0.55% top
3193 ecs 1 48 0 61M 55M sleep 49.8H 0.55% dataserver
28312 brownr 1 58 0 864K 760K sleep 0:27 0.20% cat
22217 controlm 1 58 0 41M 37M sleep 44:04 0.07% dataserver
3732 ecs 32 51 0 249M 63M sleep 197:59 0.06% ecs.mcs
22666 controlm 5 32 0 13M 6096K sleep 40:52 0.06% p_ctmsl
29918 root 1 48 0 4064K 2440K sleep 0:02 0.05% smbd
633 root 7 58 0 4392K 1792K sleep 73:02 0.02% automountd
2088 leungb 1 58 0 1560K 1224K sleep 0:00 0.01% vi
3530 ecs 22 59 0 50M 5592K sleep 78:10 0.01% ecs.maint
22668 controlm 5 58 0 11M 5096K sleep 11:28 0.01% p_ctmtr
3559 ecs 8 58 0 25M 6024K sleep 25:58 0.01% itnaming
23454 edwprod 1 48 0 1808K 1320K sleep 1:07 0.00% file_mover.pl
[/tt]
 
I like mpstat for the CPU load I tried to remain child-like, all I acheived was childish.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top