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.92) (envelope-from ) id 1jGco0-0008JT-HZ for pgsql-general@arkaria.postgresql.org; Tue, 24 Mar 2020 06:12:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jGcny-0001SA-Q0 for pgsql-general@arkaria.postgresql.org; Tue, 24 Mar 2020 06:12:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jGcnx-0001S2-U7 for pgsql-general@lists.postgresql.org; Tue, 24 Mar 2020 06:12:50 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jGcnt-0000UO-8F for pgsql-general@lists.postgresql.org; Tue, 24 Mar 2020 06:12:49 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C146B5C0212; Tue, 24 Mar 2020 02:12:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Tue, 24 Mar 2020 02:12:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=MbtTM7r2iwNyn4+WjbMXdBiYgXi z/09Rm/8MxrluT0o=; b=V0sk9jomdXMha13+bYd8uS2wQuFqZXoCIx3ysruK+X4 exnEPVsbpjvAReEfn/GY8fS6z20rI5i//QMf4H4J7D47jGW8KJFhR24mLbG0Bwtp xD8rOPzr3ystHr9BllY0MyCuMoSEqpgJPQ8CmOr604IpE+oAr58MkvMW2ho41Vs4 QPzYvbkQ+6y9pXMbs8zR0nGlBxmZ5mDA8m0tDFTY1yPaOywuqTG6bf5iWRnhZdTp XOVg/dPmyNy3+Z4kc1kLhdttigVwax+AqJ66fXJ9vWpdbNiuU8SImxMLejM7juU9 nSvSTwNLUIqEhzrvgfaSdRCHnK20d/+7i/5aLgrWqRw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=MbtTM7 r2iwNyn4+WjbMXdBiYgXiz/09Rm/8MxrluT0o=; b=YWHSK1n1sUyecKRrwuXSLM K45ZdKsqO0tuaCRgQtfay18SDNdgEr5u9pqGX0/zysnrOuyvNkaOFYUkrflMsSTW +muLldkoaIp5tx0KqGY0Txb5099FE5/sezO440KB5zaSmOt8+CeGdVu5tdOY73mp pQLFL4QRFf+TnCKOs4ixocby99JdaP306cyxBfaluZR3BZETtCBZ6PsN3/30KDDk b6vaz+2aYy8TKm/bxZPpRrYxRM3atx1bKnVK5gHzGPzsH9kedrtPe1sOt0UCPxvM BLcEh7E7jND+pPlunWBB9MXIhGCH0lPAQu0nuN5vyuq0cftibGmg7Xq3eEG7r4RQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegledgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucffohhmrghinhepphhoshhtghhrrdgvshenucfkphepuddu uddruddtvddrudektddrudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 1AA703280060; Tue, 24 Mar 2020 02:12:40 -0400 (EDT) Date: Tue, 24 Mar 2020 15:12:38 +0900 From: Michael Paquier To: Andres Freund Cc: Julien Rouhaud , Justin King , pgsql-general@lists.postgresql.org, kgrittn@gmail.com Subject: Re: PG12 autovac issues Message-ID: <20200324061238.GG1836@paquier.xyz> References: <20200319235626.wz4b57hbhuuy4w7j@alap3.anarazel.de> <20200320190317.gdxwzexdfutymqs6@alap3.anarazel.de> <20200323152247.GB52612@nol> <20200323162303.s7ay5hjdvimtkz6u@alap3.anarazel.de> <20200323194725.GC52612@nol> <20200323200051.qzyqvnips7o3ai4g@alap3.anarazel.de> <20200324052606.GE1836@paquier.xyz> <20200324054039.ulrxbzo2ycy7pu5i@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BXr400anF0jyguTS" Content-Disposition: inline In-Reply-To: <20200324054039.ulrxbzo2ycy7pu5i@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --BXr400anF0jyguTS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 23, 2020 at 10:40:39PM -0700, Andres Freund wrote: > On 2020-03-24 14:26:06 +0900, Michael Paquier wrote: >> Nothing really fancy: >> - autovacuum_vacuum_cost_delay to 2ms (default of v12, but we used it >> in v11 as well). >> - autovacuum_naptime =3D 15s >> - autovacuum_max_workers =3D 6 >> - log_autovacuum_min_duration =3D 0 >=20 > Oh, so you're also involved in this? I'm starting to get a bit confused > as to who is reporting what. Yeah, sort of. Julien has done a lot of work on that and I have an access to the data and test beds, so we are just saying the same things. > Well, there's no logging of autovacuum launchers that don't do anything > due to the "skipping redundant" logic, with normal log level. If somehow > the horizon logic of autovacuum workers gets out of whack with what > vacuumlazy.c does, then you'd not get any vacuums. But a usage level > triggered analyze could still happen on such a table, I think. What surprised me the most is that the same table happened to be analyzed again and again after the launcher began its blackout. > While looking at this issue I found a few problems, btw. That seems more > like a -hackers discussion, so I started: > https://postgr.es/m/20200323235036.6pje6usrjjx22zv3%40alap3.anarazel.de Yes, let's discuss there. > I think I might just have figured out another one... Ouch. -- Michael --BXr400anF0jyguTS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl55pNYACgkQnvQgOdby QH3Ahw/+NvGV9Gb+seFbz0b2VMiFQouhTyVCcQ/81qQEBlwru50ebUpQ+dtgFSxu 08xCsmG11HcPRVxkV5chF4uq1uvCbht/f+cyEbBSTCAqR1BwtFJeHOtddp9ZXdrj MjpJNuQZJRy3AfZFDyEgzP/vPkl3djeo3lK3nYd7BYaM+5rXGF7cX1keERTl3doq 290ieqJ88yd9b8inS1vvG96sp2dIGUc3nFiDwRSI2zC23y0+3LfmQYy8PdSer1bL ZSBKqot3m+wFd1ZSYNwik9LVawfH+mruqEJt2GTJd+Eq7LFJdNvDgPERIXPWwgl1 vf1CZzYh5+enxcP5FBeghWZTi/A6VH4qPsYlex1y5gLTFJrrLF53fYqMu/TZogeT anmoSLNZMCwnZp1VUsjbeyx5hAX8cHGXW99IAkqCYXOOnm826UWbc5CjiSWrGeQt hBVJ1NDpclYsg+bjKAnyUYgmkeG/HWQAq6dMEwaVb6+r9Yh+13rEYZK54PK6Crwa 7YeIw09L+ZB2g2qGgwNSPET2E4vRpDMPDjzwzAbQ02pT8Znvj75oegYcWTqorNnb lhkzQxyHivdKGZbMI53S3LVyixEaNAzzH47MsVINplL4Jtgfhh/5bCmo7CKN/QJ+ zanZRSpbc8BBPl6QV2yE/QjkyRHuLfGpHXeO+KY2Y+jFhGtVVOE= =YVWT -----END PGP SIGNATURE----- --BXr400anF0jyguTS--