Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B33D59F99A2 for ; Wed, 22 Aug 2007 13:23:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 34640-05 for ; Wed, 22 Aug 2007 13:23:13 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.191]) by postgresql.org (Postfix) with ESMTP id B5A3A9F9741 for ; Wed, 22 Aug 2007 13:23:12 -0300 (ADT) Received: by rv-out-0910.google.com with SMTP id c24so149770rvf for ; Wed, 22 Aug 2007 09:22:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=aVyVd/Z9P/wGygYyE3L83sizhWRFL9Lh/2RK5+08uplgtT/uexVMxve0jkuP0JyOJbQYbRsZbYnOpGW67sOpYz+VuDli4VaHuRfchEQtXceWBaPiEv4u1ydizr2QkH2ViY0dQRtpOkx6Q4YkddLTTZLbvXuNXhP4M9g+aOJm/i4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=kLZCymP1atBITNV4KMpk9WHOCPadIUZ+N2Kq9ZGveiUj/aMFRP4LS0uZf5cO+YMXul9KT3Q6GnnzDcF4G1mpcTaoz0TgkXZcBbgFppqGsJl9UEtJcW7Bo/X/JU0tO4IBJEj0tJjbEVCs5rpiCtDmW+l50wAo+xY2Y48ojodS9Bs= Received: by 10.141.28.12 with SMTP id f12mr372579rvj.1187799779305; Wed, 22 Aug 2007 09:22:59 -0700 (PDT) Received: by 10.141.84.14 with HTTP; Wed, 22 Aug 2007 09:22:59 -0700 (PDT) Message-ID: <878c83960708220922n747c8485r30584d3ef793ec2e@mail.gmail.com> Date: Wed, 22 Aug 2007 20:22:59 +0400 From: "Dmitry Potapov" To: "Joshua D. Drake" Subject: Re: io storm on checkpoints, postgresql 8.2.4, linux Cc: pgsql-performance@postgresql.org In-Reply-To: <46CC5DE7.9010201@commandprompt.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_83235_2077727.1187799779279" References: <878c83960708220833l72dbd461k827aea77ec7d6c32@mail.gmail.com> <46CC5DE7.9010201@commandprompt.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/240 X-Sequence-Number: 26370 ------=_Part_83235_2077727.1187799779279 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/8/22, Joshua D. Drake : > > We've run into an issue of IO storms on checkpoints. Once in 20min > > (which is checkpoint_interval) the database becomes unresponsive for > about > > 4-8 seconds. Query processing is suspended, server does nothing but > writing > > What are your background writer settings? > > bgwriter_delay=100ms bgwriter_lru_percent=20.0 bgwriter_lru_maxpages=100 bgwriter_all_percent=3 bgwriter_all_maxpages=600 In fact, with dirty_background_ratio > 0 bgwriter even make things a tiny bit worse. -- Regards, Dmitry ------=_Part_83235_2077727.1187799779279 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/8/22, Joshua D. Drake <jd@commandprompt.com>:
>     We've run into an issue of IO storms on checkpoints. Once in 20min
> (which is checkpoint_interval) the database becomes unresponsive for about
> 4-8 seconds. Query processing is suspended, server does nothing but writing

What are your background writer settings?


bgwriter_delay=100ms
bgwriter_lru_percent=20.0
bgwriter_lru_maxpages=100
bgwriter_all_percent=3
bgwriter_all_maxpages=600

In fact, with dirty_background_ratio > 0 bgwriter even make things a tiny bit worse.
--
Regards,
            Dmitry ------=_Part_83235_2077727.1187799779279--