Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A63AA634A22 for ; Fri, 26 Feb 2010 02:20:51 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 65750-07 for ; Fri, 26 Feb 2010 06:20:41 +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 6C2436325E1 for ; Fri, 26 Feb 2010 02:20:39 -0400 (AST) Received: by pwj8 with SMTP id 8so6262988pwj.19 for ; Thu, 25 Feb 2010 22:20:38 -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:content-type; bh=vcWx/CxJ49fVQTdW3gq0Nryo9t/2V7rQhVFaJhZtacM=; b=IeBvtQF6+UuNBkWcbaHDc/K2/CgL+mp4pWfimMSyv8R1ntDNxs54jSd6N324oxnS1+ Ld0uCtr2ThinWtL+k7EMFCq325zXTmJOgdes4xbmtxnMEpAo61bXA7LifKERjtMGlC2Y 4a4KbeSp1OsMxkVxlrjgdp9qBiC+I++T3nDmg= 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 :content-type; b=uWNEKgBMuTu7BQCbfvEqo8UUJaxldVmgqKyb/BKAWwniNlnaZA59WDxuYnn+I3cZf9 ThNer2Qh8JK92fUXtod7pY/aYssZYu1xiutrHYLtZ1bebb8KrfR52/YrSOxZzYWwsVN6 qXThyfPp+Zt8Xc1kF671L38aNyWeDI6Jdm4nY= MIME-Version: 1.0 Received: by 10.141.90.12 with SMTP id s12mr370020rvl.123.1267165238249; Thu, 25 Feb 2010 22:20:38 -0800 (PST) In-Reply-To: <8a547c841002252212t382cfeb4pde3e668a9d3f2f10@mail.gmail.com> References: <8a547c841002252212t382cfeb4pde3e668a9d3f2f10@mail.gmail.com> Date: Thu, 25 Feb 2010 22:20:38 -0800 Message-ID: <8a547c841002252220o4579ead0vd35a44726fdd5c5f@mail.gmail.com> Subject: Re: bgwriter, checkpoints, curious (seeing delays) From: Tory M Blue To: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/365 X-Sequence-Number: 37786 On Thu, Feb 25, 2010 at 10:12 PM, Tory M Blue wrote: > Okay ladies and gents and the rest of you :) > > It's time I dig into another issue, and that's a curious 5 second > delay on connect, on occasion. Now, I believe the network to be sound > and there are zero errors on any servers, no retrans, no runts, nada > nada nada. However I will continue to run tests with/without dns, > tcpdumps, tracking communications, handshakes, however. > > I've been doing some reading and what did I find. I found "Checkpoints > are very disrupting to your database performance and can cause > connections to stall for up to a few seconds while they occur." Quick added note, sorry. "checkpoint_completion_target (floating point) Specifies the target length of checkpoints, as a fraction of the checkpoint interval. The default is 0.5. This parameter can only be set in the postgresql.conf file or on the server command line. " interesting that it's a .5 second default setting and I'm seeing exactly that .5 second delay. Again could be reaching here! Thanks for putting up with me Tory