Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id CEA159FBCE2 for ; Thu, 5 Apr 2007 17:13:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 86962-06 for ; Thu, 5 Apr 2007 17:13:10 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mout.perfora.net (mout.perfora.net [217.160.230.41]) by postgresql.org (Postfix) with ESMTP id 9917A9FBC84 for ; Thu, 5 Apr 2007 17:13:12 -0300 (ADT) Received: from [198.212.166.61] (helo=voyager) by mrelay.perfora.net (node=mrelayus1) with ESMTP (Nemesis), id 0MKp2t-1HZYKR1T3F-0008Vh; Thu, 05 Apr 2007 16:13:11 -0400 From: "John Allgood" To: "'Dave Cramer'" Cc: "'Jeff Frost'" , References: <009a01c777b5$7c683ae0$3da6d4c6@voyager> <00b801c777b9$4a58b0d0$3da6d4c6@voyager> <522F480A-C1CA-4771-8BC1-F7E9E74D23F4@fastcrypt.com> Subject: Re: High Load on Postgres 7.4.16 Server Date: Thu, 5 Apr 2007 16:13:15 -0400 Message-ID: <00ce01c777be$daf30640$3da6d4c6@voyager> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 thread-index: Acd3vVasZijrofaDTCKtHdW5USrzTAAAH3JA In-Reply-To: <522F480A-C1CA-4771-8BC1-F7E9E74D23F4@fastcrypt.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Provags-ID: V01U2FsdGVkX1/012w37fxxT6D25vZY/3rSZRe5BOsgelwSawV xHitCmfPZkOFQn+wBD1jgTgRhqBs5mrGPjP+xwi1X0+XkpWJKx TM5AX8IXWVCzunixrWHHVMdo+lmoxbERcpt5W4durY= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/132 X-Sequence-Number: 24009 We run multiple postmasters because we can shutdown one postmaster/database without affecting the other postmasters/databases. Each database is a division in our company. If we had everything under one postmaster if something happened to the one the whole company would be down. -----Original Message----- From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Dave Cramer Sent: Thursday, April 05, 2007 4:01 PM To: John Allgood Cc: 'Jeff Frost'; pgsql-performance@postgresql.org Subject: Re: [PERFORM] High Load on Postgres 7.4.16 Server On 5-Apr-07, at 3:33 PM, John Allgood wrote: > The hard thing about running multiple postmasters is that you have > to tune > each one separate. Most of the databases I have limited the max- > connections > to 30-50 depending on the database. What would reasonable values for > effective_cache_size and random_page_cost. I think I have these > default. > Also what about kernel buffers on RHEL4. > random_page_cost should be left alone Why do you run multiple postmasters ? I don't think this is not the most efficient way to utilize your hardware. Dave > Thanks > > -----Original Message----- > From: pgsql-performance-owner@postgresql.org > [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Jeff > Frost > Sent: Thursday, April 05, 2007 3:24 PM > To: John Allgood > Cc: pgsql-performance@postgresql.org > Subject: Re: [PERFORM] High Load on Postgres 7.4.16 Server > > On Thu, 5 Apr 2007, John Allgood wrote: > >> Hello All >> >> I sent this message to the admin list and it never got through so I >> am trying the performance list. >> We moved our application to a new machine last night. It is a Dell >> PowerEdge 6950 2X Dual Core. AMD Opteron 8214 2.2Ghz. 8GB Memory. The >> machine is running Redhat AS 4 Upd 4 and Redhat Cluster Suite. The >> SAN is > an >> EMC SAS connected via fibre. We are using Postgres 7.4.16. We have > recently >> had some major hardware issues and replaced the hardware with >> brand new > Dell >> equipment. We expected a major performance increase over the previous > being >> the old equipment was nearly three years old >> I will try and explain how things are configured. We have 10 >> separate postmasters running 5 on each node. Each of the >> postmasters is a >> single instance of each database. Each database is separated by >> division > and >> also we have them separate so we can restart an postmaster with >> needing to >> restart all databases My largest database is about 7 GB. And the >> others > run >> anywhere from 100MB - 1.8GB. >> The other configuration was RHEL3 and Postgres 7.4.13 and Redhat >> Cluster Suite. The application seemed to run much faster on the older >> equipment. >> My thoughts on the issues are that I could be something with the OS >> tuning. Here is what my kernel.shmmax, kernel.shmall = 1073741824. Is > there >> something else that I could tune in the OS. My max_connections=35 and > shared >> buffers=8192 for my largest database. > > John, > > Was the SAN connected to the previous machine or is it also a new > addition > with the Dell hardware? We had a fairly recent post regarding a > similar > upgrade in which the SAN ended up being the problem, so the first > thing I > would do is test the SAN with bonnie-++ and/or move your > application to use > a > local disk and test again. With 8GB of RAM, I'd probably set the > shared_buffers to at least 50000...If I remember correctly, this > was the > most > you could set it to on 7.4.x and continue benefitting from it. I'd > strongly > > encourage you to upgrade to at least 8.1.8 (and possibly 8.2.3) if > you can, > as > it has much better shared memory management. You might also want > to double > check your effective_cache_size and random_page_cost to see if they > are set > to > reasonable values. Did you just copy the old postgresql.conf over? > > This is the beginning of the thread I mentioned above: > > http://archives.postgresql.org/pgsql-performance/2007-03/msg00104.php > > -- > Jeff Frost, Owner > Frost Consulting, LLC http://www.frostconsultingllc.com/ > Phone: 650-780-7908 FAX: 650-649-1954 > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.26/746 - Release Date: > 4/4/2007 > 1:09 PM > > > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.26/746 - Release Date: 4/4/2007 1:09 PM