1845897 Members
3919 Online
110250 Solutions
New Discussion

number of CPUs

 
rajendra69
Occasional Contributor

number of CPUs

Hi,

1.How to find the number of CPUs running on the system.
2.How to get the max CPUs and max Physical RAM which can be put on the system.


with regards
rajendra
9 REPLIES 9
Mark Grant
Honored Contributor

Re: number of CPUs

Well,

"ioscan -fnkC processor" will show you the number of processors though unfortunately you can't tell how many of them are actually active from this. "top" does though.

I don't think you can find how much RAM you can put in the machine and how many CPU's with out looking at documentation for your specific hardware.
Never preceed any demonstration with anything more predictive than "watch this"
Thierry Poels_1
Honored Contributor

Re: number of CPUs

Hi,

1.
quick & dirty way : use top
if you like typing : "ioscan -k | grep Processor" (this will include ICOD processors, while top will not)

2.
RTFM, you will need to dive into the hardware manuals for this.

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Sanjay Kumar Suri
Honored Contributor

Re: number of CPUs

#/opt/ignite/bin/print_manifest can give answer to your first question.

For the 2nd check the product documentation.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Elmar P. Kolkman
Honored Contributor

Re: number of CPUs

There are lots of ways for question no 1.
As for question number 2, that is something you need your hardware documentation for, or your HP reseller. One of the problems might be that your current memory modules need to be replaced with larger ones, if you want to have the maximum possible...

You need to use stm or a tool like that to identify the seperate memory modules, then lookup in your hardware manual what is the max possible and you know what can be done.

For the max number of CPU's, you could also try adding your hardware info on this thread so someone can look it up for you in return for some well earned points.
Every problem has at least one solution. Only some solutions are harder to find.
Fabio Ettore
Honored Contributor

Re: number of CPUs

Hi,

in order to obtain those informations you should have STM (Support Tools Manager) installed, download the latest version for your HP-UX system from link below:

http://docs.hp.com/hpux/onlinedocs/diag/stm/stm_upd.htm#table

Then from command line launch
# mstm
and continue by Ok. You should see all hardware components and all processors on your system.
By mstm again you should see memory component too. Then select it and Tools--->Information--->Run

and you will get Information Log for memory. How much RAM and other informations you will get from this. After take hardware documentation for your system and check RAM can be put on it.

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
Paula J Frazer-Campbell
Honored Contributor

Re: number of CPUs

Hi

Beware that top does not show unallocated CPUs as in ICOD processors.

Paula
If you can spell SysAdmin then you is one - anon
Kent Ostby
Honored Contributor

Re: number of CPUs

dmesg can show you the number of CPUs as well as the memory.

For #2) you are back to manuals .

What type of system are you running ?

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Hein van den Heuvel
Honored Contributor

Re: number of CPUs


One of the many ways to determine CPUs is through psrset... intented for pset.

Here is a morsel of perl code I used ina script to figure out how many worker streams to start based on my current pset.

By default one lives in pset 0 and it has all the cpus.

$pset = (split(/\s+/, `psrset -q \$\$`))[3];
foreach $_ (`psrset -i $pset`) {
@spu_list = split (/\D+/) if (/SPU_LIST/)
}
$cpus = (scalar @spu_list) - 1;
$maxjobs = 3 * $cpus;


fwiw,
Hein.
doug mielke
Respected Contributor

Re: number of CPUs

easy way to see how many processors running on the system


sar -M 5 1