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 > sort heap not being fully used?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-16-06, 13:43
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
sort heap not being fully used?

DB2 8.2.3 (fixpack 10) on AIX, 64 bit.
4 partitions, datawarehouse style environment.

I'm configuring 300000 pages for SORTHEAP and 1.8 mln pages for SHEAPTHRES. Snapshots show that during the batch stream the maximum of only 175000 pages of sort heap are allocated per partition (all private sorts), for a total of just over 700000 pages for the entire database. At the same time there still are sort overflows.

I realize that I may not be able to eliminate overflows altogether, but why DB2 is not using all available sort heap? Are there any other parameters that I need to update along with sortheap/sheapthres?
Reply With Quote
  #2 (permalink)  
Old 08-20-06, 04:25
grahammartin grahammartin is offline
Registered User
 
Join Date: Apr 2005
Posts: 41
The only thing I can add is that intra_parallel and sheapthres_shr come into play to enable shared sorts. But intra_parallel is only needed to be turned on if you have CPUs >> Partition.
Other then that, it may be worth checking, that you stack is 64-bit, and there are no hidden limits, such as user limits, preventing db2 using all the memory it needs.

Graham Martin
http://www.ibm.com/software/data/db2/migration/
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