1833704 Members
3343 Online
110062 Solutions
New Discussion

CPU detection

 
Denis Sirois_3
New Member

CPU detection

Hi All,

I'm trying to find out what kind of CPU I'm using. I do a IOSCAN -f and don't
find what I went. Could you tell me the command to find the amount of memory
in that box and the number of cpu and the speed of that cpu. Also is there a
command that will tell me wich K-class I'm using.

Thanks
7 REPLIES 7
user not active
Frequent Advisor

Re: CPU detection

- To determine the number of processors:
top
To determine processor speed:

- For HP-UX 9.x:

echo itick_per_usec/D | adb -k /hp-ux /dev/mem,

- For HP-UX 10.0 and 10.01:

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

- For HP-UX 10.10 and greater, you have to modify the above command, or it will
get data address not found or no such address errors.

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

- To find the model number of the processor, execute this line:

/usr/bin/model

see DOC KBRC00000327 (How to find the number of processors, speed, and model
number )

Ken Burke_2
Advisor

Re: CPU detection

To find the CPU type and PA-RISC version use the
/usr/bin/model command that Alex talked about.
Then look in /usr/lib/sched.models (for hpux 10.xx)
or /usr/sam/lib/mo/sched.models (for hpux 11.xx).
Note all PA8000 and above CPUs are 64 bit.

An easy way to find the amount of physcial memory
in a system is:

grep Physical /var/adm/syslog/syslog.log
Grant Penness_2
Occasional Advisor

Re: CPU detection

easiest way to find out how much memory is installed
is to run

/usr/sam/lbin/getmem
Alan Riggs_1
Regular Advisor

Re: CPU detection

As a caveat:
The getmem command does not report accurate values for systems with more than
512 Meg of memory. Grepping the value out of syslog is the best way to go, or
else logging dmesg into a file and pulling it from there.
Chris Anoruo_1
Frequent Advisor

Re: CPU detection

Alan is right. If you have OnlineDiag install on your server, go to
/var/tombstones, vi or print any of the ts** files, and also run dmesg.

Cheers!
Chris Anoruo_1
Frequent Advisor

Re: CPU detection

Alan is right. If you have OnlineDiag installed on your server, go to
/var/tombstones, vi or print any of the ts** files, and also run dmesg for
Physical mem check.

Cheers!
Allan Navarro_1
New Member

Re: CPU detection

Would you know why Im getting nothing when I run the echo iticks_per_usec/D
|adb -k /stand/vmunix /dev/mem?

thanks
allan