Re: Some thoughts about i/o priorities and throttling vacuum

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Stephen <jleelim(at)xxxxxx(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Some thoughts about i/o priorities and throttling vacuum
Date: 2003-10-16 17:41:22
Message-ID: 200310161741.h9GHfMD25644@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephen wrote:
> I think adding tunable delay per-page loop into VACUUM will help keep system
> responsive at all times. In many cases, especially for mostly read-only
> tables, plain VACUUM does not need to complete immediately (VACUUM FULL
> should complete immediately). I prefer that VACUUM takes its sweet time to
> run as long as it doesn't disrupt other queries. See my other post on
> "VACUUM degrades performance significantly. Database becomes unusable!" on
> pgsql-general mailing list.

Of course, this makes VACUUM run longer, and if you are waiting for it
to finish, it would be worse, like if you are running it at night or
something.

I think the delay has to take into account the number of active
transactions or something.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-10-16 17:47:10 Re: Still a few flaws in configure's default CFLAGS selection
Previous Message Bruce Momjian 2003-10-16 17:36:37 Re: postgres --help-config