Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 52DFF637891 for ; Fri, 26 Feb 2010 15:02:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 61709-06-3 for ; Fri, 26 Feb 2010 19:02:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pw0-f46.google.com (mail-pw0-f46.google.com [209.85.160.46]) by mail.postgresql.org (Postfix) with ESMTP id D312B63596F for ; Fri, 26 Feb 2010 15:01:56 -0400 (AST) Received: by pwj8 with SMTP id 8so255739pwj.19 for ; Fri, 26 Feb 2010 11:01:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Fzalhf3jWWjUliVOOmzQCbopufqInPkZ5mqdeeJSlik=; b=xZ+r4mpluRpzfI5unzzFbGaXbg+LvZsL78qo1tfp1zEnO0VxGb6imyy9UPaPGDBvy4 fugx/dHzjFB6bO+m3I+1F0I7Ti9hUoxOjgRb9um/pqVggAeTyK7OPfLGwra1I04h3ksY 5rjP4vDcASq8am4Vwhi36qgN567a5SOxPll6s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=eXTofZXYb02QiFQ1+ODMJzeMQ4I8uN1FNMyklZhXNbfauwOTNogdpSSaVFko6aPKyn MgfeoyttVqSpFVvmFcCwFeZHxrZYjnHPj6G3P1C5I2qiDERqMe2gB49SIm/J+RiAmeuM IMOf09/V2mBywds/FlPYXW0ZUyEPV9SLwVSyE= MIME-Version: 1.0 Received: by 10.141.101.16 with SMTP id d16mr432185rvm.122.1267210915541; Fri, 26 Feb 2010 11:01:55 -0800 (PST) In-Reply-To: <1267168816.2094.57.camel@hp-laptop2.gunduz.org> References: <8a547c841002252212t382cfeb4pde3e668a9d3f2f10@mail.gmail.com> <1267166541.2094.52.camel@hp-laptop2.gunduz.org> <8a547c841002252301g49d7f183ue0909929de09d20@mail.gmail.com> <1267168816.2094.57.camel@hp-laptop2.gunduz.org> Date: Fri, 26 Feb 2010 11:01:55 -0800 Message-ID: <8a547c841002261101l6bf9bd37j8b2068a0190bedff@mail.gmail.com> Subject: Re: bgwriter, checkpoints, curious (seeing delays) From: Tory M Blue To: =?ISO-8859-1?Q?Devrim_G=DCND=DCZ?= Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=AWL=0.699, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/383 X-Sequence-Number: 37804 2010/2/25 Devrim G=DCND=DCZ : > On Thu, 2010-02-25 at 23:01 -0800, Tory M Blue wrote: > >> Checkpoint_timeout is the default and that looks like 5 mins (300 >> seconds). And is obviously why I have such a discrepancy between time >> reached and requested. > > If you have a high load, you may want to start tuning with 15 minutes, > and bump it to 30 mins if needed. Also you may want to decrease segments > value based on your findings, since increasing only one of them won't > help you a lot. > > As I wrote before, pg_stat_bgwriter is your friend here. Actually these servers have almost no load. Really they run very cool Load Average (for the day): Cur: 0.16 Load Avg: 0.22 Load So I don't think it's load No network issues (that I've found) and while the server will eventually eat all the memory it's currently sitting with 4 gb free. Mem Total (for the day): Cur: 25.55 GBytes Avg: 25.55 GBytes Max: 25.55 GBytes Mem Available (for the day): Cur: 4.72 GBytes Avg: 5.15 GBytes Max: 5.71 GBytes Bytes Used (for the day): Cur: 20.83 GBytes Avg: 20.40 GBytes Max: 21.20 GBytes Thanks for your pointers, I'm continuing to look and will do some tests today. I also hear you about fsync and will do some testing here to see why this was set (been running for 4-6 years), and that setting was probably set way way back in the day and it's survived each upgrade/hardware/storage update. Tory