1832085 Members
3075 Online
110037 Solutions
New Discussion

Number of CPUs

 

Number of CPUs

I am interested in finding out how many CPUs there are in a host and at what speeds they are running. I tried dmesg and SAM but to no avail. can someone pls help.
If you keyboard is locked, call a locksmith, not HP!
6 REPLIES 6
I_M
Honored Contributor

Re: Number of CPUs

Hi,

cat /proc/cpuinfo tells you
* how many cpus
* the speed
* cpu cache size

But I guess you are using HP-UX?, since Linux doesn't have SAM.....

Regards,
U.SivaKumar_2
Honored Contributor

Re: Number of CPUs

hi,
To see CPU utilisation for each cpu use
#sar -M 1 10

( or )
#top

regards,
U.SivaKumar
Innovations are made when conventions are broken

Re: Number of CPUs

Sorry I should have mentioned that i am using HP-UX. U.SivaKumar answer helped with the number of CPUs (top) but i still need to get their speeds.
If you keyboard is locked, call a locksmith, not HP!
U.SivaKumar_2
Honored Contributor

Re: Number of CPUs

hi,
Do this to get your cpu speed in Mhz.

echo itick_per_usec/D |adb -k /stand/vmunix /dev/mem

regards,
U.SivaKumar
Innovations are made when conventions are broken
Bill McNAMARA_1
Honored Contributor

Re: Number of CPUs

You can download the nickel script from:

http://www.grc.hp.com/docs/nickel/

which runs all interesting commands like the echo ... thing that you'll never remember by heart, a quick look at the script gives you all you want, the script itself will present the return in html format.

Alternatively, there is the getconf comand (see the man) that will give you good info, also the /opt/ignite/bin/print_manifest will give you lots,

cstm/mstm/xstm can also do the same.

Later,
Bill
It works for me (tm)
W. Michael King
Frequent Advisor

Re: Number of CPUs

The easy answer for the number of processors is "top"...

The other for # of cpus is "ioscan -Cprocessor -f"

the echo...adb... command above should work for the speed.
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759