19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.1.2 Conclusion<br />

not all that significant <strong>for</strong> our OLTP workload, while the overall impact on our batch workload<br />

was indeed significant.<br />

CF request batching also benefits <strong>DB2</strong> per<strong>for</strong>mance in other ways. <strong>DB2</strong> commit processing<br />

per<strong>for</strong>mance is improved, where any remaining changed pages must be synchronously<br />

written to the group buffer pool during commit processing. For GPBCACHE(ALL) page sets,<br />

<strong>DB2</strong> is able to more efficiently write prefetched pages into the group buffer pool as it reads<br />

them from DASD.<br />

CF request batching allows <strong>DB2</strong> V8 to reduce the amount of traffic to and from the coupling<br />

facility <strong>for</strong> both writes to and reads from the group buffer pool <strong>for</strong> castout processing, thus<br />

reducing the data sharing overhead <strong>for</strong> most workloads.<br />

The most benefit is anticipated <strong>for</strong> workloads which update large numbers of pages belonging<br />

to GBP-dependent objects, <strong>for</strong> example, batch workloads.<br />

This enhancement also has potential to reduce the CPU used by the DBM1 address space,<br />

as fewer messages are passed to and from the coupling facility. Coupling facility link<br />

utilization may also decrease slightly. As a consequence, coupling facility utilization may be<br />

slightly higher as message service times increase. This is a direct result of the coupling<br />

facility having to per<strong>for</strong>m more work to service each batched request. The data sharing<br />

overhead caused by castout processing is also reduced.<br />

8.1.3 Recommendations<br />

There is nothing you need to do in <strong>DB2</strong> to enable <strong>DB2</strong> to use CF request batching. However,<br />

you need to have the prerequisite software in place, z/<strong>OS</strong> 1.4 and CFCC Level 12.<br />

We recommend you implement a strategy to keep reasonably current with software<br />

maintenance and coupling facility microcode levels, in order to take early advantage of<br />

enhancements such as CF request batching. This is particularly important in a data sharing<br />

environment.<br />

8.2 Locking protocol level 2<br />

Protocol Level 2 remaps parent IX L-locks from XES-X to XES-S locks. Data sharing locking<br />

per<strong>for</strong>mance benefits because this allows IX and IS parent global L-locks to be granted<br />

without invoking global lock contention processing to determine that the new IX or IS lock is<br />

compatible with existing IX or IS locks.<br />

The purpose of this enhancement is to avoid the cost of global contention processing<br />

whenever possible. It will also improve availability due to a reduction in retained locks<br />

following a <strong>DB2</strong> subsystem or MVS system failure.<br />

Refer to section 11.1 of <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8: Everything You Ever Wanted to Know,<br />

... and More, SG24-6079, <strong>for</strong> a general review of locking in a data sharing environment.<br />

XES contention caused by parent L-Locks is reasonably common in a data sharing<br />

environment. On page set open (an initial open or open after a pseudo close) <strong>DB2</strong> normally<br />

tries to open the table space in RW. (<strong>DB2</strong> rarely opens a table space in RO.) To do this, <strong>DB2</strong><br />

must ask <strong>for</strong> an L-Lock. This L-lock is normally an IS or IX L-lock, depending on whether or<br />

not a SELECT or UPDATEable SQL statement caused the table space to open. If any other<br />

Chapter 8. Data sharing enhancements 325

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!