- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: How to find the cpu clock speed
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 09:47 PM - last edited on тАО01-01-2013 07:47 PM by Cathy_xu
тАО09-26-2005 09:47 PM - last edited on тАО01-01-2013 07:47 PM by Cathy_xu
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 09:54 PM
тАО09-26-2005 09:54 PM
SolutionHPUX=/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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 09:57 PM
тАО09-26-2005 09:57 PM
Re: How to find the cpu clock speed
model
rx-itanium
rp-pa-risc
echo "selclass qualifier cpu;info;wait;infolog"|cstm
- Tags:
- adb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 09:58 PM
тАО09-26-2005 09:58 PM
Re: How to find the cpu clock speed
model is not IA64 then it is PA-RISC one.
a) Processor information:
sam -> performance monitor -> system properties
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 09:58 PM
тАО09-26-2005 09:58 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 09:59 PM
тАО09-26-2005 09:59 PM
Re: How to find the cpu clock speed
# echo itick_per_usec/D|adb /stand/vmunix /dev/kmem
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=35140
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 10:00 PM
тАО09-26-2005 10:00 PM
Re: How to find the cpu clock speed
├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в ├в
├в ├в ├в ├в 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 10:02 PM
тАО09-26-2005 10:02 PM
Re: How to find the cpu clock speed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-26-2005 10:08 PM
тАО09-26-2005 10:08 PM
Re: How to find the cpu clock speed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 01:48 AM
тАО09-27-2005 01:48 AM
Re: How to find the cpu clock speed
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 01:55 AM
тАО09-27-2005 01:55 AM
Re: How to find the cpu clock speed
# cat cpuspeed
perl -e 'local($PSTAT, $PSTAT_PROCESSOR)=(239,10);
local($struct_pst_processor)=("L30");
local($cpu_info, $cpu_ticks);
$cpu_info = "\0" x 120;
syscall($PSTAT, $PSTAT_PROCESSOR, $cpu_info, length($cpu_info), 1, 0);
($cpu_ticks)=(unpack($struct_pst_processor, $cpu_info))[26];
print "speed=".int($cpu_ticks/10000)." Mhz\n";'
Rgds...Geoff
- Tags:
- Perl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 01:56 AM
тАО09-27-2005 01:56 AM
Re: How to find the cpu clock speed
# cat cpuinfo
perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 03:01 AM
тАО09-27-2005 03:01 AM
Re: How to find the cpu clock speed
Also dont forget the easy one :
SAM--> Performance Monitors --> System Properties.
Processors:
Active: 2
Total: 2
CPU Version: 2.0 PA8500
Clock Frequency: 360 MHz
Machine Identification: 145901547
Hardware Model: 9000/800/L2000-36
Kernel Width Support: 64
-----------------------------------------
cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-28-2005 12:24 AM
тАО09-28-2005 12:24 AM
Re: How to find the cpu clock speed
here is the C program :-)
#include
#include
#include
int main()
{
struct pst_processor psp;
unsigned long int clock_speed, scclktick;
pstat_getprocessor(&psp, sizeof(psp), 1, 0);
scclktick=sysconf(_SC_CLK_TCK);
clock_speed = psp.psp_iticksperclktick * scclktick;
printf("CPU clock speed is %ld Mhz\n", clock_speed/1000000);
}
Compile and run to get the cpu speed.
- Biswajit