Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1EAC52E0070 for ; Fri, 28 Mar 2008 18:58:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50778-09 for ; Fri, 28 Mar 2008 18:58:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from svana.org (svana.org [203.190.233.187]) by postgresql.org (Postfix) with ESMTP id 84A172E004E for ; Fri, 28 Mar 2008 18:58:27 -0300 (ADT) Received: from kleptog by svana.org with local (Exim 4.50) id 1JfMaB-0006dw-7a; Sat, 29 Mar 2008 08:57:55 +1100 Date: Fri, 28 Mar 2008 22:57:55 +0100 From: Martijn van Oosterhout To: Alex Adriaanse Cc: pgsql-general@postgresql.org Subject: Re: Out of memory Message-ID: <20080328215755.GF9150@svana.org> Reply-To: Martijn van Oosterhout Mail-Followup-To: Alex Adriaanse , pgsql-general@postgresql.org References: <47ED3B41.80305@innovacomputing.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AjmyJqqohANyBN/e" Content-Disposition: inline In-Reply-To: <47ED3B41.80305@innovacomputing.com> X-PGP-Key-ID: Length=1024; ID=0x6F0B424C X-PGP-Key-Fingerprint: 34A8 8EAC F902 8C8D CA72 DCC7 201E DB34 6F0B 424C User-Agent: Mutt/1.5.9i X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kleptog@svana.org X-SA-Exim-Scanned: No (on svana.org); SAEximRunCond expanded to false X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/1506 X-Sequence-Number: 130828 --AjmyJqqohANyBN/e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 28, 2008 at 01:38:57PM -0500, Alex Adriaanse wrote: > First some background information: >=20 > Software (at the time of the memory errors): CentOS 4.5 (x86_64) running= =20 > its 2.6.9-55.ELsmp Linux kernel, PostgreSQL 8.1.9 (from RPMs provided on= =20 > the PostgreSQL web site: postgresql-8.1.9-1PGDG.x86_64). >=20 > Hardware: 4 dual-core Opterons. 16GB physical RAM, 2GB swap. Since you've clearly disabled overcommit, you should realise that under the default settings you will never use more than about 50-60% of your memory for the database. Your swap will essentially always be unused. The rest will be simply buffers/cache (which may be what you want). You may want to play with the VM settings and/or increase the swap. As for the precise cause of the crash: I don't see anything in the log that would indicate anything unusual, though evidently it wanted about 256MB all of a sudden, which looks suspicously like your maintainence workmem. My guess is that the total allocated VM is fairly close to the limit of your configuration and that a slightly higher than normal load and a background autovacuum took it over the edge. My guess is that if you up the swap to 4GB or perhaps 8GB, you'll get a lot more room to manouver. Does Zenoss track to *allocated* VM in addition to total memory used? Hope this helps, --=20 Martijn van Oosterhout http://svana.org/kleptog/ > Please line up in a tree and maintain the heap invariant while=20 > boarding. Thank you for flying nlogn airlines. --AjmyJqqohANyBN/e Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFH7WnjIB7bNG8LQkwRAv55AJ4h+9AFlbW2TLnqH30e9Lsj4qcMqACghEYr MWL3nR0iH7MGBdSa9RgzEWs= =HOCq -----END PGP SIGNATURE----- --AjmyJqqohANyBN/e--