Re: Still problems with memory swapping and server load - Mailing list pgsql-general

From Curt Sampson
Subject Re: Still problems with memory swapping and server load
Date
Msg-id Pine.NEB.4.43.0206272301320.6613-100000@angelic.cynic.net
Whole thread Raw
In response to Re: Still problems with memory swapping and server load  (Alvar Freude <alvar@a-blast.org>)
List pgsql-general
On Wed, 26 Jun 2002, Alvar Freude wrote:

> > sort_mem = 8192 (16384 or 32768 didn't help either)
>
> Each sort can take up to 8 MB RAM; if you have some queries which needs
> e.g. 3 big sorts and have 30 from this in parallel, this takes ~720 MB RAM.

Not quite. As I mentioned earlier, postgres 7.2 actually allocates
between 2.5 and three times that amount of memory. So in your
example, you'd have 90 * 3 * 8 * 2.5 or more like 5 GB of memory. :-)

cjs
--
Curt Sampson  <cjs@cynic.net>   +81 90 7737 2974   http://www.netbsd.org
    Don't you know, in this new Dark Age, we're all light.  --XTC




pgsql-general by date:

Previous
From: nconway@klamath.dyndns.org (Neil Conway)
Date:
Subject: Re: user defined functions
Next
From: nconway@klamath.dyndns.org (Neil Conway)
Date:
Subject: Re: How to get the used time when operate a select query?