Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9t2v-0000sq-VW for pgsql-hackers@arkaria.postgresql.org; Sun, 14 May 2017 12:54:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d9t2u-0000Ky-5E for pgsql-hackers@arkaria.postgresql.org; Sun, 14 May 2017 12:54:48 +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 1d9t2r-0000Jt-KK for pgsql-hackers@postgresql.org; Sun, 14 May 2017 12:54:45 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1d9t2o-00032I-9G for pgsql-hackers@postgresql.org; Sun, 14 May 2017 12:54:44 +0000 Received: by mail-wm0-x22b.google.com with SMTP id v15so19652485wmv.1 for ; Sun, 14 May 2017 05:54:41 -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=q102mASbXeB91HCM+UTPGCzgWlhMiiptZ3V51gx2G/o=; b=YRFeIzmVc4J1mkHzf/lnC9FhRALNqrOxgxZv7BsOZqPfVCH4Msyj/Nkkw89YFXvyiz 1kaUFG3YL5bHCxNDPuxFO0OSYa2iYpyVEeOB20lyAW8d9UAbmnIB2a5UV5yPqcJLOxND aaFW3r1/IHtWBqPub4Mbf+X7OTwhtuF49uHcDjWpi1p52voT0fkvUoZvDYAqXohE9mM5 5GBuXgIqrSo8s1CvqBWexQi/w3lxlc6ZL/I1CnzhlMVv01io0nsXuljE6jNhY/CT7yW3 Fwojdy8JxVEiQnouPe8IymwPu122E1A/1FZ96YMFJ38SJCkCkiHMDuf0datazLkLIZ5A Idcg== 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=q102mASbXeB91HCM+UTPGCzgWlhMiiptZ3V51gx2G/o=; b=aumvOJT7WXy8d7vNFhg311wA8jnBytFdgS2I4G5yZ7gs5v92DQVVlP0sODVVkGWHH5 9iiy2bSS2bJnK/Qh209tJkHaklKdOiUTF3roq1Ja9koLz6Du9ZKiViBN6bKSXsduXXDZ cYxBsDCuorkmRoueNg9QglAHf+GGs2wroWScPnquz17oedtcMes8wiit1UkF5ZwOw6QL 16pvFBvdl/4wCwYTX1MyL0R1TDqskFheCAcA71or9GvmHefW6uLtLXOlBBiTzlM0xjdZ LCsXDXmYXpx1BHh0bDgLPUl7qSeefiXsTBJlcHde0MWjenC/XUQkm2vzkPyM0PwUx+Lg cE0g== X-Gm-Message-State: AODbwcAwftDj2W+z4INd7uu3/XSzUjy6b/iRSD+D/7/jFbTlJa/DRDXb 1+XC6+Kny21xzyL7 X-Received: by 10.28.145.138 with SMTP id t132mr928288wmd.136.1494766480168; Sun, 14 May 2017 05:54:40 -0700 (PDT) Received: from [192.168.0.105] (150.123.broadband11.iol.cz. [90.178.123.150]) by smtp.gmail.com with ESMTPSA id l75sm10337401wmd.6.2017.05.14.05.54.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 May 2017 05:54:38 -0700 (PDT) Subject: Re: snapbuild woes To: Andres Freund References: <20170418041657.hvwss6hz73ghozp5@alap3.anarazel.de> <20170422053621.2qtvurecfatet2ei@alap3.anarazel.de> <20170428043444.GD787347@rfd.leadboat.com> <20170504054516.GA850485@rfd.leadboat.com> <20170511215155.bnigoevqoe4hejmg@alap3.anarazel.de> <20170511215426.5u2itcy5mruo65on@alap3.anarazel.de> <20170512013127.ytncnqvlluheandz@alap3.anarazel.de> <20170513202331.pkbmv2n5yqfjhety@alap3.anarazel.de> Cc: Noah Misch , pgsql-hackers@postgresql.org, Peter Eisentraut , Erik Rijkers , David Steele , Robert Haas , Craig Ringer , pgsql-hackers-owner@postgresql.org From: Petr Jelinek Message-ID: <76d171d2-7765-680a-7868-68f6f4a43623@2ndquadrant.com> Date: Sun, 14 May 2017 14:54:37 +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: <20170513202331.pkbmv2n5yqfjhety@alap3.anarazel.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 13/05/17 22:23, Andres Freund wrote: > On 2017-05-12 10:57:55 +0200, Petr Jelinek wrote: >> Hmm, well it helps but actually now that we don't track individual >> running transactions anymore it got much less effective (my version of >> 0005 does as well). >> >> The example workload I test with is: >> session 1: open transaction, do a write, keep it open >> session 2: pgbench -M simple -N -c 10 -P 1 -T 5 >> session 3: run CREATE_REPLICATION_SLOT LOGICAL in walsender >> session 2: pgbench -M simple -N -c 10 -P 1 -T 20 >> session 1: commit >> >> And wait for session 3 to finish slot creation, takes about 20 mins on >> my laptop without patches, minute and half with your patches for 0004 >> and 0005 (or with your 0004 and my 0005) and about 2s with my original >> 0004 and 0005. > > Is that with assertions enabled or not? With assertions all the time > post patches seems to be spent in some Asserts in reorderbuffer.c, > without it takes less than a second for me here. > Right you are, I always forget to switch that off before benchmarks. > I'm appylying these now. Cool. Just for posterity, this also fixes the issue number 3 as the switch to consistent state is done purely based on xl_running_xacts and not decoded commits/aborts. So all done here, thanks! -- 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