X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BB924DABF6 for ; Mon, 24 Oct 2005 01:15:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00373-03 for ; Mon, 24 Oct 2005 04:15:48 +0000 (GMT) Received: from linda-4.paradise.net.nz (bm-4a.paradise.net.nz [203.96.152.183]) by svr1.postgresql.org (Postfix) with ESMTP id 25555DABB6 for ; Mon, 24 Oct 2005 01:15:44 -0300 (ADT) Received: from smtp-1.paradise.net.nz (tclsnelb2-src-1.paradise.net.nz [203.96.152.177]) by linda-4.paradise.net.nz (Paradise.net.nz) with ESMTP id <0IOU006A9GZYS1@linda-4.paradise.net.nz> for pgsql-performance@postgresql.org; Mon, 24 Oct 2005 16:14:22 +1300 (NZDT) Received: from [192.168.1.11] (218-101-13-33.paradise.net.nz [218.101.13.33]) by smtp-1.paradise.net.nz (Postfix) with ESMTP id 7D6B9155F718; Mon, 24 Oct 2005 16:14:22 +1300 (NZDT) Date: Mon, 24 Oct 2005 16:14:20 +1300 From: Mark Kirkwood Subject: Re: Used Memory In-reply-to: <02b501c5d83c$d6bf0f10$1e21100a@ghwk02002147> To: "Christian Paul B. Cosinas" Cc: pgsql-performance@postgresql.org Message-id: <435C518C.8070505@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 8BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050726) References: <02b501c5d83c$d6bf0f10$1e21100a@ghwk02002147> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.365 required=5 tests=[AWL=-1.096, RCVD_IN_BL_SPAMCOP_NET=1.832, URIBL_SBL=0.629] X-Spam-Level: * X-Archive-Number: 200510/327 X-Sequence-Number: 15095 Christian Paul B. Cosinas wrote: > > > Here is the result of “free” command” I am talking about. > > What does this result mean? > I seem to recall the Linux man page for 'free' being most unenlightening, so have a look at: http://gentoo-wiki.com/FAQ_Linux_Memory_Management (For Gentoo, but should be applicable to RHEL). The basic idea is that modern operating systems try to make as much use of the memory as possible. Postgresql depends on this behavior - e.g. a page that has previously been fetched from disk, will be cached, so it can be read from memory next time, as this is faster(!) > > > I just noticed that as long as the free memory in the first row (which > is 55036 as of now) became low, the slower is the response of the > database server. > Well, you could be swapping - what does the swap line of 'free' show then? Also, how about posting your postgresql.conf (or just the non-default parameters) to this list? Some other stuff that could be relevant: - Is the machine just a database server, or does it run (say) Apache + Php? - When the slowdown is noticed, does this coincide with certain activities - e.g, backup , daily maintenance, data load(!) etc. regards Mark > > I choose Polesoft Lockspam to fight spam, and you? > http://www.polesoft.com/refer.html Nope, not me either.