pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ho Fat Tsang <namiwf@gmail.com>
To: Richard Huxton <dev@archonet.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: PostgreSQL 8.0 occasionally slow down
Date: Thu, 28 Jun 2007 16:01:30 +0800
Message-ID: <97e6e20f0706280101y543b871ao4cbf85e57f07f7e9@mail.gmail.com> (raw)
In-Reply-To: <468361A9.1040308@archonet.com>
References: <97e6e20f0706272354m5e42c91em177c8b80abb2ea52@mail.gmail.com>
	<468361A9.1040308@archonet.com>

Hi Richard,

   I have tuned the checkpoint_timeout to 30 second which is ten times less
than default and the issue is still reproduced. Do you have any recommended
configuration for WAL ?

Thanks
Twinsen

2007/6/28, Richard Huxton <dev@archonet.com>:
>
> Ho Fat Tsang wrote:
> >
> >   I am new for postgresql server. And now i work on a projects which
> > requires postgreSQL 8.0 and Java. I don't know why the server
> occasionally
> > slow down a bit for every 3 minutes.
>
> > Do anyone can help me about this ? or any resolution for a sudden
> > performance degrade ( because the application i need to develop is quite
> > time-critical).
>
> It's probably checkpointing. PG will write updates to the transaction
> log (WAL) immediately and update the main data files later. Every so
> often it makes sure the data files are up-to-date and this is called
> checkpointing.
>
> You want checkpointing to happen more often, not less. That way the load
> will be less each time it happens. See the manual for details.
>
> --
>    Richard Huxton
>    Archonet Ltd
>

view thread (18+ messages)  latest in thread

Message-ID: <97e6e20f0706280101y543b871ao4cbf85e57f07f7e9@mail.gmail.com>
Permalink:  ../97e6e20f0706280101y543b871ao4cbf85e57f07f7e9@mail.gmail.com/
Also on:    postgresql.org/message-id/97e6e20f0706280101y543b871ao4cbf85e57f07f7e9@mail.gmail.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-performance@postgresql.org
  Cc: namiwf@gmail.com, dev@archonet.com
  Subject: Re: PostgreSQL 8.0 occasionally slow down
  In-Reply-To: <97e6e20f0706280101y543b871ao4cbf85e57f07f7e9@mail.gmail.com>
  References: <97e6e20f0706272354m5e42c91em177c8b80abb2ea52@mail.gmail.com> <468361A9.1040308@archonet.com> <97e6e20f0706280101y543b871ao4cbf85e57f07f7e9@mail.gmail.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