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 1fqVwA-0002Zd-8I for pgsql-general@arkaria.postgresql.org; Fri, 17 Aug 2018 04:00:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fqVw7-0005P9-Vq for pgsql-general@arkaria.postgresql.org; Fri, 17 Aug 2018 04:00:31 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqVw7-0005P2-Nk for pgsql-general@lists.postgresql.org; Fri, 17 Aug 2018 04:00:31 +0000 Received: from lists.commandprompt.com ([2604:da00:2:2:5054:ff:fe07:7618]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fqVw1-0004j2-DJ for pgsql-general@lists.postgresql.org; Fri, 17 Aug 2018 04:00:30 +0000 Received: from [10.8.7.11] (spinlock.commandprompt.com [69.168.55.30]) by lists.commandprompt.com (Postfix) with ESMTPA id 7AAD6750; Thu, 16 Aug 2018 21:00:20 -0700 (PDT) Received: from cmdalert.com ([69.55.231.170] helo=[10.8.7.11]) by assp.commandprompt.com with SMTPSA(TLSv1_2 ECDHE-RSA-AES128-GCM-SHA256) (2.5.1); 16 Aug 2018 21:00:19 -0700 Subject: Re: Difference between "autovacuum_naptime" and "autovacuum_vacuum_cost_delay"? To: Raghavendra Rao J S V , pgsql-general@lists.postgresql.org References: From: "Joshua D. Drake" Organization: Command Prompt, Inc. Message-ID: <579a0cfd-400f-2a42-09cf-4d11031f6b3c@commandprompt.com> Date: Thu, 16 Aug 2018 21:00:20 -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: multipart/alternative; boundary="------------28B717F7E709003CAF22AC16" Content-Language: en-US X-Assp-Version: 2.5.1(16177) on assp.commandprompt.com X-Assp-ID: assp.commandprompt.com m1-78420-06053 X-Assp-Session: B4A5C78 (mail 1) X-Assp-Original-Subject: Re: Difference between "autovacuum_naptime" and"autovacuum_vacuum_cost_delay"? X-Assp-Client-SSL: yes List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------28B717F7E709003CAF22AC16 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. ***** --------------28B717F7E709003CAF22AC16 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
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.   *****
--------------28B717F7E709003CAF22AC16--