Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 51E562E008E for ; Mon, 3 Mar 2008 12:40:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 26423-07 for ; Mon, 3 Mar 2008 12:40:15 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from westnet.com (westnet.com [216.187.52.2]) by postgresql.org (Postfix) with ESMTP id 3D3BA2E0088 for ; Mon, 3 Mar 2008 12:40:15 -0400 (AST) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id m23Ge8Lr016231; Mon, 3 Mar 2008 11:40:08 -0500 (EST) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id m23Ge7VA016225; Mon, 3 Mar 2008 11:40:08 -0500 (EST) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Mon, 3 Mar 2008 11:40:07 -0500 (EST) From: Greg Smith X-X-Sender: gsmith@westnet.com To: Douglas J Hunley cc: pgsql-performance@postgresql.org Subject: Re: which is more important? freq of checkpoints or the duration of them? In-Reply-To: <200803030925.02931.doug@hunley.homeip.net> Message-ID: References: <200803030925.02931.doug@hunley.homeip.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/34 X-Sequence-Number: 28988 On Mon, 3 Mar 2008, Douglas J Hunley wrote: > In other words, is it ok to checkpoint say, every 5 minutes, if it only > last a second or three or better to have checkpoints every 10 minutes > that last half a minute? When checkpoints do too much work at once they will block clients for a significant period of time near the end--anywhere from 2 to 8 seconds isn't unusual. Every client on the system will just hang, then they all start responding again in a batch when the checkpoint is finished. With that as the problematic case, if you can keep the duration of the checkpoint processing minimal by having them happen more frequently, then that's the better approach. You can't push that interval too small though or your system will be continuously checkpointing. In cases where checkpoints hurt no matter how often you do them, there it makes sense to have them as infrequently as possible so at least you minimize the number of times that the disruption happens. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD