Memory assigned to Buffer Pools is part of the Global Shared Memory and
WITHIN the 1.75GB limit.
SORTHEAP is part of Application Private memory and OUTSIDE (WITHOUT?) Global
Shared Memory.
Each statement that can use the sortheap does so within its own private
memory.
With 4Gb of memory, let's presume you use 350MB for Win2K, Comms., DB2-DAS
and your instance.
1.75 GB of Global Shared Mem. gives a total of 2.1 GB and leaves 1.9 for all
Private Agents.
Let's assume that you have 20 concurrently executing sorts and you set
SORTHEAP at 2048 pages (8MB), then you'll want SHEAPTHRESH set at
20x8MB=160MB or 40000 pages. Since you have 1.9 GB for your agents, 160MB
should not bother too much and even gives you room to increase if necessary.
Your snapshots should tell you the high water mark of agents executing in
the instance and you can then use that number instead of 20 as I did.
Use snapshots with the sort switch on to find out which appls. are
encountering overflows. Overflows, as opposed to post threshold sorts,
happen typically because the optimizer thought it could sort and fit the
results in the sortheap, but at execute time, it ended with more rows to
handle and overflowed to tempspace.
HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"p175" <tdavidge@hotmail.com> a écrit dans le message de news:
1124742163.001652.234780@g43g2000cwa.googlegroups. com...[color=blue]
> Hi folks,
>
> I'm after some guidelines on general memory allocations for DB2 8.2.2
> ESE on Win2k Server FP4 with 4gb physical memory.
>
> Seeing as everything is 32bit and win2k server does not support /3gb
> switch, we are restricted memory wise for allocating memory to
> db2syscs.exe to around 1.75gb so I understand, what are the general
> rules of thumb for assigning memory ?
>
> My process presently starts at around 1.5gb following activation and
> grows to a max of around 1.68gb after being used for a few days.
>
> I have 4 bufferpools, 1 each to 3 tables spaces and the default.
> Tablespaces are specific for Rawdata, results and indexes. I assign
> most of the BP pages to the index bufferpool [170000 4k pages] with
> results [100000] ranked 2nd and rawdata last [50000]. IS it better to
> assign a larger BP to the actual data or the indexes ?
>
> Where does one prioritise the sortheap and sheapthresh in all of this
> and are there more critical areas that should be assigned more than say
> the configuration advisor recommends ?. Are there percentage guidelines
> that can say share the max memory 30/70 sort/bp ? etc.
>
> The config advisor is only recommending a sortheap of 1428 4k pages and
> sheapthresh of 32000 4k pages which seems to always produce sort
> overflows in the snapshots. Is it better to assign a higher BP and
> lower sort heap, or higher sortheap and lower BPs.
>
> With only 1.75gb to play with it gets very frustrating when I know
> there is at least an additional 1.5 I could assign if not for win2k.
>
> Any help would be greatly appreciated.
>[/color]