Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4E49E632E5C for ; Mon, 15 Feb 2010 16:21:03 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 48269-03 for ; Mon, 15 Feb 2010 20:20:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from web39704.mail.mud.yahoo.com (web39704.mail.mud.yahoo.com [209.191.106.50]) by mail.postgresql.org (Postfix) with SMTP id 5711E6322B9 for ; Mon, 15 Feb 2010 16:20:52 -0400 (AST) Received: (qmail 36054 invoked by uid 60001); 15 Feb 2010 20:20:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1266265250; bh=EPokTw1rit3/HbfB3SGwyRI9WfXNZdVPrkxjxTzUZoM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6QLaxpRJF33KIbMyY/exE7Q4J/96psXFkYKVIJh9ggs1yfSowh3uEtb9rS5e0XoW+kj1ek2HIE8VVzZr6JLQvI5zjmr3GBqmqZF/t7I36H+Qy3zgJ0Rj4yo4B1YaE9F8VzyZXIH9R1oreD47217ysHxN6g1W4J7myQkBWsCGPkc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MVSyXAvwPdVRoJZvVsv51uwkHM9D/0Fu8mtGo0FffbdLmPXY75ruj17q0XElZm96I9R6fe5l25okeGC0HfpPiq2Jn+lQo/xX1N1DYWZmQcC9xB+VbordVkY6EUgyyhosxmIpV0uKaXWUjlZcpN28afZYt4spGfdPDXGIwz1Xb/Q=; Message-ID: <816542.35556.qm@web39704.mail.mud.yahoo.com> X-YMail-OSG: 85BY6AAVM1m.i_YQjVWWaUJflGuLT8fbs5I6Al1SCUD3_4nx7vqXWoVN49FKfx9XiUdhTPbd0QPVDq1I1ciFX5D003TD1iyov6jxAeDERZI1yqVmTS1eo88UYkJ.V5rflC7KfkfdOJv.x2G_b3XKPnIj7.E2_djszupvj7VR28dk80iEya0Sb2BxsG0g2J.7zPjMzvx1IRsTL8M483qUx33OAex1dIH3kZt0wIJUHgqfQAT9O13gIfv5u664zrRJmMPdSCeDvAal31Xf5__pGGn2B2D7an4ZzK331WuG0EOCPkLPAR4CzAmxcLwUN__2xge9b6qKDPZQvBAmq1sFoT2beEQMfIvevg-- Received: from [69.76.130.83] by web39704.mail.mud.yahoo.com via HTTP; Mon, 15 Feb 2010 12:20:50 PST X-Mailer: YahooMailClassic/9.1.10 YahooMailWebService/0.8.100.260964 Date: Mon, 15 Feb 2010 12:20:50 -0800 (PST) From: Bob Lunney Subject: Re: AIX - Out of Memory To: Kenneth Marshall Cc: pgsql-admin@postgresql.org In-Reply-To: <20100215161823.GB16501@it.is.rice.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/124 X-Sequence-Number: 33727 =0A=0A--- On Mon, 2/15/10, Kenneth Marshall wrote:=0A=0A> Fr= om: Kenneth Marshall =0A> Subject: Re: [ADMIN] AIX - Out of M= emory=0A> To: "Tom Lane" =0A> Cc: "Thorne, Francis" , pgsql-admin@postgresql.org=0A> Date: Monday, February= 15, 2010, 11:18 AM=0A> On Mon, Feb 15, 2010 at 10:57:06AM=0A> -0500, Tom L= ane wrote:=0A> > "Thorne, Francis" =0A> writes:=0A>= > > Looking for some help with regards to an 'Out of=0A> Memory' issue I h= ave=0A> > > with our Postgresql install on AIX.=A0 When=0A> running large u= pdates or=0A> > > select queries we get an out of memory error=0A> returned= and details=0A> > > entered in the log file like below.=A0 This is=0A> a 6= 4-bit install and I have=0A> > > set the ulimit for the postgres user to=0A= > unlimited.=A0 =0A> > =0A> > The bloat seems to be here:=0A> > =0A> > >=A0= =A0=A0=A0AfterTriggerEvents:=0A> 131063808 total in 26 blocks; 576 free (7= =0A> > > chunks); 131063232 used=0A> > =0A> > but it's hard to believe you'= d be getting "out of=0A> memory" after only=0A> > 130MB in a 64-bit build.= =A0 Are you *sure* the=0A> postgres executable is=0A> > 64-bit?=A0 Are you = *sure* the postmaster has been=0A> launched with=0A> > nonrestrictive ulimi= t?=A0 On lots of setups that=0A> takes modifying the=0A> > PG startup scrip= t, not just fooling with some user's=0A> .profile.=0A> > =0A> > > This is a= 64-bit install (8.3) on AIX 5.3=0A> > =0A> > 8.3.what?=0A> > =0A> > =A0=A0= =A0 =A0=A0=A0=0A> =A0=A0=A0 regards, tom lane=0A> =0A> I no longer have an = AIX box, but I had similar problems=0A> with other=0A> applications that ne= eded large amounts of memory. Some OS=0A> specific=0A> steps needed to be t= aken to allow normal users to allocate=0A> large=0A> blocks of memory. The = information needed was in their=0A> on-line docs=0A> as I recall, but I do = not remember the details. The=0A> executables may=0A> need to be built with= specific options/flags to work.=0A> =0A> Regards,=0A> Ken=0A> =0A=0AKen,= =0A=0AI recently saw a similar issue. It is two-fold:=0A=0A1. I used "su = -" to become the postgres user, and inherited the previous account's memory= limits,=0A2. AfterTriggerEvents queues are caused by foreign key constrai= nts, one per row. If you're loading data, dropping or disabling that const= raint makes a world of difference. Just be sure to check afterwards if the= RI has been violated prior to recreating the FK constraint.=0A=0ABob=0A=0A= =0A