X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4780652AEC for ; Sun, 17 Jul 2005 15:16:03 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40779-09 for ; Sun, 17 Jul 2005 18:15:55 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 33DC852A22 for ; Sun, 17 Jul 2005 15:15:54 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j6HIFsa7018943; Sun, 17 Jul 2005 14:15:54 -0400 (EDT) To: Christopher Petrilli Cc: pgsql-performance@postgresql.org Subject: Re: Impact of checkpoint_segments under continual load conditions In-reply-to: <59d991c4050717100874c08a86@mail.gmail.com> References: <59d991c4050717100874c08a86@mail.gmail.com> Comments: In-reply-to Christopher Petrilli message dated "Sun, 17 Jul 2005 13:08:34 -0400" Date: Sun, 17 Jul 2005 14:15:54 -0400 Message-ID: <18942.1121624154@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/239 X-Sequence-Number: 13480 Christopher Petrilli writes: > I have a unique scenerio. My DB is under "continual load", meaning > that I am constantly using COPY to insert new data into the DB. There > is no "quiet period" for the database, at least not for hours on end. > Normally, checkpoint_segments can help absorb some of that, but my > experience is that if I crank the number up, it simply delays the > impact, and when it occurs, it takes a VERY long time (minutes) to > clear. If you are using 8.0, you can probably alleviate the problem by making the bgwriter more aggressive. I don't have any immediate recommendations for specific settings though. A small checkpoint_segments setting is definitely bad news for performance under heavy load. regards, tom lane