Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X1f9v-00028u-Eg for pgsql-performance@arkaria.postgresql.org; Mon, 30 Jun 2014 17:14:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X1f9u-0006O1-Lc for pgsql-performance@arkaria.postgresql.org; Mon, 30 Jun 2014 17:14:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X1f9t-0006Nu-HF for pgsql-performance@postgresql.org; Mon, 30 Jun 2014 17:14:25 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X1f9q-0005FN-0Q for pgsql-performance@postgresql.org; Mon, 30 Jun 2014 17:14:24 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 6EAA3500001; Mon, 30 Jun 2014 19:14:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p54AF441C.dip0.t-ipconnect.de [84.175.68.28]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 0E7C34F0001; Mon, 30 Jun 2014 19:14:16 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id 8058510044F; Mon, 30 Jun 2014 19:14:16 +0200 (CEST) Date: Mon, 30 Jun 2014 19:14:16 +0200 From: Andres Freund To: Heikki Linnakangas Cc: Soni M , pgsql-performance@postgresql.org Subject: Re: Postgres Replaying WAL slowly Message-ID: <20140630171416.GK21422@awork2.anarazel.de> References: <53AFCEE3.4080009@vmware.com> <53B10C4C.8090701@vmware.com> <53B18CE0.4060501@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53B18CE0.4060501@vmware.com> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 2014-06-30 19:14:24 +0300, Heikki Linnakangas wrote: > On 06/30/2014 05:46 PM, Soni M wrote: > >Here's what 'perf top' said on streaming replica : > > > >Samples: 26K of event 'cpu-clock', Event count (approx.): 19781 > > 95.97% postgres [.] 0x00000000002210f3 > > Ok, so it's stuck doing something.. Can you get build with debug symbols > installed, so that we could see the function name? 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 -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance