Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 729126329BB for ; Tue, 29 Jun 2010 12:29:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 02776-09 for ; Tue, 29 Jun 2010 15:29:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id D823663225A for ; Tue, 29 Jun 2010 12:29:23 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o5TFTIn17113; Tue, 29 Jun 2010 11:29:18 -0400 (EDT) From: Bruce Momjian Message-Id: <201006291529.o5TFTIn17113@momjian.us> Subject: Re: cpu bound postgresql setup. In-Reply-To: To: Benjamin Krajmalnik Date: Tue, 29 Jun 2010 11:29:18 -0400 (EDT) CC: Rajesh Kumar Mallah , Kevin Grittner , pgsql-performance@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-10 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/514 X-Sequence-Number: 39370 Benjamin Krajmalnik wrote: > > -----Original Message----- > > From: Bruce Momjian [mailto:bruce@momjian.us] > > Sent: Monday, June 28, 2010 3:45 PM > > To: Benjamin Krajmalnik > > Cc: Rajesh Kumar Mallah; Kevin Grittner; pgsql- > > performance@postgresql.org > > Subject: Re: [PERFORM] cpu bound postgresql setup. > > > > Benjamin Krajmalnik wrote: > > > Rajesh, > > > > > > I had a similar situation a few weeks ago whereby performance all of > > a > > > sudden decreased. > > > The one tunable which resolved the problem in my case was increasing > > the > > > number of checkpoint segments. > > > After increasing them, everything went back to its normal state. > > > > Did you get a db server log message suggesting in increasing that > > setting? I hope so. > Unfortunately not. The behavior I had was ebbs and flows. On FreeBSD, > I was seeing a lot of kernel wait states in top. So every few minutes, > responsiveness of the db was pretty bad. 8.4.4/amd64 on FreeBSD 7.2 Bummer. What is supposed to happen is if you are checkpointing too frequently ( < 30 seconds), you get the suggestion about increasing checkpoint_segments. I have not heard of cases where you are not checkpointing too frequently, and increasing checkpoint_segments helps. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + None of us is going to be here forever. +