From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gregor Mosheh <stigmata@blackangel.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: memory strangeness (fwd)
Date: Thu, 04 Jul 2002 21:30:32 -0400
Message-ID: <7081.1025832632@sss.pgh.pa.us> (raw)
In-Reply-To: <20020704181141.V44600-100000@osiris.deathkeep.com>
References: <20020704181141.V44600-100000@osiris.deathkeep.com>
Gregor Mosheh <stigmata@blackangel.net> writes:
> Hiya. I've installed Postgres 7.2 on a dedicated FreeBSD system with 384
> MB RAM. Because the system will be doing nothing except PG, I'd like to
> dump as much memory as possible into PG's shared memory.
> I rebuilt the kernel with very large limits: 330 MB on the MAXDSIZ and
> DFLDSIZ, and 330 MB for SHMMAXPAGES. This gives me:
Very likely the kernel has its own ideas on how much memory it needs
to reserve for other purposes, and is unwilling to give you a shmem
segment that represents the bulk of physical RAM.
While I don't know FreeBSD well enough to speculate on exactly why it's
limiting you, I do think that you are going in the wrong direction
for Postgres anyhow. Pretty much everyone who has looked at the issue
has concluded that it's a mistake to try to set shared memory that high.
If you're trying to set it to more than a quarter of physical RAM you're
off track IMHO. In practice, given that this isn't an especially huge
system, I'd think a shared_buffers setting in the low thousands would be
appropriate.
Also, reducing max_connections as low as 5 seems the wrong direction
too ...
regards, tom lane
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: tgl@sss.pgh.pa.us, stigmata@blackangel.net
Subject: Re: memory strangeness (fwd)
In-Reply-To: <7081.1025832632@sss.pgh.pa.us>
References: <20020704181141.V44600-100000@osiris.deathkeep.com> <7081.1025832632@sss.pgh.pa.us>
* 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