Operating System - HP-UX
1832284 Members
2218 Online
110041 Solutions
New Discussion

Re: How to get the number of CPUs and its frequency of a Multi-CPU system?

 
SOLVED
Go to solution
papatot
Occasional Advisor

How to get the number of CPUs and its frequency of a Multi-CPU system?

Is there any command in HP-UX?
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: How to get the number of CPUs and its frequency of a Multi-CPU system?

A couple of ways I can think of:

1) If you have ignite/UX installed run the command: /opt/ignite/bin/print_manifest

This will give you your CPU and speed information.

2) Go into SAM -> Performance Monitors -> System Information (I think that's right) and you can find the number of CPUs and their speed.
Tom Geudens
Honored Contributor

Re: How to get the number of CPUs and its frequency of a Multi-CPU system?

Hi,
If you want to do this from within a script :

To determine the processor speed:
example:
echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
itick_per_usec:
itick_per_usec: 360

To determine the number of processors in use:
example:
echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem
runningprocs:
runningprocs: 2

Hope this helps,
Tom
A life ? Cool ! Where can I download one of those from ?
Zhou Feilong
Occasional Contributor

Re: How to get the number of CPUs and its frequency of a Multi-CPU system?

Try:
sar -M 10 10
in multi-cpus system.
Hell.Leader
Patrick Preuss
Trusted Contributor

Re: How to get the number of CPUs and its frequency of a Multi-CPU system?

hi,

take a look into:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe4cb91ccb36bd611abdb0090277a778c,00.html


hth

regards

Patrick
Goodbye Douglas! Whereever you are now, keep your towel and don't panic.
James R. Ferguson
Acclaimed Contributor

Re: How to get the number of CPUs and its frequency of a Multi-CPU system?

Hi:

For processor speed determination, use:

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

The above command will require 'root' (superuser) privilege.

To deterimine that number of CPUs on a system, you can do:

# /usr/sbin/ioscan -kfnC processor|awk 'END {print NR-2}'

...or:

# sar -M 1 1|awk 'END {print NR-5}'

Either of the above commands can be run by any user.

Regards!

...JRF...