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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

determining processor speed and type 2

Status
Not open for further replies.

nappaji

Programmer
Mar 21, 2001
76
0
0
US
Hello,

Is there a commond to determine if the HP machine I am using is a 64-bit machine or a 32-bit machine???

Also, how do i determine the processor speed??

Thanks
 
To see if your machine can be used for 32 or 64 bit check the following
First get your model range:

# uname -a
HP-UX xxxxxx B.11.00 U 9000/889 xxxxxxxxxx unlimited-user license

Then, run the following command and look for your model:

# grep 9000/889 /etc/.supported_bits
9000/889/K460-EG 32/64
9000/889/K460-XP 32/64
9000/889/K460 32/64
9000/889/K360 32/64

This specific box I ran this on is a K360 and can thus be installed with the 32 or 64 bit version.
To see if a current installation is running 32 or 64 bit, do the following :

# getconf KERNEL_BITS
64

Strange enough, to get the cpu speed is not as straight forward as one would expect. There might be easier ways that I don't know about, but copy the following lines in a script to get the cpu speed:

HZ=`echo itick_per_tick/D|adb -k /stand/vmunix /dev/kmem|tail -1|cut -f2`
((MHZ=(($HZ+1)/10000)))
echo $MHZ


Hope this helps!

 
Check out this FAQ for more options on system information:

faq51-1184
 
Hi,
To find out the processor speed you can use the script provided by Gerudman.
That was a good one.
You can also use the following command for the same purpose

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

This gives you the Speed of the processor. Here adb is Debugger.You can know many details using this adb.

And for determining 32 or 64 Bit.you can use the same command "getconf KERNEL_BITS".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top