From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: Kirk Wythers <kwythers@umn.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: trouble with a join on OS X
Date: Fri, 2 Feb 2007 15:41:18 +0100
Message-ID: <20070202144118.GA20529@uio.no> (raw)
In-Reply-To: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu>
References: <8FD54F8B-792B-4333-8C73-AAFD2992C17F@umn.edu>
On Fri, Feb 02, 2007 at 07:52:48AM -0600, Kirk Wythers wrote:
> psql(15811) malloc: *** vm_allocate(size=8421376) failed (error code=3)
> psql(15811) malloc: *** error: can't allocate region
> psql(15811) malloc: *** set a breakpoint in szone_error to debug
It sounds like you are out of memory. Have you tried reducing work_mem?
Actually, what does your postgresql.conf look like with regard to memory
settings?
> This a a dual G5 box with 6 gigs of ram running postgresql 8.1. I
> have not tired altering kernel resources (as described in http://
> www.postgresql.org/docs/8.1/interactive/kernel-resources.html#SHARED-
> MEMORY-PARAMETERS), or compiling for 64 bit. I'm just not sure what
> to try next. Does anyone have any suggestions?
Compiling for 64 bit might very well help you, but it sounds odd to use
several gigabytes of RAM for a sort.
Could you post EXPLAIN ANALYZE for the query with only one row, as well
as your table schema?
/* Steinar */
--
Homepage: http://www.sesse.net/
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-performance@postgresql.org
Cc: sgunderson@bigfoot.com, kwythers@umn.edu
Subject: Re: trouble with a join on OS X
In-Reply-To: <20070202144118.GA20529@uio.no>
* 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