pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Huttley <John@mib-infotech.co.nz>
To: Greg Smith <gsmith@gregsmith.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow updates, poor IO
Date: Sat, 27 Sep 2008 11:09:31 +1200
Message-ID: <48DD6BAB.8040302@mib-infotech.co.nz> (raw)
In-Reply-To: <Pine.GSO.4.64.0809251750130.16879@westnet.com>
References: <48DBE587.3050406@mib-infotech.co.nz>
	<Pine.GSO.4.64.0809251750130.16879@westnet.com>

Hi Greg,

I've got 32M shared on a 1G machine and 16 checkpoint segments.
I'll run some tests against 64 segments and see what happens.

Your previous postings were extremely helpful wrt the MVCC issue.
I thank you!

-john


Greg Smith wrote:
> On Fri, 26 Sep 2008, John Huttley wrote:
>
>> running    update file set perms='0664' took about 10 mins
>
> What do you have checkpoint_segments and shared_buffers set to?  If 
> you want something that's doing lots of updates to perform well, you 
> need to let PostgreSQL have a decent size chunk of memory to buffer 
> the index writes with, so it's more likely they'll get combined into 
> larger and therefore more easily sorted blocks rather than as more 
> random ones.  The randomness of the writes is why your write rate is 
> so slow.  You also need to cut down on the frequency of checkpoints 
> which are very costly on this type of statement.
>
> Also:  which version of PostgreSQL?  8.3 includes an improvement aimed 
> at updates like this you might benefit from.
>
> -- 
> * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD
>



view thread (22+ messages)  latest in thread

Message-ID: <48DD6BAB.8040302@mib-infotech.co.nz>
Permalink:  ../48DD6BAB.8040302@mib-infotech.co.nz/
Also on:    postgresql.org/message-id/48DD6BAB.8040302@mib-infotech.co.nz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: John@mib-infotech.co.nz, gsmith@gregsmith.com
  Subject: Re: Slow updates, poor IO
  In-Reply-To: <48DD6BAB.8040302@mib-infotech.co.nz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox