You are on page 1of 13

BPA4DB2

CONCEPTS and FACILITIES

Buffer Pool Analyzer for DB2

Concepts and Facilities

UBS Hainer GmbH, Am Zickmantel 16, D-36341 Lauterbach


Tel. +49 6641 6551 0, Fax +49 6641 6551 11
support@ubs-hainer.com
Friday, 20 February 2004

Page 1
e-mail: ddk@ddk-software.dk
Tlf.: +45 3927 0666
BPA4DB2
CONCEPTS and FACILITIES

Proprietary Notice

The software described in this manual is a proprietary product developed and


distributed by

UBS Hainer Unternehmensberatung & Softwareservice GmbH, Am Zickmantel 16, D


- 36341 Frischborn Germany
-
Copyright c 2001 by UBS Hainer Unternehmensberatung & Softwareservice GmbH.

All rights reserved.


Except for use in a review, the reproduction or utilisation of this
work in any form by any electronic or mechanical means, including photocopying,
recording, and in any information storage and retrieval system is forbidden without
any written permission of the publisher. Proprietary names used in this publication are
the property of the copyright holder.

Distributor for France Distributor for UK & Ireland


EBM Fitz Software & Co.
55 Rue Sainte-Anne Kilcolta House
75002 Paris (France) Crosshaven, Co. Cork, Ireland
Phone: +33-1-42 44 23 35 Phone +353-21-4832131
Email: ebmsoftware@ebm.fr Email: support@fitzsoftware.com

Distributor for Italy Distributor for the United States


DBA Sistemi s.r.l. Enterprise System Associates Inc.
Via dell´Arcolaio 44/d Central Florida Research Park
50137 Firenze (Italy) 12565 Research Parkway, Suite 300
Phone: +39-055-600636 Orlando, Florida 32826 USA
Email: dba.firenze@dbasistemi.it Phone: +1-407-6792303
Email: support@esaigroup.com

Distributor for Spain Distributor for Israel


Harris NAS Log-On
Arturo Soria 263 B Log-On Building
28033 Madrid (Spain) 3 Hachilazon St.
Phone: +34-913-839662 Ramat Gan 52522 (Israel)
Email: psanabria@harrisnas.com Phone: +972-3-5763100

Distributor for Australia Distributor for Korea


Blueline Software Ecode Information Technology Ltd.
Po Box 5575 Port Macquaire NSW 2444 Australia 806R, Dongmun Vision Bldg,
Ray Markham #318-6 Yangchun-Cu, Seoul, Korea
Phone: 0061-2-6583-9442 Ji Geun Choi
Email: blueline@bigpond.net.au Phone : 0082-2-2651-1350
Email: jgchoi30@ecodeit.com.kr

Page 2
BPA4DB2
CONCEPTS and FACILITIES

TABLE OF CONTENTS

BPA4DB2 – Concepts and Facilities ..................................................................................... 4


Facility: DATA COLLECTOR and GUI ............................................................................... 4
Tracing................................................................................................................................ 5
Facility: JAVA GUI ............................................................................................................... 5
Concept: Identifying unnecessary IO’s .................................................................................. 6
Using the GUI..................................................................................................................... 7
Rule of thumb:.................................................................................................................... 7
Find objects in trouble ............................................................................................................ 9
BPA4DB2 Expert Analysis .............................................................................................. 12
Missplaced Objects........................................................................................................... 13

Page 3
BPA4DB2
CONCEPTS and FACILITIES

BPA4DB2 – Concepts and Facilities

Facility: DATA COLLECTOR and GUI

BPA4DB2 can help you to reduce the number of IO’s in your DB2 subsystem. This
will improve your Transaction response time and reduce your batch jobs elapsed
time.

The concept of BPA4DB2 is measuring and analysing the Getpage and IO – Rates in
the DB2 subsystem. The interface being used for this purpose is CAF (Call attach
facility).

The collected data are stored in a sequential file, are processed again by another
program which will generate a PC-like layout. This file is transferred to a PC where
you can analyse your Trace data in a GUI based software.

Page 4
BPA4DB2
CONCEPTS and FACILITIES

Tracing

BPA4DB2 starts in periodic sequence Performance Traces (Class 30) with selected
IFCIDs (to avoid producing to much Trace data).

This part of BPA4DB2 is called DATA COLLECTOR. You can control the length of an
trace interval (time to trace), the wait interval between two traces and the number of
Traces you want to take.

So it is possible to trace over hours without causing too much CPU overhead. The
DATA COLLECTOR turns on and off the traces automatically.

10:15 10:17 -------- wait -------- 10:23 10:25 -------- wait ---------
start trace stop trc start trc stop trc

(time)

In this sample, BPA4DB2 would collect the requested IFCIDs between 10:15 and
10:17 and again from 10:23 – 10:25.

The DATA COLLECTOR itself writes the Trace Data into a sequential file, which will
be processed later to generate the PC-file, which can be processed by a JAVA GUI.

Facility: JAVA GUI

