[Bizgres-general] Default work_mem

Luke Lonergan llonergan at greenplum.com
Fri Mar 31 00:12:21 GMT 2006


I'm planning to set the default work_mem setting for the binary installers
of Bizgres to 64MB to ensure that reasonable sort performance is obtained.
The knee of the sorting performance curve is currently pretty steep, as
shown in this graph of sort time for one column of a 12GB table:



As you can see from the blue line in the graph, the performance of sorting
with less than 64MB of work_mem sharply increases.  This is case-specific,
following a relationship of work_mem = sqrt(sort_set_size) as a general
trend.  Given that most business intelligence case sort large amounts of
data, 64MB seems like a good starting point with the current sort code.

The risk is that overallocation of work_mem in high concurrency environments
can cause machines to run out of memory.

- Luke 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pgfoundry.org/pipermail/bizgres-general/attachments/20060331/19523d49/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 22762 bytes
Desc: not available
Url : http://pgfoundry.org/pipermail/bizgres-general/attachments/20060331/19523d49/attachment-0001.jpe 


More information about the Bizgres-general mailing list