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 1jHuZU-00038K-0q for pgsql-general@arkaria.postgresql.org; Fri, 27 Mar 2020 19:23:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jHuZS-00068c-TA for pgsql-general@arkaria.postgresql.org; Fri, 27 Mar 2020 19:23:10 +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 1jHuZS-00068U-JY for pgsql-general@lists.postgresql.org; Fri, 27 Mar 2020 19:23:10 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jHuZQ-0006ke-Id for pgsql-general@lists.postgresql.org; Fri, 27 Mar 2020 19:23:10 +0000 Received: by mail-lj1-x242.google.com with SMTP id w1so11385536ljh.5 for ; Fri, 27 Mar 2020 12:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9UCVRzu2+gCGbaHJGILNSOz36lwiHBTDd1upGYCjQFw=; b=sz/5ive+rJZRn0mE1RDhSejQ4eMMhkyoDGEuRnzQSUeXzSXfYJxllTBu4/uvdhWuy/ ECnk+a592sb2nBm3kmtHoDKKho7rUfL0UaDCMm5ls22dUqSlpPIOtm0NQbzDCT8/h00N PiTpmbbh3sSqrrWsK+ZNUXkK8ft2glKp7o7+0b36Zqp2WKUh3zV8uW7YEZ9364jzLbNp kDOWPMXk3J4Ooo657aMjsaRpXhsX+qMeMlYYlVH3SmuGw6Mv0pz4XFCny4yS/oDbcRNO we7NE65LHKvK6xsORB0qrixEIPeDG6gpaGBguPzlGYYNDxs5noGr8SFZz7zK+L6hvmeX ++Nw== 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; bh=9UCVRzu2+gCGbaHJGILNSOz36lwiHBTDd1upGYCjQFw=; b=BxRKJmFpMUDqmzW04f2G/MobUl9YPE/T6nEcBJE+943nalebdCSQVJmpegaG5guObo UC/0qpIcUehoWiq7lNJACavy82VlA6M5QX1Vhzt2wPqqLe44MmSquIPzfz5i6B6RTVma r+T7wbKywaNfJ6eUl3Di7z2TkvJtA3cajlIodQIYCoDMROFzbdGGY5EDU8jp+WiDdi+8 JrhFrK1MJh7uUEwD0MEeoVhQKckLG4H5HG6Bkv1fiVwLBLUoaduop4TsETc2XR0IkQI/ nZWlmmoZOZAnJQmrrPOQp2lPkFnUYpUjUB38j2zkP8pG797VLNNAYhzGjeADwZzbDeuj HrQQ== X-Gm-Message-State: AGi0PuamrcW/mLmzdXki2pTPTeACqmTL4FZlddLhe+YdBWFjfELZFVUl p+PFPBxG9E0R3VpnIsucKNo= X-Google-Smtp-Source: APiQypJCv2rcNOmFdRSMXfblBAY0D0lobG7wJzoxQKTkn7upv/7iWnc0C9TpzeZJbX6gDrig+1Xx+Q== X-Received: by 2002:a2e:8410:: with SMTP id z16mr273218ljg.197.1585336987928; Fri, 27 Mar 2020 12:23:07 -0700 (PDT) Received: from nol (82-64-124-11.subs.proxad.net. [82.64.124.11]) by smtp.gmail.com with ESMTPSA id j2sm3342922lfm.44.2020.03.27.12.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Mar 2020 12:23:07 -0700 (PDT) Date: Fri, 27 Mar 2020 20:23:03 +0100 From: Julien Rouhaud To: Michael Paquier Cc: Justin King , Andres Freund , pgsql-general@lists.postgresql.org, kgrittn@gmail.com Subject: Re: PG12 autovac issues Message-ID: <20200327192303.GA20785@nol> References: <20200323194725.GC52612@nol> <20200323200051.qzyqvnips7o3ai4g@alap3.anarazel.de> <20200324052606.GE1836@paquier.xyz> <20200324054039.ulrxbzo2ycy7pu5i@alap3.anarazel.de> <20200324061238.GG1836@paquier.xyz> <20200324194259.pidupqxtqnquk4wu@alap3.anarazel.de> <20200326014108.GA2199@paquier.xyz> <20200327050622.GB2133@paquier.xyz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200327050622.GB2133@paquier.xyz> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Mar 27, 2020 at 02:12:04PM +0900, Michael Paquier wrote: > On Thu, Mar 26, 2020 at 09:46:47AM -0500, Justin King wrote: > > Nope, it was just these tables that were looping over and over while > > nothing else was getting autovac'd. I'm happy to share the full log > > if you'd like. > > Thanks, that could help. If that's very large, it could be a problem > to send that to the lists, but you could send me directly a link to > it and I'll try to extract more information for the lists. While > testing for reproducing the issue, I have noticed that basically one > set of catalog tables happened to see this "skipping redundant" log. > And I am wondering if we have a match with the set of catalog tables > looping. > > > I did have to remove it from this state, but I can undo my workaround > > and, undoubtedly, it'll end up back there. Let me know if there's > > something specific you'd like me to provide when it happens! > > For now I think it's fine. Note that Julien and I have an environment > where the issue can be reproduced easily (it takes roughly 12 hours > until the wraparound cutoffs are reached with the benchmark and > settings used), and we are checking things using a patched instance > with 2aa6e33 reverted. I think that we are accumulating enough > evidence that this change was not a good idea anyway thanks to the > information you sent, so likely we'll finish first by a revert of > 2aa6e33 from the master and REL_12_STABLE branches, before looking at > the issues with the catalogs for those anti-wraparound and > non-aggressive jobs (this looks like a relcache issue with the so-said > catalogs). FTR we reached the 200M transaxtion earlier, and I can see multiple logs of the form "automatic vacuum to prevent wraparound", so non-aggressive antiwraparound autovacuum, all on shared relations. As those vacuum weren't skipped, autovacuum didn't get stuck in a loop on those and continue its work normally. This happened ~ 4h ago, didn't ocurred again while the 200M threshold was reached again multiple time.