Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d80sQ-0002ui-16 for pgsql-hackers@arkaria.postgresql.org; Tue, 09 May 2017 08:52:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d80sP-0003sB-Ar for pgsql-hackers@arkaria.postgresql.org; Tue, 09 May 2017 08:52:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d80qu-0001Dw-O4 for pgsql-hackers@postgresql.org; Tue, 09 May 2017 08:50:40 +0000 Received: from mail-wr0-x22b.google.com ([2a00:1450:400c:c0c::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d80qr-0008AJ-V4 for pgsql-hackers@postgresql.org; Tue, 09 May 2017 08:50:39 +0000 Received: by mail-wr0-x22b.google.com with SMTP id w50so63831095wrc.0 for ; Tue, 09 May 2017 01:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=QeFXbCVOPNOCGif0dwmQhBgzslfluLym4xhZzpZbcEE=; b=KYB4diUe4fQBLnd62CZzeA4VCE3sNakoUK7rtP9SYrRFDAy94gDTCB4qLvEFMhneLD prbAuJjW1i5T0BVfWstHeUmT79kuLJFndwKcOF/wT6J/BJEz0gfkbbiCa9zGtNxolPjG lehsFsusDj+ZieN1LzDjHXSnbKbS1HHi3WxsgvnM86kOCwiDehV4jL1Jh6luSAdvZpXm UkA5+9dPB3XqgW5SWDd9cunyCjb/7CyispIBe+eH81HbxAnJGPyE02aYSt5b/GBHq5cY 7V01aezaxm9nsmlD6NgED5apI1dQjbkvS1wwe76zlTYJmf1vG8XTNfzqPDIIeOy0nI4i PtFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=QeFXbCVOPNOCGif0dwmQhBgzslfluLym4xhZzpZbcEE=; b=fIAatvoWJC3qbNZC4S/VoioNy5kvVYIVumgT+8fqxn55UwOrHZ5ZRc38VWnC4JWzN2 Xi/7sFK48J1MoNdz1H+ce7MiMELPcDIxM5I1/Pnl4knu9Z9jTRS4fANUQNphSdDNQTjR KVL1rb4GyRUjc1lhjfd3f+sCnAyPTWoYf8ZWlIYZRtlCjMUBoXOH/8shcsrDiZoqSnz2 vAcm9m4Cl0Y4C+XfCbb98eNcNkH4CHJi8swevd8MwWFsF5loDI0SGazz5I71l6IapWOq 24KM6iDbvH/aLsrJf1Jaicuijl/2QAP5qEWa1mK8FVFqpED3nanipBX0fBnQiF4mfx90 0acA== X-Gm-Message-State: AN3rC/5evVpFW9W+z9LEWr/epjuGCKifI5U7Vr/HqGnMODEU0pYh89sG Hpg4VIqddw0p/TMb X-Received: by 10.223.151.203 with SMTP id t11mr38351354wrb.18.1494319836183; Tue, 09 May 2017 01:50:36 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id k22sm15337262wrc.12.2017.05.09.01.50.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 May 2017 01:50:35 -0700 (PDT) Subject: Re: snapbuild woes To: Erik Rijkers , Andres Freund References: <20170413002959.apytyi5lkknauauj@alap3.anarazel.de> <0d06dfc1-0bc5-c3ab-3555-24e2f275d7fa@2ndquadrant.com> <30242bc6-eca4-b7bb-670e-8d0458753a8c@2ndquadrant.com> <20170501005921.qcqd7w2njpv3av6s@alap3.anarazel.de> <20170501013529.sejtgo2acxbvq26q@alap3.anarazel.de> <209861fc-718f-0a7b-3a1d-36512865c209@2ndquadrant.com> <20170501080348.vb6mj5whdex3f7l7@alap3.anarazel.de> <20170501191419.coqbtx2jodu22ufz@alap3.anarazel.de> <20170505000004.gihrtl7bhxeolf3q@alap3.anarazel.de> <076a3e4c3d4fef091522d3cd7e50c7eb@xs4all.nl> Cc: PostgreSQL-development , Robert Haas , Craig Ringer From: Petr Jelinek Message-ID: <46835ad4-ce7d-ae45-bfdd-9e5f79d33a89@2ndquadrant.com> Date: Tue, 9 May 2017 10:50:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <076a3e4c3d4fef091522d3cd7e50c7eb@xs4all.nl> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 09/05/17 00:03, Erik Rijkers wrote: > On 2017-05-05 02:00, Andres Freund wrote: >> >> Could you have a look? > > Running tests with these three patches: > >> 0001-WIP-Fix-off-by-one-around-GetLastImportantRecPtr.patch+ >> 0002-WIP-Possibly-more-robust-snapbuild-approach.patch + >> fix-statistics-reporting-in-logical-replication-work.patch > (on top of 44c528810) > > I test by 15-minute pgbench runs while there is a logical replication > connection. Primary and replica are on the same machine. > > I have seen errors on 3 different machines (where error means: at least > 1 of the 4 pgbench tables is not md5-equal). It seems better, faster > machines yield less errors. > > Normally I see in pg_stat_replication (on master) one process in state > 'streaming'. > > pid | wal | replay_loc | diff | state | app | > sync_state > 16495 | 11/EDBC0000 | 11/EA3FEEE8 | 58462488 | streaming | derail2 | async > > Often there are another two processes in pg_stat_replication that remain > in state 'startup'. > > In the failing sessions the 'streaming'-state process is missing; in > failing sessions there are only the two processes that are and remain in > 'startup'. Hmm, startup is the state where slot creation is happening. I wonder if it's just taking long time to create snapshot because of the 5th issue which is not yet fixed (and the original patch will not apply on top of this change). Alternatively there is a bug in this patch. Did you see high CPU usage during the test when there were those "startup" state walsenders? -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers