Operating System - HP-UX
1823063 Members
3162 Online
109645 Solutions
New Discussion юеВ

Re: Find out CPU, Speed and memory in B.10.10

 
SOLVED
Go to solution
ramesh_6
Frequent Advisor

Find out CPU, Speed and memory in B.10.10

How to find out CPU, Speed of the CPU and memory in B.10.10 ?

Your help highly appreciated?
12 REPLIES 12
Bill Hassell
Honored Contributor

Re: Find out CPU, Speed and memory in B.10.10

SAM is the easiest way. Select Performance Monitors and then System Properties. Otherwise, you can use print_manifest from the Ignite/UX package. If you do not have this program, immediately download a copy from software.hp.com and read the man pages for make_recovery as well as print_manifest. There are cryptic adb commands that can be used, but SAM is the easiest.


Bill Hassell, sysadmin
S.K. Chan
Honored Contributor
Solution

Re: Find out CPU, Speed and memory in B.10.10

On 10.x ..
# echo physmem/D | adb /stand/vmunix /dev/kmem
==> gives total memory
# echo itick_per_usec/D | adb /stand/vmunix /dev/mem
==> gives processor speed
# echo runningprocs/D | adb /stand/vmunix /dev/mem
=> gives number of processor

ramesh_6
Frequent Advisor

Re: Find out CPU, Speed and memory in B.10.10

I am not able to find any performance monitors or RESORUCE MANAGEMENT in SAM.

Regds
Ramesh
Ross Martin
Trusted Contributor

Re: Find out CPU, Speed and memory in B.10.10

To find processor speed at 10.10 and greater, you can use:
# echo itick_per_usec/D | adb /stand/vmunix /dev/kmem
itick_per_usec:
itick_per_usec:


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

#/usr/bin/model
9000/819/K200

For physical memory:

echo physmem/D | adb /stand/vmunix /dev/kmem
physmem:
physmem: 24576


Hope that helps.

Ross Martin
steven Burgess_2
Honored Contributor

Re: Find out CPU, Speed and memory in B.10.10

Hi

#sam
SAM Performance Monitors ->

Other Disk and Terminal Activity
glance GlancePlus (character mode)
Other Inter-Process Communication Facility Status
Other Processes With Highest CPU Usage
Other System Activity
SAM System Properties
Other Virtual Memory Activity

and

SAM Process Management ->

SAM Process Control

Regards

Steve
take your time and think things through
ramesh_6
Frequent Advisor

Re: Find out CPU, Speed and memory in B.10.10

For memory i am getting a value of 261888 when i issue the command

echo physmem/D | adb -k /stand/vmunix /dev/kmem

How many MB/GB of memory my system is having?

Regds
Ramesh
steven Burgess_2
Honored Contributor

Re: Find out CPU, Speed and memory in B.10.10

Hi

Ross and SK

I like the cpu speed check,
when I run it on one of our new systems hp11

I get

:/ # echo itick_per_usec/D | adb /stand/vmunix /dev/kmem
Error from elf64_getehdr(application core file)
Not an Elf file: No Elf header
itick_per_usec:
itick_per_usec: 440

Can you explain the error? Is the command not for v11

also 440 MHZ seems pretty naf, would you agree

Steve
take your time and think things through
ramesh_6
Frequent Advisor

Re: Find out CPU, Speed and memory in B.10.10

I am getting a value of 261888 when is issue the command

echo physmem/D | adb -k /stand/vmunix /dev/kmem

So how many MB/GB memory i have?

Regds
Ramesh
S.K. Chan
Honored Contributor

Re: Find out CPU, Speed and memory in B.10.10

Sorry for not mentioning it earlier ..

261888 * 4 = 1,047,552 KBytes

which should match with /etc/dmesg output "Physical:", so you got 1GB memory.
S.K. Chan
Honored Contributor

Re: Find out CPU, Speed and memory in B.10.10

Steven, use -k in your adb command, and it will not show the "elf" message. It has something to do with adb symbol in the kernel, can't remember though ..
Bill Hassell
Honored Contributor

Re: Find out CPU, Speed and memory in B.10.10

HP-UX 10.10 is far too old to have the performance monitor section in SAM. You should upgrade as soon as possible to 11.00 since 10.20 will be obsolete this year (10.10 has been obsolete for a long time)


Bill Hassell, sysadmin
John Dvorchak
Honored Contributor

Re: Find out CPU, Speed and memory in B.10.10

It looks like you have all of your answers but to add a little one line script that I use to tell me how much memory is installed:

dmesg|grep Physical|mem=`awk '{print $2}'`; totmem=$(( $mem/1024 ));echo $totmem Megabytes

Note there are grave (back tick) around the awk statement and don't forget the space between the (( $mem and trailing 1024 )). It is best to cut and paste it.
If it has wheels or a skirt, you can't afford it.