X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D645711F6006 for ; Mon, 24 Apr 2006 02:55:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 91085-05 for ; Mon, 24 Apr 2006 02:55:53 -0300 (ADT) X-Greylist: delayed 00:18:38.006636 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 03FBF11F60E7 for ; Mon, 24 Apr 2006 02:55:52 -0300 (ADT) Received: from maya.ngi.it (maya.ngi.it [88.149.128.3]) by svr4.postgresql.org (Postfix) with ESMTP id 734DB5AF9D4 for ; Mon, 24 Apr 2006 05:37:14 +0000 (GMT) Received: from [192.168.1.200] (88-149-138-20.f5.ngi.it [88.149.138.20]) (authenticated bits=0) by maya.ngi.it (8.13.6/8.13.5) with ESMTP id k3O5b6QX022805; Mon, 24 Apr 2006 07:37:06 +0200 Message-ID: <444C63F9.7000306@beccati.com> Date: Mon, 24 Apr 2006 07:36:57 +0200 From: Matteo Beccati User-Agent: Mozilla Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: ALVARO ARCILA , pgsql-performance@postgresql.org Cc: alvherre@commandprompt.com Subject: Re: Inactive memory Grows unlimited References: <007f01c6654b$15077280$8300a8c0@tridecap.com> <20060421163829.GD7303@surnet.cl> In-Reply-To: <20060421163829.GD7303@surnet.cl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/521 X-Sequence-Number: 18605 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