Re: Inactive memory Grows unlimited

From: Matteo Beccati <php(at)beccati(dot)com>
To: ALVARO ARCILA <arcila_alvaro(at)hotmail(dot)com>, pgsql-performance(at)postgresql(dot)org
Cc: alvherre(at)commandprompt(dot)com
Subject: Re: Inactive memory Grows unlimited
Date: 2006-04-24 05:36:57
Message-ID: 444C63F9.7000306@beccati.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

>> The amount of Inactive memory Grows unlimited .... this happens only when
>> Postgresql (8.1.1) is running... after a few days it "eats" all the RAM
>> memory ... so I've have to restart the server to free RAM....
>
> This is normal Unix behavior. Leave it running for a few more days and
> you'll that nothing wrong happens. Why do you think you need "free"
> memory?
>
> Only if the swap memory start getting used a lot you need to worry about
> memory consumption.
>
> You should upgrade to 8.1.3 BTW.

Also, shared_buffers seem too low and work_mem too much high for your setup:

> shared_buffers = 1000
> work_mem = 131076

You should really raise shared_buffers and decrease work_mem: 1000
shared_buffers is probably too conservative. On the other hand 128MB per
sort could be eating your RAM quickly with 18 users connected.

Best regards
--
Matteo Beccati
http://phpadsnew.com
http://phppgads.com

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Markus Schaber 2006-04-24 08:29:44 Re: Recovery will take 10 hours
Previous Message Brendan Duddridge 2006-04-24 04:46:35 Re: Recovery will take 10 hours