Thread

  1. Re: another autovacuum scheduling thread

    David Rowley <dgrowleyml@gmail.com> — 2025-11-11T00:58:22Z

    On Sat, 8 Nov 2025 at 08:23, Sami Imseih <samimseih@gmail.com> wrote:
    > > I'm confused at why we'd have set up our autovacuum trigger points as
    > > they are today because we think those are good times to do a
    > > vacuum/analyze, but then prioritise on something completely different.
    > > Surely if we think 20% dead tuples is worth a vacuum, we must
    > > therefore think that 40% dead tuples are even more worthwhile?!
    >
    > Sure, but thresholds alone don't indicate anything about the how quick
    > the table can be vacuumed, # of indexes, per table a/v settings, etc.
    > The average a/v time is a good proxy to determine this.
    >
    > What I am suggesting here is we think beyond thresholds for
    > prioritization, and to give a chance for more eligible tables to get
    > autovacuumed rather than workers being saturated on some
    > of the slowest-to-vacuum tables.
    
    Can you define "more eligible" here?
    
    I think I'm not really grasping this because I don't understand why
    faster-to-vacuum tables should be prioritised over slower-to-vacuum
    tables. Can you explain why you think this is important?
    
    I do understand that in your script that the OLTP tables received less
    attention than unpatched, but it wasn't obvious to me why this was an
    issue. If it's a case of autovacuum acting on a stale score after it
    obtained the list of tables and their scores, do things look different
    if we have the autovacuum worker refresh the list and scores after
    it's done with a table and autovacuum_naptime has elapsed since the
    list was last refreshed?
    
    David