Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 7525F63362A for ; Mon, 15 Feb 2010 12:17:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 32793-03-8 for ; Mon, 15 Feb 2010 16:16:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from is.rice.edu (is.rice.edu [128.42.42.24]) by mail.postgresql.org (Postfix) with ESMTP id 9913A633246 for ; Mon, 15 Feb 2010 12:16:32 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by is.rice.edu (Postfix) with ESMTP id E2E024181C; Mon, 15 Feb 2010 10:18:29 -0600 (CST) Received: from is.rice.edu ([127.0.0.1]) by localhost (it.is.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04409-05; Mon, 15 Feb 2010 10:18:24 -0600 (CST) Received: by is.rice.edu (Postfix, from userid 18612) id D311C41819; Mon, 15 Feb 2010 10:18:23 -0600 (CST) Date: Mon, 15 Feb 2010 10:18:23 -0600 From: Kenneth Marshall To: Tom Lane Cc: "Thorne, Francis" , pgsql-admin@postgresql.org Subject: Re: AIX - Out of Memory Message-ID: <20100215161823.GB16501@it.is.rice.edu> References: <81976671721DF04B9DCA6ECD87941A401E166CBE@roundway.Cromwell-tools.co.uk> <29675.1266249426@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <29675.1266249426@sss.pgh.pa.us> User-Agent: Mutt/1.5.16 (2007-06-09) X-Virus-Scanned: by amavis-2.2.1 at is.rice.edu X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.567 tagged_above=-10 required=5 tests=AWL=0.032, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/122 X-Sequence-Number: 33725 On Mon, Feb 15, 2010 at 10:57:06AM -0500, Tom Lane wrote: > "Thorne, Francis" writes: > > Looking for some help with regards to an 'Out of Memory' issue I have > > with our Postgresql install on AIX. When running large updates or > > select queries we get an out of memory error returned and details > > entered in the log file like below. This is a 64-bit install and I have > > set the ulimit for the postgres user to unlimited. > > The bloat seems to be here: > > > AfterTriggerEvents: 131063808 total in 26 blocks; 576 free (7 > > chunks); 131063232 used > > but it's hard to believe you'd be getting "out of memory" after only > 130MB in a 64-bit build. Are you *sure* the postgres executable is > 64-bit? Are you *sure* the postmaster has been launched with > nonrestrictive ulimit? On lots of setups that takes modifying the > PG startup script, not just fooling with some user's .profile. > > > This is a 64-bit install (8.3) on AIX 5.3 > > 8.3.what? > > regards, tom lane I no longer have an AIX box, but I had similar problems with other applications that needed large amounts of memory. Some OS specific steps needed to be taken to allow normal users to allocate large blocks of memory. The information needed was in their on-line docs as I recall, but I do not remember the details. The executables may need to be built with specific options/flags to work. Regards, Ken