Re: Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming - Mailing list pgsql-general

From Shelby Cain
Subject Re: Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming
Date
Msg-id 20040819184911.68890.qmail@web41606.mail.yahoo.com
Whole thread Raw
In response to Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming  (Shelby Cain <alyandon@yahoo.com>)
Responses Re: Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming
List pgsql-general
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> > My other concern is the length of time that vacuum
> > runs when cost based vacuuming is disabled.
>
> Are you sure you had cost-based vac disabled?  I
> tried to reproduce
> your experiment here.  I saw some degradation in
> vacuuming speed
> but not nearly as large as you're reporting (85 vs
> 73 seconds),
> and as far as I could tell it was still maxing out
> my disk.
> But the behavior you're describing is exactly what
> I'd expect if
> cost-based vac was on.
>

I'm pretty certain.  Here are my settings:

vacuum_cost_delay = 0        # 0-1000 milliseconds
vacuum_cost_page_hit = 1    # 0-10000 credits
vacuum_cost_page_miss = 10    # 0-10000 credits
vacuum_cost_page_dirty = 20    # 0-10000 credits
vacuum_cost_limit = 200        # 0-10000 credits

From looking at vacuum.c I gathered vacuum_cost_delay
must be >0 to enable the feature - correct?

Regards,

Shelby Cain





__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: select count(*) from pg_stat_activity in V8.0.0
Next
From: Oleg Bartunov
Date:
Subject: Re: Finally tsearch works ... somehow... remain a few