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.96) (envelope-from ) id 1vJLGJ-002LQm-13 for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Nov 2025 00:32:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vJLGF-00FMx2-22 for pgsql-hackers@arkaria.postgresql.org; Thu, 13 Nov 2025 00:32:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vJLGF-00FMwu-0z for pgsql-hackers@lists.postgresql.org; Thu, 13 Nov 2025 00:32:27 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vJLGD-007RDR-0n for pgsql-hackers@postgresql.org; Thu, 13 Nov 2025 00:32:27 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-640b06fa959so451973a12.3 for ; Wed, 12 Nov 2025 16:32:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762993944; x=1763598744; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XHaLOeAJaxB1OqpRvEXPeq6uN/wduM5QsaSQPO1/L24=; b=V4J65xmyKYwQLcBhFgQecgR030eO6lTYIZ8zjsEG96luJ4XeNiR9q4rg6nKLmtDwRU IVc4vwDcSku/fhKg0xai8w8ioYsQ+zBd2ZCg+LN6J45zT1VCNad/xVc/qeKwe8t2XXfe hKxNyPT6LBDb1ajCqe7KMIXch/yDU9fGz6ndOwCVWy/pb16Rpnx8rVQ67hzNQWRZLYR0 M3P/jXjZpdda6ZtdZ2Ft/m1Bd9jsgTzFmXACeQEA9OAy22L2bOw2Y+3KPubzNGdeoABc NGrZ01BkC7QTqiFpRerBDMZ4Ef6mIi+ysBI3+Ye8IJ5ICLDNbJ0AdLDZEvR3cW+alatD p8Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762993944; x=1763598744; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XHaLOeAJaxB1OqpRvEXPeq6uN/wduM5QsaSQPO1/L24=; b=j7r/ebBy2y/CGlyZdtHXyMxMLhxfNQsNKjyZqLXrVCXN0PqrW6MLl9UNxJop/GAEGJ o51P8OaQ1Uc3JH2u4yUpN/HEDY/lJTVq/s4leKNkAA/+FcupLccH+gFuCD+Vnw8+I4jY wJ1KQYTXhSCIMOvAvWpkKzdEbncuP0yk/3hvmFAVg5lvIPTvvDC7QYKAkoabDOLLXVzX gdniD22Dy11lXJRaVOCkiCCbNyzix+hGxLcAoGpDqMk3DGnW5aXOmgEW+sAS5/Eyqy9k teCh7jDWr4K3Gql08VRL3blxqe2W6evZKNj7syL99YkU71WnXe1dqT8Ev+pCLrJs7r7H 7poQ== X-Forwarded-Encrypted: i=1; AJvYcCVMyIt6bP5gwpu12mtEbE3gEcIq3KMxMro9tTbmn9DVJPEsLYhYrhAm2q1O98olEIoI5nbpH1MulprX9Yqs@postgresql.org X-Gm-Message-State: AOJu0YxYA/Oo3XeiAJfa6GFYW5QLcPf77fl9uZJfgJvmHeff0ZH3/X3m L/gUlFjm+D0xBksP7GSdEkY1OxAXSfGFQ36AYmHPS0qxBPsExiY36Mw6D2GOLivkG2h/toEAwL2 NKcqajjtYUo3ybu3+AJQksbishSX2boo= X-Gm-Gg: ASbGncuWTUnJy0q+0xfDXUgjP3/zuzi8HJLS9WfYtQ7K/gxet+Lt9XwL9akoY71Rv8r K14pdd9iEddhaEOFjBKUMuCdIVdjAlFPN3VQyxzViSsDJmtcvX+zbk/3Xti5gNF1FQIhQbSRP/X ew1bAGk4nN4CS+9HFN/kGq5GWUker1DMMTPJfGBU6MQegZQjSQbRE4trvaaRMi62E2b4D54qlkl IwOGOQjUZXN2l6Z2YyNhheR1es0YKKKKVN61gV6woQ4McRJiDqkPyYgLP4zJMNjtEw= X-Google-Smtp-Source: AGHT+IHg1wkIr1oT26cTrXCkYuv9Leuj8XBLctz94VXNnrKLDjgXZiJhm9+iVWOvEX7vWcYkfDftyABQlwRr6axmBzU= X-Received: by 2002:a05:6402:1449:b0:640:b8a0:1aad with SMTP id 4fb4d7f45d1cf-6431a39287emr4789039a12.6.1762993943921; Wed, 12 Nov 2025 16:32:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Wed, 12 Nov 2025 18:32:12 -0600 X-Gm-Features: AWmQ_blsh_m0dbfB_8EIubqgQ-rgn90iQvb8IPzSIaAFoVrjo4iEgGCyaBWwidk Message-ID: Subject: Re: another autovacuum scheduling thread To: Jeremy Schneider Cc: Nathan Bossart , Robert Treat , David Rowley , Robert Haas , pgsql-hackers@postgresql.org Content-Type: multipart/alternative; boundary="000000000000c4c89806436f0393" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c4c89806436f0393 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > > On Nov 12, 2025, at 5:10=E2=80=AFPM, Sami Imseih = wrote: > > > > =EF=BB=BF > >> > >> I do think re-prioritization is worth considering, but IMHO we should > leave > >> it out of phase 1. I think it's pretty easy to reason about one round > of > >> prioritization being okay. The order is completely arbitrary today, s= o > how > >> could ordering by vacuum-related criteria make things any worse? > > > > While it=E2=80=99s true that the current table order is arbitrary, that > arbitrariness > > naturally helps distribute vacuum work across tables of various sizes > > at a given time > > > > The proposal now is by design forcing all the top bloated table, that > > will require more I/O to vacuum to be vacuumed at the same time, > > by all workers. Users may observe this after they upgrade and wonder > > why their I/O profile changed and perhaps slowed others non-vacuum > > related processing down. They also don't have a knob to go back to > > the previous behavior. > > > > Of course, this behavior can and will happen now, but with this > > prioritization, we are forcing it. > > > > Is this a concern? > > It=E2=80=99s still possible to tune the cost delay, the number of autovac= uum > workers, etc - if someone needs to manage too much autovacuum I/O > concurrency and dialing it back down a little bit. I think that=E2=80=99s= sufficient > Yes, the need to tune a/v for I/O( lower cost limit, higher cost delay ) will likely be greater with this change. -- Sami --000000000000c4c89806436f0393 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

