• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1459
  • Last Modified:

Blocked vs. non-blocked pages

What is the difference between blocked and non-blocked pages in a bufferpool and how do they affect performance?

Thank you in advance.
0
aporras
Asked:
aporras
  • 2
1 Solution
 
ghp7000Commented:
Block based bufferpools allow performance improvement for sequentail prefetching. From the db2 docs:
A block-based buffer pool consists of both a page area and a block area. The page area is required for non-sequential prefetching workloads. The block area consists of blocks where each block contains a specified number of contiguous pages, which is referred to as the block size (normally pages are read into the bufferpool by reading contiguous pages on disk into non contiguous pages in memory).
When a block based buffer pool is available, the prefetching code recognizes this and will use block I/Os to read multiple pages into the buffer pool in a single I/O significantly improving the performance of prefetching. The BLOCKSIZE parameter of the CREATE and ALTER BUFFERPOOL SQL statement defines the size of the blocks, and hense the number of pages read from disk in a block I/O.


0
 
aporrasAuthor Commented:
I'm still not sure what the difference is between blocked and non-blocked pages... and if I am understanding your comment there would never be any value in non-blocked pages yet when looking at the GUI in DB2 UDB 8.2, it defaults to all pages in a bufferpool being non-blocked.
0
 
ghp7000Commented:
yes that is the default setup , you have to explicitly create the block based bufferpools with alter bufferpool or with create bufferpool .....NUMBLOCKPAGES  ... BLOCKSIZE     keywords

the difference is the way in which the data pages are read into the bufferpool
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now