Re: Would my postgresql 8.4.12 profit from doubling RAM?

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Would my postgresql 8.4.12 profit from doubling RAM?
Date: 2012-08-30 14:45:02
Message-ID: CAOR=d=3Jq-QG=iZBteBS_OQyhWxSMWyRrrp=eatHc1gtYG6z-w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Aug 30, 2012 at 8:42 AM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> wrote:
> users, and currently work_mem is set to 1M (the default.) If you
> increase that to 16M, that'd be max 1.6G of memory, which you have
> free anyway right now.

Self correction here. Of course that's assuming 1 sort on average per
query. My experience is that you generally use less than that. Except
when you don't. :) If your typical query has 6 or 12 sorts in it,
your memory can run out fast. But judging by your current free RAM,
I'm guessing it doesn't do that. Only thorough testing can tell you
the sweet spot tho.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2012-08-30 15:09:57 Re: String comparision in PostgreSQL
Previous Message Scott Marlowe 2012-08-30 14:42:53 Re: Would my postgresql 8.4.12 profit from doubling RAM?