Re: Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming

From: Shelby Cain <alyandon(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>, pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming
Date: 2004-08-19 18:49:11
Message-ID: 20040819184911.68890.qmail@web41606.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers-win32


--- Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-08-19 19:16:05 Re: Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming
Previous Message Oleg Bartunov 2004-08-19 18:47:13 Re: Finally tsearch works ... somehow... remain a few

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Tom Lane 2004-08-19 19:16:05 Re: Postgresql 8.0 beta 1 - strange cpu usage statistics and slow vacuuming
Previous Message Rodrigo Moreno 2004-08-19 17:53:40 RES: InitDB Failure on install