Consultor Eletrônico



Kbase P125814: How to know how many processors are available in AIX ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/11/2007
Status: Unverified

GOAL:

How to know how many processors are available in AIX ?

GOAL:

How to know if Dual or Quad processors are available in AIX ?

FACT(s) (Environment):

IBM AIX

FIX:

Standard multiple processors can be counted using the UNIX instructions pmcycles -m and sar -u -P ALL 1 2.
When dealing with Dual or Quad core processors AIX should map them as multiple processors.
Example:
A Quad core processor should look like this when using pmcycles -m and sar -u -P ALL 1 2 commands:
$ pmcycles -m
CPU 0 runs at 1500 MHz
CPU 1 runs at 1500 MHz
CPU 2 runs at 1500 MHz
CPU 3 runs at 1500 MHz
$ sar -u -P ALL 1 2
AIX ibmhost 3 5 00C59D2E4C00 09/10/07
System configuration: lcpu=4
15:21:19 cpu %usr %sys %wio %idle physc
15:21:20 0 2 22 2 75 0.57
1 0 0 0 100 0.42
2 2 20 3 75 0.58
3 0 0 0 100 0.41
- 1 13 1 85 1.98

15:21:21 0 1 2 3 93 0.53
1 0 0 0 100 0.46
2 1 8 3 87 0.54
3 0 0 0 100 0.46
- 1 3 2 95 1.99
Average 0 1 13 2 83 0.55
1 0 0 0 100 0.44
2 . 2 14 3 81 0.56
3 0 0 0 100 0.43
- 1 8 1 90 1.99.