Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7D59F9F94EC for ; Tue, 28 Aug 2007 11:46:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 40084-05 for ; Tue, 28 Aug 2007 11:46:27 -0300 (ADT) X-Greylist: delayed 00:25:35.424826 by SQLgrey-1.7.5 Received: from Mercury.turbocorp.com (mercury.turbocorp.com [198.212.166.40]) by postgresql.org (Postfix) with ESMTP id 98DC69F9FC9 for ; Tue, 28 Aug 2007 11:46:27 -0300 (ADT) Received: from [198.212.166.61] (Voyager.turbocorp.com [198.212.166.61]) by Mercury.turbocorp.com (8.13.1/8.13.1) with ESMTP id l7SEkNR4006348 for ; Tue, 28 Aug 2007 10:46:23 -0400 Message-ID: <46D4353F.2040209@the-allgoods.net> Date: Tue, 28 Aug 2007 10:46:23 -0400 From: John R Allgood User-Agent: Thunderbird 1.5.0.12 (X11/20070718) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: How to monitor resources on Linux. 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: 200708/347 X-Sequence-Number: 26678 Hello All I have some questions on memory resources and linux. We are currently running Dell Poweredge 2950 with dual core opeterons and 8GB RAM. Postgres version is 7.4.17 on RHEL4. Could someone explain to me how to best monitor the memory resources on this platform. Top shows a high memory usage nearly all is being used. ipcs -m shows the following output. If I am looking at this correctly each of the postgres entries represents a postmaster with the number of connections. If I calculate the first entry it comes to around 3.4GB of RAM being used is this correct. We have started running into memory issues and I think we have exhausted all the memory on the system. I think the best approach would be to add more memory unless someone can suggest other options. We have a 2 node cluster running about 10 separate postmasters divided evenly on each node. Each postmaster is a separate division is our company if we have a problems with one database not everyone is down. 0x0052ea91 163845 postgres 600 133947392 26 0x00530db9 196614 postgres 600 34529280 24 0x00530201 229383 postgres 600 34529280 21 0x005305e9 262152 postgres 600 4915200 3 0x005311a1 294921 postgres 600 34529280 28 0x0052fe19 327690 postgres 600 4915200 4 Thanks John Allgood - Systems Admin Turbo Logistics