The GUI does not process the original trace data from the z/OS site. Before
transferring this data to the PC the are pre-processed by a converter program on the
host. The advantage of this is you don’t have to transfer a multi-megabyte trace with
FTP or IND$FILE. The file to be transferred normally has less than 1 Megabyte.

On the PC-site all of this data are stored in a MS ACCESS Database. This gives you
more opportunities to create your own reports. (there are some samples how to use
EXCEL to generate reports based on the MS ACCESS database.)

Page 5
BPA4DB2
CONCEPTS and FACILITIES

Concept: Identifying unnecessary IO’s

You will find the word “RE-READ IO” in the documentation of BPA4DB2. This means
IO’s which are done a page which caused an IO in the same measurement interval
seconds before.

time

Getpage 10 21 33 27 99 72 21 66 33 10 99 45 22
IO

The number 10, 21, 33 and so on are our page-numbers, involved in getpage
operation.

A yellow field means: this IO is done the first time in the measurement interval.
A red field means: this IO caused already an IO in the measurement interval.

(to hold this sample simple, we don’t include GETPAGE without IO )

The IO’s on page 21, 33, 10, and 99 are done twice and should be avoided.

Page 6
BPA4DB2
CONCEPTS and FACILITIES

Using the GUI

In the GUI you can find this IO’s looking at the first panel: RR %

Rule of thumb:

We should avoid Re-Read IO’s of 10 % and more within 3 minutes.


Our sample shows 10 % in Bufferpool 21 within 150 Seconds. (see Trace elapsed
time)

So it is possible to decide within a few minutes if there are tuning opportunities.


(starting the trace on z/OS, converting and transferring the file to the PC and starting
this panel).

If you take a five minutes tracing interval and find RE-READ IO’s of 2 or 3 percent,
your opportunities are much smaller than in the sample above.

Page 7
BPA4DB2
CONCEPTS and FACILITIES

A look at the “STATIC ANALYSIS” Panel gives us more information about this
problem:

We can see Bufferpool 21 gets most of all Getpage operations. More interesting is
the information concerning the Distinct Getpage (how many different pages are
processed in the trace interval?)

Bufferpool Size GP Dist


21 26.000 47.418
23 7.500 4.141
24 15.000 3.936
25 40.000 8.063
Extract:

Page 8
BPA4DB2
CONCEPTS and FACILITIES

All the bufferpools 23, 24 and 25 have more pages defined than distinct getpage
occur in these pools. All of these pools read hit ratios > 90 %. (first panel)

Bufferpool 21 seems to be in trouble. First we saw Re-Read Percentage of 10 % and


a Hitratio of only 81 %.

Now we can find out, that this pool has much more Distinct Getpage than pages
defined.

It is a good approach to try a better balance of Bufferpool - Pages between this


bufferpools.

This is what target tells us in the “STATIC ANALYSIS” Panel. The idea is just to
dispatch your defined number of bufferpool pages across the pools, based on the
distinct pages used.

(For bufferpool 0 of course you should define more pages ! This panel calculates
only on distinct pages)

Find objects in trouble

In the main window click on Re-Reads.


(Remember: a Re-Read is an IO-Operation which is done on a page which caused
an IO in the same Trace interval – your main goal is to avoid this type of IO).

Page 9
BPA4DB2
CONCEPTS and FACILITIES

You will get the objects with most problems in terms of unnecessary IO’s. The panel
is sorted descending by Re-Read-IO.

ALDIX007 for example causes 465 of this useless IO’s.

How to solve this problem?

In the “Static Analysis Section” we described the unbalanced setup before (Distinct
Pages – Bufferpool Size)

What we should do first is to adjust the bufferpool sizes to the values reported in this
panel. This will help to avoid the Re-Reads from DASD.

BPA4DB2 can help you to find out more problems concerning your bufferpools:

Go to detail view for a specific pool:

Page 10
BPA4DB2
CONCEPTS and FACILITIES

Page 11
BPA4DB2
CONCEPTS and FACILITIES

BPA4DB2 Expert Analysis

Now use the “Check” button and let BPA4DB2 analyse your Setup for this
bufferpool:

All the problems BPA4DB2 will find are reported here:

In our sample we should change the VDWQT parameter. BPA4DB2 generates a


proposal for this parameter.
Another problem detected comes from the DASD-subsystem (not a really big
problem in this sample). BPA4DB2 assumes a DASD response time of 15 ms per
sync IO as upper limit. (with modern systems like IBM SHARK you can reach values
of less than 10 ms per sync IO)

The actual measurement shows 17 ms.

Page 12
BPA4DB2
CONCEPTS and FACILITIES

Missplaced Objects

We should avoid mixing sequential and random objects in one bufferpool. Each pool
has a specific type (random or sequential) depending on the objects defined in this
pool. It is necessary to know which type of pool we have, as several threshold-setting
depend on the pool-type.

If BPA4DB2 will find a mix of objects in a bufferpool it will report this problem:

Page 13
e-mail: ddk@ddk-software.dk
Tlf.: +45 3927 0666

You might also like