Skip site navigation (1) Skip section navigation (2)

Re: scheduling autovacuum at lean hours only.

From: Rajesh Kumar Mallah <mallah(dot)rajesh(at)gmail(dot)com>
To: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
Cc: Guillaume Cottenceau <gc(at)mnc(dot)ch>, pgsql-performance(at)postgresql(dot)org
Subject: Re: scheduling autovacuum at lean hours only.
Date: 2009-02-11 17:27:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
On Wed, Feb 11, 2009 at 10:03 PM, Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com> wrote:
> On Wed, Feb 11, 2009 at 2:57 PM, Rajesh Kumar Mallah
> <mallah(dot)rajesh(at)gmail(dot)com> wrote:
>>> vacuum_cost_delay = 150
>>> vacuum_cost_page_hit = 1
>>> vacuum_cost_page_miss = 10
>>> vacuum_cost_page_dirty = 20
>>> vacuum_cost_limit = 1000
>>> autovacuum_vacuum_cost_delay = 300
>> why is it not a good idea to give end users control over when they
>> want to run it ?
> Effectively, you have control over autovacuum via these params.
> You have to remember, that autovacuum doesn't cost much, and it makes
> planner know more about data.
> It's not there to clean up databases, as you might imagine - it is
> there to update stats, and mark pages as free.
> So make sure you tweak that config fist, because I have a funny
> feeling that you just think that vacuuming bogs down your machine, and
> _can_ be turned off without any bad consequences, which is simply not
> true.

our usage pattern is such that peak activity (indicated by load average)
during day time is 10 times during night hours. Autovacuum just puts
more pressure to the system. If less stressing version is used then
it shall take longer to complete one cycle,  which would mean  less
performance for longer time . Less performance queues up queries
and encourages people to re submit their queries which again
adds to bogging up the system.

In our case i feel the hardware is bit underscaled as compared to
load thats why i think running in lean hours is best of both worlds
no performance sacrifices and intelligent vacuuming.

-- mallah.

> --
> GJ

In response to


pgsql-performance by date

Next:From: Ben ChobotDate: 2009-02-11 17:57:43
Subject: Re: scheduling autovacuum at lean hours only.
Previous:From: Scott CareyDate: 2009-02-11 17:23:25
Subject: Re: scheduling autovacuum at lean hours only.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group