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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

decreased slightly. The CF Link utilization also decreased slightly, as fewer messages are<br />

passed to the coupling facility.<br />

The table also shows a jump in asynchronous requests when CF request batching was used.<br />

The actual number of asynchronous requests doubled from 620 to 1314 requests. This<br />

increase can be attributed to the heuristic conversion by the CFCC of synchronous requests<br />

to asynchronous requests due to more work being processed in each batch request.<br />

The next series of studies investigate the impact of CF request batching <strong>for</strong> a batch workload.<br />

For these tests, one batch program per<strong>for</strong>ms a fetch-update of a single row <strong>for</strong> the first 2.5<br />

million rows of a 5 million row table. A second batch program, running on the other <strong>DB2</strong><br />

member, per<strong>for</strong>ms a fetch-update of the other half of the 5 million row table. During the<br />

execution of these two batch programs, the table space is GBP dependent but with minimal<br />

global contention.<br />

Table 8-3 shows extracts from <strong>DB2</strong> PE statistics reports, revealing the impact of CF request<br />

batching on a batch workload.<br />

Table 8-3 CF Request Batching - <strong>DB2</strong> PE extract (batch)<br />

z/<strong>OS</strong> 1.3 z/<strong>OS</strong> 1.4<br />

Pages Castout 2,121.8K 2,253.4K 2,583.4K 2,749.8K<br />

Write & Register 2,206,1K 2,206.1K 205 163<br />

Write & Register Multi 0 0 209.5K 210.2K<br />

Pages Write & Reg Multi 0 0 2,202.7K 2,203.0K<br />

Read <strong>for</strong> Castout 2,121.8K 2,253.4K 363.5K 364.1K<br />

Read <strong>for</strong> Castout Multi 0 0. 750.2K 790.7K<br />

The impact of CF request batching appears to be much more pronounced. In this test, every<br />

page must be updated.<br />

Without CF request batching, <strong>DB2</strong> must write and register every page individually to the<br />

coupling facility. This results in over 2.2 million individual requests <strong>for</strong> each <strong>DB2</strong> member.<br />

With CF request batching, each <strong>DB2</strong> member only needs a little over 200,000 requests to the<br />

coupling facility to support the same workload.<br />

In addition, castout processing is dramatically improved. Rather than requiring over 4.3 million<br />

individual reads <strong>for</strong> castout processing without CF request batching, <strong>DB2</strong> is able to reduce<br />

the number of requests to the coupling facility <strong>for</strong> castout processing, to a little over 2 million<br />

requests.<br />

Rather than seeing only one <strong>DB2</strong> member per<strong>for</strong>ming all the castout processing <strong>for</strong> the single<br />

page set we used during the tests, we can see both <strong>DB2</strong> members per<strong>for</strong>ming castout<br />

processing <strong>for</strong> the same page set, both with and without CF request batching. This is normal.<br />

In the normal case, when <strong>DB2</strong> decides that castout needs to be done <strong>for</strong> an object, the<br />

castout request is sent to the castout owner. However in times of high activity, the <strong>DB2</strong><br />

member that detected castout must be done can decide to per<strong>for</strong>m the castout locally.<br />

It is also normal to see a mixture of CF request batching and non-batching castout reads.<br />

Recall that <strong>DB2</strong> uses CF request batching when only multiple pages are to be castout.<br />

CF request batching is also used when <strong>DB2</strong> writes pages to the secondary GBP when BP<br />

Duplexing is used. However, <strong>DB2</strong> will only use CF request batching when both the primary<br />

Chapter 8. Data sharing enhancements 323

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

Saved successfully!

Ooh no, something went wrong!