Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7235A63239C for ; Fri, 30 Jul 2010 14:37:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 22605-02 for ; Fri, 30 Jul 2010 17:37:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id AD9866322B9 for ; Fri, 30 Jul 2010 14:37:17 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Fri, 30 Jul 2010 12:37:16 -0500 Message-Id: <4C52C7790200002500033F1C@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Fri, 30 Jul 2010 12:37:13 -0500 From: "Kevin Grittner" To: "Craig James" Cc: Subject: Re: Connection pooling for a mixture of lightweight and heavyweight jobs? References: <4C50ABA5.5010408@emolecules.com> <4C52B0240200002500033F10@gw.wicourts.gov> <4C530758.7050804@emolecules.com> In-Reply-To: <4C530758.7050804@emolecules.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.51 tagged_above=-10 required=5 tests=BAYES_50=0.8, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/223 X-Sequence-Number: 35242 Craig James wrote: >> Well, the "if it ain't broke, don't fix it" rule might come into >> play here. > > I should have given one more detail here: We've been the victim > of persistent "CPU spikes" that were discussed extensively in > postgres-performance. Tom suggested upgrading to 8.4.4, but that > can't happen for a couple more months (we're working on it). > > http://archives.postgresql.org/pgsql-performance/2010-04/msg00071.php Ah, I hadn't connected that thread with this. After rereading that thread with the information from this thread in mind, I think what you describe on the other thread could well be the "thundering herd" problem. Some form of connection pooling could well help. BTW, I hope you've updated to the latest 8.3.x by now. If not, you should expedite that. -Kevin