> On Nov 12, 2025, at 5:10=E2=80=AFPM, Sami Imseih <samimseih@gmail.com> wrote:<= br> >
> =EF=BB=BF
>>
>> I do think re-prioritization is worth considering, but IMHO we sho= uld leave
>> it out of phase 1.=C2=A0 I think it's pretty easy to reason ab= out one round of
>> prioritization being okay.=C2=A0 The order is completely arbitrary= today, so how
>> could ordering by vacuum-related criteria make things any worse? >
> While it=E2=80=99s true that the current table order is arbitrary, tha= t arbitrariness
> naturally helps distribute vacuum work across tables of various sizes<= br> > at a given time
>
> The proposal now is by design forcing all the top bloated table, that<= br> > will require more I/O to vacuum to be vacuumed at the same time,
> by all workers. Users may observe this after they upgrade and wonder > why their I/O profile changed and perhaps slowed others non-vacuum
> related processing down. They also don't have a knob to go back to=
> the previous behavior.
>
> Of course, this behavior can and will happen now, but with this
> prioritization, we are forcing it.
>
> Is this a concern?

It=E2=80=99s still possible to tune the cost delay, the number of autovacuu= m workers, etc - if someone needs to manage too much autovacuum I/O concurr= ency and dialing it back down a little bit. I think that=E2=80=99s sufficie= nt

Yes, the need to tune a/v for I= /O( lower cost limit, higher cost delay )=C2=A0will likely be=C2=A0
greater with this change.=C2=A0

--
Sami=C2=A0
--000000000000c4c89806436f0393--