Re: Recalculating OldestXmin in a long-running vacuum

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <gsstark(at)mit(dot)edu>, ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Subject: Re: Recalculating OldestXmin in a long-running vacuum
Date: 2007-03-27 16:02:46
Message-ID: 200703271602.l2RG2kX09725@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Heikki Linnakangas wrote:
> Alvaro Herrera wrote:
> > Heikki Linnakangas wrote:
> >
> >> I ran two 24h test runs with DBT-2, one with the patch and one without.
> >> To get comparable, predictable results, I turned autovacuum off and run
> >> a manual vacuum in a loop on the stock-table alone.
> >>
> >> As expected, the steady-state of the stock table is smaller with the
> >> patch. But only by ~2%, that's slightly less than I expected.
> >>
> >> But what surprises me is that response times went up a with the patch. I
> >> don't know why.
> >
> > Maybe because of increased contention of ProcArrayLock? (I assume you
> > are using that, althought I haven't seen the patch)
>
> I am, but I doubt that's it. The response times are dominated by I/O, so
> any increase in lock contention would hardly show up. And the patch is
> only adding one GetOldestXmin call every 1000 scanned pages, which is
> nothing compared to the thousands of GetSnapshot calls the normal
> transactions are issuing per minute.
>
> The patch must have changed the I/O pattern in some subtle way.

So are you stopping work on the patch? I assume so.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Heikki Linnakangas 2007-03-27 16:04:32 Re: Recalculating OldestXmin in a long-running vacuum
Previous Message Simon Riggs 2007-03-27 15:59:17 Re: Fast CLUSTER