Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 337C9632D07 for ; Thu, 18 Feb 2010 14:01:52 -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 07553-04 for ; Thu, 18 Feb 2010 18:01:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound.afilias.info (outbound.afilias.info [69.46.124.26]) by mail.postgresql.org (Postfix) with ESMTP id 8E993632903 for ; Thu, 18 Feb 2010 14:01:41 -0400 (AST) Received: from ms6.yyz2.afilias-ops.info ([10.50.129.112] helo=smtp.afilias.info) by outbound.afilias.info with esmtp (Exim 4.69) (envelope-from ) id 1NiAh2-0003uU-4Y; Thu, 18 Feb 2010 18:01:40 +0000 Received: from tor-gateway.afilias.info ([199.15.87.4] helo=[10.10.46.12]) by smtp.afilias.info with esmtpsa (SSLv3:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1NiAh2-00010Y-7H; Thu, 18 Feb 2010 18:01:40 +0000 Subject: Re: AIX - Out of Memory From: Brad Nicholson To: "Thorne, Francis" Cc: pgsql-admin@postgresql.org In-Reply-To: <81976671721DF04B9DCA6ECD87941A401E2CCE18@roundway.Cromwell-tools.co.uk> References: <81976671721DF04B9DCA6ECD87941A401E2CCE18@roundway.Cromwell-tools.co.uk> Content-Type: text/plain Date: Thu, 18 Feb 2010 13:01:39 -0500 Message-Id: <1266516099.4412.55.camel@bnicholson-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.74 tagged_above=-10 required=5 tests=BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201002/137 X-Sequence-Number: 33740 On Thu, 2010-02-18 at 08:46 +0000, Thorne, Francis wrote: > Hi Brad, > > Thanks for all your help with this, sorry for my ignorance on this. > I've read through the F.A.O and found the section on setting MAXDATA but > can only see the example of setting this to 0x00000000 for 32-bit. I > cant see any example of what I need to change this to if I wanted to run > 64-bit, I don't suppose you have an idea what I would need to change > this maxData figure to. We've set ours to the upper limit of 2GB (0x80000000). Your usage may vary. You'll need to take into account the expected size of your processes * the number of expected processes and make sure you have enough RAM in the system to handle it. > I assume using the LDEDIT command the maxData setting can be changed on > the fly and we wont need to re-compile Postgres. It can be, but I'm not sure exactly which components you will need to touch. We always build our binaries passing with this set higher, so I can't comment on the effects of changing it on existing ones. > Thanks again for all your help and patience !! > > Fran > > -----Original Message----- > From: Brad Nicholson [mailto:bnichols@ca.afilias.info] > Sent: 16 February 2010 18:46 > To: Thorne, Francis > Cc: pgsql-admin@postgresql.org > Subject: RE: [ADMIN] AIX - Out of Memory > > On Tue, 2010-02-16 at 16:44 +0000, Thorne, Francis wrote: > > Please find details as requested, thanks again for you help > > > > /usr/local/pgsql837-64/bin/postgres: > > > > ***Object Module Header*** > > # Sections Symbol Ptr # Symbols Opt Hdr Len Flags > > 4 0x005e247c 46124 120 0x9002 > > Flags=( EXEC DYNLOAD RWNONEXEC ) > > Timestamp = "06 Nov 12:55:11 2009" > > Magic = 0x1f7 (64-bit XCOFF) > > Your binary is 64-bit. > > > ***Optional Header*** > > Tsize Dsize Bsize Tstart Dstart > > 0x003cc912 0x0005dde6 0x00073a38 0x100001f8 0x20000b0a > > > > SNloader SNentry SNtext SNtoc SNdata > > 0x0004 0x0002 0x0001 0x0002 0x0002 > > > > TXTalign DATAalign TOC vstamp entry > > 0x0005 0x0003 0x20059418 0x0001 0x20039c6c > > > > maxSTACK maxDATA SNbss magic modtype > > 0x00000000 0x00000000 0x0003 0x010b 1L > > Bingo - maxDATA of 0x00000000. Ken's posting was correct. You have > 1x256MB segment of memory available per process. > > If you watch your server process while this is happening, it will be > hitting 256MB in size. > > Upping this limit is probably the way to go. You can use the ldedit > command to up this limit for your binaries, or specify it when you build > Postgres. See the file docs/FAQ_AIX with the PG source for details. -- Brad Nicholson 416-673-4106 Database Administrator, Afilias Canada Corp.