X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id CE14C9DCB81 for ; Tue, 31 Jan 2006 18:53:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77501-03 for ; Tue, 31 Jan 2006 18:53:16 -0400 (AST) 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 7FC899DCBB4 for ; Tue, 31 Jan 2006 18:53:12 -0400 (AST) Received: from 172.16.1.112 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Tue, 31 Jan 2006 17:53:02 -0500 X-Server-Uuid: 241911D6-425B-44B9-A073-E3FE0F8FC774 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.175]) by D01SMTP02.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 31 Jan 2006 17:52:59 -0500 Received: from 67.103.45.218 ([67.103.45.218]) 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, 31 Jan 2006 22:52:58 +0000 User-Agent: Microsoft-Entourage/11.2.1.051004 Date: Tue, 31 Jan 2006 14:52:57 -0800 Subject: Re: Huge Data sets, simple queries From: "Luke Lonergan" To: "Jim C. Nasby" cc: "Mike Biamonte" , pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Huge Data sets, simple queries Thread-Index: AcYmm5tNPfhKvWQlRXSop7/73TxCzAAHXiHG In-Reply-To: <20060131192145.GU95850@pervasive.com> MIME-Version: 1.0 X-OriginalArrivalTime: 31 Jan 2006 22:52:59.0393 (UTC) FILETIME=[153F8F10:01C626B9] X-WSS-ID: 6FC135C032K1817801-02-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.306 required=5 tests=[AWL=0.053, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.306 X-Spam-Level: * X-Archive-Number: 200601/495 X-Sequence-Number: 16973 Jim, On 1/31/06 11:21 AM, "Jim C. Nasby" wrote: > (BTW, I did some testing that seems to confirm this) > > Why couldn't you double the bandwidth? If you're doing a largish read > you should be able to do something like have drive a read the first > track, drive b the second, etc. Of course that means that the controller > or OS would have to be able to stitch things back together. It's because your alternating reads are skipping in chunks across the platter. Disks work at their max internal rate when reading sequential data, and the cache is often built to buffer a track-at-a-time, so alternating pieces that are not contiguous has the effect of halving the max internal sustained bandwidth of each drive - the total is equal to one drive's sustained internal bandwidth. This works differently for RAID0, where the chunks are allocated to each drive and laid down contiguously on each, so that when they're read back, each drive runs at it's sustained sequential throughput. The alternating technique in mirroring might improve rotational latency for random seeking - a trick that Tandem exploited, but it won't improve bandwidth. > As for software raid, I'm wondering how well that works if you can't use > a BBU to allow write caching/re-ordering... Works great with standard OS write caching. - Luke