Re: osdl-dbt3 run results - puzzled by the execution plans

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jenny Zhang <jenny(at)osdl(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: osdl-dbt3 run results - puzzled by the execution plans
Date: 2003-09-19 03:20:37
Message-ID: 8224.1063941637@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

Jenny Zhang <jenny(at)osdl(dot)org> writes:
> ... It seems to me that small
> effective_cache_size favors the choice of nested loop joins (NLJ)
> while the big effective_cache_size is in favor of merge joins (MJ).

No, I wouldn't think that, because a nestloop plan will involve repeated
fetches of the same tuples whereas a merge join doesn't (at least not
when it sorts its inner input, as this plan does). Larger cache
improves the odds of a repeated fetch not having to do I/O. In practice
a larger cache area would also have some effects on access costs for the
sort's temp file, but I don't think the planner's cost model for sorting
takes that into account.

As Matt Clark points out nearby, the real question is whether these
planner estimates have anything to do with reality. EXPLAIN ANALYZE
results would be far more interesting than plain EXPLAIN.

> However, within the same run set consist of 6 runs, we see 2-3%
> standard deviation for the run metrics associated with the multiple
> stream part of the test (as opposed to the single stream part).

<python> Och, laddie, we useta *dream* of 2-3% variation </python>

> We would like to reduce the variation to be less than 1% so that a
> 2% change between two different kernels would be significant.

I think this is a pipe dream. Variation in where the data gets laid
down on your disk drive would alone create more than that kind of delta.
I'm frankly amazed you could get repeatability within 2-3%.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2003-09-19 06:38:51 Re: ECPG interface: 7.4beta3 compile failure; CVS tip compile failure
Previous Message Tom Lane 2003-09-19 02:59:42 Re: 7.4beta2 vs 7.3.3

Browse pgsql-performance by date

  From Date Subject
Next Message Manfred Koizar 2003-09-19 08:57:10 Re: rewrite in to exists?
Previous Message Jenny Zhang 2003-09-19 00:52:41 Re: osdl-dbt3 run results - puzzled by the execution