dbTalk Databases Forums  

SEGSIZE

ibm.software.db2.mvs ibm.software.db2.mvs


Discuss SEGSIZE in the ibm.software.db2.mvs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eduardo.nicdao@yahoo.com
 
Posts: n/a

Default SEGSIZE - 07-13-2009 , 11:58 AM






28 128 pages 32
≥ 128 pages 64

Reply With Quote
  #2  
Old   
momi.sabag@gmail.com
 
Posts: n/a

Default Re: SEGSIZE - 07-13-2009 , 12:07 PM






i don't think you will suffer greatly by creating all your tablespace with segsize 64

Reply With Quote
  #3  
Old   
Todd Burch
 
Posts: n/a

Default Re: SEGSIZE - 07-13-2009 , 03:34 PM



The greater number of pages in each segment (AKA, the higher the SEGSIZE value), the fewer pieces of control information are kept in your tablespace.

Todd

Reply With Quote
  #4  
Old   
sdasinger@monlife.com
 
Posts: n/a

Default Re: SEGSIZE - 07-13-2009 , 09:18 PM



ednic, I generally use a SEGSIZE of 4 for tiny table spaces (tables with 1-10 pages such as code tables) and a SEGSIZE of 64 for all other table spaces (that are not partitioned).

Part of the reason is that a large SEGSIZE will waste space. If you have a table that will only use 1 page to hold all the data (there are a couple of other control pages also) with a SEZGIZE of 64, 64 pages will be allocated even though you will only ever use 1-3 pages. That works out to 6 tracks (of 3390 disks). While that might not sound like much, that extra 5 tracks times enough table spaces does add up.

NOTE: You can test this out by creating a Table space with a SEGSIZE of 64 and a PRIQTY and SECQTY of 48 (1 track). After it is created, go look at the VSAM file created and see what size it is.

SEGSIZE also affects Prefecthing. This is why I generally just jump straight to a SEGSIZE of 64 for most all data tables. It will allow the most pages to be prefetched for you asynchronously.

Reply With Quote
  #5  
Old   
eduardo.nicdao@yahoo.com
 
Posts: n/a

Default Re: SEGSIZE - 07-16-2009 , 04:05 PM



Thanks for the info.

Reply With Quote
  #6  
Old   
mahenrique@hotmail.com
 
Posts: n/a

Default Re: SEGSIZE - 08-05-2009 , 04:35 PM



feel free to use 64 on all. Just remembering that V9 brings the universal tablespace where you can exploit SEGSIZE and patitioned feaures in the same tablespace

Regards

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.