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 1fqelA-0004pg-Hl for pgsql-general@arkaria.postgresql.org; Fri, 17 Aug 2018 13:25:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqel8-0001u7-Qd for pgsql-general@arkaria.postgresql.org; Fri, 17 Aug 2018 13:25:46 +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 1fqel6-0001tz-Qp for pgsql-general@lists.postgresql.org; Fri, 17 Aug 2018 13:25:46 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqel2-0006Ax-6y for pgsql-general@lists.postgresql.org; Fri, 17 Aug 2018 13:25:43 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 123DD20365; Fri, 17 Aug 2018 09:25:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 17 Aug 2018 09:25:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=hITPQMTO/gH1sxInELK0uPragG9GU CKt4I39Z+F5Tik=; b=mlb2vhpnB4gy1uZv9Y4Tjoll+Z31NO9NGy6aUGW9zHdmb keS8R7SUMcBa/BsI7F85kalmVeXOQZbpRHxkVKRxkRb+fd/if8Yct/4DR7luIld5 gb13LAJkCK0dvEqp2e2fuX8g2oHyBqEN7ocQFmoNWtxivHv6OEpIHRadtWbk/Muq 2W7qLWk1FBwoYjMV1LVU9OX1Y2PF0OYpgYlok+sft6dFd2lSAta4I3j20iGyVLzz 304enZF104BB1t95NS1C+0WhOt4WiFDiWBn46MBQ7gzK+5TJDU6gshT/LDiPeVPO E7jgJxX0qTObKL4yOrmlowXO0iBTe13lb9IAR3vpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=hITPQM TO/gH1sxInELK0uPragG9GUCKt4I39Z+F5Tik=; b=B95xxIDOsHv0tK7ftTjgJN cF3xCKo8PagNNV2t+AddSEQEyTeVWS9C5U7fG+VkZStKfD9IP2lyf/t9gqgqV8K2 BXZdOXbao+an7zFOdO/brgiXV/mD6MW6XQQJdY8WCXQK1wHq+g6eHisb5Y15o7tt ORjL9TzyixqWHgJvsO3bmxJvnxLb24AIxOcUpNQzos2FrQcRifnGLRgWQoqOBc4Q 5OWN31Z1dMnDSyLji1KINq8whIkz1lVBeqvX/UMUcuyU/ttxnmxkSS9BAshyQaPm cWBL58uXdsnoY6EN2UEmosrbepsx3eWVJL1QAhDfC4gQcWuD435etIdvx3kgHCOA == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 15D3F1028B; Fri, 17 Aug 2018 09:25:37 -0400 (EDT) Subject: Re: Difference between "autovacuum_naptime" and "autovacuum_vacuum_cost_delay"? To: Raghavendra Rao J S V , "Joshua D. Drake" Cc: pgsql-general@lists.postgresql.org References: <579a0cfd-400f-2a42-09cf-4d11031f6b3c@commandprompt.com> From: Adrian Klaver Message-ID: Date: Fri, 17 Aug 2018 06:25:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/16/2018 09:42 PM, Raghavendra Rao J S V wrote: > Thank you very much for your response. > > Could you clarify me below things,please? The docs can: https://www.postgresql.org/docs/10/static/routine-vacuuming.html#AUTOVACUUM https://www.postgresql.org/docs/10/static/runtime-config-autovacuum.html > > What is the difference between "autovacuum_naptime" and > "autovacuum_vacuum_cost_delay"? > > What is the difference between "autovacuum launcher process" and > "autovacuum worker process"? > > How to control the number of "autovacuum launcher process" and > "autovacuum worker process"? > > Does "autovacuum launcher process" sleeps? If yes,which parameter > controls it? > > Does "autovacuum worker process" sleeps? If yes,which parameter controls it? > > Regards, > Raghavendra Rao > > > On 17 August 2018 at 09:30, Joshua D. Drake > wrote: > > On 08/16/2018 06:10 PM, Raghavendra Rao J S V wrote: >> Hi All, >> >> I have gone through several documents but I am still have >> confusion related to "autovacuum_naptime" and >> "autovacuum_vacuum_cost_delay". Could you clarify me with an example. >> >> When Auto vacuum worker process will start? >> > > Autovacuum checks for relations that need to be vacuumed/analyzed > every "naptime" > >> When Auto vacuum worker process will stop? > > When it is done with the list of relations that needed work that > were found at the launch of "naptime" > >> >> Does Auto vacuum worker process will sleep like Auto vacuum >> launcher process ? > > The launcher process sleeps for naptime, then wakes up to check what > needs to be worked on > >> >> What is the difference between Auto vacuum launcher process and >> Auto vacuum worker process? > > The launcher is the process that spawns the worker processes (I think). > > JD >> >> >> >> -- >> Regards, >> Raghavendra Rao J S V >> > > -- > Command Prompt, Inc. ||http://the.postgres.company/ || @cmdpromptinc > *** A fault and talent of mine is to tell it exactly how it is. *** > PostgreSQL centered full stack support, consulting and development. > Advocate: @amplifypostgres || Learn:https://postgresconf.org > ***** Unless otherwise stated, opinions are my own. ***** > > > > > -- > Regards, > Raghavendra Rao J S V > Mobile- 8861161425 -- Adrian Klaver adrian.klaver@aklaver.com