From: | Gregory Stark <stark(at)enterprisedb(dot)com> |
---|---|
To: | "Luke Lonergan" <llonergan(at)greenplum(dot)com> |
Cc: | "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:44:05 |
Message-ID: | 87y7fekxga.fsf@oxford.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
"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.
> Increasing the number of disks in a RAID actually makes the number higher,
> not lower. Until Postgres gets AIO + the ability to post multiple
> concurrent IOs on index probes, random IO does not scale with increasing
> disk count, but sequential does, thus the increasing "random page cost" as
> the RAID gets faster.
That does sound right, though I don't think it's very common. If you have very
wide stripes you can get some amazing sequential scan speeds and it won't
really help random access at all. This is especially helpful if you're in an
environment where you don't care about the costs you're imposing on other
processes, such as a data warehouse where you have a single large batch query
running at a time.
What I don't understand is the bit about "until Postgres gets AIO + the
ability to post multiple concurrent IOs on index probes". Even with AIO your
seek times are not going to be improved by wide raid stripes. And you can't
possibly find the page at level n+1 before you've looked at the page at level
n. Do you mean to be able to probe multiple index keys simultaneously? How
does that work out?
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2007-09-10 21:59:38 | Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 |
Previous Message | Josh Berkus | 2007-09-10 21:26:40 | Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 |