pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Hoover <revoohc@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Fwd: Out of Memory on Reindex
Date: Thu, 31 May 2007 11:44:30 -0400
Message-ID: <117.1180626270@sss.pgh.pa.us> (raw)
In-Reply-To: <1d219a6f0705310807r48bb141cy8ef5c77f49ac6196@mail.gmail.com>
References: <1d219a6f0705290836h67b9509egc62498c78cf39829@mail.gmail.com>
	<1d219a6f0705301024p61aec66cv8b87adebfd4244a9@mail.gmail.com>
	<21900.1180562115@sss.pgh.pa.us>
	<1d219a6f0705310707i73292913rdccd98f591529776@mail.gmail.com>
	<29387.1180622575@sss.pgh.pa.us>
	<1d219a6f0705310807r48bb141cy8ef5c77f49ac6196@mail.gmail.com>

"Chris Hoover" <revoohc@gmail.com> writes:
> This is on a 32bit dual HT Xeon system using the official rpms.

Um.  I suspect you can't usefully set maintenance_work_mem as high as
1Gb in a 32-bit environment.  Last I heard, the max address space
available to userland in 32-bit Linux is 3Gb (the kernel takes the other
Gb).  Out of that you've got to subtract Postgres' shared memory, the
program code itself, and whatever other random internal overhead a
backend has got.  I don't think you mentioned what shared memory
settings you were using, but if you've been equally expansive on
shared_buffers and so on it could easily be approaching 2Gb in shared
memory.

Try knocking maintenance_work_mem back to 512M or 256M and see if things
get better.

			regards, tom lane



view thread (8+ messages)

Message-ID: <117.1180626270@sss.pgh.pa.us>
Permalink:  ../117.1180626270@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/117.1180626270@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, revoohc@gmail.com
  Subject: Re: Fwd: Out of Memory on Reindex
  In-Reply-To: <117.1180626270@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox