From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Nick <t32@2thebatcave.com>
To: pgsql-admin@postgresql.org
Subject: Re: autovacuum launcher process eating up 17G+ of ram?
Date: Thu, 21 Oct 2010 16:59:19 -0500
Message-ID: <4CC071670200002500036C8A@gw.wicourts.gov> (raw)
In-Reply-To: <AANLkTimGvWugpjwN1Ki=qmd56nsc4gXH6yKT5765nFPK@mail.gmail.com>
References: <AANLkTimGvWugpjwN1Ki=qmd56nsc4gXH6yKT5765nFPK@mail.gmail.com>
Nick <t32@2thebatcave.com> wrote:
> I have a production server running postgres 8.3.11. I did a dump
> all and loaded up postgres 9.0.1 on another server. On the new
> server, the postgres autovacuum launcher process eats up an insane
> amount of ram (I have seen 17G virt with 6.5G res).
You're not looking at this in top and adding up the RAM per process,
are you? That is notoriously unreliable; in particular it tends to
count the shared memory over and over. What does free say about
total usage? How do things look with vmstat 1?
> The only change I made in the postgresql.conf (on both versions)
> is setting the maximum number of connections to 1000.
Unless you have four or five hundred cores in the box, that's
probably a bad idea. You should seriously look at using a
connection pool. Search the archives for previous discussions on
that topic.
> So all other options are default to their particular postgres
> versions.
Since the defaults are designed to allow the server to come up on
even a very small machine, you should probably be setting several
more. You might want to start here:
http://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
-Kevin
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: Kevin.Grittner@wicourts.gov, t32@2thebatcave.com
Subject: Re: autovacuum launcher process eating up 17G+ of ram?
In-Reply-To: <4CC071670200002500036C8A@gw.wicourts.gov>
References: <AANLkTimGvWugpjwN1Ki=qmd56nsc4gXH6yKT5765nFPK@mail.gmail.com> <4CC071670200002500036C8A@gw.wicourts.gov>
* 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