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 containers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-13-05, 13:33
allian allian is offline
Registered User
 
Join Date: Dec 2004
Posts: 54
Tablespace containers

I have a DMS tablespace with size of 5 GB, here which is advisable way whether a single container of 5GB or more than one container?
Reply With Quote
  #2 (permalink)  
Old 12-13-05, 14:23
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
IF you have an OLTP database with a decent size bufferpool, then it probably does not matter.

If you have a decision support database (frequent table scans) then it will definitely help if you have multiple containers, but each container should be on a different disk or array.

If you have multiple containers, then your prefetch size should be a "multiple" of your extent size and the "multiple" should be equal to the number of containers in the tablespace. Also, set the following on:

db2set DB2_PARALLEL_IO=*
__________________
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
  #3 (permalink)  
Old 12-13-05, 18:37
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
It also depends on the storage system you use ... If you use one of the 'modern' disk arrays, if your filesystem is spread across multiple underlying disks, then having multiple containers is not of any use ... In this case, remember to set DB2_STRIPED_CONTAINERS to ON ...

But if you are using an inbuilt disk, say, you 5Gigs will perform better with multiple containers, especially for DSS as Markus mentions ...

The reason to have multiple containers is to read more than one extent at a time, with each extent sitting on different disks, ie, they can be read simaltaneously without having an impact on one another ... Yes, in this context, remember, PREFETCHSIZE of the tablespace and NUM_IOSERVERS also play a critical role in your I/O design

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 12-13-05, 18:39
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
ooops ... I meant Marcus and not Markus ...

Markus is the IDUG Insider Webmaster

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 12-13-05, 19:28
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I believe that in DB2 version 8 DB2_STRIPED_CONTAINERS is set to ON by default on any new tablespaces created. It is only a concern if you upgrade from version 7.
__________________
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