Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id AF7C52E0295 for ; Mon, 3 Mar 2008 11:16:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 15204-06 for ; Mon, 3 Mar 2008 11:16:27 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by postgresql.org (Postfix) with ESMTP id 3B4382E0131 for ; Mon, 3 Mar 2008 11:16:36 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so84622waf.5 for ; Mon, 03 Mar 2008 07:16:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uAYPhoCq0QrzJk4zv7p1SMMC3q3wfSLXnExZaqe2DkA=; b=QoUP9i6Qakhm6ZXAU26PwSkUsX8Ar4RGM8HKB8O6/x9izQoiJEAAA2EiYPb83YnOshMxEuXnwzdnq8afj4E6NClMoxwgoX3d3IcBjnAXfASamHg2nEb8kqvM8OOpqyJqaxjRkqpyEnnzXwN4u3OUmThMPpuG0x24uK0fFnrVzkA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q79RaBtIHrlaQ82nVZGSCP7GnPsYOgs3ovsuvuJH5FmAPfikmdgr+MBTCJHzQgwun7TAi7MBi5HsB7B0Ycm5RvD/r1AfqMEuf8dvQljOEPKa4DMR05BxqfMQQ/P8E/O330vWsSau+4H8nZ3z4VarUwQFwPwsYl4809ZDI6ZgI3U= Received: by 10.114.168.1 with SMTP id q1mr65787wae.74.1204557394724; Mon, 03 Mar 2008 07:16:34 -0800 (PST) Received: by 10.114.133.6 with HTTP; Mon, 3 Mar 2008 07:16:34 -0800 (PST) Message-ID: Date: Mon, 3 Mar 2008 09:16:34 -0600 From: "Scott Marlowe" To: "Douglas J Hunley" Subject: Re: which is more important? freq of checkpoints or the duration of them? Cc: pgsql-performance@postgresql.org In-Reply-To: <200803030925.02931.doug@hunley.homeip.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200803030925.02931.doug@hunley.homeip.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/30 X-Sequence-Number: 28984 On Mon, Mar 3, 2008 at 8:25 AM, Douglas J Hunley wrote: > Subject about says it all. Should I be more concerned about checkpoints > happening 'frequently' or lasting 'longer'? 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? Stupid examples > probably, but you get my point I hope :) The answer is, of course, it depends. If you do a lot of batch processing where you move a lot of data in a stream into the database, then less, but larger checkpoints are probably a win. Or is this a transactional system that has to run transactions in under x seconds? Then more, smaller checkpoints might make sense. And then, you might be better off using the bgwriter. If tuned properly, it will keep ahead of your checkpoints just enough that they never have to happen. Comes with a price, some small % of performance loss peak, in exchange for a smoother behaviour.