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 > DB2 Estimating REORG Times - DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-14-10, 19:16
noche67 noche67 is offline
Registered User
 
Join Date: Aug 2010
Posts: 4
Question DB2 Estimating REORG Times - DB2

How can the Reorg times be estimated in DB2?
Is there a formula or script or select that might help
to give me an idea?
Thanks,

JMaria
Reply With Quote
  #2 (permalink)  
Old 08-14-10, 21:53
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Unfortunately, there is no formula. It is much like trying to estimate the time you will run a marathon: you won't know your result until you actually run it for the first time.
Reply With Quote
  #3 (permalink)  
Old 08-15-10, 08:41
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
You may not be able to estimate, but there are some things you can do to try and improve reorg time:
DB2 Database for Linux, UNIX, and Windows


Some additional info to what's documented above:

- DB2 will use private sorts for index key sorting regardless of the value of intra_parallel. If intra_parallel is ON, DB2 can take advantage of multiple CPUs on the server (it will use multiple subagents). See the following link regarding intra_parallel if you're using v9.5:
IBM DB2 9.5 Information Center for Linux, UNIX, and Windows

- Increasing sortheap and making sure sheapthres is "at least sortheap x the number of processors used" can be helpful. DB2 may still need to spill the sort so increasing tempspace's bufferpool can help to minimize disk I/O. It's also recommended to have multiple containers for your tempspace, each container on a different disk.

If this is a 64-bit instance on AIX, verify that ulimit(data) is set to unlimited or some high value (ulimit -d).
Reply With Quote
  #4 (permalink)  
Old 08-15-10, 08:47
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Quote:
Originally Posted by n_i View Post
run a marathon
Have you ever done it?
Reply With Quote
  #5 (permalink)  
Old 08-15-10, 18:55
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by db2girl View Post
Have you ever done it?
No, but how difficult could that be?
Reply With Quote
  #6 (permalink)  
Old 08-15-10, 19:28
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
No idea but I think it would require a lot of training.
Reply With Quote
  #7 (permalink)  
Old 08-17-10, 16:41
noche67 noche67 is offline
Registered User
 
Join Date: Aug 2010
Posts: 4
There is a way to get it from the history prior past reorgs that gets save on some db2 tables!! i just got an average estimation base on that!! and it did work fine!! thanks for your responses!
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