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 > Tablespace Question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-11-08, 08:58
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
Tablespace Question

Is the block and page buffer completely seperate, or can a block scan use page buffer if the record is already there? (i.e. will the block pool need to be the table size)
Reply With Quote
  #2 (permalink)  
Old 01-11-08, 09:02
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
I don't really understand your question...

DB2 has its own buffer pool(s) to cache pages that are accessed and potentially modified by DB2. Additionally, the underlying operating system may have a file system cache. Both are not related. For some platforms, you can tell DB2 to use direct I/O and, thus, bypass the file system cache.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 01-11-08, 14:04
azs0309 azs0309 is offline
Registered User
 
Join Date: Jan 2008
Posts: 88
Or Are you asking about block based bufferpools...Block based bufferpoools are the small part of the bufferpool (depends on u how much % of that u can give to block ) used to read in blocks and it has the same page size of the tablespace
Reply With Quote
  #4 (permalink)  
Old 01-16-08, 23:14
redwolf redwolf is offline
Registered User
 
Join Date: Apr 2004
Posts: 179
Yes I'm talking about a table space that I have designated NUMBLOCKPAGES 75000. This is 50% of the total tablespace size. Are the 2 areas treated as separate entities ?
Reply With Quote
  #5 (permalink)  
Old 01-17-08, 01:49
azs0309 azs0309 is offline
Registered User
 
Join Date: Jan 2008
Posts: 88
you cannot have NUMBLOCKPAGES for a tablespace. You can assign a part of bufferpool to be NUMBLOCKPAGES which can make that many pages of bufferpool as Block based . And the tablespaces associated with that bufferpool can have access the NUMBLOCKPAGES. But until your database is executing queries with large result set I dont see any reason to have BLOCK based bufferpool
Reply With Quote
  #6 (permalink)  
Old 01-17-08, 09:55
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by redwolf
Yes I'm talking about a table space that I have designated NUMBLOCKPAGES 75000. This is 50% of the total tablespace size. Are the 2 areas treated as separate entities ?
Block area of a block-based bufferpool is only used for sequential prefetch operations. Page area is used for other types of IO operations. In that sense you can say they are treated as separate entities. If too many pages that are to be read by a sequential prefetch are already in the page area, the block area will not be used.

By the way, it has little to do with large (or small) result sets, contrary to what azs0309 is saying.
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