Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Gregory Stark" <stark(at)enterprisedb(dot)com>
Cc: "Luke Lonergan" <llonergan(at)greenplum(dot)com>, "Carlo Stonebanks" <stonec(dot)register(at)sympatico(dot)ca>, pgsql-performance(at)postgresql(dot)org
Subject: Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1
Date: 2007-09-10 21:59:38
Message-ID: dcc563d10709101459o11451c33y8cab7dcf1e00a93f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 9/10/07, Gregory Stark <stark(at)enterprisedb(dot)com> wrote:
>
> "Luke Lonergan" <llonergan(at)greenplum(dot)com> writes:
>
> > Should be a lot higher, something like 10-15 is approximating accurate.
>
> Most people's experience is that due to Postgres underestimating the benefits
> of caching lowering the random_page_cost is helpful.

Quite often the real problem is that they have effective_cache_size
too small, and they use random_page_cost to get the planner to switch
to index scans on small tables. With a large effective_cache_size and
small to moderate table (i.e. it fits in memory pretty handily) the
planner seems much better in the last few major releases about picking
an index over a sequential scan.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff Davis 2007-09-10 22:03:31 Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1
Previous Message Gregory Stark 2007-09-10 21:44:05 Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1