1824241 Members
3159 Online
109669 Solutions
New Discussion юеВ

MHz Speed of CPU

 
SOLVED
Go to solution
Robert Miller_4
Occasional Contributor

MHz Speed of CPU

How can I determine what speed the CPU is running at with a HP-UX command?
2 REPLIES 2
sinhass
Regular Advisor
Solution

Re: MHz Speed of CPU

H.Merijn Brand (procura
Honored Contributor

Re: MHz Speed of CPU

1. Did you know the forum has search functionality?
2. It is a FAQ, which I have also included on my wen page as:

--8<---
How many CPU's does my system have?

a5:/wrk 105 > grep processor /var/adm/syslog/syslog.log
Nov 5 13:10:54 a5 vmunix: 160 processor
a5:/wrk 105 > ioscan -fnkC processor
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
processor 0 160 processor CLAIMED PROCESSOR Processor
a5:/wrk 106 > echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm | grep "CPU Module"
PA 8600 CPU Module 3.1
a5:/wrk 107 > echo "sc product cpu;il" | /usr/sbin/cstm | grep 'CPU Module'
PA 8600 CPU Module 3.1
a5:/wrk 108 >

Or with Perl:

a5:/wrk 108 > perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'
0 online HP PA-RISC 2.0 750
1 online HP PA-RISC 2.0 750
a5:/wrk 109 >
What is my CPU type?

d3:/wrk 105 > model
9000/800/D390
d3:/wrk 105 > grep -i d390 /opt/langtools/lib/sched.models
D390 2.0 PA8200
d3:/wrk 106 > grep -i d390 /usr/sam/lib/mo/sched.models
D390 2.0 PA8000
d3:/wrk 107 > echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm | grep "CPU Module"
PA 8200 CPU Module 5.1
d3:/wrk 108 >

Or with Perl:

a5:/wrk 108 > perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'
0 online HP PA-RISC 2.0 750
1 online HP PA-RISC 2.0 750
a5:/wrk 109 >

Some give getconf MACHINE_TYPE as answer, but it won't work on HP-UX 10.20. model will.

The sched.models on the sam path is usually more up to date than the one in langtools
What is my CPU speed?

d3:/ 103 # echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
itick_per_usec:
itick_per_usec: 240
d3:/ 104 #

Or with Perl:

a5:/wrk 108 > perl -MUnix::Processors -le'print join"\t",$_->id,$_->state,$_->type,$_->clock for @{Unix::Processors->new()->processors}'
0 online HP PA-RISC 2.0 750
1 online HP PA-RISC 2.0 750
a5:/wrk 109 >
-->8---

along with a lot of other answers

My HP ITRC site pages can be found at

Los Angeles http://mirrors.develooper.com/hpux/
Singapore https://www.beepz.com/personal/merijn/
Rotterdam http://www.cmve.net/~merijn/
Chicago http://www.hpux.ws/merijn/

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn