From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: David Pacheco <dap@joyent.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Autovacuum degrades all other operations by keeping all buffers dirty?
Date: Fri, 31 Aug 2018 19:31:47 -0300
Message-ID: <20180831223147.f6papgxo7bb3xajd@alvherre.pgsql> (raw)
In-Reply-To: <CACukRjPNweo72NjLRjX1aCsBSm0TXH9Wmr311DDgZvCNm_xFcw@mail.gmail.com>
On 2018-Aug-31, David Pacheco wrote:
> From reading the 9.6.3 source, it looks like the autovacuum process
> itself is single-threaded, and it reads pages essentially linearly
> from the relation (possibly skipping some). When the autovacuum
> process needs to modify a page, it doesn't write it directly, but
> rather marks the buffer dirty. The page will be written later,
Unless there's some bug, there is a BufferAccessStrategy that only lets
a few dozen buffers go unwritten before the autovac worker process
itself is forced to write some.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: alvherre@2ndquadrant.com, dap@joyent.com
Subject: Re: Autovacuum degrades all other operations by keeping all buffers dirty?
In-Reply-To: <20180831223147.f6papgxo7bb3xajd@alvherre.pgsql>
References: <CACukRjPNweo72NjLRjX1aCsBSm0TXH9Wmr311DDgZvCNm_xFcw@mail.gmail.com> <20180831223147.f6papgxo7bb3xajd@alvherre.pgsql>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox