pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Naomi Walker <nwalker@eldocomp.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Raphael Bauduin <raphael@be.easynet.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: performance "tests"
Date: Wed, 10 Apr 2002 09:27:41 -0700
Message-ID: <4.2.2.20020410091437.00b12b60@ecint.ecinet.com> (raw)
In-Reply-To: <5607.1018453023@sss.pgh.pa.us>
References: <20020410130046.GB8153@raphael>
	<20020410130046.GB8153@raphael>

 From my many years of Informix knowledge, we noticed that checkpoints, 
during high activity times, did take a long time, because it locked the 
shared memory segment.  We found that setting the checkpoint knobs to flush 
almost constantly, overall, was much better for performance.

Looking in postgresql.conf, it seems that some tweaking of : 
CHECKPOINT_SEGMENTS and CHECKPOINT_TIMEOUT are in order.

I also see some interesting items in the WAL_* configuration parameters, 
and would look at these as well.  Again, in Informix-speak, we were able to 
control when the buffers flushed to disk, with parameters like:
                         Start flushing buffers when they are X% full
                            and keep flushing until they are X% full

Overall, having TONS of buffers helped benchmark performance, but could 
have slowed down checkpoints had we not continually flushed to disk.

At 11:37 AM 4/10/02 -0400, Tom Lane wrote:
>Raphael Bauduin <raphael@be.easynet.net> writes:
> > At some times, it seems to hang: it doesn't insert any rows for more
> > than 10 seconds. At that time, the postmaster process takes 0%. Why is
> > that?
>
>At a guess, you're seeing the syncer daemon flushing a lot of dirty
>kernel disk buffers out to disk, and thereby monopolizing disk I/O.
>I haven't experimented too much with Linux, but on HPUX it's not
>difficult for a sync() call to bring the system to its knees for many
>seconds, if you've got application programs that have written a whole
>lot of pages since the last sync.


--
Naomi Walker
Chief Information Officer
Eldorado Computing, Inc.
602-604-3100  ext 242 




view thread (9+ messages)  latest in thread

Message-ID: <4.2.2.20020410091437.00b12b60@ecint.ecinet.com>
Permalink:  ../4.2.2.20020410091437.00b12b60@ecint.ecinet.com/
Also on:    postgresql.org/message-id/4.2.2.20020410091437.00b12b60@ecint.ecinet.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nwalker@eldocomp.com, tgl@sss.pgh.pa.us, raphael@be.easynet.net
  Subject: Re: performance "tests"
  In-Reply-To: <4.2.2.20020410091437.00b12b60@ecint.ecinet.com>
  References: <20020410130046.GB8153@raphael> <4.2.2.20020410091437.00b12b60@ecint.ecinet.com>

* 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