Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id C3CEB9F95C8 for ; Tue, 28 Aug 2007 13:44:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 78644-06 for ; Tue, 28 Aug 2007 13:43:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by postgresql.org (Postfix) with ESMTP id 690A19F95C1 for ; Tue, 28 Aug 2007 13:43:58 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id u77so1870400pyb for ; Tue, 28 Aug 2007 09:43:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Ooi0VTjrBesSICuuF62PsfHL8YRs1UXQ1jfYTnQ+rnkKWKTIetMBLkfxk8Dsrlx7uQHbRTqq6J7iCP0QiJ3OtougJbj9m3+I1Gpr0XydzFI8CUCI5gqz+YeFY+LeFlmTtMoTivVkGQS94rdLVDx+6z0cwpSv1HtCQBqQRf50wUQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=kNF4P2Fd0bd3DfkgtqRGsg6qA0V2EqBPMvUbmL0cv0DLaVW/qcH9OCfQxX4mLuHVVXff+5Kdm1LMmMOkBcJITdluziWCise7ZqbguRpLa72ToLuSLy6fFB3EcY5YJrzHFhex2GODgh47z7Uy3j5QCZuEo86zFTY6tDPP/K/nI+Y= Received: by 10.65.95.12 with SMTP id x12mr13509893qbl.1188319426470; Tue, 28 Aug 2007 09:43:46 -0700 (PDT) Received: by 10.65.110.15 with HTTP; Tue, 28 Aug 2007 09:43:46 -0700 (PDT) Message-ID: <8078a1730708280943g1e382553u158b9d78b7681828@mail.gmail.com> Date: Tue, 28 Aug 2007 09:43:46 -0700 From: "Medi Montaseri" To: "John R Allgood" Subject: Re: How to monitor resources on Linux. Cc: pgsql-admin@postgresql.org In-Reply-To: <46D4353F.2040209@the-allgoods.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2921_1089678.1188319426412" References: <46D4353F.2040209@the-allgoods.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/350 X-Sequence-Number: 26681 ------=_Part_2921_1089678.1188319426412 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The 3.4G per process seems too un-realistic. Here is a simple way to isolate or narrow the scope of the problem at hand. Bring the server up, go to the run level that you run PG, but stop PG, now measure your memory consumption. This is your baseline. Now start PG, but no connection, just idle, measure your memory consumption Then bang on your PG (or wait for a busy time) and measure your memory consumption. Tools available on linux include ps(1), vmstat(1), top(1), ipcs(1), proc(5) Medi On 8/28/07, John R Allgood wrote: > > 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 > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > ------=_Part_2921_1089678.1188319426412 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The 3.4G per process seems too un-realistic. Here is a simple way to isolate or narrow the scope of the problem at hand.

Bring the server up, go to the run level that you run PG, but stop PG, now measure your memory consumption. This is your baseline.
Now start PG, but no connection, just idle, measure your memory consumption
Then bang on your PG (or wait for a busy time) and measure your memory consumption.

Tools available on linux include ps(1), vmstat(1), top(1), ipcs(1), proc(5)

Medi

On 8/28/07, John R Allgood <jallgood@the-allgoods.net> wrote:
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


---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

------=_Part_2921_1089678.1188319426412--