Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 806A837BA4E for ; Sun, 28 Sep 2008 23:01:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 93270-05 for ; Sun, 28 Sep 2008 23:01:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gatekeeper.Mib-infotech.co.nz (60-234-154-229.bitstream.orcon.net.nz [60.234.154.229]) by postgresql.org (Postfix) with ESMTP id A3EC537BA28 for ; Sun, 28 Sep 2008 23:01:32 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by gatekeeper.Mib-infotech.co.nz (Postfix) with ESMTP id 6A3F010C6EF for ; Mon, 29 Sep 2008 15:01:28 +1300 (NZDT) X-Virus-Scanned: amavisd-new at mib-infotech.co.nz Received: from gatekeeper.Mib-infotech.co.nz ([127.0.0.1]) by localhost (gatekeeper.mib-infotech.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gkqIDzjFacVf for ; Mon, 29 Sep 2008 15:01:25 +1300 (NZDT) Received: from [192.168.95.202] (mr-creosote.mib-infotech.co.nz [192.168.95.202]) by gatekeeper.Mib-infotech.co.nz (Postfix) with ESMTPA id 52CAE10C6EE for ; Mon, 29 Sep 2008 15:01:25 +1300 (NZDT) Message-ID: <48E036F4.3040609@mib-infotech.co.nz> Date: Mon, 29 Sep 2008 15:01:24 +1300 From: John Huttley User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Slow updates, poor IO References: <48DBE587.3050406@mib-infotech.co.nz> <20080926131556.GA1005@commandprompt.com> <48DD6A4A.10209@mib-infotech.co.nz> <48DEB4D4.1020100@mib-infotech.co.nz> <6110.1222612388@sss.pgh.pa.us> <48DFFCDB.3020000@mib-infotech.co.nz> <48E003AC.5000306@mib-infotech.co.nz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.715 tagged_above=0 required=5 tests=RCVD_IN_SORBS_DUL=1.615, RDNS_DYNAMIC=0.1 X-Spam-Level: * X-Archive-Number: 200809/247 X-Sequence-Number: 31560 Greg Smith wrote: > On Mon, 29 Sep 2008, John Huttley wrote: > >> checkpoint _segments=16 is fine, going to 64 made no improvement. > > You might find that it does *after* increasing shared_buffers. If the > buffer cache is really small, the checkpoints can't have very much > work to do, so their impact on performance is smaller. Once you've > got a couple of hundred MB on there, the per-checkpoint overhead can > be considerable. > Ahh bugger, I've just trashed my test setup. I've settled on 64Mb shared memory since I've only got 1Gb or RAM and the system impact of 256M is severe. Also it uses FB-DIMMS which cost arm+leg+first born >> It would be nice if thing like >> * The effect of updates on indexed tables >> * Fill Factor >> * reindex after restore >> Were mentioned in the 'performance' section of the manual, since >> that's the part someone will go to when looking for a solution. > > If you have to reindex after restore to get good performance, that > means what you should do instead is drop the indexes on the table > during the restore and then create them once the data is there. The > REINDEX is more aimed at when the system has been running for a while > and getting fragmented. I thought that the pg_dump generated files did that, so I dismissed it initially. Maybe I did a data only restore into an existing schema.. > > Unfortunately most of the people who know enough about those topics to > really do a good treatment of them are too busy fixing slow systems to > have time to write about it. There are many articles on this general > topic trickling out at > http://wiki.postgresql.org/wiki/Performance_Optimization you might > find valuable in addition to the manual. > An of course this is now in mail archive! > -- > * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD > >