X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 30C27DC55A for ; Sun, 27 Nov 2005 15:38:11 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 14918-07 for ; Sun, 27 Nov 2005 15:38:10 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.mi8.com (d01gw04.mi8.com [63.240.6.44]) by svr1.postgresql.org (Postfix) with ESMTP id 6A537DBFCF for ; Sun, 27 Nov 2005 15:38:08 -0400 (AST) Received: from 172.16.1.110 by mail.mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D4)); Sun, 27 Nov 2005 14:37:47 -0500 X-Server-Uuid: C8FB4D43-1108-484A-A898-3CBCC7906230 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.160]) by D01SMTP01.Mi8.com with Microsoft SMTPSVC(6.0.3790.211); Sun, 27 Nov 2005 14:31:25 -0500 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 ; Sun, 27 Nov 2005 19:31:24 +0000 User-Agent: Microsoft-Entourage/11.2.1.051004 Date: Sun, 27 Nov 2005 11:31:24 -0800 Subject: Re: Hardware/OS recommendations for large databases ( From: "Luke Lonergan" To: "Stephan Szabo" , "Postgresql Performance" , "David Lang" Message-ID: Thread-Topic: [PERFORM] Hardware/OS recommendations for large databases ( Thread-Index: AcXzafwD25Gxo/A9SmmAhK9e/JqThQAHyr5r In-Reply-To: <20051127072933.Q62040@megazone.bigpanda.com> MIME-Version: 1.0 X-OriginalArrivalTime: 27 Nov 2005 19:31:25.0030 (UTC) FILETIME=[27987860:01C5F389] X-WSS-ID: 6F94D4802UO6565240-09-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.253 required=5 tests=[AWL=0.000, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.253 X-Spam-Level: * X-Archive-Number: 200511/532 X-Sequence-Number: 15789 Stephan, On 11/27/05 7:48 AM, "Stephan Szabo" wrote: > On Sun, 27 Nov 2005, Luke Lonergan wrote: > >> Has anyone done the math.on the original post? 5TB takes how long to >> scan once? If you want to wait less than a couple of days just for a >> seq scan, you'd better be in the multi-gb per second range. > > Err, I get about 31 megabytes/second to do 5TB in 170,000 seconds. I think > perhaps you were exaggerating a bit or adding additional overhead not > obvious from the above. ;) Thanks - the calculator on my blackberry was broken ;-) > At 1 gigabyte per second, 1 terrabyte should take about 1000 seconds > (between 16 and 17 minutes). The impressive 3.2 gigabytes per second > listed before (if it actually scans consistently at that rate), puts it at > a little over 5 minutes I believe for 1, so about 26 for 5 terrabytes. > The 200 megabyte per second number puts it about 7 hours for 5 > terrabytes AFAICS. 7 hours, days, same thing ;-) On the reality of sustained scan rates like that: We're getting 2.5GB/s sustained on a 2 year old machine with 16 hosts and 96 disks. We run them in RAID0, which is only OK because MPP has built-in host to host mirroring for fault management. We just purchased a 4-way cluster with 8 drives each using the 3Ware 9550SX. Our thought was to try the simplest approach first, which is a single RAID5, which gets us 7 drives worth of capacity and performance. As I posted earlier, we get about 400MB/s seq scan rate on the RAID, but the Postgres 8.0 current scan rate limit is 64% of 400MB/s or 256MB/s per host. The 8.1 mods (thanks Qingqing and Tom!) may increase that significantly toward the 400 max - we've already merged the 8.1 codebase into MPP so we'll also feature the same enhancements. Our next approach is to run these machines in a split RAID0 configuration, or RAID0 on 4 and 4 drives. We then run an MPP "segment instance" bound to each CPU and I/O channel. At that point, we'll have all 8 drives of performance and capacity per host and we should get 333MB/s with current MPP and perhaps over 400MB/s with MPP/8.1. That would get us up to the 3.2GB/s for 8 hosts. Even better, all operators are executed on all CPUs for each query, so sorting, hashing, agg, etc etc are run on all CPUs in the cluster. - Luke