Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WSPlh-0003qr-Jt for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Mar 2014 11:43:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WSPlh-0004ON-3i for pgsql-bugs@arkaria.postgresql.org; Tue, 25 Mar 2014 11:43:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WSPlg-0004OG-4k for pgsql-bugs@postgresql.org; Tue, 25 Mar 2014 11:43:44 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WSPld-0003T9-FD for pgsql-bugs@postgresql.org; Tue, 25 Mar 2014 11:43:43 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 89B0F284D6; Tue, 25 Mar 2014 04:43:40 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 853514022D; Tue, 25 Mar 2014 04:43:40 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id B422FC0061; Tue, 25 Mar 2014 04:43:35 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Tue, 25 Mar 2014 04:43:34 -0700 (PDT) Message-ID: <53316BE9.9040302@vmware.com> Date: Tue, 25 Mar 2014 13:43:37 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: jkoceniak@mediamath.com CC: pgsql-bugs@postgresql.org Subject: Re: BUG #9635: Wal sender process is using 100% CPU References: <20140319171356.16843.16140@wrigleys.postgresql.org> In-Reply-To: <20140319171356.16843.16140@wrigleys.postgresql.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.3 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 03/19/2014 07:13 PM, jkoceniak@mediamath.com wrote: > The following bug has been logged on the website: > > Bug reference: 9635 > Logged by: Jamie Koceniak > Email address: jkoceniak@mediamath.com > PostgreSQL version: 9.1.9 > Operating system: x86_64-unknown-linux-gnu (Debian 4.7.2-5) 64-bit > Description: > > Periodically throughout the day, we keep seeing the wal sender process > utilize 100% of the CPU. We began noticing this after we added 2 new slave > servers, going from 2 to 4 slaves. See top results and I also included our > wal settings. Thanks! Hmm. There was a bug that caused walsender to go into a busy-loop, when the standby disconnected. But that was fixed in 9.1.4 already. Could you attach to one of the processes with gdb and see what functions are being called? Or strace, or "perf top" or something. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs