close

Вход

Забыли?

вход по аккаунту

?

How to Monitor the z196 - BMC Software

код для вставки
How to Monitor the z196
How to monitor
the z196
BMC – DB2 & Mainview Usertreffen 2012
11. Juni 2012 – Frankfurt
YCOS Yves Colliard Software GmbH
Fremersbergstr. 45
D-76530 Baden-Baden
Tel. +49/7221 9708384
Fax 0322 2374 2352
eMail: ycos@ycos.de
Home: www.ycos.de
В© YCOS Yves Colliard Software
HIS – Hardware Instrumentation Services
How to Monitor the z196
How to Monitor the z196
MIPS and z10 / z114 / z196 ........................................ 3
Reasons for HIS measurement ................................... 4
zSeries Book .............................................................. 5
z9, z10 and z196 Hardware ........................................ 6
CPU Pipeline .............................................................. 7
CPU Pipeline – Dependencies.................................... 8
Cache z9 – z10 – z196 ............................................... 9
Cache Comparison ................................................... 10
Options to "optimize" the cycles ................................ 11
HIS – Hardware Instrumentation Services ................ 12
CPMF – CPU Measurement Facility ......................... 13
HIS – File System create .......................................... 14
HIS – File System symbolic entry ............................. 16
HIS – File System BPXPRMxx ................................. 17
HIS – RACF .............................................................. 18
HIS – SMF Record 113 ............................................. 19
HIS – STC Procedure ............................................... 21
Counters ................................................................... 22
Basic counter calculation .......................................... 25
z196 counter calculation ........................................... 26
В© YCOS Yves Colliard Software
HIS Operation .......................................................... 28
HFS file .CNT ........................................................... 30
SMF Record 113 – HISYSMFR ................................ 33
CPI – cycle per instruction – report .......................... 34
CPI – Y11................................................................. 35
CPI and L1MP – L1 Miss Percent ............................ 36
Memory source ........................................................ 37
HIS113RX – analyzing SMF Data ............................ 38
z10 new instructions................................................. 39
z114/z196 new instructions ...................................... 40
TLB and Large Pages/Frames ................................. 43
Additional material.................................................... 48
z10 counter calculation ............................................ 49
CPI – Y22 – Software Capping ................................ 51
CPI – Y88 – very good CPI ...................................... 52
CPI – Y99 – very low CPU usage............................. 53
Sampling HFS file .MAP ........................................... 54
Sampling HFS file .SMP.cpu# .................................. 56
Format Sampling HFS file ........................................ 57
HIS – Hardware Instrumentation Services
How to Monitor the z196
MIPS and z10 / z114 / z196
MIPS – what is this?
Meaningless Indicator of Processor Speed or Million Instructions Per Second?
MIPS – how much is this?
Look at IBM LSPR, Gardner Group, Cheryl Watson, own table…?
Workload Type and Mix?
Possible Ranges?
MIPS – what are the dependencies?
Hardware (z10, z114, z196, OOO out-of-order execution…)?
LPAR Configuration (number of LPs, Weighting factor, Capping…)?
Software (Version, Release…)?
Functions (Hiperdispatch, Large Frames)?
Workload (Online, Batch, Test, Development, Production…)?
Time variability (Shift, month end…)?
MIPS – how to measure?
with "older" Hardware: no chance!
z10, z114 and z196 with HIS – Hardware Instrumentation Services!
В© YCOS Yves Colliard Software
MIPS and z10 / z114 / z196
Page 3
How to Monitor the z196
Reasons for HIS measurement
Understanding of performance “from inside” the box
Why does the same job need much more CPU during different time?
How are the performance of the different systems and LPARs?
Monitoring of performance changes
based on possible changes:
new hardware, new software, new configuration, new compilers…
Counter monitoring: very low overhead
keep SMF data (interval driven) about:
instructions, cycles, cache/memory efficiency…
Sample monitoring: based on requirements
high detail
higher overhead and VERY high amount of data
not easy to report and analyze (and understand ;-)
В© YCOS Yves Colliard Software
Reasons for HIS measurement
Page 4
How to Monitor the z196
zSeries Book
z10
В© YCOS Yves Colliard Software
1 Book
2 Books
3 Books
4 Books
z10
E12
E26
E40
E56/E64
z196
M15
M32
M49
M66/M80
CPUs
CPUs
Cache
Cache
Memory
Memory
I/Os
I/Os
CPUs
CPUs
Cache
Cache
Memory
Memory
I/Os
I/Os
zSeries Book
z196
Page 5
How to Monitor the z196
z9, z10 and z196 Hardware
z196
2
Spares
z196
17
CP/zAAP/zIIP/ICF/IFL
z196
3
SAP
z10
14+3
M15
L1 64K I +128K D
L3 24M
L3
L3
L3
L3
L3
L3
L3
L3
z196
5.2
GHz
z10
4.4
GHz
z9
1.7
GHz
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L3
Level 4 Cache 192M
z10
L2
48M
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1
L2
L2
L2
L2
L2
L3
L3
z196
ooo
out-of-order
Level 4 Cache
z9
HSA
16G
Memory 32-752G
L3
L3
L3
L3
L3
Level 4 Cache
L3
L3
z9
L3
L3
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L3
L3
M49
z9, z10 and z196 Hardware
z196
66
z10
56
z9
38
z196
80+14+2
M80
z10
64
E64
z9
54
S54
z10
1.5T
z9
512G
Level 4 Cache
Memory 3T
Memory
В© YCOS Yves Colliard Software
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L3
L2
L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1
L2
L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1
L2
PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU
L2
PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU
L2
z9
z10
352G
Memory
z9
z9
128G
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2
L2 1.5M
L2
z9
L2
40M
PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU
L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1 L1
L2
z10
L1.5
3M
M32
PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU PU
L2
z10
L1
64K I
128K D
L2
z9
L1
256K I
256K D
z9
10+2
L2
z196
3
SAP
L2
z196
15
CP/zAAP/zIIP/ICF/IFL
z10
12+3+2
L2
z9
8+2+2
M66
Page 6
How to Monitor the z196
CPU Pipeline
Pipeline
IF – Instruction Fetch
get virtual address of instruction from PSW
translate virtual address to real (DAT)
fetch instruction from cache or central storage
ID – Instruction Decoding
on any input storage operand – calculate virtual address (Base + Displacement)
translate virtual address to real (DAT)
fetch operand(s) from cache or central storage
EX – Execution
on any output storage operand – calculate virtual address (Base + Displacement)
translate virtual address to real (DAT)
execute instruction
WB – Write Back
store output operand(s) to cache
if needed set condition code in PSW
В© YCOS Yves Colliard Software
CPU Pipeline
Page 7
How to Monitor the z196
CPU Pipeline – Dependencies
DAT
Cache
TLB
Level 1 (all)
Level 1.5 (z10) – 2 (z196)
Level 3 (z196)
Level 2 (z9/z10) – 4 (z196)
ART
Storage
ALB
z9 1.7GHz – z10 4.4GHz – z196 5.2GHz
IF
ID
EX
WB
instruction fetch
instruction decode
execution
write back
Instr.4
Instr.3
Instr.2
Instr.1
В© YCOS Yves Colliard Software
CPU Pipeline – Dependencies
Page 8
How to Monitor the z196
L1
L1
L1
L1
L1
L1
L1
L1
L1
L2 1.5M
1 per PU
z10
L1.5
3M
z9
L2
40M
z9
128G
z10
L2
48M
z10
352G
L2
L3 24M
1 per 4 PUs
PU
PU
PU
PU
PU
PU
PU
PU
L3
L3
L3
L2
L2
L2
L2
L2
L2
L2
L2
L2
L1 L164K
L1 Instruction
L1
L1 L1 +
L1 128K
L1
L1Data
L1
1 per PU
L3
PU
PU
PU
PU
PU
L1
L1
L1
L1
L1
L2
L1
PU
L2
PU
L2
PU
L2
PU
L2
PU
L2
PU
L2
PU
L2
PU
L2
PU
L2
PU
L2
PU
L2
z10
L1
64K I
128K D
L2
z9
L1
256K I
256K D
L2
Cache z9 – z10 – z196
L3
Level 4 Cache 192M
1 per Book
Memory 32-752G
1 Local and up to 3 „Remote“
z196
В© YCOS Yves Colliard Software
Cache z9 – z10 – z196
Page 9
How to Monitor the z196
Cache Comparison
z9
Name
Size
Level 1
I-256K / D-256K
z10
Cycles
Name
Size
Level 1
I-64K / D-128K
Level 1.5 3M
z196
Cycles
~ 16-97
Name
Size
Level 1
I-64K / D-128K
Level 2
1.5M
~ 14-48
per PU
Level 3
24M
~ 50-110
per 4 PUs
192M
~ 150-310 / 330-490
per Book
~ 970-1180
per Book/Machine
Level 2
40M
~ 35 / 160
Level 2
48M
~ 90-240 / 240-350
Level 4
Memory
128G / 512G
~ 200 / 350
Memory
352G / 1.5T
~ 970-1110
Memory 752G / 3T
CPU
1.7 GHz
CPU
4.4 GHz
local / remote
CPU
local / remote
Cycles
per PU
5.2 GHz
local / remote
Sources:
IBM 2010: z/OS Version 1 Release 12 Implementation - SG24-7853
IBM 2008: Research - IBM System z10 Processor Cache subsystem microarchitecture
David Bond: Share Session 8193 - San JosГ© August 2008 - Coding Assembler for Performance
Cycles are only "ranges"!
В© YCOS Yves Colliard Software
Cache Comparison
Page 10
How to Monitor the z196
Options to "optimize" the cycles
z10
decode up to 2 instructions per cycle ("finish" up to 3)
new Level 1.5 cache
larger caches
77 new instructions
z114 and z196
ooo – out-of-order execution
new Level 3 cache
larger caches
128 new instructions
Software/Hardware
Hiperdispatch
Large Pages/Frames
Configuration, Software levels…
В© YCOS Yves Colliard Software
Options to "optimize" the cycles
Page 11
How to Monitor the z196
z10
L1.5
3M
TLB
Hardware Instructions
L3 24M
PU
PU
PU
PU
PU
PU
PU
PU
PU
L1 L1 L1 L1 L1 L1 L1 L1 L1
L1L164K
Instruction +128K Data
L1
L1
L1
L1
L1
L1
L1
L1
L1
L2
L2
L2
L2
L2
L2
L2
L2
L2
PSW
Counter
+
Sampling
L3
PU
PU
L2
PU
L3
PU
L2
L2 1.5M
PU
L2
L1
PU
L2
L1
PU
L2
L1
PU
L2
L1
PU
L2
L1
DAT
PU
L2
PU
L2
PU
L2
PU
L2
PU
L2
PU
L2
HIS
z10
L1
64K I
128K D
L2
Coprocessor
L2
HIS – Hardware Instrumentation Services
L3
L3
Level 4 Cache 192M
z10
L2
48M
Memory 32-752G
z10
352G
z196
/system/his
Extended Private
ECSA
EPLPA-EFLPA-EMLPA
SMF
ESQA
SYSHISyyyymmdd.hhmmss.CNT
Nucleus
113
SQA
SYSHISyyyymmdd.hhmmss.MAP
SYSHISyyyymmdd.hhmmss.SMP.cpu#
PLPA-FLPA-MLPA
CSA
Private
В© YCOS Yves Colliard Software
HIS – Hardware Instrumentation Services
Page 12
L3
How to Monitor the z196
CPMF – CPU Measurement Facility
. Information about Hardware/Software
Data Collection done by z Machine (HMC Customization)
Data samples done per CPU by hardware in Buffers
Software Writes counters/samples to HFS datasets
New Hardware Instructions to activate/collect data
HIS – Hardware Instrumentation Services
HMC Customization
Logical Partition Security (counters)
Started Task – HIS (low CPU usage)
UID (non zero)
Home (one per system – use symbolic links)
sample: SYSHISyyyymmdd.hhmmss.MAP – load module mapping
sample: SYSHISyyyymmdd.hhmmss.SMP.cpu# – samples (BIG BIG BIG!)
counter: SYSHISyyyymmdd.hhmmss.CNT – readable counter set (at End)
counter: SMF Record 113 – HISYSMFR
F HIS,Begin|End[,options]
D HIS,
P HIS
SA23-2260 The Load-Program-Parameter and the CPU-Measurement Facilities
SA23-2261 IBM The CPU-Measurement Facility Extended Counters Definition for z10 and z196
Setting Up and Using the IBM System z CPU Measurement Facility with z/OS
В© YCOS Yves Colliard Software
CPMF – CPU Measurement Facility
Page 13
How to Monitor the z196
HIS – File System create
//* change MYSYS to ...
//
SET MYSYS=YV1
//*---------------------------------------------------------------//* Create /&SELSYS/HIS for a mount point
//* Define HIS File System
//* Format HIS File System
//* Mount HIS File System
//*
must run on every system
//*
must run with a user possible of superuser!
//*---------------------------------------------------------------//IKJ
EXEC PGM=IKJEFT01,REGION=8M,DYNAMNBR=128,
//
PARM='%YBPXAUTH &SELSYS=&MYSYS'
//SYSEXEC DD DISP=SHR,DSN=YVES.EXEC
//SYSPROC DD DISP=SHR,DSN=YVES.CLIST
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
//BPXENV
DD DUMMY
//BPXCMDS DD DATA,DLM=$$
* create /HIS in system directory
mkdir -m 700 /&SELSYS/HIS
*
* create acls - directory and file default and access
*
MYGROUP GID 10000
setfacl -m d:group:10000:rwx /&SELSYS/HIS
setfacl -m f:group:10000:rwx /&SELSYS/HIS
setfacl -m group:10000:rwx /&SELSYS/HIS
В© YCOS Yves Colliard Software
HIS – File System create
Page 14
How to Monitor the z196
*
* List system
ls -l /&SELSYS
*
* create a zfs – high size needed for sample
zfsadm define -aggregate OMVS.&SELSYS..HIS -cylinders 150
*
* format a zfs
zfsadm format -aggregate OMVS.&SELSYS..HIS -compat
*
* Mount the file system
/usr/sbin/mount -f OMVS.&SELSYS..HIS
+
-t ZFS
+
-a unmount
+
-d &SELSYS
+
/&SELSYS/HIS
*
* create acls - directory and file default and access
*
MYGROUP GID 10000
setfacl -m d:group:10000:rwx /&SELSYS/HIS
setfacl -m f:group:10000:rwx /&SELSYS/HIS
setfacl -m group:10000:rwx /&SELSYS/HIS
$$
//*
//OUTLIST EXEC PGM=OUTLIST,
PUT OUTPUT
//
COND=EVEN,
//
PARM=('HLQ(YVES.HIS)','HFC(20)','T(Y)')
В© YCOS Yves Colliard Software
HIS – File System create
Page 15
How to Monitor the z196
HIS – File System symbolic entry
//* change MYSYS to ...
//
SET MYSYS=YV1
//*---------------------------------------------------------------//* Create symbolic link
//*
must run once in a sysplex
//*
must run with a user possible of superuser!
//*---------------------------------------------------------------//IKJ
EXEC PGM=IKJEFT01,REGION=8M,DYNAMNBR=128,
//
PARM='%YBPXAUTH &SELSYS=&MYSYS'
//SYSEXEC DD DISP=SHR,DSN=YVES.EXEC
//SYSPROC DD DISP=SHR,DSN=YVES.CLIST
//SYSTSIN DD DUMMY
//SYSTSPRT DD SYSOUT=*
//BPXENV
DD DUMMY
env. variables
//BPXCMDS DD DATA,DLM=$$
* Create symbolic link
ln -s '$SYSNAME/HIS' /HIS
* List system/HIS
ls -l /&SELSYS/HIS
* List /HIS
ls -l /HIS
$$
//*
В© YCOS Yves Colliard Software
HIS – File System symbolic entry
Page 16
How to Monitor the z196
HIS – File System BPXPRMxx
/********************************************************************/
/*
SYSTEM-HIS HFS - Hardware Instrumentation Services
*/
/********************************************************************/
MOUNT
FILESYSTEM('OMVS.&SYSNAME..HIS')
MOUNTPOINT('/&SYSNAME./HIS')
UNMOUNT
/*
Default = AUTOMOVE
TYPE(ZFS) MODE(RDWR)
/*
Default = RDWR
В© YCOS Yves Colliard Software
HIS – File System BPXPRMxx
*/
*/
Page 17
How to Monitor the z196
HIS – RACF
//* define the STC userid HIS
//* permit the STC userid
//BATCH
EXEC PGM=IKJEFT01,REGION=2M
//SYSTSPRT DD SYSOUT=*
//SYSLBC
DD DISP=SHR,DSN=SYS1.BRODCAST
//SYSTSIN DD *
PROF MSGID
ADDUSER
CONNECT
ALTUSER
RDEFINE
HIS NAME('STC HIS') DFLTG(mygroup) +
DATA('IBM HARDWARE INSTRUMENTATION SERVICES') NOPASSWORD
HIS GRO(grpcon) OWN(grpown1)
<- custom
HIS OMVS( UID(11104) HOME('/HIS') PROGRAM('/bin/sh'))
<- custom uid
STARTED HIS.* OWN(grpown2) +
DATA('put what you want') +
STDATA( USER(=MEMBER) TRUSTED(NO) PRIVILEGED(NO) TRACE(NO) ) <- custom
And others like JESSPOOL…
В© YCOS Yves Colliard Software
HIS – RACF
Page 18
How to Monitor the z196
HIS – SMF Record 113
SMF in Logstream used – Mapping HISYSMFR
Records 113 are put in a separate SMF CF Logstream
Activate 113 in PARMLIB(SMFPRMxx)
NOTYPE in IFASMF.&SYSNAME..BASE
TYPE in IFASMF.R113
Create and activate CFRM Policy
STRUCTURE NAME(LOGR_SMF_R113)
SIZE(26000)
/*
FULLTHRESHOLD(95)
PREFLIST(CF1,CF2,CF3)
*/
Update LOGR Policy
DEFINE STRUCTURE NAME(LOGR_SMF_R113)
LOGSNUM(1)
MAXBUFSIZE(65532)
AVGBUFSIZE(32767)
DEFINE LOGSTREAM NAME(IFASMF.R113)
DESCRIPTION(SMF_LOGSTRM)
В© YCOS Yves Colliard Software
HIS – SMF Record 113
Page 19
How to Monitor the z196
STRUCTNAME(LOGR_SMF_R113)
HLQ(SMFLOG)
LS_DATACLAS(DCLOGER)
LS_SIZE(6000)
STG_DUPLEX(YES)
STG_DATACLAS(DCLOGER)
STG_SIZE(8000)
HIGHOFFLOAD(80)
LOWOFFLOAD(0)
RETPD(60)
AUTODELETE(YES)
DIAG(YES)
В© YCOS Yves Colliard Software
HIS – SMF Record 113
Page 20
How to Monitor the z196
HIS – STC Procedure
From SYS1.PROCLIB(HIS) – also defined in WLM
//HIS
PROC
//HIS
EXEC PGM=HISINIT,REGION=0K,TIME=NOLIMIT
//*
//* You can specify an MVS command file to contain some or all of
//* the settings for the instrumentation run. The command file
//* must have fixed-length LRECL=80 records.
//*
//* If this option is desired,
//* 1. Replace 'DUMMY' below with the name of the MVS command
//*
file and its DISPOSITION.
//* 2. Specify the DDNAME keyword on the 'MODIFY HIS' command.
//*
For example:
//*
"MODIFY HIS,BEGIN,DDNAME=CMDFILE1"
//*
//CMDFILE1 DD DUMMY
//CMDFILE2 DD DUMMY
//SYSPRINT DD SYSOUT=*
//*
//********************************************************************/
//*
*/
//*01* PROCEDURE NAME : HIS
*/
…
//* LICENSED MATERIALS - PROPERTY OF IBM
*
//* 5694-A01
*
//* COPYRIGHT IBM CORP. 2008
*
В© YCOS Yves Colliard Software
HIS – STC Procedure
Page 21
How to Monitor the z196
Counters
1 – Basic counter set
Cycle count
Instruction count
Level-1 I-cache directory write count
Level-1 I-cache penalty cycle count
Level-1 D-cache directory write count
Level-1 D-cache penalty cycle count
Reserved
B0
B1
B2
B3
B4
B5
B6-B31
2 – Problem-state counter set
(subset of Bx counters)
Problem state cycle count
P32
Problem state instruction count
P33
Problem state level-1 I-cache directory write count P34
Problem state level-1 I-cache penalty cycle count
P35
Problem state level-1 D-cache directory write count P36
Problem state level-1 D-cache penalty cycle count
P37
Reserved
P38-P63
В© YCOS Yves Colliard Software
Counters
Page 22
How to Monitor the z196
3 – Crypto counter set
PRNG function count
PRNG cycle count
PRNG blocked function count
PRNG blocked cycle count
SHA function count
SHA cycle count
SHA blocked function count
SHA blocked cycle count
DES function count
DES cycle count
DES blocked function count
DES blocked cycle count
AES function count
AES cycle count
AES blocked function count
AES blocked cycle count
Reserved
В© YCOS Yves Colliard Software
Counters
C64
C65
C66
C67
C68
C69
C70
C71
C72
C73
C74
C75
C76
C77
C78
C79
C80-C127
Page 23
How to Monitor the z196
4 – Extended counter set – hardware dependent
z10
Dir Write L1 Instr from L1.5
Dir Write L1 Data from L1.5
Dir Write L1 Instr from L2
Dir Write L1 Data from L2
Dir Write L1 Instr from rem L2
Dir Write L1 Data from rem L2
Dir Write L1 Instr from Mem
Dir Write L1 Data from Mem
Dir Write L1 Read-Only State
L1 Cache invalidate
Write L1 Inst TLB
Write L1 Data TLB
Write L2 TLB Page Table
Write L2 TLB Common Reg Seg Tab 4K
Write L2 TLB Common Reg Seg Tab 1M
Undefined
Undefined
Level-1 Instruction TLB miss
Level-1 Data TLB miss
Store sent to L1.5
Undefined
Undefined
Undefined
Undefined
В© YCOS Yves Colliard Software
E128
E129
E130
E131
E132
E133
E134
E135
E136
E137
E138
E139
E140
E141
E142
E143
E144
E145
E146
E147
E148
E149
E150
E151
z196
Dir Write L1 Data from L1
Dir Write L1 Instr from L1
Write L1 Data TLB
Write L1 Inst TLB
Undefined
Store sent to L2
Dir Write L1 Data from rem L3
Dir Write L1 Data from L4
Dir Write L1 Instr from L4
Dir Write L1 Read-Only State
Dir Write L1 Data from rem L4
Dir Write L1 Instr from rem L4
Level-1 Instruction TLB miss 1M
Dir Write L1 Data from Mem
Dir Write L1 Instr from Mem
Dir Write L1 Instr from rem L3
Level-1 Data TLB miss
Level-1 Instruction TLB miss
Write L2 TLB Page Table
Write L2 TLB Common Reg Seg Tab 1M
Write L2 TLB Common Reg Seg Tab 4K
Undefined
Dir Write L1 Data from L3
Undefined
Dir Write L1 Data from L3 local
Dir Write L1 Instr from L3
Undefined
Dir Write L1 Instr from L3 local
Undefined
Counters
E128
E129
E130
E131
E132
E133
E134
E135
E136
E137
E138
E139
E140
E141
E142
E143
E144
E145
E146
E147
E148
E149
E150
E151
E152
E153
E154
E155
E156
Page 24
How to Monitor the z196
Basic counter calculation
CPI=B0 / B1
CPI = Cycles per Instruction
B0=Cycle count
B1=Instruction count
PRBSTATE=(P33 / B1) * 100
PRBSTATE = % Problem State
P33=Problem state instruction count
B1=Instruction count
LPARCPU=(((1/CPSP/1.000.000)*B0)/interval in seconds) * 100
LPAR CPU Utilization
CPSP=Problem speed in cycles/microsecond
B0=Cycle count
В© YCOS Yves Colliard Software
Basic counter calculation
Page 25
How to Monitor the z196
z196 counter calculation
L1MP=((B2+B4) / B1) * 100
L1MP = Level 1 Miss %
L2P =((E128+E129) / (B2+B4)) * 100
L2P = % sourced from L2 cache
L3P =((E150+E153) / (B2+B4)) * 100
L3P = % sourced from L3 cache
L4LP=((E135+E136+E152+E155) / (B2+B4)) * 100
L4LP = % sourced from Level 4 Local cache (on same book)
L4RP=((E138+E139+E134+E143) / (B2+B4)) * 100
L4RP = % sourced from Level 4 Remote cache (on different book)
MEMP=(((E141+E142) + (B2+B4-E128-E129-E150-E153-E135-E136-E152-E155
-E138-E139-E134-E143-E141-E142)) /
(B2+B4)) * 100
MEMP = % sourced from Memory
В© YCOS Yves Colliard Software
z196 counter calculation
Page 26
How to Monitor the z196
TLB1 CPU Miss % of Total CPU=((E130+E131)/B0)*100
TLB1 CPU Miss % of Total CPU (TLB = Translation lookaside buffer)
TLB1 Cycles per TLB Miss=(E130+E131)/(E144+E145)
TLB1 Cycles per TLB Miss
PTE % of all TLB1 Misses=(E146/(E144+E145))*100
PTE % of all TLB1 Misses (PTE = Page Table Entry)
And others…
В© YCOS Yves Colliard Software
z196 counter calculation
Page 27
How to Monitor the z196
HIS Operation
Address Space Start
S HIS
HIS002I hisproc INITIALIZATION COMPLETE
Data Collection Start
F HIS,Begin|B
[,TiTle|TT='title']
[,PATH='/HIS']
[,DURartion|DUR=mins]
[,CTRset|CTR=ALL|Basic|Prob|Crypto|Ext]
[,DDname|DD=name]
[,CTRONLY|MAPONLY]
[,MAPVerbos]
[,BUFcnt|BUF=4-1024]
[,SamType|ST=Basic|Diagnose]
[,SampFreq|SF=nnn]
[,DataLos|DL=IGNORE|STOP]
[,MAPaSid|MAPS=ALL|(asid1,asid2...)]
[,MapJOB|MJOB=(job1,job2,job3...)]
OA30486 - z/OS 1.12
[,StateChange|SC=SAVE|STOP|IGNORE]
[,SmfIntval|SI=SYNC|intvmin]
HIS011I hisproc DATA COLLECTION STARTED
В© YCOS Yves Colliard Software
HIS Operation
default sample 10 / counter none
cmds from STC
only Counter or Map
MAP error infos
pages – default dynamic
default Basic
per minute - default 800.000
default IGNORE
default none
default none
default SAVE
default 15 minutes
Page 28
How to Monitor the z196
- Start within Sysplex the Counters for 10 Hours – SYNC with SMF
ro *ALL,F HIS,B,TT='Test',CTR=ALL,CTRONLY,DUR=600,SMFINTVAL=SYNC
- Start Counters, Sampling and Mapping for MYJOB – run 10 Minutes
F HIS,B,TT='Test map',CTR=ALL,DUR=10,MJOB=(MYJOB)
HIS Information
D HIS
Data Collection Stop
F HIS,End|E
HIS022I hisproc DATA COLLECTION IS ENDING.
OUTPUT FILE PREFIX: SYSHISfileprefix.
TITLE=title
Address Space Stop (also Collection Stop)
P HIS
HIS012I hisproc DATA COLLECTION ENDED
В© YCOS Yves Colliard Software
HIS Operation
Page 29
How to Monitor the z196
HFS file .CNT
HIS019I EVENT COUNTERS INFORMATION VERSION 1
FILE NAME: SYSHIS20101130.094514.CNT
COMMAND: MODIFY HIS,B,TT='runid',PATH='/tmp/HIS/',CTR=ALL
LOST SAMPLES: 0
COUNTER VERSION NUMBER 1: 1
COUNTER VERSION NUMBER 2: 1
COUNTER SET= BASIC
COUNTER IDENTIFIERS:
0: CYCLE COUNT
1: INSTRUCTION COUNT
2: L1 I-CACHE DIRECTORY-WRITE COUNT
3: L1 I-CACHE PENALTY CYCLE COUNT
4: L1 D-CACHE DIRECTORY-WRITE COUNT
5: L1 D-CACHE PENALTY CYCLE COUNT
START TIME: 2010/11/30 09:45:14 START TOD: C6F517F149FBA907
END TIME:
2010/11/30 09:48:55 END TOD:
C6F518C46733428B
COUNTER VALUES (HEXADECIMAL) FOR CPU 00 (CPU SPEED = 4404 CYCLES/MIC):
0- 3 00000068272BB835 0000000DC002823F 00000000590F72F3 0000001F70A49DDC
4- 7 0000000036130897 000000315A520604 ---------------- ---------------...
CPU 0
Counter B0 Cycles
= x„68272BB835‟ ->
Counter B1 Instruktionen
= x‟0DC002823F„ ->
CPI Cycles pro Instruktionen: B0/B1 = 7,5
В© YCOS Yves Colliard Software
Decimal = 447.333.775.413
Decimal = 059.055.964.735
HFS file .CNT
Page 30
How to Monitor the z196
COUNTER SET= PROBLEM-STATE
COUNTER IDENTIFIERS:
32: PROBLEM-STATE CYCLE COUNT
33: PROBLEM-STATE INSTRUCTION COUNT
34: PROBLEM-STATE L1 I-CACHE DIRECTORY-WRITE COUNT
35: PROBLEM-STATE L1 I-CACHE PENALTY CYCLE COUNT
36: PROBLEM-STATE L1 D-CACHE DIRECTORY-WRITE COUNT
37: PROBLEM-STATE L1 D-CACHE PENALTY CYCLE COUNT
START TIME: 2010/11/30 09:45:14 START TOD: C6F517F149FBA907
END TIME:
2010/11/30 09:48:55 END TOD:
C6F518C46733428B
COUNTER VALUES (HEXADECIMAL) FOR CPU 00 (CPU SPEED = 4404 CYCLES/MIC):
32- 35 0000001982BBF5F0 0000000401C1230E 000000000D6ECD05 0000000922A5348F
36- 39 000000000BE50366 0000000BEFBC80FC ---------------- ---------------START TIME: 2010/11/30 09:45:14 START TOD: C6F517F14A1A0100
END TIME:
2010/11/30 09:48:55 END TOD:
C6F518C467355C8B
COUNTER VALUES (HEXADECIMAL) FOR CPU 01 (CPU SPEED = 4404 CYCLES/MIC):
32- 35 0000001D9CB2BA89 000000059FF30F1D 000000000E718F4E 0000000957347D91
36- 39 000000000D5C7EB6 0000000D275CA223 ---------------- ---------------START TIME: 2010/11/30 09:45:14 START TOD: C6F517F14A2AF507
END TIME:
2010/11/30 09:48:55 END TOD:
C6F518C46736B38B
COUNTER VALUES (HEXADECIMAL) FOR CPU 02 (CPU SPEED = 4404 CYCLES/MIC):
32- 35 0000001E8B54A6C7 000000061064F2BC 000000000ED09464 000000096981A5E0
36- 39 000000000D925833 0000000D51208422 ---------------- ---------------...
В© YCOS Yves Colliard Software
HFS file .CNT
Page 31
How to Monitor the z196
COUNTER SET= EXTENDED
COUNTER IDENTIFIERS:
MODEL DEPENDENT INFORMATION NOT AVAILABLE
START TIME: 2010/11/30 09:45:14 START TOD: C6F517F149FBA907
END TIME:
2010/11/30 09:48:55 END TOD:
C6F518C46733428B
COUNTER VALUES (HEXADECIMAL) FOR CPU 00 (CPU SPEED = 4404 CYCLES/MIC):
128-131 000000004F7186D7 0000000020BC10A0 000000000345BF01 00000000040F5189
132-135 00000000024C4DA1 000000000653386B 0000000002DB6FDD 0000000000CA3BED
136-139 0000000000F1EC27 0000000000540475 0000000009BE0FDE 000000000E14F691
140-143 00000000080D10DF 00000000013B8B5D 0000000000000000 0000000000000000
144-147 0000000000000000 000000075A65B163 00000014A7E227C7 00000002B8A2C427
148-151 0000000000000000 0000000000000000 0000000000000000 0000000000000000
START TIME: 2010/11/30 09:45:14 START TOD: C6F517F14A1A0100
END TIME:
2010/11/30 09:48:55 END TOD:
C6F518C467355C8B
COUNTER VALUES (HEXADECIMAL) FOR CPU 01 (CPU SPEED = 4404 CYCLES/MIC):
128-131 0000000054FCA8AD 000000001D96D58D 00000000063E31A5 0000000007DCE1E3
132-135 0000000001508244 00000000044C6367 000000000361FA73 00000000013117CD
136-139 000000000105CCB3 0000000000692676 00000000097DC0EB 000000000CA38F27
140-143 0000000008C87466 0000000001750550 0000000000000000 0000000000000000
144-147 0000000000000000 00000006AAFE3E8C 00000012DCD8278C 00000002C2DF2E4F
148-151 0000000000000000 0000000000000000 0000000000000000 0000000000000000
START TIME: 2010/11/30 09:45:14 START TOD: C6F517F14A2AF507
END TIME:
2010/11/30 09:48:55 END TOD:
C6F518C46736B38B
COUNTER VALUES (HEXADECIMAL) FOR CPU 02 (CPU SPEED = 4404 CYCLES/MIC):
128-131 000000005E268774 000000001BE77FE0 0000000005F29BA0 0000000007743DCE
132-135 00000000014DDA1C 00000000043CEA9B 0000000003298F48 00000000011DB8F9
136-139 00000000010AABC4 000000000071F152 0000000009FAB122 000000000BFEA69B
140-143 0000000008127E4E 00000000014B7EC3 0000000000000000 0000000000000000
144-147 0000000000000000 00000006706D9242 00000011C91F80C4 00000002E389062B
148-151 0000000000000000 0000000000000000 0000000000000000 0000000000000000
...
В© YCOS Yves Colliard Software
HFS file .CNT
Page 32
How to Monitor the z196
SMF Record 113 – HISYSMFR
SMF Header
Subsystem section – Offset, Length, Number
Record version number, Product name, MVS product level
Identification section – Offset, Length, Number
Job name, Reader start time & date, Step name
Subtype 2 section – Offset, Length, Number
Type 113 Header:
Time run and SMF recording, CPU# and type, record type (first, intermediate, final)
counter set section – Offset, Length, Number
counter type (1, 2, 3 or 4)
1 – Basic counter set
2 – Problem-state counter set
3 – Crypto counter set
4 – Extended counter set (Hardware Dependent)
number of counters
counter bit pattern – every bit is one counter
counter section – Offset, Length, Number
counter (SUM) 8 bytes
В© YCOS Yves Colliard Software
SMF Record 113 – HISYSMFR
Page 33
How to Monitor the z196
CPI – cycle per instruction – report
08
07
06
Y11
Y22
Y33
Y44
05
Y55
Y66
Y77
04
Y88
Y99
YAA
03
YBB
02
01
09:45
10:15
10:45
11:15
В© YCOS Yves Colliard Software
11:45
12:15
12:45
13:15
13:45
14:15
14:45
CPI – cycle per instruction – report
15:15
15:45
16:15
16:45
17:15
17:45
Page 34
How to Monitor the z196
CPI – Y11
70
08
60
07
50
06
40
05
CPI
PRBSTATE
LPARCPU
30
04
20
03
10
02
00
01
09:45
10:15
10:45
11:15
В© YCOS Yves Colliard Software
11:45
12:15
12:45
13:15
13:45
14:15
14:45
CPI – Y11
15:15
15:45
16:15
16:45
17:15
CPI
17:45
Page 35
09:45
10:30
11:15
12:00
12:45
13:30
14:15
15:00
15:45
16:30
17:15
09:45
10:30
11:15
12:00
12:45
13:30
14:15
15:00
15:45
16:30
17:15
09:45
10:30
11:15
12:00
12:45
13:30
14:15
15:00
15:45
16:30
17:15
09:45
10:30
11:15
12:00
12:45
13:30
14:15
15:00
15:45
16:30
17:15
How to Monitor the z196
CPI and L1MP – L1 Miss Percent
16
14
12
10
08
Y22
Y11
В© YCOS Yves Colliard Software
Y99
Y88
CPI and L1MP – L1 Miss Percent
CPI
L1MP
06
04
02
00
Page 36
How to Monitor the z196
Memory source
100
08
90
07
80
06
70
05
60
MEMP
L4LP
50
04
L3P
L2P
40
03
CPI
30
02
20
01
10
00
00
09:45 11:15 12:45 14:15 15:45 17:15 10:30 12:00 13:30 15:00 16:30 09:45 11:15 12:45 14:15 15:45 17:15 10:30 12:00 13:30 15:00 16:45
В© YCOS Yves Colliard Software
Memory source
Page 37
How to Monitor the z196
HIS113RX – analyzing SMF Data
YCOS HIS113RX can be used to format SMF Records 113 (OPEN SOURCE! at own risk ;-)
Model
2817
2817
2817
2817
2817
2817
SID_TME
SMF113_2_CPU# SMF113_2_CPTY
Y12 08:45
0 CP
Y12 08:45
1 CP
Y12 08:45
2 CP
Y12 09:00
0 CP
Y12 09:00
1 CP
Y12 09:00
2 CP
SMF113_2_CFT SMF113_2_CPSP CPI_ PRBSTATE LPARCPU L1MP_ L2P__ L3P__
Inter
2604 7,1
15,1
0,1
4,2 44,9 33,6
Inter
2604 6,7
17,0
0,1
4,3 43,1 37,3
Inter
2604 6,3
13,7
0,1
3,5 42,9 34,7
Inter
2604 6,6
15,0
2,0
3,6 45,5 33,2
Inter
2604 6,9
16,2
1,9
4,3 45,2 35,6
Inter
2604 6,9
17,7
2,0
3,8 45,1 33,1
L4LP_ L4RP_ MEMP_ TLB1_CPU_MISS TLB1_CYCLES PTE_TLB1_MISS SMF113TME
14,3
0,0
7,2
15,8
102,6
71,3 08:45:00
13,6
0,0
6,1
17,6
94,1
72,6 08:45:00
15,1
0,0
7,3
14,5
101,3
73,9 08:45:00
14,4
0,0
6,9
14,2
100,2
70,3 09:00:00
13,0
0,0
6,2
15,9
93,1
70,8 09:00:00
14,6
0,0
7,2
14,3
99,7
71,2 09:00:00
SMF113DTE
12/04/12
12/04/12
12/04/12
12/04/12
12/04/12
12/04/12
SMF113SID LPAR_IX SMF113WID SMF113STP
Y12
1 HIS
0002
Y12
1 HIS
0002
Y12
1 HIS
0002
Y12
1 HIS
0002
Y12
1 HIS
0002
Y12
1 HIS
0002
…
Cycle_cnt___________________________B0 Instruction_cnt_____________________B1 …
2199391976
308639522 …
2148916033
321510340 …
2271514178
359737312 …
49783879220
7500717943 …
47391477309
6848577839 …
48008311770
6970546975 …
Run as an Edit Macro (YCSLOG view SMF 113 records) or Batch
Output to Excel -> nice…
В© YCOS Yves Colliard Software
HIS113RX – analyzing SMF Data
Page 38
How to Monitor the z196
z10 new instructions
EB7A
EB7E
EB6E
EB6A
C6.C
E334
C6.4
E558
ECFC
EC7C
EC70
ECE4
EC64
C6.8
B960
E554
C6.5
E55C
ECFE
EC7E
EC72
E55D
EC73
C6.E
C6.6
E559
ECFD
EC7D
EC71
ECE5
EC65
C6.A
B961
E555
C6.7
ECFF
EC7F
ECF7
AGSI
ALGSI
ALSI
ASI
CGFRL
CGH
CGHRL
CGHSI
CGIB
CGIJ
CGIT
CGRB
CGRJ
CGRL
CGRT
CHHSI
CHRL
CHSI
CIB
CIJ
CIT
CLFHSI
CLFIT
CLGFRL
CLGHRL
CLGHSI
CLGIB
CLGIJ
CLGIT
CLGRB
CLGRJ
CLGRL
CLGRT
CLHHSI
CLHRL
CLIB
CLIJ
CLRB
Add Signed Immediate
Add Logical Signed Immediate
Add Logical Signed Immediate
Add Signed Immediate
Compare Relative
Compare Halfword
Compare Halfword Relative
Compare Halfword Immediate
Compare Immediate and Branch
Compare Immediate and Branch Relative
Compare Immediate and Trap
Compare and Branch
Compare and Branch Relative
Compare Relative
Compare and Trap
Compare Halfword Immediate
Compare Halfword Relative
Compare Halfword Immediate
Compare Immediate and Branch
Compare Immediate and Branch Relative
Compare Immediate and Trap
Compare Logical Halfword Immediate
Compare Logical Immediate and Trap
Compare Logical Relative
Compare Logical Halfword Relative
Compare Logical Halfword Immediate
Compare Logical Immediate and Branch
Compare Logical Immediate and Branch Relative
Compare Logical Immediate and Trap
Compare Logical and Branch
Compare Logical and Branch Relative
Compare Logical Relative
Compare Logical and Trap
Compare Logical Halfword Immediate
Compare Logical Halfword Relative
Compare Logical Immediate and Branch
Compare Logical Immediate and Branch Relative
Compare Logical and Branch
В© YCOS Yves Colliard Software
EC77
C6.F
B973
ECF6
EC76
C6.D
B972
EB4C
C6.0
E375
C4.C
C4.4
C4.8
C4.5
C4.E
C4.6
C4.2
C4.D
E332
E35C
E37C
C2.1
C2.0
E548
E544
E54C
E336
C6.2
B9AF
B9A2
EC55
EC54
EC56
EC57
C4.B
C4.7
C4.F
B9BF
B9BD
CLRJ
CLRL
CLRT
CRB
CRJ
CRL
CRT
ECAG
EXRL
LAEY
LGFRL
LGHRL
LGRL
LHRL
LLGFRL
LLGHRL
LLHRL
LRL
LTGF
MFY
MHY
MSFI
MSGFI
MVGHI
MVHHI
MVHI
PFD
PFDRL
PFMF
PTF
RISBG
RNSBG
ROSBG
RXSBG
STGRL
STHRL
STRL
TRTE
TRTRE
z10 new instructions
Compare Logical and Branch Relative
Compare Logical Relative
Compare Logical and Trap
Compare and Branch
Compare and Branch Relative
Compare Relative
Compare and Trap
Extract Cache Attribute
Execute Relative
Load Address Extended
Load Relative
Load Halfword Relative
Load Relative
Load Halfword Relative
Load Logical Relative
Load Logical Halfword Relative
Load Logical Halfword Relative
Load Relative
Load and Test
Multiply
Multiply Halfword
Multiply Single Immediate
Multiply Single Immediate
Move Immediate
Move Immediate
Move Immediate
Prefetch Data
Prefetch Data Relative
Perform Frame Management Function
Perform Topology Function
Rotate then Insert Selected Bits
Rotate then And Selected Bits
Rotate then Or Selected Bits
Rotate then Exclusive Or Selected Bits
Store Relative
Store Halfword Relative
Store Relative
Translate and Test Extended
Translate and Test Reversed Extended
Page 39
How to Monitor the z196
z114/z196 new instructions
Conditional load/store
LGOC, LGROC, LOC, LROC, STGOC, STOC
Distinct-operands
AGHIK, AGRK, AHIK, ALGHSIK, ALGRK, ALHSIK, ALRK, ARK, NGRK, NRK, OGRK, ORK, SGRK,
SLAK, SLGRK, SLLK, SLRK, SRAK, SRK, SRLK, XGRK, XRK
High-word
AHHHR, AHHLR, AIH, ALHHHR, ALHHLR, ALSIH, ALSIHN, BRCTH, CHF, CHHR, CHLR, CIH, CLHF,
CLHHR, CLHLR, CLIH, LBH, LHH, LFH, LLCH, LLHH, RISBHG, RISBLG, STCH, STHH, STFH
Floating-point-extension
ADTRA, AXTRA, CDFBRA, CDFTR, CDGBRA, CDGTRA, CDLFBR, CDLFTR, CDLGBR, CDLGTR, CEFBRA,
CEGBRA, CELFBR, CELGBR, CFDBRA, CFDTR, CFEBRA, CFXBRA, CFXTR, CGDBRA, CGDTRA, CGEBRA,
CGXBRA, CGXTRA, CLFDBR, CLFDTR, CLFEBR, CLFXBR, CLFXTR, CLGDBR, CLGDTR, CLGEBR,
CLGXBR, CLGXTR, CXFBRA, CXFTR, CXGBRA, CXGTRA, CXLFBR, CXLFTR, CXLGBR, CXLGTR, DDTRA,
DXTRA, FIDBRA, FIEBRA, FIXBRA, LDXBRA, LEDBRA, LEXBRA, MDTRA, MXTRA, SDTRA, SRNMB,
SXTRA
Interlocked-access
LAA, LAAG, LAAL, LAALG, LAN, LANG, LAO, LAOG, LAX, LAXG, LPD, LPDG
Message-security assist extension 3
PCKMO
Message-security assist extension 4
KMCTR, KMF, KMO, PCC
Population-count
POPCNT
Reset-reference-bits-multiple
RRBM
В© YCOS Yves Colliard Software
z114/z196 new instructions
Page 40
How to Monitor the z196
z196 – Conditional load/store:
Load on Condition – sample
LOCR R1,R2,M3 – RRF – B9F2
M3 = condition code check then -> R1 (32-63) to R2 (32-63)
LOGCR – 64 Bits
z196 – Distinct-operands:
Add – sample
ARK R1,R2,R3 – RRF – B9F8
R3 (32-63) + R2 (32-63) to R1 (32-63)
Condition Code set (as before)
AGRK – 64 Bits
В© YCOS Yves Colliard Software
z114/z196 new instructions
Page 41
How to Monitor the z196
z196 – High-word:
Add High – sample
AHHHR R1,R2,R3 – RRF – B9C8
R3 (0-31) + R2 (0-31) to R1 (0-31)
Condition Code set (as before)
В© YCOS Yves Colliard Software
z114/z196 new instructions
Page 42
How to Monitor the z196
TLB and Large Pages/Frames
Large Page/Frame Reasons
“Getmain” above 2GB use 1MB Boundary
TLB (Translation Lookaside Buffer) misses – TLB Size still “the same” – Storage much more!
many very Storage intensive Applications (DB2...)
Large Page Implementation – minimum z10!
Parmlib IEASYSxx
LFAREA=0M | nnnnnnM | nnnnnnG | nnnnnnT | nn%
Default 0M – do not allocate Large Frames
Maximum: Storage Size – 80%
Changes need IPL
(new Messages: IAR020I – feature not avail, IAR021I – stor not avail, IAR022I – max, IAR023A – invalid parm)
В© YCOS Yves Colliard Software
TLB and Large Pages/Frames
Page 43
How to Monitor the z196
DAT
Virtual Page 4k -> Real Frame 4k
Dynamic Address Translation
Virtual Page 4k -> Real Frame 4k
Use TLB or Tables
Virtual Segment 1m -> Real Large Frame
Virtual Page 4k -> Real Frame 4k
Virtual Page 4k -> Real Frame 4k
Storage
Virtual Segment 1m -> Real Large Frame
Virtual Page 4k -> Real Frame 4k
Virtual Page 4k -> Real Frame 4k
TLB
Translation Lookaside Buffer
First
Region
Table
Second
Region
Table
Third
Region
Table
Central Storage
Segment
Table
Page
Table
16E
8G Regions
8P
4M Regions
4T
2K Regions
2G
1 Region-2048Seg
1M
256 Pages
Displacement
4096Bytes
Virtual Address
В© YCOS Yves Colliard Software
TLB and Large Pages/Frames
Scan
Storage
Large
Frame
256 * 4K
Page 44
How to Monitor the z196
Large Page Usage
Large Frames
are created of 256 contiguous 4K Pages
are not Pageable and not Reconfigurable and
“allocated” at storage allocation (No Guard Areas)
can be used to back 4K pages (4K shortage)
IARV64 GETSTOR|GETCOMMON PAGEFRAMESIZE=4K|1MEG|MAX
non-Authorized Programs – OA25485 and
RACF READ to FACILITY IARRSM.LRGPAGES
New Abend DC2 (0022 not available, 0053 not auth, 0054 not EDAT...)
IARV64 LIST PAGEFRAMESIZE=4K|1MEG|ALL
CVT -> CVTEDAT – Function Available
SRM Usage Monitoring (IRA120E 80%, IRA121E 95%, IRA122I relieve)
RMF Report
NOT DESIGNED for General Use! (not supported under z/VM)
Current: IOS UCBX, Trace, CSM (IP – IVTPRMxx)
in Future: z/OS, DB2, Java 6.0 SR1
В© YCOS Yves Colliard Software
TLB and Large Pages/Frames
Page 45
How to Monitor the z196
Large Page Usage
Support for Nucleus (31Bit)
APAR OA31116 should be reviewed
Command
D VirtStor,LFAREA
D VS,LFAREA
SOURCE =[xx|(OP)|DEFAULT]
TOTAL LFAREA =
LFAREA AVAILABLE =
LFAREA ALLOCATED (1M) =
LFAREA ALLOCATED (4K) =
MAX LFAREA ALLOCATED (1M) =
MAX LFAREA ALLOCATED (4K) =
В© YCOS Yves Colliard Software
TLB and Large Pages/Frames
Page 46
How to Monitor the z196
Questions?
Merci!
Thank you!
Danke!
В© YCOS Yves Colliard Software
Page 47
How to Monitor the z196
Additional material
В© YCOS Yves Colliard Software
Page 48
How to Monitor the z196
z10 counter calculation
L1MP=((B2+B4) / B1) * 100
L1MP = Level 1 Miss %
L15P=((E128+E129) / (B2+B4)) * 100
L15P = % sourced from L1.5 cache
L2LP=((E130+E131) / (B2+B4)) * 100
L2LP = % sourced from Level 2 Local cache (on same book)
L2RP=((E132+E133) / (B2+B4)) * 100
L2RP = % sourced from Level 2 Remote cache (on different book)
MEMP=(((E134+E135) +
(B2+B4-E128-E129-E130-E131-E132-E133-E134-E135))
/ (B2+B4)) * 100
MEMP = % sourced from Memory
В© YCOS Yves Colliard Software
Page 49
How to Monitor the z196
TLB1_CPU_MISS=((E145+E146)/B0)*100
TLB1 CPU Miss % of Total CPU (TLB = Translation lookaside buffer)
TLB1_CYCLES=(E145+E146)/(E138+E139)
TLB1 Cycles per TLB Miss
PTE_TLB1_MISS=((E140/(E138+E139))*100
PTE % of all TLB1 Misses (PTE = Page Table Entry)
В© YCOS Yves Colliard Software
Page 50
How to Monitor the z196
CPI – Y22 – Software Capping
50
08
CPI
45
07
40
06
35
30
05
PRBSTATE
25
LPARCPU
04
CPI
20
15
03
10
02
05
00
01
09:45
10:15
10:45
11:15
В© YCOS Yves Colliard Software
11:45
12:15
12:45
13:15
13:45
14:15
14:45
15:15
15:45
16:15
16:45
17:15
17:45
Page 51
How to Monitor the z196
CPI – Y88 – very good CPI
100
08
CPI
90
07
80
06
70
60
05
PRBSTATE
50
LPARCPU
04
CPI
40
30
03
20
02
10
00
01
09:45
10:15
10:45
11:15
В© YCOS Yves Colliard Software
11:45
12:15
12:45
13:15
13:45
14:15
14:45
15:15
15:45
16:15
16:45
17:15
17:45
Page 52
How to Monitor the z196
CPI – Y99 – very low CPU usage
90
08
CPI
80
07
70
06
60
05
50
PRBSTATE
LPARCPU
40
04
CPI
30
03
20
02
10
00
01
09:45
10:15
10:45
11:15
В© YCOS Yves Colliard Software
11:45
12:15
12:45
13:15
13:45
14:15
14:45
15:15
15:45
16:15
16:45
17:15
17:45
Page 53
How to Monitor the z196
Sampling HFS file .MAP
I SYS YV1
I SMFIYV1
I OS z/OS
I FMIDHBB7760
I DATE11013
I TIME12545711
I MAP V1R1
I LPID00000013
I MACH00002817
B BDY PRIVATE 0000000000AFFFFF
B BDY CSACONVT0000000000000000
CNNUC IEAVFX000000000000001FFF
ENNUC IEATCBP 00000218
CX0022NPRETRCE000071480000796B
MX0022NPRETRCE000071480000796FJOBNAME1VOLSER=VOL999DSN=MYDSN.LOAD
...
B BDY CSAALLOC0006B11803477DF0
...
B BDY SQAALLOC000C678800EABEC0
...
B BDY CSA
00B0000000C11FFF
MMMLPAIGGPOST000BA4B1400BA4B77
LPA LIST CONCATENATION
...
MMMLPAIKJEFATT00C1200000C1525F
VOLSER=VOL001DSN=SYS1.CMDLIB
CMMLPAIKJCB83100C1357800C14A2F
1
2
3
4
1234567890123456789012345678901234567890
В© YCOS Yves Colliard Software
Page 54
How to Monitor the z196
1 - column
I=Information
B=Boundary
M=Module
C=CSECT
E=Entry Point
2 - column
N=Nucleus
C=Common
M=MLPA
F=FLPA
P=PLPA
X=Private area
3 - column
ASID (X-Priv. area) or Record (BDY, DATE, FMID, LPID, MACH, MAP, OS, SMF, SYS, TIME, xLPA, NUC)
7 - column
Short name or Information
15 - column
Start address (Record types B, M, C and E)
23 - column
End address (Record types B, M and C)
31 – column
Job name of the address space (Module records)
39 – column
Info:
VOLSER=xxxxx and DSN=xxx
Or
Pathname
Or
Long name module
В© YCOS Yves Colliard Software
Page 55
How to Monitor the z196
Sampling HFS file .SMP.cpu#
Basic-Sampling Data Entry
Data Entry Format Code
Reserved
Reserved
U
0
0
T
W
P
A
S
I
PASN
Instruction Address
Guest Program Parameter
Host Program Parameter
Data Entry Format Code
X'0001' – Basic
X'8001' – Diagnosis
U – Unique Instruction Count
T – DAT Mode (1 = DAT ON) – PSW bit 26
W – Wait (1 = Wait) – PSW bit 27
P – State (0 = Supervisor – 1 = Problem) – PSW bit 28
AS – Address Space Control (00=Primary, 01=Access Register, 10=Secondary, 11=Home Mode) – PSW bits 29-30
I – Invalid (0=valid)
PASN – Primary Address Space Number
Guest Program Parameter:
First bit = 0
TCB (Task Control Block) – HASN (Home Address Space), TCB Address and Task Id Token
First bit = 1
WEB (Work Element Block) – HASN, Address Space and Partial WEB Address
В© YCOS Yves Colliard Software
Page 56
How to Monitor the z196
Format Sampling HFS file
YCOS HISSMPRX can be used to format HIS Samples (OPEN SOURCE! at own risk ;-)
0001 Basic
1 1 0 0 01 0 0002 000000000152CD80 WEB 000A 04093D00 PART_WEB_ADDR=093D 01
0001 Basic
3 1 0 0 11 0 0003 000000000152F30A TCB 011E 00AC8C68 TASK_ID_TOKEN=03BC 01
0001 Basic
1 1 0 0 00 0 011E 0000000001530176 WEB 011E 0457E580 PART_WEB_ADDR=57E5 02
0001 Basic
1 1 0 0 00 0 019F 000000000153E22A WEB 019F 04034800 PART_WEB_ADDR=0348 02
0001 Basic
3 1 0 0 00 0 011E 000000000155458A TCB 011E 00AC8C68 TASK_ID_TOKEN=04FD 01
Data Entry Format Code
X'0001' – Basic
X'8001' – Diagnosis
U – Unique Instruction Count
T – DAT Mode (1 = DAT ON) – PSW bit 26
W – Wait (1 = Wait) – PSW bit 27
P – State (0 = Supervisor – 1 = Problem) – PSW bit 28
AS – Address Space Control (00=Primary, 01=Access Register, 10=Secondary, 11=Home Mode)
– PSW bits 29-30
I – Invalid (0=valid)
PASN – Primary Address Space Number
Instruction Address
TCB/WEB
HASN
Guest Program Parameter
Guest Program Parameter
CPU#
568230
347985
538923
543618
462740
Sample#
Sorted by instruction address, asid and TCB/WEB
Simple analysis using IBM tool
http://www-03.ibm.com/systems/z/os/zos/features/unix/tools/hisreportdownload.html
В© YCOS Yves Colliard Software
Page 57
How to Monitor the z196
Copyright
YCOS
Yves Colliard Software GmbH
Fremersbergstr. 45
D-76530 Baden-Baden
Tel. +49/7221/9708384
Fax 0322 2374 2352
eMail: ycos@ycos.de
Home: http://www.ycos.de
Copyright YCOS Yves Colliard Software GmbH 2011-2012
All rights reserved. Duplication or disclosure only with explicit approval of YCOS Yves Colliard Software GmbH.
В© YCOS Yves Colliard Software
Page 58
Документ
Категория
Без категории
Просмотров
55
Размер файла
1 563 Кб
Теги
1/--страниц
Пожаловаться на содержимое документа