The following is the entire content of an IBM Supportline ticket on getting
the clock speed from and AIX machine via software. The gist of this document
which will become readily apparent is that you have to know the machine ID in
order to equate that to a list of speeds. On some of the newer PCI based
machines, one is able to actually use the provided system calls to get the
information desired.
Item: DW7410
Status: CLOSED
Severity: 8 Hour
Caller: Tom Sherwin
Last Modified: 10/31/97 13:46:24 (CST)
Last Read: 3/31/98 17:28:57 (CST)
----------------------------------------------------------------------------
Abstract: How can I get the clock speed of an AIX machine?
----------------------------------------------------------------------------
Question:
************************* ELECTRONIC_ITEM *************************
** **
** This Item was created Electronically. **
** **
*******************************************************************
***** Customer requests that you update the item
***** and send the updated item via e-mail to
***** sherwint@sdsc.edu
ENV:
************************************************************************
Machine Type(s): 9076 SP, 99J, 580, c20_(7013, e.g. )
Machine Model(s): _______________________(560, e.g. )
Machine Serial(s): _______________________(serial number(s) )
Relevant Hardware: _______________________(e.g., for a network problem )
_______________________ it matters what network )
_______________________ adapters are configured )
Disk Space: _______________________(total, and available in the )
_______________________ filesystems affected; e.g., )
_______________________ /var/dce for DCE problem )
Paging Space: _______________________(if relevant )
Memory: 256MB or more__________(total )
Number of Users:
_______________________(total and active if relevant)
Network Environment: FDDI, CSS, Ent, Hippi(or other special environment)
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
_______________________________________________________________________
AIX Level: 4.1.5, 4.2.1______________(3.2.4, 3.2.5, 4.1.1, ... )
Relevant PTFs: __________________________(e.g., for a DCE problem it )
__________________________ matters what DCE PTFs are )
__________________________ applied )
Relevant Software:________________________(LPPs, applications, ... )
CONTACT NAME IF YOU ARE UNAVAILABLE: __________________________________
E-MAIL ADDRESS OF THIS CONTACT: __________________________________
PHONE NUMBER OF THIS CONTACT: __________________________________
************************************************************************
DESC:
We have a resource controller code that needs to know the clock speed of
the processor running under its control in order to calculate some of
its information properly. On other systems we have been using the
sysconf(_SC_CLK_TCK) call to get this. Under AIX it appears that this
value is set to 100 via the /usr/include/unistd.h file. How can I get
the real clock speed? I would like something in MHZ if possible.
ACT:
.
TEST:
=-=-= > 10/28/97 < =-= > 18:26:58 CST < =-=-= > Auto Xmenu < =-=-==-=-=
Response:
.
There isn't a command that will allow you to check the time clock on
the hardware. There are charts that we have developed and there are
sales manuals that are internal to IBM that we have access to.
.
I did collect the information except for the SP because there are
numerous nodes in the SP and each one will process at it's own level.
By running the 'uname -m' you can acquire the CPU ID number which is used
to verify what speed the clock runs for each node.
.
For the other 3 I was able to come up with clock speeds for you:
99J 71.5 MHz
580 62.5 MHz
c20 120 MHz
If you want the SP speeds just send the CPU ID numbers in and we can
identify the rest for you.
.
Thank you for using AIX Technical Support.
=-=-= > 10/29/97 < =-= > 12:31:17 CST < =-=-= > Matt Palmer < =-=-=-=-=
Response:
Electronic Response by Customer Tom Sherwin
We depend on the sysconf() routine to do our work. Hard coding a model
number to translate to a seems like a messy cludge. I must be able to
get the speed via the system somehow. When will sysconf() return a real
value that can be used? On an E30, I can get the 233 MHZ value by using
'lscfg -vp' and the value shows up under the PLATFORM SPECIFIC section
under the procF0 device, ZA field:
lscfg -pvl procF0
PLATFORM SPECIFIC
procF0 CPU Card
Part Number.................093H6196
EC Level....................00E76171
Serial Number...............50256XNG
FRU Number..................093H3456
Displayable Message.........CPU Card
Device Specific.(PL)........
Device Specific.(ZA)........PS=233,PB=066,PCI=033,NP=001,CL=03,PBH
Z=64467000,PM=3.5,L2=512
Device Specific.(RM)........03071997 135119 VIC97066
ROS Level and ID............11061996 160554
Is there any of this available on the RS6K architecture somewhere?
=-=-= > 10/30/97 < =-= > 12:32:25 CST < =-=-= > Auto Xmenu < =-=-==-=-=
Response:
Until recently, the model and processor type/speed were irrevocably
bound together. If you upgraded your processor, the model number of
the system changed. This has changed with the upgradeability of the
RSPC systems. At this time, there are no plans for the sysconf() call
to return the processor speed. You may wish to contact your marketing
representative or point of sale to submit a DCR (Design Change Request)
to have the sysconf() call recoded to provide this information.
The processor speed information is not uniformly available across
the RS/6000 product line. Until such a time as development recognizes
a need for this information to be uniformly available and provides a
method for procuring it, the best way for you to get this information
will be by using the uname -m command output.
=-=-= > 10/30/97 < =-= > 18:45:48 CST < =-=-= > Michel Huber < =-==-=-=
Response:
Mailed update to customer. Closing item pending customer response.
=-=-= > 10/30/97 < =-= > 18:46:20 CST < =-=-= > Michel Huber < =-==-=-=
Response:
Electronic Response by Customer Tom Sherwin
Ok, If I'm stuck with a lookup table, here are the machine types that
we currently have installed. If you have an electronic form of this
that is all-inclusive of all models, that would be best, but at a
minimum I need the following list completed. Everywhere there is a '*'
is information I do not have. Please complete the missing information
and double check my research. The 'Model' column is the model info
obtained from the uname man page (which is apparently out of date), and
the 'Front Panel' column is what the machine indicates it is by virtue
of its label.
REGULAR IBM MACHINES
ID Type Model MHZ Front Panel
--- ---- ----- ----- ---------
10 7013 530 **.* 530
46 7011 250 **.* C10
66 7013 580 62.5 580
82 70** *** 71.5 990J
90 70** *** 120.0 C20
C0 7024 E20 233.0 E30
SP2 NODE TYPES
ID Type Model MHZ Node Type
--- ---- ----- ----- ---------
57 7012 390 **.* ****
59 70** *** 66.0 THN4
A4 7015 R40 112.0 SMP1
79 70** *** 77.0 WDE2
81 7015 R24 120.0 THN*
** **** *** 160.0 THN*
An all inclusive list would be better if available. This could be
put into this item or, even better, e-mailed to sherwint@sdsc.edu.
Thanks.
=-=-= > 10/31/97 < =-= > 12:33:14 CST < =-=-= > Auto Xmenu < =-=-==-=-=
Response:
Belows is the all inclusive list for the CPU ID and which model this
goes to. From there the second list should be able to give you how
fast the system is running. I hopes this helps you.
The first list below gives the CPU ID and which model it goes to.
System Identification (uname -m)
DESCRIPTION:
This file lists announced CPU types and their id numbers.
This information came from the Common Diagnostics and Service Guide.
7006 System Unit (table top)
7007 System Unit (portable)
7008 System Unit (table top)
7009 System Unit (deskside minitower)
7011 System Unit (table top)
7012 System Unit (table top)
7013 System Unit (narrow floor standing)
7015 System Unit (rack mounted)
7016 System Unit (wide floor standing)
7020 System Unit (table top)
7030 System Unit (table top)
70xx/SMP CPU card, ID A0-BF (range)
xxyyyyyymmss
where xx = 00
yyyyyy = unique ID for the cpu
mm = model ID
ss = 00 (submodel)
The CPU IDs for the RISC System/6000 Models are as follow :
RISC Models CPU ID
------------------------------------------------------------
7006/41W/41T CPU, ID 42
7006/42W/42T CPU, ID 91
7007/N40 CPU, ID F0
7008/M20/M2A System planar, ID 43
7009/C10 CPU, ID 48
7009/C20 CPU, ID 90
7011/220 System planar, ID 41
7011/230 System planar, ID 47
7011/250 System planar, ID 46
7011/25F System planar, ID 49 (80MHz 601)
7012/320 CPU card, ID 31
7012/32H CPU card, ID 35
7012/340 CPU card, ID 37
7012/350 CPU card, ID 38 or 77
7012/34H/355 CPU card, ID 77
7012/360/36T/365 CPU card, ID 76
7012/370/37T/375 CPU card, ID 75 (also 9076/SP1/thin)
7012/380 CPU card, ID 58
7012/390 CPU card, ID 57 (also 9076/SP2/thin)
7012/39H CPU card, ID 59 (also 9076/SP2/thin w/L2)
7012/G30-601 CPU, ID A6
7012/G30-604 CPU, ID A6
7012/G40 CPU, ID A7
7013/520 CPU planar, ID 30
7013/52H CPU planar, ID 34
7013/530 CPU planar, ID 10
7013/53H CPU planar, ID 18
7013/540 CPU planar, ID 14 or 11
7013/550 CPU planar, ID 1C
7013/550L CPU card, ID 77
7013/560 CPU planar, ID 5C
7013/570 CPU planar, ID 67
7013/580 CPU planar, ID 66
7013/58H CPU planar, ID 71
7013/590 CPU planar, ID 70 (also 9076/SP2/wide)
7013/591 CPU planar, ID 79 (also 9076/SP2/wide 77MHz)
7013/595 CPU planar, ID 89 (also 9076/SP2/wide 135MHz)
7013/59H CPU planar, ID 72 (also 9076/SP2/wide w/RPQ)
7013/J30-601 CPU, ID A0
7013/J30-604 CPU, ID A0
7013/J40 CPU, ID A1
7013/J50 CPU, ID A1
7015/930 CPU planar, ID 02 or 20
7015/950 CPU planar, ID 2E
7015/970/97B CPU planar, ID 63
7015/980/98B CPU planar, ID 64
7015/990 CPU planar, ID 80
7015/R10 CPU planar, ID 67
7015/R20 CPU planar, ID 72
7015/R21 CPU planar, ID 79
7015/R24 CPU planar, ID 82
7015/R30-601 CPU, ID A3
7015/R30-604 CPU, ID A3
7015/R40 CPU, ID A4 (also 9076/SP2/high)
7015/R50 CPU, ID A4 (also 9076/SP2/high)
7016/730 CPU planar, ID 10
7018/740/741 CPU planar, ID 30
7018/770/771 CPU planar, ID 67
7020/40P CPU planar, ID 4D
7024/E20 CPU planar, ID C0
7024/E30 CPU planar, ID C0
7025/F30 CPU card, ID C4
7025/F40 CPU card, ID 4C
7025/F50 CPU card, ID 4C
7026/H10 CPU ID 4C
7030/3AT CPU card, ID 58
7030/3BT CPU card, ID 57
7030/3CT CPU card, ID 59
7043/140 CPU ID 4C
7043/240 CPU ID 4C
7248/43P CPU planar, ID 4C
9076/SP1/thin see 7012/370
9076/SP2/thin 66MHz see 7012/390
9076/SP2/thin w/L2 see 7012/39H
9076/SP2/wide see 7013/590
9076/SP2/wide w/RPQ see 7013/59H
9076/SP2/wide 77MHz see 7013/591
9076/SP2/thin 120MHz CPU card, ID 81
9076/SP2/wide 135MHz CPU planar, ID 89
9076/SP2/high see 7015/R40
The next list below once you have the model number will give you
the speed at which that processor runs.
RISC System/6000 Line of Machines
What Type of Processor Do I Have?
Want to know what type of processor you have? In AIX Version 4,
you can enter the following command to find out if you have a
POWER, POWER2, or PowerPC chipset installed:
lsattr -El proc0
List of Systems
The following list is presented in numerical order. Unless otherwise
noted, the system uses the Micro Channel architecture.
PC Company PowerPC Systems
6040 100MHz PowerPC 603e Thinkpad Power Series 820 Laptop (PCMCIA)
604 100MHz PowerPC 603e Thinkpad Power Series 850 Laptop (PCMCIA)
RS/6000 Branded Systems
7006-41T 80MHz PowerPC 601 desktop/deskside workstation
7006-41W 80MHz PowerPC 601 desktop/deskside workstation
7006-42T 120MHz PowerPC 604 desktop/deskside workstation
7006-42W 120MHz PowerPC 604 desktop/deskside workstation
7007-N40 Notebook (PCMCIA)
7008-M20 33MHz POWER Desktop built-in monitor workstation
7008-M2A 33MHz POWER Desktop built-in monitor workstation
7009-C10 80MHz PowerPC 601 mini-tower workstation/server
7009-C20 120MHz PowerPC 604 mini-tower workstation/server
7010-120 Xstation
7010-130 Xstation
7010-140 Xstation
7010-150 Xstation
7010-160 Xstation
7011-220 33MHz RSC desktop workstation
7011-22W 33MHz RSC desktop workstation
7011-22G 33MHz RSC desktop workstation
7011-230 45MHz RSC desktop workstation
7011-23S 45MHz RSC desktop workstation
7011-23T 45MHz RSC desktop workstation
7011-23W 45MHz RSC desktop workstation
7011-250 66MHz PowerPC desktop workstation
7011-25F 80MHz PowerPC desktop workstation
7011-25S 66MHz PowerPC desktop workstation
7011-25T 66MHz PowerPC desktop workstation
7011-25W 66MHz PowerPC desktop workstation
7012-320 20MHz POWER desktop/deskside workstation/server
7012-32H 25MHz POWER desktop/deskside workstation/server
7012-340 33MHz POWER desktop/deskside workstation/server
7012-34H 41.6MHz POWER desktop/deskside workstation/server
7012-350 41MHz POWER desktop/deskside workstation/server
7012-355 41MHz POWER desktop/deskside workstation/server
7012-360 50MHz POWER desktop/deskside workstation/server
7012-365 50MHz POWER desktop/deskside workstation/server
7012-36T 50MHz POWER desktop/deskside workstation/server
7012-370 62MHz POWER desktop/deskside workstation/server
7012-375 62MHz POWER desktop/deskside workstation/server
7012-37T 62MHz POWER desktop/deskside workstation/server
7012-380 59MHz POWER2 desktop/deskside workstation/server
7012-390 67MHz POWER2 desktop/deskside workstation/server
7012-39H 67MHz POWER2 desktop/deskside workstation/server
7012-G30 PowerPC 601 SMP tower server, 2-4 way
7012-G40 PowerPC 604 112MHz SMP tower server, 2-4 way
7013-520 20MHz POWER deskside server
7013-52H 25MHz POWER deskside server
7013-530 25MHz POWER deskside server
7013-53H 33MHz POWER deskside server
7013-540 30MHz POWER deskside server
7013-550 41.6MHz POWER deskside server
7013-55L 41.6MHz POWER deskside server
7013-560 50MHz POWER deskside server
7013-570 50MHz POWER deskside server
7013-580 62.5MHz POWER deskside server
7013-58H 55MHz POWER2 deskside server
7013-590 66MHz POWER2 deskside server
7013-591 77MHz POWER2 deskside server
7013-595 135MHz P2SC (POWER2 Super Chip) deskside server
7013-59H 66MHz POWER2 deskside server
7013-J30 PowerPC 601 SMP deskside server, 2-8 way
7013-J40 PowerPC 604 112MHz SMP deskside server, 2-8 way
7013-J50 PowerPC 604e 200MHz SMP deskside server, 2-8 way
7015-930 25MHz POWER rack server
7015-950 41MHz POWER rack server
7015-970 50MHz POWER rack server
7015-97B 50MHz POWER rack server
7015-980 62.5MHz POWER rack server
7015-98B 62.5MHz POWER rack server
7015-990 71.5MHz POWER2 rack server
7015-R10 50MHz POWER rack server
7015-R20 66MHz POWER2 rack server
7015-R21 77MHz POWER2 rack server
7015-R24 71.5MHz POWER2 rack server
7015-R30 PowerPC 601 SMP rack server, 2-8 way
7015-R40 PowerPC 604 112MHz SMP rack server, 2-8 way
7015-R50 PowerPC 604e 200MHz SMP rack server, 2-8 way
7016-730 25MHz POWER deskside graphics server
7020 40P PowerPersonal 80MHz PowerPC desktop workstation (ISA/PCI)
7024-E20 PowerPC 604 100MHz tower Workgroup Server (ISA/PCI)
7024-E30 PowerPC 604 133MHz tower Workgroup Server (ISA/PCI)
7025-F30 PowerPC 604 133MHz tower Workgroup Server (ISA/PCI)
7025-F40 PowerPC 604e 166MHz SMP tower Workgroup Server, 1-2 way (ISA/PCI)
7025-F50 PowerPC 604e 166MHz SMP tower server, 1-4 way (ISA/PCI)
7026-H10 PowerPC 604e 166MHz SMP rack Workgroup Server, 1-2 way (ISA/PCI)
7043-140 PowerPC 604e 166MHz/200MHz desktop workstation/server (ISA/PCI)
7043-240 PowerPC 604e 166MHz SMP desktop workstation/server, 1-2 way (ISA/PCI)
7030-3AT 59 MHz POWER2 desktop/deskside workstation
7030-3BT 67 MHz POWER2 desktop/deskside workstation
7030-3CT 67 MHz POWER2 desktop/deskside workstation
7248-100 43P PowerPersonal 100 MHz PowerPC desktop workstation (ISA/PCI)
7248-120 43P PowerPersonal 120 MHz PowerPC desktop workstation (ISA/PCI)
7248-132 43P PowerPersonal 133 MHz PowerPC desktop workstation (ISA/PCI)
7247 PowerPC 603e 100MHz Thinkpad Power Series 820 Laptop (PCMCIA)
7249-821 PowerPC 603e 100MHz Thinkpad Power Series 850 Laptop (PCMCIA)
7249-822 PowerPC 603e 100MHz Thinkpad Power Series 850 Laptop (PCMCIA)
7249-823 PowerPC 603e 100MHz Thinkpad Power Series 850 Laptop (PCMCIA)
7249-860 PowerPC 603e 166MHz Thinkpad Power Series 850 Laptop (PCMCIA)
7317-F3L PowerPC 604 133MHz Telecommunications Rack Server (ISA/PCI)
PowerPC 604e 166MHz Telecommunications Rack Server (ISA/PCI)
9076 PowerParallel SP parallel rack system