Re: Fix for erroneous warning on Shutdown

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Fix for erroneous warning on Shutdown
Date: 2004-06-16 02:50:03
Message-ID: 200406160250.i5G2o3N08914@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-patches

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Tom Lane wrote:
> >> ... The question stands though: why isn't it
> >> appropriate to warn of overly-frequently-issued manual checkpoints?
>
> > ... the warning is for cases when you are filling up the WAL logs too
> > quickly and checkpoints are happening too frequently. If a user is
> > doing checkpoints, it isn't anything increasing the checkpoint segments
> > is going to help.
>
> No, I think the warning is for when checkpoints are happening too
> frequently, period. An overly small checkpoint_segments setting
> is one possible cause of that, but the performance penalty from
> too many checkpoints is just as bad no matter what's causing it.
> (Remember that a checkpoint not only forces I/O in itself, but
> significantly increases subsequent WAL traffic because of needing
> to dump whole page images into WAL.)
>
> How do you feel about improving the signaling mechanism but using
> it just to vary the HINT?
>
> LOG: checkpoints are occurring too frequently (nn seconds apart)
> HINT: Consider increasing the configuration parameter "checkpoint_segments".
>
> LOG: checkpoints are occurring too frequently (nn seconds apart)
> HINT: Issuing explicit CHECKPOINTs so often is really expensive.

Sure, fine by me. My only point is that we need something to tell
people they need to increase their checkpoint_segments. If we add other
warnings, that is fine too.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Merlin Moncure 2004-06-17 16:46:00 problem compiling C++ modules in /contrib
Previous Message Tom Lane 2004-06-16 02:38:13 Re: Fix for erroneous warning on Shutdown

Browse pgsql-patches by date

  From Date Subject
Next Message Matthew T. O'Connor 2004-06-16 06:19:12 pg_autovacuum integration patch
Previous Message Tom Lane 2004-06-16 02:38:13 Re: Fix for erroneous warning on Shutdown