If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Agent- Reads page or Extent(Disk to Bufferpool)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-06, 17:23
Nageswaran Nageswaran is offline
Registered User
 
Join Date: Jul 2002
Posts: 48
Agent- Reads page or Extent(Disk to Bufferpool)

Hi

In DB2 UDB. whether reads from disk to bufferpool happens in page or extent. Please help to understand, so that i will be able to design the bufferpool and table accordingly.

Thanks
Nageswaran
Reply With Quote
  #2 (permalink)  
Old 07-21-06, 21:06
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Only table or index pages that DB2 needs to examine are placed in the bufferpool. The only exception is pre-fetching, when pages are placed in the bufferpool by DB2 in anticipation that they will be needed later.

Prefetch is only enabled when DB2 is fairly certain that the prefetched pages will be needed, and is almost always correct execpt when a cursor is not fetched to completion by a program. Prefetch can be disabled at the database level (probably a good idea for pure OLTP applications where data is accessed by indexes), or by specifying OPTIMIZE FOR 1 ROWS in the SQL statement.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 07-21-06 at 21:12.
Reply With Quote
  #3 (permalink)  
Old 07-24-06, 14:59
Nageswaran Nageswaran is offline
Registered User
 
Join Date: Jul 2002
Posts: 48
Thanks for your reply. You said it's going to read pages, so any physical read will be page level not on extent level...

Thanks
Nagesh
Reply With Quote
  #4 (permalink)  
Old 07-24-06, 16:00
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
If DB2 thinks it is advantageous to do so, it will read in "big-block" mode (usually at an extent level). This will happen if DB2 guesses that it needs all or most of the pages in the extent. As previously menitoned, DB2 may do prefetches of pages which may trigger the big-block reads.

Otherwise, DB2 will read in page mode.

Obviously, physical I/O at the operating system level is different than at the database level.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On