Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 234CF9FA05E for ; Mon, 10 Sep 2007 17:25:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 59811-04 for ; Mon, 10 Sep 2007 17:25:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from exprod6og51.obsmtp.com (exprod6og51.obsmtp.com [64.18.1.183]) by postgresql.org (Postfix) with SMTP id EF3549FA0FF for ; Mon, 10 Sep 2007 17:25:27 -0300 (ADT) Received: from source ([63.240.6.46]) (using TLSv1) by exprod6ob51.postini.com ([64.18.5.12]) with SMTP; Mon, 10 Sep 2007 13:25:25 PDT Received: from 172.16.1.239 by mail.mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D2)); Mon, 10 Sep 2007 16:19:59 -0400 X-Server-Uuid: 7829E76E-BB9E-4995-8473-3C0929DF7DD1 Received: from MI8NYCMAIL08.Mi8.com ([172.16.1.165]) by d01smtp06.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 10 Sep 2007 16:19:53 -0400 Received: from 63.80.24.130 ([63.80.24.130]) by MI8NYCMAIL08.Mi8.com ( [172.16.1.190]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.134]) with Microsoft Exchange Server HTTP-DAV ; Mon, 10 Sep 2007 20:19:49 +0000 User-Agent: Microsoft-Entourage/11.3.6.070618 Date: Mon, 10 Sep 2007 13:19:03 -0700 Subject: Re: random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 From: "Luke Lonergan" To: "Carlo Stonebanks" , pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] random_page_costs - are defaults of 4.0 realistic for SCSI RAID 1 Thread-Index: Acfz59RpEtHTtl/bEdywTwAbY5GgAQ== In-Reply-To: MIME-Version: 1.0 X-OriginalArrivalTime: 10 Sep 2007 20:19:53.0261 (UTC) FILETIME=[F25E4DD0:01C7F3E7] X-WSS-ID: 6AFB79674K02853984-04-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/159 X-Sequence-Number: 26704 Should be a lot higher, something like 10-15 is approximating accurate. 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. The reason to change the number is to try to discourage the planner from choosing index scans too aggressively. We (GP) have implemented something we call "Adaptive Nested Loop" to replace a nested loop + index scan with a hash join when the selectivity estimates are off in order to improve this behavior. We also run with a "random_page_cost=100" because we generally run on machines with fast sequential I/O. - Luke On 9/10/07 12:25 PM, "Carlo Stonebanks" wrote: > Can anyone answer this for me: Although I realize my client's disk subsystem > (SCSI/RAID Smart Array E200 controller using RAID 1) is less than > impressive - is the default setting of 4.0 realistic or could it be lower? > > Thanks! > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: You can help support the PostgreSQL project by donating at > > http://www.postgresql.org/about/donate