From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Kavan, Dan (IMS) <KavanD@imsweb.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: memory allocation ; postgresql-8.0
Date: Fri, 06 May 2005 13:38:03 -0500
Message-ID: <1115404683.3868.86.camel@state.g2switchworks.com> (raw)
In-Reply-To: <782D2A81EC812642B857B03B506E0B44309E88@granite.omni.imsweb.com>
References: <782D2A81EC812642B857B03B506E0B44309E88@granite.omni.imsweb.com>
On Fri, 2005-05-06 at 13:28, Kavan, Dan (IMS) wrote:
> Hi,
>
> I am reserving 2.1 GB of memory for postgres to use with SuSE linux 9.0
> (SLES) in sysctl.conf.
> I have configured postgres to use 1.9 GB of memory so it won't go over
> the 2.1 cap (postgresql.conf).
> I have a total of 4GB of memory. Somewhere I read to keep half of the
> memory for other things. This server is dedicated to postgresql. Does
> anyone agree with just using 2GB? Does anyone know where I might have
> read that?
Unless you routinely actually handle data sets that are 1.9 gigabytes in
size, it's probably not a great idea.
PostgreSQL doesn't really cache data in the classical sense. All the
data stored in its internal buffers is tossed away when the last backend
referencing said material stops referencing it.
Plus, there's a fair bit of overhead to managing such a large data set,
and, until 8.0, the algorithms for doing so with efficiency weren't a
part of PostgreSQL.
While some future version might incorporate genuine caching that could
utilize all that memory, for now, one is still better off giving
postgresql about 250 megabytes max and letting the kernel use the rest
for caching.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: smarlowe@g2switchworks.com, KavanD@imsweb.com
Subject: Re: memory allocation ; postgresql-8.0
In-Reply-To: <1115404683.3868.86.camel@state.g2switchworks.com>
References: <782D2A81EC812642B857B03B506E0B44309E88@granite.omni.imsweb.com> <1115404683.3868.86.camel@state.g2switchworks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox