Received: from maia.hub.org (unknown [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 3C0CD1337B58 for ; Thu, 21 Oct 2010 18:59:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 14642-07 for ; Thu, 21 Oct 2010 21:59:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 1F8871337B54 for ; Thu, 21 Oct 2010 18:59:21 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Thu, 21 Oct 2010 16:59:21 -0500 Message-Id: <4CC071670200002500036C8A@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 21 Oct 2010 16:59:19 -0500 From: "Kevin Grittner" To: "Nick" , Subject: Re: autovacuum launcher process eating up 17G+ of ram? References: In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/165 X-Sequence-Number: 35906 Nick 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