pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Sabino Mullane <greg@turnstep.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: cpu_tuple_cost
Date: Mon, 14 Mar 2005 21:23:29 -0500
Message-ID: <1676.1110853409@sss.pgh.pa.us> (raw)
In-Reply-To: <def6f62ce9d501044843c654a94832ef@biglumber.com>
References: <def6f62ce9d501044843c654a94832ef@biglumber.com>

"Greg Sabino Mullane" <greg@turnstep.com> writes:
> On that note, can I raise the idea again of dropping the default
> value for random_page_cost in postgresql.conf? I think 4 is too
> conservative in this day and age. Certainly the person who will
> be negatively impacted by a default drop of 4 to 3 will be the
> exception and not the rule.

The ones who'd be negatively impacted are the ones we haven't
been hearing from ;-).  To assume that they aren't out there
is a logical fallacy.

I still think that 4 is about right for large databases (where
"large" is in comparison to available RAM).

Also, to the extent that we think these numbers mean anything at all,
we should try to keep them matching the physical parameters we think
they represent.  I think that the "reduce random_page_cost" mantra
is not an indication that that parameter is wrong, but that the
cost models it feeds into need more work.  One thing we *know*
is wrong is the costing of nestloop inner indexscans: there needs
to be a correction for caching of index blocks across repeated
scans.  I've looked at this a few times but not come up with
anything that seemed convincing.  Another thing I've wondered
about more than once is if we shouldn't discount fetching of
higher-level btree pages on the grounds that they're probably
in RAM already, even if the indexscan isn't inside a loop.

			regards, tom lane



view thread (20+ messages)  latest in thread

Message-ID: <1676.1110853409@sss.pgh.pa.us>
Permalink:  ../1676.1110853409@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1676.1110853409@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, greg@turnstep.com
  Subject: Re: cpu_tuple_cost
  In-Reply-To: <1676.1110853409@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox