Re: CPU-intensive autovacuuming - Mailing list pgsql-general

From Shelby Cain
Subject Re: CPU-intensive autovacuuming
Date
Msg-id 20050610141228.46598.qmail@web50107.mail.yahoo.com
Whole thread Raw
In response to Re: CPU-intensive autovacuuming  ("Thomas F. O'Connell" <tfo@sitening.com>)
Responses Re: CPU-intensive autovacuuming
List pgsql-general

--- "Thomas F. O'Connell" <tfo@sitening.com> wrote:

> Phil,
>
> If you complete this patch, I'm very interested to see it.
>
> I think I'm the person Matthew is talking about who inserted a sleep
>
> value. Because of the sheer number of tables involved, even small
> values of sleep caused pg_autovacuum to iterate too slowly over its
> table lists to be of use in a production environment (where I still
> find its behavior to be preferable to a complicated list of manual
> vacuums performed in cron).
>
> --
> Thomas F. O'Connell
> Co-Founder, Information Architect
> Sitening, LLC
>

Were you sleeping every time through the loop?  How about something
like:

if (j%500 == 1) usleep(100000)

Regards,

Shelby Cain



__________________________________
Discover Yahoo!
Stay in touch with email, IM, photo sharing and more. Check it out!
http://discover.yahoo.com/stayintouch.html

pgsql-general by date:

Previous
From: "Rodríguez Rodríguez, Pere"
Date:
Subject: Re: return two elements
Next
From: Edmund Dengler
Date:
Subject: Deletes and large tables