Re: archive wal's failure and load increase.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: cedric(at)dreamgnu(dot)com, pgsql-performance(at)postgresql(dot)org
Subject: Re: archive wal's failure and load increase.
Date: 2006-09-29 14:29:22
Message-ID: 15270.1159540162@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> We discussed putting PreallocXlogFiles() in bgwriter once before, but I
> think last time we discussed that idea it was rejected, IIRC.

We already do that: it's called a checkpoint. If the rate of WAL
generation was more than checkpoint_segments per checkpoint_timeout,
then indeed there would be a problem with foreground processes having to
manufacture WAL segment files for themselves, but it would be a bursty
thing (ie, problem goes away after a checkpoint, then comes back).

It's a good thought but I don't think the theory holds water for
explaining Cedric's problem, unless there was *also* some effect
preventing checkpoints from completing ... which would be a much more
serious problem than the archiver failing.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2006-09-29 14:39:20 Re: Performace Optimization for Dummies
Previous Message Bill Moran 2006-09-29 12:58:02 Re: Performace Optimization for Dummies