Re: BUG #7494: WAL replay speed depends heavily on the shared_buffers size - Mailing list pgsql-bugs

From Andres Freund
Subject Re: BUG #7494: WAL replay speed depends heavily on the shared_buffers size
Date
Msg-id 201208151609.54315.andres@2ndquadrant.com
Whole thread Raw
In response to BUG #7494: WAL replay speed depends heavily on the shared_buffers size  (valgog@gmail.com)
Responses Re: BUG #7494: WAL replay speed depends heavily on the shared_buffers size
Re: BUG #7494: WAL replay speed depends heavily on the shared_buffers size
List pgsql-bugs
Hi,

On Wednesday, August 15, 2012 12:10:42 PM valgog@gmail.com wrote:
> The following bug has been logged on the website:
>=20
> Bug reference:      7494
> Logged by:          Valentine Gogichashvili
> Email address:      valgog@gmail.com
> PostgreSQL version: 9.0.7
> Operating system:   Linux version 2.6.32-5-amd64 (Debian 2.6.32-41)
> Description:
>=20
> We are experiencing strange(?) behavior on the replication slave machines.
> The master machine has a very heavy update load, where many processes are
> updating lots of data. It generates up to 30GB of WAL files per hour.
> Normally it is not a problem for the slave machines to replay this amount
> of WAL files on time and keep on with the master. But at some moments, the
> slaves are =E2=80=9Changing=E2=80=9D with 100% CPU usage on the WAL repla=
y process and 3%
> IOWait, needing up to 30 seconds to process one WAL file. If this tipping
> point is reached, then a huge WAL replication lag is building up quite
> fast, that also leads to overfill of the XLOG directory on the slave
> machines, as the WAL receiver is putting the WAL files it gets via
> streaming replication the XLOG directory (that, in many cases are quite a
> limited size separate disk partition).
Could you try to get a profile of that 100% cpu time?

Greetings,

Andres
=2D-=20
Andres Freund        http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

pgsql-bugs by date:

Previous
From: Dave Page
Date:
Subject: Re: BUG #7485: 9.2 beta3 libxml2 can't be loaded on Windows
Next
From: psql@elbrief.de
Date:
Subject: BUG #7495: chosen wrong index