From: | Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Christophe Pettus <xof(at)thebuild(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Vacuuming the free space map considered harmful? |
Date: | 2025-03-19 11:12:36 |
Message-ID: | 202503191112.jikew3vqxcxe@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2025-Mar-19, Christophe Pettus wrote:
> Everything seems to point to the vacuum free space map operation,
> since it would have a lot of work to do in that particular situation,
> it happens at just the right place in the vacuum cycle, and its
> resource consumption is not throttled the way the regular vacuum
> operation is.
>
> Assuming this analysis is correct, our current proposal as a temporary
> fix is to increase the frequency of autovacuum on those tables, so
> that the free space map vacuum operation has less to do, and is less
> likely to consume the system. In the longer run, is it worth
> considering implementing a cost delay inside of the free space map
> update operations?
Assuming this analysis is correct, I agree that the FSM vacuuming should
also be throttled, as long as that can be done without blocking
concurrent operations (insertions) on the table.
Another idea to consider might be to split out the vacuuming of the FSM
from the vacuuming of the table itself; given that HOT pruning can free
significant amounts of space prior to actual vacuuming, it's possible
that there are wins to scheduling it separately. However, having a way
to track stats for it might be tricky.
--
Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
"If you want to have good ideas, you must have many ideas. Most of them
will be wrong, and what you have to learn is which ones to throw away."
(Linus Pauling)
From | Date | Subject | |
---|---|---|---|
Next Message | Ashutosh Bapat | 2025-03-19 11:43:12 | Re: Test to dump and restore objects left behind by regression |
Previous Message | Chiranmoy.Bhattacharya@fujitsu.com | 2025-03-19 11:08:52 | Re: [PATCH] SVE popcount support |