Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2003
    Toronto, Canada
    Provided Answers: 1

    Unanswered: 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?

  2. #2
    Join Date
    Apr 2005
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts