Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaSCK-0002XM-6i for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Nov 2019 22:23:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iaSCI-0006GH-QS for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Nov 2019 22:23:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iaSCI-0006Ez-74 for pgsql-hackers@lists.postgresql.org; Thu, 28 Nov 2019 22:23:38 +0000 Received: from mail-il1-x142.google.com ([2607:f8b0:4864:20::142]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iaSCF-0004Ta-Kp for pgsql-hackers@postgresql.org; Thu, 28 Nov 2019 22:23:36 +0000 Received: by mail-il1-x142.google.com with SMTP id g12so15874775ild.2 for ; Thu, 28 Nov 2019 14:23:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OkvlgHo23qplkAsoP5wkicnQfBpoTrhYee8SJ/GFscA=; b=fqj7AH63ZTB34BSCZyvcafTOi/Gbn3COJvLSNKzdcZx+35NLaev9ipk43T8ACxYi5o oA8llLndQxrHsGkDdKAD9TrKaZLegbhG/qjuLkxACIbRoHKPLRDkD3320Ni3Bd6DMOqp GuAGZkwtR8jmaMDTwYvrGmOsNk68BzQCL8Wb4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OkvlgHo23qplkAsoP5wkicnQfBpoTrhYee8SJ/GFscA=; b=r5fBIaDqQ4L5H1Jal+Xqw54zovRIi1EACbUnZHmxGNmlwnC8V89rRnyOitHqcs3jCx GjPqm60Wn3NjAGT7s/DGVL7fVdVI6InXTVYeeLRiNBo1kyxT+X09lUGYudwCsCFBdj/K mOovDq+UoJYZJRECwDoF55yZiPMjgdmekC8zZhDVnlPO7HxiDxk+/7xGrf+rTTfmHPVP WaiembfMTNi1e000HmWLARVdz3XvOvyNFbGn1pEiT+lApdbukCO0dX6E7qxlPPpx7QOi z6wcN/xKzmFqKa4uXgX222lUxwalkcvf/hV0BXW01nEWdpHW6qstenNtf9djU/9wVwVg NxhQ== X-Gm-Message-State: APjAAAXWQR29FdYtC0bxPDsJ7UE9inkfQT54dEAHlxvp3+pzshw9gwBn 4qlg2Zeoo3tEgrWWZJiiVdNzXA== X-Google-Smtp-Source: APXvYqxXpsRy2sudycSa9okJHRWPT9BOKIiUClaf2EqnHBolwXq8Pk7scdWyIxAsEt878Xlw6oVW0g== X-Received: by 2002:a92:7949:: with SMTP id u70mr42909765ilc.42.1574979814768; Thu, 28 Nov 2019 14:23:34 -0800 (PST) Received: from gust.leadboat.com ([172.243.182.239]) by smtp.gmail.com with ESMTPSA id j79sm6034520ila.70.2019.11.28.14.23.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Nov 2019 14:23:34 -0800 (PST) Date: Thu, 28 Nov 2019 17:23:19 -0500 From: Noah Misch To: Kyotaro Horiguchi Cc: robertmhaas@gmail.com, pgsql-hackers@postgresql.org, 9erthalion6@gmail.com, andrew.dunstan@2ndquadrant.com, hlinnaka@iki.fi, michael@paquier.xyz Subject: Re: [HACKERS] WAL logging problem in 9.4.3? Message-ID: <20191128222319.GA89611@gust.leadboat.com> References: <20191125030839.GA51906@gust.leadboat.com> <20191126.213752.2132434859202124793.horikyota.ntt@gmail.com> <20191128.205620.2015649987051831334.horikyota.ntt@gmail.com> <20191128.213508.1108483203561250557.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191128.213508.1108483203561250557.horikyota.ntt@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Nov 28, 2019 at 09:35:08PM +0900, Kyotaro Horiguchi wrote: > I measured the performance with the latest patch set. > > > 1. Determine $DDL_COUNT, a number of DDL transactions that take about one > > minute when done via syncs. > > 2. Start "pgbench -rP1 --progress-timestamp -T180 -c10 -j10". > > 3. Wait 10s. > > 4. Start one DDL backend that runs $DDL_COUNT transactions. > > 5. Save DDL start timestamp, DDL end timestamp, and pgbench output. If you have the raw data requested in (5), please share them here so folks have the option to reproduce your graphs and calculations. > I did the following benchmarking. > > 1. Initialize bench database > > $ pgbench -i -s 20 > > 2. Start server with wal_level = replica (all other variables are not > changed) then run the attached ./bench.sh The bench.sh attachment was missing; please attach it. Please give the output of this command: select name, setting from pg_settings where setting <> boot_val; > 3. Restart server with wal_level = replica then run the bench.sh > twice. I assume this is wal_level=minimal, not wal_level=replica.