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.

RESTORE SYSTEM measurements<br />

• RESTORE SYSTEM<br />

Invokes ‘FRRECOV<br />

COPYPOOL(DSN$location-name$DB)'<br />

Followed by LOGAPPLY phase<br />

• RESTORE SYSTEM<br />

LOGONLY<br />

Enters LOGAPPLY phase<br />

directly<br />

Figure 5-5 RESTORE SYSTEM measurement<br />

Remember that RESTORE SYSTEM only restores the database copy pool. The logs are<br />

applied after that restore.<br />

Make sure all of the background copies have completed from an invocation of the BACKUP<br />

SYSTEM utility be<strong>for</strong>e starting the restore utility.<br />

The log apply per<strong>for</strong>mance can be improved by activating fast log apply (FLA).<br />

Table 5-2 presents the log apply phase measurement results.<br />

Table 5-2 LOGAPPLY phase measurement<br />

IRWW non-data sharing Without FLA With FLA (100 MB) With FLA (500 MB)<br />

Log records processed (million) 3.800 3.642 3.772<br />

Elapsed time (sec.) 1,320 325 262<br />

Rate (log records/sec.) 2,900 11,200 14,400<br />

A FLA buffer size of 100 MB resulted in a 4 times improvement in elapsed time. With APAR<br />

PQ95164, the DSNZPARM parameter LOGAPSTG will not determine the FLA buffer size <strong>for</strong><br />

the RESTORE utility, only if it is used or not. <strong>DB2</strong> will first try to allocate a 500 MB FLA buffer;<br />

if not successful <strong>DB2</strong> will reduce the memory request to 250 MB, then 125 MB. During restore<br />

the RESTORE SYSTEM utility is the only process running and there should be no problem<br />

obtaining 500 MB of storage <strong>for</strong> the FLA feature at this time. The 500 MB FLA buffer further<br />

decreased the elapsed time by 28% compared to a 100 MB FLA buffer. Compared to the test<br />

case without FLA a 500 MB buffer resulted in nearly 5 times faster log apply phase.<br />

List prefetch is the major contributor to FLA improvements, so the more random the logging<br />

had been, the more advantage FLA will bring.<br />

sec.<br />

60<br />

50<br />

40<br />

30<br />

20<br />

10<br />

0<br />

Elapsed Time <strong>for</strong><br />

FRRECOV<br />

31<br />

52<br />

67 195<br />

# of Vols<br />

DB Pool<br />

Chapter 5. Availability and capacity enhancements 225

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

Saved successfully!

Ooh no, something went wrong!