Skip site navigation (1) Skip section navigation (2)

Re: Slow updates, poor IO

From: John Huttley <John(at)mib-infotech(dot)co(dot)nz>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow updates, poor IO
Date: 2008-09-29 02:01:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance

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 
> you might 
> find valuable in addition to the manual.
An of course this is now in mail archive!

> -- 
> * Greg Smith gsmith(at)gregsmith(dot)com Baltimore, MD

In response to


pgsql-performance by date

Next:From: Scott MarloweDate: 2008-09-29 02:15:05
Subject: Re: Slow updates, poor IO
Previous:From: Greg SmithDate: 2008-09-29 01:40:22
Subject: Re: Slow updates, poor IO

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group