X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 61E619FA5D8 for ; Tue, 19 Sep 2006 01:02:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 49848-03 for ; Tue, 19 Sep 2006 01:02:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.Mi8.com (d01gw01.mi8.com [63.240.6.47]) by postgresql.org (Postfix) with ESMTP id B9F989FA4E0 for ; Tue, 19 Sep 2006 01:02:33 -0300 (ADT) Received: from 172.16.1.25 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Tue, 19 Sep 2006 00:02:24 -0400 X-Server-Uuid: 241911D6-425B-44B9-A073-E3FE0F8FC774 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.175]) by D01HOST03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 19 Sep 2006 00:01:47 -0400 Received: from 69.181.100.71 ([69.181.100.71]) by MI8NYCMAIL06.Mi8.com ( [172.16.1.219]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.106]) with Microsoft Exchange Server HTTP-DAV ; Tue, 19 Sep 2006 04:01:46 +0000 User-Agent: Microsoft-Entourage/11.2.5.060620 Date: Mon, 18 Sep 2006 21:01:45 -0700 Subject: Re: Large tables (was: RAID 0 not as fast as From: "Luke Lonergan" To: mark@mark.mielke.cc cc: "Bucky Jordan" , "Spiegelberg, Greg" , "Joshua Drake" , "Craig A. James" , pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Large tables (was: RAID 0 not as fast as expected) Thread-Index: AcbboFJhkRiUZUeTEdu+HQAWy4o9DA== In-Reply-To: <20060919034547.GA24692@mark.mielke.cc> MIME-Version: 1.0 X-OriginalArrivalTime: 19 Sep 2006 04:01:47.0338 (UTC) FILETIME=[53C61AA0:01C6DBA0] X-WSS-ID: 6911B44532S6818688-07-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/247 X-Sequence-Number: 20933 Mark, On 9/18/06 8:45 PM, "mark@mark.mielke.cc" wrote: > Does a tool exist yet to time this for a particular configuration? We're considering building this into ANALYZE on a per-table basis. The basic approach times sequential access in page rate, then random seeks as page rate and takes the ratio of same. Since PG's heap scan is single threaded, the seek rate is equivalent to a single disk (even though RAID arrays may have many spindles), the typical random seek rates are around 100-200 seeks per second from within the backend. That means that as sequential scan performance increases, such as happens when using large RAID arrays, the random_page_cost will range from 50 to 300 linearly as the size of the RAID array increases. - Luke