Thanks.
No of CPU's : lsdev -C |grep proc
Type: lsattr -El $PROC
(where $PROC is proc0, proc1,...,proc(N-1))
--
Chuck Geigner ---------------------------------------
AIX Sysop
Milner Library, Illinois State Univ.
"Been borrowing Occam's shaving instrument since 1992
Haven't cut myself yet."_____________#rgvac==mongoose
or
lscfg -vl proc\*
#based on info from the aix NG
freq=$(lscfg -vp|grep "PS="|sed '$!d'|awk -F = '{print $2 }'|awk -F ,
'{print $1
}')
typeset -i16 freq=16#$freq
typeset -i10 mhz
mhz=freq/1000000
if [ mhz -eq 0 ];then print "Cannot calculate CPU freq"
fi
print "There are"$(lsdev -Ccprocessor|wc -l)" CPU(s) at "$mhz"MHz"
"Prasad" <pra...@yahoo.com> wrote in message
news:56dcbdbf.01073...@posting.google.com...
This doc comes from IBM web site :
Special Notices
Please use this information with care. IBM will not be responsible for
damages of any kind resulting from its use. The use of this
information is the sole responsibility of the customer and depends on
the customer's ability to evaluate and integrate this information into
the customer's operational environment.
Determining CPU Speed in AIX
--------------------------------------------------------------------------------
Contents
About this document
Procedure
--------------------------------------------------------------------------------
About this document
This document applies to AIX Versions 4.x.
--------------------------------------------------------------------------------
Procedure
While there is not a direct command to determine processor speed in
AIX, the best place to start is with the uname command. Executing
uname -m produces output of the following form:
xxyyyyyymmss
The meanings of the placeholders are as follows:
xx = 00
yyyyyy = Unique CPU ID
mm = Model ID <- these are the numbers to use to determine
CPU speed
ss = 00 (Submodel)
By cross-referencing themmvalues from the uname -m output with the
table below, you can easily determine the processor speed.
Model ID Machine Type Processor Speed
Architecture
02 7015-930 25 Power
10 7013-530 25 Power
10 7016-730 25 Power
11 7013-540 30 Power
14 7013-540 30 Power
18 7013-53H 33 Power
1C 7013-550 41.6 Power
20 7015-930 25 Power
2E 7015-950 41 Power
30 7013-520 20 Power
31 7012-320 20 Power
34 7013-52H 25 Power
35 7012-32H 25 Power
37 7012-340 33 Power
38 7012-350 41 Power
41/45 7011-220 33
PowerPC
42 7006-41T/41W 80 PowerPC
43 7008-M20 33 Power
43 7008-M2A 33 Power
46 7011-250 66
PowerPC
47 7011-230 45 RSC
48 7009-C10 80
PowerPC
4C 70XX See Note 1.
57 7012-390 67 Power2
57 7030-3BT 67 Power2
57 9076-SP2 Thin 67 Power2
58 7012-380 59 Power2
58 7030-3AT 59 Power2
59 7012-39H 67 Power2
59 9076-SP2 Thin w/L2 67 Power2
5C 7013-560 50 Power
63 7015-970 50 Power
63 7015-97B 50 Power
64 7015-980 62.5 Power
64 7015-98B 62.5 Power
66 7013-580 62.5 Power
67 7013-570 50 Power
67 7015-R10 50 Power
70 7013-590 66 Power2
70 9076-SP2 Wide 66 Power2
71 7013-58H 55 Power2
72 7013-59H 66 Power2
72 7015-R20 66 Power2
72 9076-SP2 Wide 66 Power2
75 7012-370 62 Power
75 7012-375 62 Power
75 9076-SP1 Thin 62 Power
76 7012-360 50 Power
76 7012-365 50 Power
77 7012-350 41 Power
77 7012-355 41 Power
77 7013-55L 41.6 Power
79 7013-591 77 Power2
79 9076-SP2 Wide 77 Power2
80 7015-990 71.5 Power2
81 7015-R24 71.5 P2SC
89 7013-595 135 P2SC
89 9076-SP2 Wide 135 P2SC
90 7009-C20 120 PowerPC
91 7006-42W/42T 120
PowerPC
94 7012-397 160 P2SC
94 9076-SP2 Thin 160 P2SC
A0 7013-J30 75
PowerPC
A1 7013-J40 112
PowerPC
A3 7015-R30 See Note 2.
PowerPC
A4 7015-R40 See Note 2.
PowerPC
A4 7015-R50 See Note 2.
PowerPC
A4 9076-SP2 High See Note 2.
PowerPC
A6 7012-G30 See Note 2.
PowerPC
A7 7012-G40 See Note 2.
PowerPC
C0 7024-E20 See Note 3.
PowerPC
C0 7024-E30 See Note 3.
PowerPC
C4 7025-F30 See Note 3.
PowerPC
F0 7007-N40 50
ThinkPad
NOTES:
Systems where uname -m outputs a model ID of 4C:
In general, the only way to determine the processor speed of a machine
with a model ID of 4C is to reboot into System Management Services and
choose the system configuration options. However, in some cases the
information gained from the uname -M command can be helpful.
uname -M Machine Type Processor Speed Processor
Architecture
IBM,7017-S70 7017-S70 125 RS64
IBM,7017-S7A 7017-S7A 262 RD64-II
IBM,7017-S80 7017-S80 450 RS-III
IBM,7017-S85 pSeries 680 600 RS64-IV
IBM,7025-F40 7025-F40 166/233 PowerPC 604e
IBM,7025-F50 7025-F50 See Note 4. PowerPC 604e
IBM,7025-F80 7025-F80 See Note 5. RS64-III
IBM,7026-H10 7025-H10 166/233 PowerPC 604e
IBM,7026-H50 7025-H50 See Note 4. PowerPC 604e
IBM,7026-H80 7025-H80 See Note 5. RS64-III
IBM,7026-M80 7026-M80 500 RS64-III
IBM,7025-F40 7025-F40 166/233 PowerPC
IBM,7025-F50 7025-F50 See Note 4. PowerPC
IBM,7025-F80 7025-F80 450 PowerPC
IBM,7026-B80 pSeries 640 375 Power3-II
IBM,7026-H10 7026-H10 166/233 PowerPC
IBM,7026-H50 7026-H50 See Note 4. PowerPC
IBM,7026-H70 7026-H70 340 RS64-II
IBM,7026-H80 7026-H80 450 PowerPC
IBM,7026-M80 7026-M80 500 PowerPC
IBM,Model 7042/7043
(ED) 7043-140 166/200/233/332 PowerPC
IBM,Model 7042/7043
(ED) 7043-150 375 PowerPC
IBM,Model 7042/7043
(ED) 7043-240 166/233 PowerPC
IBM,7043-260 7043-260 200 Power3
IBM,7248 7248-100 100
PowerPersonal
IBM,7248 7248-120 120
PowerPersonal
IBM,7248 7248-132 132
PowerPersonal
IBM,9076-270 9076-SP Silver Node See Note 4. PowerPC
J-Series, R-Series, and G-Series systems:
You can determine the processor speed in an MCA SMP system from the
FRU number of the CPU card by using the following command:
lscfg -vl cpucard0 | grep FRU
This will produce the following output:
FRU Number..................C1D
FRU Number Processor Type Processor Speed
E1D PowerPC 601 75
C1D PowerPC 601 75
C4D PowerPC 604 112
E4D PowerPC 604 112
X4D PowerPC 604e 200
E-Series and F-30 systems:
For the E-series and F-30 systems, use the following process to
determine CPU speed. Execute:
lscfg -vp | more
Look for the following stanza:
procF0 CPU Card
Part Number.................093H5280
EC Level....................00E76527
Serial Number...............17700008
FRU Number..................093H2431
Displayable Message.........CPU Card
Device Specific.(PL)........
Device Specific.(ZA)........PS=166,PB=066,PCI=033,NP=001,CL=02,PBH
Z=64467000,PM=2.5,L2=1024
Device Specific.(RM)........10031997 140951 VIC97276
ROS Level and ID............03071997 135048
In the section Device Specific.(ZA), the section PS= (boldface here)
is the processor speed in MHz.
F-50 and H-50 systems and SP Silver Node:
The following commands can be used to determine the processor speed of
an F-50 system. Execute:
lscfg -vp | more
Look for the following stanza:
Orca M5 CPU:
Part Number.................08L1010
EC Level....................E78405
Serial Number...............L209034579
FRU Number..................93H8945
Manufacture ID..............IBM980
Version.....................RS6K
Displayable Message.........OrcaM5 CPU DD1.3
Product Specific.(ZC).......PS=0013c9eb00,PB=0009e4f580,SB=0004f27
ac0,NP=02,PF=461,PV=05,KV=01,CL=1
In the line containing Product Specific.(ZC), the entry PS= (boldface
here), is the processor speed in hexadecimal notation. To convert this
to an actual speed, use the following conversions:
0009E4F580 = 166 MHz
0013C9EB00 = 332 MHz
The valuePF= indicates the processor configuration.
251 = 1 way 166 MHz
261 = 2 way 166 MHz
451 = 1 way 332 MHz
461 = 2 way 332 MHz
Each 2 way processor resides on one CPU card. 4 way systems will
display two entries for the Orca M5 CPU card.
Only 6-way (F-80) systems run at 500 MHz, all others run at 450 MHz.
[ TechDocs Ref: 93576892313352 Publish Date: Jan. 24, 2001
4FAX Ref: 6544 ]
IBM's already done that, a while ago. :)
There *is* a very nice (and unsupported?) utility.
One of the tools in the package from
ftp://ftp.software.ibm.com/aix/tools/perftools/perfpmr/
Is called lsc. It gives me this output:
# ./lsc
Please wait while we determine the processor megahertz rate ...
attribute value description
architecture PowerPC Processor architecture
implementation NorthStar Processor Implementation
version PowerPC_RS64II Processor version
clock_speed 340.3 CPU clock speed in MHz (approximation)
width 64 Processor width (bits)
ncpus 2 Number of CPUs
realmem 2097152 Amount of usable real memory (Kilobytes)
cache_attrib 1 Split instruction and data cache
icache_size 64 L1 instruction cache size (Kilobytes)
icache_asc 1 L1 instruction cache Associativity
icache_block 128 L1 instruction cache block size (bytes)
icache_line 128 L1 instruction cache line size (bytes)
dcache_size 64 L1 data cache size (Kilobytes)
dcache_asc 2 L1 data cache Associativity
dcache_block 128 L1 data cache block size (bytes)
dcache_line 128 L1 data cache line size (bytes)
L2_cache_size 4096 L2 cache size (Kilobytes)
L2_cache_asc 1 L2 cache associativity
tlb_attrib 3 Combined instruction and data TLB
tlb_size 512 TLB size (entries)
tlb_asc 4 TLB associativity
resv_size 128 Size of reservation (bytes)
priv_lck_cnt 0 Spin lock count in supervisor mode
prob_lck_cnt 0 Spin lock count in problem state
rtc_type RTC_POWER_PC RTC type
virt_alias 0 Hardware aliasing not supported
cach_cong 0 Number of page bits for cache synonym
Xint 156250 Used in time base conversion
Xfrac 53243 Used in time base conversion
A bit of overkill, but works on boxes that doesn't have this information
otherwise easily available.
They've made it available for AIX 3.2.5, 4.1, 4.2, 4.3.1, 4.3.2, 4.3.3, and
5.1.
-Dan