Re: ERROR: out of memory - Mailing list pgsql-general

From Scott Marlowe
Subject Re: ERROR: out of memory
Date
Msg-id dcc563d10711160633l33ce54f5p4a32ab0cdc846f13@mail.gmail.com
Whole thread Raw
In response to ERROR: out of memory  (Anton <anton200@gmail.com>)
List pgsql-general
On Nov 16, 2007 1:48 AM, Anton <anton200@gmail.com> wrote:
> My machine has 2G RAM. And I want make postgres utilize it...

You're trying to tune your database based on philosophy.  Making
postgresql use all the RAM may or may not make your machine run
faster.  The OS caches a lot of data for you, so having postgresql do
that as well may or may not speed things up.   By the way, in my
experience, 768Meg is a reasonable number for shared_buffers for a 2
Gig machine.  Most of the time anyway.

And like Erik said, 512Meg maintenance_work_mem is way too much on a 2
gig machine.  What's your work_mem set to?  I'd be worried you might
have that cranked up too high as well.  On my box, btw, anything over
16Megs is slower on most big queries than 16Megs.

pgsql-general by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: Request for suggestion on replication methods
Next
From: "Merlin Moncure"
Date:
Subject: Re: moving from mysql to postgree