Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fTnu9-00081p-A6 for pgsql-general@arkaria.postgresql.org; Fri, 15 Jun 2018 12:32:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fTnu8-0003AC-36 for pgsql-general@arkaria.postgresql.org; Fri, 15 Jun 2018 12:32:36 +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.89) (envelope-from ) id 1fTnu7-0003A0-Mm for pgsql-general@lists.postgresql.org; Fri, 15 Jun 2018 12:32:35 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fTnu4-0008HV-3C for pgsql-general@postgresql.org; Fri, 15 Jun 2018 12:32:34 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 8681740FF4; Fri, 15 Jun 2018 14:32:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id BsViqWwVSeiq; Fri, 15 Jun 2018 14:32:25 +0200 (CEST) Message-ID: <1529065942.2841.2.camel@cybertec.at> Subject: Re: About "Cost-based Vacuum Delay" From: Laurenz Albe To: Ilyeop Yi , pgsql-general@postgresql.org Date: Fri, 15 Jun 2018 14:32:22 +0200 In-Reply-To: <20180614232929epcas1p1c0a03f435b0504f543933d3680c048e2~4KqbEAa9H3081430814epcas1p1i@epcas1p1.samsung.com> References: <20180614232929epcas1p1c0a03f435b0504f543933d3680c048e2~4KqbEAa9H3081430814epcas1p1i@epcas1p1.samsung.com> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ilyeop Yi wrote: > I have some questions about "cost-based vacuum delay". > > Q1. How can I know/check if the autovacuum is actually paused periodically > according to autovacuum_vacuum_cost_limit and autovacuum_vacuum_cost_delay? > > I cannot find such an information from log files. These pauses are so short and so frequent that it wouldn't make sense to log them. You could attach "strace" to an autovacuum worker and see it pause from the system calls it performs. > Q2. Is there any way to manually pause a running vacuum process? > > If so, is there also any way to manually resume the paused vacuum process? These pauses are so short (20 ms by default) that you won't catch them. I suspect that you have some problem that makes you ask these questions. What is it? Or are you just curious? Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com