Re: trouble with a join on OS X - Mailing list pgsql-performance

From Steinar H. Gunderson
Subject Re: trouble with a join on OS X
Date
Msg-id 20070202144118.GA20529@uio.no
Whole thread Raw
In response to trouble with a join on OS X  (Kirk Wythers <kwythers@umn.edu>)
Responses Re: trouble with a join on OS X  (Kirk Wythers <kwythers@umn.edu>)
List pgsql-performance
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/

pgsql-performance by date:

Previous
From: Kirk Wythers
Date:
Subject: trouble with a join on OS X
Next
From: Richard Huxton
Date:
Subject: Re: trouble with a join on OS X