Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance

>> 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

In response to

pgsql-performance by date

Next:From: Markus SchaberDate: 2006-04-24 08:29:44
Subject: Re: Recovery will take 10 hours
Previous:From: Brendan DuddridgeDate: 2006-04-24 04:46:35
Subject: Re: Recovery will take 10 hours

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group