Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sH4Y6-002pBE-A5 for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Jun 2024 16:40:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sH4Y4-007wMg-Nt for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Jun 2024 16:40:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sH4Y4-007wLA-E5 for pgsql-hackers@lists.postgresql.org; Tue, 11 Jun 2024 16:40:41 +0000 Received: from mail-il1-x129.google.com ([2607:f8b0:4864:20::129]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sH4Y3-000oy7-0W for pgsql-hackers@lists.postgresql.org; Tue, 11 Jun 2024 16:40:40 +0000 Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-375858224adso17175735ab.0 for ; Tue, 11 Jun 2024 09:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718124038; x=1718728838; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ICn6tNLfD+PtfU7swH4bAugNOO/11vfdFPgLxLi+/1E=; b=FrnSWwAzNo82ev1sEiWYoxzOPKB368JB7j/+QF2pz/W79MNkkWt2jMIpLHF8lf26Dd aNDWV0cecG7cscwXMHlduIkMph9WPFPtUOcqLiAXWNGPBolefU8uW8Epwhu4R9auZssD G33uiHll9eUSncFKyAmHWNjRA2LpEJVfWXpetm+ro59zNDfWmuTiI61JJk/An5dJGALH Im0eYk5Ag0zjM5SpUMtoJXluqx7ecfDt6LydZLm0pso8S5tVzxtv3NKnAOKqT2MZnd1D CUCQqo31wt5PN7G9lyw7M6LPSDGzhtKLZI75wW7qujzfYKnIKyY+RITNAeNBn4o9hLTq ZZow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718124038; x=1718728838; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ICn6tNLfD+PtfU7swH4bAugNOO/11vfdFPgLxLi+/1E=; b=l/NrXrmUPeoVrR96STgEJwa7JkdCEtehf99MFvRXh1o6ZA+OitLlCCFmkSi1xrhUcm z/jyN1/BZLpOeCGNj46ktdzYleuijTe83Au18AxMOZnFiALGLM1NuP7l4D1YMiv/348l E21I4xwZ5KkVCKGulo5IHC9D2AmgYzO++vVCz+A1NKX+TjQbJsGpOsJAoVCpr67pmJsE 4OV71d1dOa8I0PVlpoNbH6RHOqtOejKNLqJBsM+jprR2PJbxqUeptx+E5mfEFbpvDP0N 0dmuNT8d5YaYxtVTAK66nw8IIYP2amTsuncQbuNyULj5y6GEf6jvjk4F423YUjuqqwNR 2Heg== X-Forwarded-Encrypted: i=1; AJvYcCUPjymTLKvroy0xnUK3Sq9vfu+6/l0/O6KB94lg6kbQyD0oDucle0v/nlMUZyR0T6ZdjW6ED1ea/VPR13LrZwOwGsqx0upT3kCMMej1COxGkduF X-Gm-Message-State: AOJu0Yx4bcvGUYO9RMvQLgO74zbCNqb5/pwMaABaY1S6z6tLD+la0bNE O3LtEvK1K7ZCcN64N7LBLm/5zWu9yS79CKZd+nPX9dwqWdHuXpDJenW6OQ== X-Google-Smtp-Source: AGHT+IEfPAiU61qzDgtHxvsScoAISoJx5AJEISEjyRIqyIDzi4RIlL9O11zodMJutQtvdeUKj5a1Zw== X-Received: by 2002:a05:6e02:1b09:b0:374:983b:6ff2 with SMTP id e9e14a558f8ab-37580380bbbmr158993965ab.20.1718124038090; Tue, 11 Jun 2024 09:40:38 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3759deac789sm14994635ab.48.2024.06.11.09.40.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 09:40:37 -0700 (PDT) Date: Tue, 11 Jun 2024 11:40:36 -0500 From: Nathan Bossart To: Bertrand Drouvot Cc: Robert Haas , pgsql-hackers@lists.postgresql.org Subject: Re: Track the amount of time waiting due to cost_delay Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jun 11, 2024 at 07:25:11AM +0000, Bertrand Drouvot wrote: > So I think that in v2 we could: 1) measure the actual wait time instead, 2) > count the number of times the vacuum slept. We could also 3) reports the > effective cost limit (as proposed by Nathan up-thread) (I think that 3) could > be misleading but I'll yield to majority opinion if people think it's not). I still think the effective cost limit would be useful, if for no other reason than to help reinforce that it is distributed among the autovacuum workers. We could document that this value may change over the lifetime of a worker to help avoid misleading folks. -- nathan