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 1h9nUb-0007lm-Qr for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2019 09:08:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h9nUa-00044s-He for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Mar 2019 09:08:04 +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 1h9nUa-00044N-1t for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2019 09:08:04 +0000 Received: from mout.gmx.net ([212.227.17.22]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h9nUW-0002el-6i for pgsql-hackers@lists.postgresql.org; Fri, 29 Mar 2019 09:08:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1553850475; bh=vIJZXwZGvxKsCeDQbLtHcptMap68K++gEHxWNEToUK8=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=CIGrHHBO2t1tYV6HdcNjuRRt9zDdrHfs0CxsEAuML1jKvQv/RQLJNAt0zBhhbTPrJ H9GM9fcjexKXLV/M0/lPL0sOc8sGy3Dpv2/l1eMEiP/BM4Gb0/Lj77EfpX9b7x5OUI 2Q0YaLV5F4S/vMlyRYB4/wZi9CXkzUg/ZGNd2ejc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from nighthawk.caipicrew.dd-dns.de ([188.174.59.9]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0ME47n-1hBAf62U3T-00HNCA; Fri, 29 Mar 2019 10:07:55 +0100 Received: from mbanck by nighthawk.caipicrew.dd-dns.de with local (Exim 4.84_2) (envelope-from ) id 1h9nSg-0005dz-Um; Fri, 29 Mar 2019 10:06:07 +0100 Date: Fri, 29 Mar 2019 10:06:06 +0100 From: Michael Banck To: David Rowley Cc: Alvaro Herrera , Darafei =?utf-8?Q?Kom=D1=8Fpa?= Praliaskouski , PostgreSQL Developers Subject: Re: Berserk Autovacuum (let's save next Mandrill) Message-ID: <20190329090606.GC12254@nighthawk.caipicrew.dd-dns.de> References: <20190327220148.GA22422@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K1:l/BaNwvG6sdDIi2MoEMUAmrzE1mlr28S0SSusIZ8tmRpymQWvtO H8EggpsmD23cJ5WR8y2yOQEBdV+r9l7FRazymENdybeXpLSevY3NOB+5bGSIiemI93sDJ2Q w7DCLx7MhOpWvAwG+I9z3YOQLRMC9wqnb63iVVJ3JETLyknLxX2Or/XI9wIEcIxoexrK/NJ gnozgscXwo9k5ObFqtqgw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:TpOggc2dooY=:eedXKvv2gR1ha9kYx4E5zM NkWaC/WM+XKGFExJo4qF/rOhw+CJWoAVxMJl2Wr7ZIHfFma5O3W+iHD7RSnzms8sbmlQRgt2K HNNSBHTgj7gH7OCbjr9SNTsME7NZHlyg5Qt1tOPIXRooP/6Tw549hvyh3ZwDc522MRbYk6T1e bToqXpEyvoVAJoybozrrCauYu5P5DaePkppZGpTNaY/RugJsXfsTYCpfQW9f3UJiq16sBsvOE Tss6Di/AP2705YR3HPY8KynT8nqO3uk5jIi3sya1AM94TqTnJqlJ606EZ/h1fOnPxWlXgCJZx vh1UXiXtgpR2sAba8wWANOqDINgDke3ePPLEBeY0Cix5BJAvlL/9hXeiHWvgZ/2ajlekUOZpc W/mO7ekv7bE2JL0mqc5cUdvWsKZNuD9xwq8ryy5/miZjdat3QDvR7Sv0ojnEOsDWX5pG3/T/I F9HA1E6aQ8H6i+H1nhtEVwyrSm9ifvkor9CPhjs9pQa6WT8sMrqKeikpMy/IQurTGOpbuYAHF KJeAHNkEGBlpk218ULxYvfmg2zhEkIbTtgoBn7HaImBnyPxGWNxtmQhj1NSSZzw1mNTSU5Tel oRE7QSq5BLbezaAfo5GjLblSfC8Ujb/iiTZBdKJ+/YD0h+Hb6IIeluRwI3hFGFRWUPIjJnQ5N F8SffWG7EZCojd7DjRYx7DQgMsv8JL+TbelusZY4TXG6WpbBlfPlR4fFXSgPkicUEArtlUxlf ssqiyQAfCtUNFVvSEc2xjswGIFaBW3G6Vcaf8nGqWv0dQHi+2r2Sv1jzeOCAY1ds+ikIrjy6C WgkI1eBcU0B7Q68VNOoVSr39QaEmmvb14uND9bChtRpVAn7lJO/Pm4EC/oYkcL4Ip2C/JBgyT gg4Oety35Es3mZp3yFRaMzXfLVZrRJDm0L4QfbkrLl3MmUTtBLFGLMttOaAczg Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On Thu, Mar 28, 2019 at 12:36:24PM +1300, David Rowley wrote: > On Thu, 28 Mar 2019 at 11:01, Alvaro Herrera = wrote: > > I wonder if Mandrill's problem is related to Mailchimp raising the > > freeze_max_age to a point where autovac did not have enough time to > > react with an emergency vacuum. If you keep raising that value becaus= e > > the vacuums cause problems for you (they block DDL), there's something > > wrong. > > I have seen some very high autovacuum_freeze_max_age settings > recently. It would be interesting to know what they had theirs set to. > I see they mentioned "Search and Url tables". I can imagine "search" > never needs any UPDATEs, so quite possibly those were append-only, in > which case the anti-wraparound vacuum would have had quite a lot of > work on its hands since possibly every page needed frozen. A table > receiving regular auto-vacuums from dead tuples would likely get some > pages frozen during those. By the way, the Routine Vacuuming chapter of the documentation says: "The sole disadvantage of increasing autovacuum_freeze_max_age (and vacuum_freeze_table_age along with it) is that the pg_xact and pg_commit_ts subdirectories of the database cluster will take more space [...] If [pg_xact and pg_commit_ts taking 0.5 and 20 GB, respectively] is trivial compared to your total database size, setting autovacuum_freeze_max_age to its maximum allowed value is recommended." Maybe this should be qualified with "unless you have trouble with your autovacuum keeping up" or so; or generally reworded? Michael