pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ilyeop Yi <ilyeop.yi@samsung.com>
To: pgsql-general@postgresql.org
Subject: Re: About "Cost-based Vacuum Delay"
Date: Fri, 15 Jun 2018 14:32:22 +0200
Message-ID: <1529065942.2841.2.camel@cybertec.at> (raw)
In-Reply-To: <20180614232929epcas1p1c0a03f435b0504f543933d3680c048e2~4KqbEAa9H3081430814epcas1p1i@epcas1p1.samsung.com>
References: <CGME20180614232929epcas1p1c0a03f435b0504f543933d3680c048e2@epcas1p1.samsung.com>
	<20180614232929epcas1p1c0a03f435b0504f543933d3680c048e2~4KqbEAa9H3081430814epcas1p1i@epcas1p1.samsung.com>

Ilyeop Yi wrote:
> I have some questions about "cost-based vacuum delay".
> 
> Q1. How can I know/check if the autovacuum is actually paused periodically
> according to autovacuum_vacuum_cost_limit and autovacuum_vacuum_cost_delay?
> 
> I cannot find such an information from log files.

These pauses are so short and so frequent that it wouldn't make sense
to log them.

You could attach "strace" to an autovacuum worker and see it pause
from the system calls it performs.

> Q2. Is there any way to manually pause a running vacuum process?
> 
> If so, is there also any way to manually resume the paused vacuum process?

These pauses are so short (20 ms by default) that you won't catch them.

I suspect that you have some problem that makes you ask these questions.
What is it? Or are you just curious?

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




view thread (5+ messages)  latest in thread

Message-ID: <1529065942.2841.2.camel@cybertec.at>
Permalink:  ../1529065942.2841.2.camel@cybertec.at/
Also on:    postgresql.org/message-id/1529065942.2841.2.camel@cybertec.at

 · 

reply

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: laurenz.albe@cybertec.at, ilyeop.yi@samsung.com
  Subject: Re: About "Cost-based Vacuum Delay"
  In-Reply-To: <1529065942.2841.2.camel@cybertec.at>
  References: <CGME20180614232929epcas1p1c0a03f435b0504f543933d3680c048e2@epcas1p1.samsung.com> <20180614232929epcas1p1c0a03f435b0504f543933d3680c048e2~4KqbEAa9H3081430814epcas1p1i@epcas1p1.samsung.com> <1529065942.2841.2.camel@cybertec.at>

* 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