Re: Vacuum wait time problem

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Michael Monnerie" <michael(dot)monnerie(at)is(dot)it-management(dot)at>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Vacuum wait time problem
Date: 2009-02-15 18:50:01
Message-ID: 49980F79.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>>> Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> wrote:
> On Fri, Feb 13, 2009 at 7:02 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> writes:
>>> On Fri, Feb 13, 2009 at 5:02 PM, Michael Monnerie
>>> <michael(dot)monnerie(at)is(dot)it-management(dot)at> wrote:
>>>> vacuum_cost_delay = 0
>>>> That was the trick for me. It was set to 250(ms), where it took 5
>>>> hours for a vacuum to run. Now it takes 5-15 minutes.
>>
>>> Wow!!! 250 ms is HUGE in the scheme of vacuum cost delay. even
>>> 10ms is usually plenty to slow down vacuum enough to keep it out
>>> of your way and double to quadruple your vacuum times.
>>
>> I wonder whether we ought to tighten the allowed range of
>> vacuum_cost_delay. The upper limit is 1000ms at the moment;
>> but that's clearly much higher than is useful, and it seems
>> to encourage people to pick silly values ...
>
> I agree. I can't imagine using a number over 50 or so.

I don't know what other people have found useful, but when I
experimented with this in our environment, it seemed like I should
just treat vacuum_cost_delay as a boolean, where 0 meant off and 10
meant on, and tune it by adjusting vacuum_cost_limit. The granularity
of vacuum_cost_delay is course and surprising unpredictable.

-Kevin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2009-02-15 21:02:05 Re: Vacuum wait time problem
Previous Message Simon Riggs 2009-02-15 10:18:10 Re: Database corruption help