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.

4.10.1 Per<strong>for</strong>mance<br />

VSAM does not know the <strong>DB2</strong> page size, nor the fact that <strong>DB2</strong> chains the VSAM CIs to make<br />

up its “logical” page size. VSAM I/Os cannot span cylinder boundaries or data set extent<br />

boundaries. So, we can see by Table 4-12 that if we have a <strong>DB2</strong> page size of 32 KB, VSAM<br />

can write 22.5 32 KB <strong>DB2</strong> pages per cylinder, (15 X 1.5). A 32 KB <strong>DB2</strong> page can there<strong>for</strong>e<br />

span a cylinder boundary and there<strong>for</strong>e span DASD volumes. This is not a problem since <strong>DB2</strong><br />

chains the physical pages and guarantees the data integrity by ensuring all 8 VSAM pages<br />

are written correctly.<br />

Since a 32 KB <strong>DB2</strong> “logical” page can span DASD volumes, restrictions exist in V7 that<br />

Concurrent Copy cannot support 32 KB pages and striping of objects with a page size > 4 KB<br />

is not supported <strong>for</strong> <strong>DB2</strong> data sets. In V7, striping is only allowed to 4 KB page sets and<br />

Concurrent Copy is not allowed <strong>for</strong> 32 KB table spaces. Concurrent Copy can copy the two<br />

volumes at different points in time; however, a single <strong>DB2</strong> 32 KB “logical” page can span<br />

these two DASD volumes. A <strong>DB2</strong> page should not be allowed to span a CA boundary and in<br />

the case of striping, a CI cannot span a cylinder.<br />

Now, we see what has changed in V8. Consider Table 4-13, which describes the relationship<br />

between <strong>DB2</strong> V8 page sizes and VSAM CI sizes.<br />

Table 4-13 <strong>DB2</strong> V8 - Sizes in KB (usable track size 48 KB <strong>for</strong> 3390)<br />

<strong>DB2</strong> page size VSAM CI size VSAM physical<br />

block size<br />

VSAM now deals with the 4 different CI sizes, and, knowing the track size, now allows CI size<br />

equal to page size. VSAM writes the CI in a physical block of the same size as the page, but<br />

splits the 32 KB CI over two blocks of 16 KB in order not to waste space due track size (48<br />

KB). It fits the 32 KB CIs 1.5 per track. VSAM also takes care of spanning track boundaries<br />

and operates I/O at the CI level. A 16 KB block is wasted every 15 tracks (CA size) because<br />

the CI cannot span a CA boundary. This is a small price to pay, now that VSAM is aware of<br />

the <strong>DB2</strong> page size.<br />

Now VSAM can guarantee a <strong>DB2</strong> page does not span CAs and there<strong>for</strong>e DASD volumes.<br />

The new CI sizes reduce integrity exposures, and relieve restrictions on concurrent copy (of<br />

32 KB objects) and the use of striping (of objects with a page size > 4 KB). It also resolves<br />

small integrity exposure with the Split Mirror solution using FlashCopy on 32 KB pages (SAP)<br />

if at the extent border. A <strong>DB2</strong> page now is always written in a single I/O and is totally<br />

contained in the same extent and the same device (even if striping is used).<br />

What happens to I/O per<strong>for</strong>mance if we increase the VSAM CI size from 4 KB, to 8 KB, to 16<br />

KB? Preliminary measurements show that large CIs are beneficial <strong>for</strong> FICON channels and<br />

storage controllers <strong>for</strong> table space scans. Table 4-14 shows I/O service times on a ESS 800<br />

<strong>for</strong> 4 KB, 8 KB, 16 KB and 32 KB page sizes, respectively.<br />

200 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong><br />

Blocks per track <strong>DB2</strong> pages per<br />

track<br />

4 4 4 12 12<br />

8 8 8 6 6<br />

16 16 16 3 3<br />

32 32 16 3 1.5

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

Saved successfully!

Ooh no, something went wrong!