pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Naomi Walker <nwalker@eldocomp.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Raphael Bauduin <raphael@be.easynet.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: performance "tests"
Date: Wed, 10 Apr 2002 13:02:05 -0400 (EDT)
Message-ID: <200204101702.g3AH25a24203@candle.pha.pa.us> (raw)
In-Reply-To: <4.2.2.20020410091437.00b12b60@ecint.ecinet.com>

Naomi Walker wrote:
>  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.

Actually, we don't lock shared memory like Informix does.  As I
remember, other backends can write to the WAL while we are doing the
checkpoint.  In fact, there is code in there that expects the WAL file
may grow during checkpointing.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (9+ messages)  latest in thread

Message-ID: <200204101702.g3AH25a24203@candle.pha.pa.us>
Permalink:  ../200204101702.g3AH25a24203@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200204101702.g3AH25a24203@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, nwalker@eldocomp.com, tgl@sss.pgh.pa.us, raphael@be.easynet.net
  Subject: Re: performance "tests"
  In-Reply-To: <200204101702.g3AH25a24203@candle.pha.pa.us>
  References: <4.2.2.20020410091437.00b12b60@ecint.ecinet.com> <200204101702.g3AH25a24203@candle.pha.pa.us>

* 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