Received: from maia.hub.org (unknown [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1146A1337B71 for ; Fri, 22 Oct 2010 15:18:01 -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 86410-07 for ; Fri, 22 Oct 2010 18:17:53 +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 AE8871337B6D for ; Fri, 22 Oct 2010 15:17:52 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 22 Oct 2010 13:17:51 -0500 Message-Id: <4CC18EF60200002500036CF3@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Fri, 22 Oct 2010 13:17:42 -0500 From: "Kevin Grittner" To: "Nick" Cc: Subject: Re: autovacuum launcher process eating up 17G+ of ram? References: <4CC071670200002500036C8A@gw.wicourts.gov> 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/168 X-Sequence-Number: 35909 Nick wrote: > Here is a vmstat 1 right after postgres has been started: > > procs -----------memory---------- > r b swpd free buff cache > 0 0 55480 760172 1709424 3758492 > Here is another chunk after it's been running for about 18 hours: > > procs -----------memory---------- > r b swpd free buff cache > 0 0 1812168 20332 59452 102172 > Here is a snapshot of all the postgres processes as listed in top > (29582 = postgres: autovacuum launcher process): > > 29582 pgsql 15 0 8739m 6.7g 1816 S 8.9 86.1 91:10.44 > postgres Ouch! I've not seen anything remotely like that. I wonder what's different.... > As you can see, after a while the system is using a lot of swap. > The first time I noticed the problem, the swap was up to 12G > (there is 8GB of ram in this system). I believe postgres was > running for several days to achieve that much memory utilization. Is there anything unusual in the logs? -Kevin