Operating System - HP-UX
1827894 Members
1869 Online
109969 Solutions
New Discussion

How to determine CPU Speed through commandline

 
SOLVED
Go to solution
Kenneth_18
Frequent Advisor

How to determine CPU Speed through commandline

What command do I issue in the command line to see the processor speed. If I do a "top" command, I can only get the no. of cpu's and not the cpu speed in Mhz. Is it dependent on the HW platform as in for all L2000 servers, the cpus are all 440 MHz?
5 REPLIES 5
Michael Tully
Honored Contributor
Solution

Re: How to determine CPU Speed through commandline

You can it the MHz speed from the command line:

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

To get the number of CPU's:

# echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem
runningprocs:
runningprocs: 4

Anyone for a Mutiny ?
John Poff
Honored Contributor

Re: How to determine CPU Speed through commandline

Hi,

To answer your second question, no, the CPU speed isn't tied directly to the hardware platform as the CPU speeds in the L2000 (rp5400, I think) boxes can vary, which is why the command Michael gives is so handy. I believe the new boxes can come with 750Mhz or 875Mhz processors, so the command helps if you come across a new box and you don't know what it has in it.

JP
Joey K. Harpole_1
Occasional Advisor

Re: How to determine CPU Speed through commandline

I use a script to echo to the terminal the number & speed of the cpus and the amount of memory on the system. It incorporates the suggestions from above. It also displays the Major OS version and if 11.00 tells whether it is 32 bit or 64 bit. I have used it on 10.20 and 11.00.
Victor_5
Trusted Contributor

Re: How to determine CPU Speed through commandline

You also can use

getconf MACHINE_MODEL

John Meissner
Esteemed Contributor

Re: How to determine CPU Speed through commandline

echo itick_per_tick/D | adb /stand/vmunix /dev/kmem | tail -n1 | awk '{print $2 / 1000, "MHZ"}'
All paths lead to destiny