Operating System - Linux
1752377 Members
6360 Online
108787 Solutions
New Discussion

How to find the cpu clock speed

 
SOLVED
Go to solution
santosh jha
Frequent Advisor

How to find the cpu clock speed

Please tell me how to find the cpu clock speed and also how to find out if the system in PA-RISC or not.using command.

 

 

P.S.This thread has been moved from Moved from HP-UX>General  to HP-UX>  languages- HP Forums Moderator

13 REPLIES 13
Pete Randall
Outstanding Contributor
Solution

Re: How to find the cpu clock speed

I use this little script:

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


To tell if it's PA-RISC or not, simply issue the model command. Anything that starts with rx is Itanium, everything else is PA-RISC.


Pete

Pete
RAC_1
Honored Contributor

Re: How to find the cpu clock speed

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

rx-itanium
rp-pa-risc

echo "selclass qualifier cpu;info;wait;infolog"|cstm
There is no substitute to HARDWORK
Muthukumar_5
Honored Contributor

Re: How to find the cpu clock speed

b) uname -m or model command will tell whether it is Itanium or PA-RISC based.

model is not IA64 then it is PA-RISC one.

a) Processor information:

sam -> performance monitor -> system properties

hth.
Easy to suggest when don't know about the problem!
VEL_1
Valued Contributor

Re: How to find the cpu clock speed


From the command-line,

# echo "itick_per_usec/D" | adb /stand/vmunix /dev/mem | tail -1
itick_per_usec: 552

From SAM,

o Go to Performance Monitors -> System Properties -> Memory
o Check Clock Frequency: value
Arunvijai_4
Honored Contributor

Re: How to find the cpu clock speed

sam -> performance monitors -> system properties

# echo itick_per_usec/D|adb /stand/vmunix /dev/kmem

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=35140

-Arun


"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: How to find the cpu clock speed

sam -> performance monitor -> system properties itself giving information for PA-RISC and clock speed also.

â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â
â â â â Processors: â â â
â â â â Active: 1 â â â
â â â â Total: 1 â â â
â â â â CPU Version: PA 8800 CPU Module 3.2 â â â
â â â â Clock Frequency: 800 MHz â â â
â â â â Machine Identification: 2756521519 â â â â
â â â â Hardware Model: 9000/800/rp3410 â â â â
â â â â Kernel Width Support: 64 â â â â
â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â â

hth.
Easy to suggest when don't know about the problem!
morganelan
Trusted Contributor

Re: How to find the cpu clock speed

# echo "itick_per_usec/D" | adb /stand/vmunix /dev/mem | tail -1


Kamal Mirdad
santosh jha
Frequent Advisor

Re: How to find the cpu clock speed

Thanks a lot guys ...
Raj D.
Honored Contributor

Re: How to find the cpu clock speed

Hi Santosh ,

Here is a good one...

Just run this command:

#
echo "CPU Speed is = \c" ; echo itick_per_tick/D|adb -k /stand/vmunix /dev/kmem|tail -1|cut -f2 | awk '{printf "%0f MHz\n", $1/10000}'


Enjoy,
Cheers,
Raj.


" If u think u can , If u think u cannot , - You are always Right . "