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 CF33152AC2 for ; Mon, 18 Jul 2005 17:32:28 -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 47414-10 for ; Mon, 18 Jul 2005 20:32:24 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 55859529A9 for ; Mon, 18 Jul 2005 17:32:23 -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 j6IKWNkt016795; Mon, 18 Jul 2005 16:32:23 -0400 (EDT) To: Christopher Petrilli Cc: Vivek Khera , pgsql-performance@postgresql.org Subject: Re: Impact of checkpoint_segments under continual load conditions In-reply-to: <59d991c405071812342e290f57@mail.gmail.com> References: <59d991c4050717100874c08a86@mail.gmail.com> <59d991c405071811457ccdd3f1@mail.gmail.com> <16394.1121715156@sss.pgh.pa.us> <59d991c405071812342e290f57@mail.gmail.com> Comments: In-reply-to Christopher Petrilli message dated "Mon, 18 Jul 2005 15:34:57 -0400" Date: Mon, 18 Jul 2005 16:32:23 -0400 Message-ID: <16794.1121718743@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/272 X-Sequence-Number: 13513 Christopher Petrilli writes: > On 7/18/05, Tom Lane wrote: >> I have no idea at all what's causing the sudden falloff in performance >> after about 10000 iterations. COPY per se ought to be about a >> constant-time operation, since APPEND is (or should be) constant-time. >> What indexes, foreign keys, etc do you have on this table? What else >> was going on at the time? > The table has 15 columns, 5 indexes (character, inet and timestamp). > No foreign keys. The only other thing running on the machine was the > application actually DOING the benchmarking, written in Python > (psycopg), but it was, according to top, using less than 1% of the > CPU. It was just talking through a pipe to a psql prompt to do the > COPY. Sounds pretty plain-vanilla all right. Are you in a position to try the same benchmark against CVS tip? (The nightly snapshot tarball would be plenty close enough.) I'm just wondering if the old bgwriter behavior of locking down the bufmgr while it examined the ARC/2Q data structures is causing this... regards, tom lane