Re: Autovaccum with cost_delay does not complete on one solaris 5.10 machine

From: Tom Lane
Subject: Re: Autovaccum with cost_delay does not complete on one solaris 5.10 machine
Date: ,
Msg-id: 26178.1271371697@sss.pgh.pa.us
(view: Whole thread, Raw)
In response to: Re: Autovaccum with cost_delay does not complete on one solaris 5.10 machine  (Josh Berkus)
Responses: Re: Autovaccum with cost_delay does not complete on one solaris 5.10 machine  (Josh Berkus)
List: pgsql-performance


Josh Berkus <> writes:
>> But it shouldn't
>> be sleeping after each page with normal cost_delay parameters, should it?

> Right, that's why I find this puzzling.  If the problem was easier to
> reproduce it would be easier to analyze.

The behavior would be explained if VacuumCostLimit were getting set to
zero (or some unreasonably small value) in the autovac worker process.
I looked at the autovac code that manages that, and it seems complicated
enough that a bug wouldn't surprise me in the least.

I especially note that wi_cost_limit is explicitly initialized to zero,
rather than something sane; and that table_recheck_autovac falls back to
setting vac_cost_limit from the previous value of VacuumCostLimit
... which is NOT constant but in general is left over from the
previously processed table.  One should also keep in mind that SIGHUP
processing might reload VacuumCostLimit from GUC values.  So I think
that area needs a closer look.

Josh, are you sure that both servers are identical in terms of both
GUC-related and per-table autovacuum settings?

            regards, tom lane


pgsql-performance by date:

From: Dave Crooke
Date:
Subject: SOLVED: Re: HELP: How to tame the 8.3.x JDBC driver with a biq guery result set
From: Віталій Тимчишин
Date:
Subject: Planner not using column limit specified for one column for another column equal to first