Re: Postgres memory usage

From: Jeff <threshar(at)torgo(dot)978(dot)org>
To: ruben <ruben20(at)superguai(dot)com>
Cc: generalpost <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres memory usage
Date: 2004-09-16 16:35:50
Message-ID: 788DA9FF-07FE-11D9-8F3E-000D9366F0C4@torgo.978.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Sep 16, 2004, at 11:26 AM, ruben wrote:

> Thanks Jeff:
>
> This is the output of free:
>
> total used free shared buffers cached
> Mem: 1031012 1018608 12404 0 64984 848160
> -/+ buffers/cache: 105464 925548
> Swap: 2040244 0 2040244
>
a vast majority of your ram is all in cache.
thats is good. It means the memory isn't being wasted.

> shared_buffers and sort_mem are both commented in postgresql.conf:
>
> -bash-2.05b$ grep shared_buf data/postgresql.conf
> #shared_buffers = 64 # 2*max_connections, min 16
> -bash-2.05b$ grep sort_m data/postgresql.conf
> #sort_mem = 512 # min 32
>

that is an extremely small value of shared buffers.
you should set it to at least 1000, maybe even 10000.
You'll likely get a nice performance boost by increasing it.

> I have verified that postgres is not the responsible for the low
> performance of the system, but I just wanted to be sure that memory
> usage is reasonable in a postgres installation.
>
Yes. It is fine, except I'd increase shared_buffers

--
Jeff Trout <jeff(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-09-16 16:37:10 Re: Strange UTF-8 behaviour
Previous Message Dennis Gearon 2004-09-16 16:34:54 Re: Strange UTF-8 behaviour