Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1121FB5DC51 for ; Wed, 10 Aug 2011 15:54:36 -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 02971-02 for ; Wed, 10 Aug 2011 18:54:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 1EE72B5DC4E for ; Wed, 10 Aug 2011 15:54:26 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p7AIsOTm015772; Wed, 10 Aug 2011 14:54:24 -0400 (EDT) To: =?UTF-8?B?QWxleGlzIEzDqi1RdcO0Yw==?= cc: pgsql-performance@postgresql.org Subject: Re: Autovacuum running out of memory In-reply-to: References: <13854.1312996666@sss.pgh.pa.us> Comments: In-reply-to =?UTF-8?B?QWxleGlzIEzDqi1RdcO0Yw==?= message dated "Wed, 10 Aug 2011 14:47:30 -0400" Date: Wed, 10 Aug 2011 14:54:23 -0400 Message-ID: <15771.1313002463@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.711 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.811 X-Spam-Level: X-Archive-Number: 201108/129 X-Sequence-Number: 44576 =?UTF-8?B?QWxleGlzIEzDqi1RdcO0Yw==?= writes: > On Wed, Aug 10, 2011 at 1:17 PM, Tom Lane wrote: >> However, I find it a bit odd that you're getting this failure in what >> appears to be a 64-bit build. That means you're not running out of >> address space, so you must actually be out of RAM+swap. Does the >> machine have only 4GB or so of RAM? If so, that value for >> shared_buffers is unrealistically large; it's not leaving enough RAM for >> other purposes such as this. > The box has little under 8GB (it's on EC2, a "m1.large" instance) > There is no swap. Hmph. Is there other stuff being run on the same instance? Are there a whole lot of active PG processes? Maybe Amazon isn't really giving you a whole 8GB, or there are weird address space restrictions in the EC2 environment. Anyway I think I'd suggest reducing shared_buffers to 1GB or so. >> Where did you get the above-quoted parameter settings, anyway? > In turn they come from High-Performance Postgresql 9.0 > (http://www.postgresql.org/about/news.1249) I'm sure even Greg wouldn't claim his methods are good to more than one or two significant digits. regards, tom lane