Re: Postgres Replaying WAL slowly - Mailing list pgsql-performance

From Soni M
Subject Re: Postgres Replaying WAL slowly
Date
Msg-id CAAMgDXnT8cQbwxcNXfFKONrRVAKoGhR-3FWYSX_5gJcFrEMPMQ@mail.gmail.com
Whole thread Raw
In response to Re: Postgres Replaying WAL slowly  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: Postgres Replaying WAL slowly
List pgsql-performance



On Tue, Jul 1, 2014 at 12:14 AM, Andres Freund <andres@2ndquadrant.com> wrote:

My guess it's a spinlock, probably xlogctl->info_lck via
RecoveryInProgress(). Unfortunately inline assembler doesn't always seem
to show up correctly in profiles...

What worked for me was to build with -fno-omit-frame-pointer - that
normally shows the callers, even if it can't generate a proper symbol
name.

Soni: Do you use Hot Standby? Are there connections active while you
have that problem? Any other processes with high cpu load?

Greetings,

Andres Freund

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

It is 
 96.62%  postgres             [.] StandbyReleaseLocks
 as Jeff said. It runs quite long time, more than 5 minutes i think

i also use hot standby. we have 4 streaming replica, some of them has active connection some has not. this issue has last more than 4 days. On one of the standby, above postgres process is the only process that consume high cpu load.

--
Regards,

Soni Maula Harriz

pgsql-performance by date:

Previous
From: Andres Freund
Date:
Subject: Re: Postgres Replaying WAL slowly
Next
From: Jeff Janes
Date:
Subject: Re: Guidelines on best indexing strategy for varying searches on 20+ columns