Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 443C29FA0C5 for ; Mon, 10 Sep 2007 18:44:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 60069-03 for ; Mon, 10 Sep 2007 18:44:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from oxford.xeocode.com (unknown [87.127.95.196]) by postgresql.org (Postfix) with ESMTP id 6ED7F9FA07F for ; Mon, 10 Sep 2007 18:44:19 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=oxford.xeocode.com) by oxford.xeocode.com with esmtp (Exim 4.67) (envelope-from ) id 1IUr37-0001s8-P8; Mon, 10 Sep 2007 22:44:05 +0100 To: "Luke Lonergan" Cc: "Carlo Stonebanks" , Subject: Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 In-Reply-To: (Luke Lonergan's message of "Mon\, 10 Sep 2007 13\:19\:03 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Draft-From: ("nnimap+mail01.enterprisedb.com:INBOX.performance" 2371) References: From: Gregory Stark Organization: EnterpriseDB Date: Mon, 10 Sep 2007 22:44:05 +0100 Message-ID: <87y7fekxga.fsf@oxford.xeocode.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/162 X-Sequence-Number: 26707 "Luke Lonergan" 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