Re: Replaying 48 WAL files takes 80 minutes - Mailing list pgsql-performance

From Jeff Janes
Subject Re: Replaying 48 WAL files takes 80 minutes
Date
Msg-id CAMkU=1z_GYXM+cn_TuVLx78_FAeFVw0+H0KDjFVf+rooiWYebw@mail.gmail.com
Whole thread Raw
In response to Replaying 48 WAL files takes 80 minutes  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Responses Re: Replaying 48 WAL files takes 80 minutes
Re: Replaying 48 WAL files takes 80 minutes
List pgsql-performance
On Mon, Oct 29, 2012 at 6:05 AM, Albe Laurenz <laurenz.albe@wien.gv.at> wrote:
> I am configuring streaming replication with hot standby
> with PostgreSQL 9.1.3 on RHEL 6 (kernel 2.6.32-220.el6.x86_64).
> PostgreSQL was compiled from source.
>
> It works fine, except that starting the standby took for ever:
> it took the system more than 80 minutes to replay 48 WAL files
> and connect to the primary.
>
> Can anybody think of an explanation why it takes that long?

Could the slow log files be replaying into randomly scattered pages
which are not yet in RAM?

Do you have sar or vmstat reports?

Cheers,

Jeff


pgsql-performance by date:

Previous
From: Shaun Thomas
Date:
Subject: Re: Tons of free RAM. Can't make it go away.
Next
From: "Woolcock, Sean"
Date:
Subject: Request for help with slow query