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 57267DBAC8 for ; Fri, 18 Nov 2005 12:31:14 -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 55368-05 for ; Fri, 18 Nov 2005 16:31:12 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.Mi8.com (d01gw01.mi8.com [63.240.6.47]) by svr1.postgresql.org (Postfix) with ESMTP id 2E7ABDBAAE for ; Fri, 18 Nov 2005 12:31:10 -0400 (AST) Received: from 172.16.1.112 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Fri, 18 Nov 2005 11:31:01 -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.211); Fri, 18 Nov 2005 11:31:01 -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.104]) with Microsoft Exchange Server HTTP-DAV ; Fri, 18 Nov 2005 11:31:01 -0500 User-Agent: Microsoft-Entourage/11.2.1.051004 Date: Fri, 18 Nov 2005 08:31:00 -0800 Subject: Re: Hardware/OS recommendations for large databases ( From: "Luke Lonergan" To: "Bill McGonigle" , "Dave Cramer" cc: pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Hardware/OS recommendations for large databases ( Thread-Index: AcXsXA9ODu7eWyQrRSGPSXAUktgd9wAAWZZO In-Reply-To: MIME-Version: 1.0 X-OriginalArrivalTime: 18 Nov 2005 16:31:01.0848 (UTC) FILETIME=[76C23580:01C5EC5D] X-WSS-ID: 6F60DE4F21G13535249-01-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/363 X-Sequence-Number: 15620 Bill, On 11/18/05 7:55 AM, "Bill McGonigle" wrote: > > There is some truth to it. For an app I'm currently running (full-text > search using tsearch2 on ~100MB of data) on: Do you mean 100GB? Sounds like you are more like a decision support /warehousing application. > Dev System: > Asus bare-bones bookshelf case/mobo > 3GHz P4 w/ HT > 800MHz memory Bus > Fedora Core 3 (nightly update) > 1GB RAM > 1 SATA Seagate disk (7200RPM, 8MB Cache) > $800 > worst-case query: 7.2 seconds About the same machine I posted results for, except I had two faster disks. > now, the machine I'm deploying to: > > Dell SomthingOrOther > (4) 2.4GHz Xeons > 533MHz memory bus > RedHat Enterprise 3.6 > 1GB RAM > (5) 150000 RPM Ultra SCSI 320 on an Adaptec RAID 5 controller >> $10000 > same worst-case query: 9.6 seconds Your problem here is the HW RAID controller - if you dump it and use the onboard SCSI channels and Linux RAID you will see a jump from 40MB/s to about 220MB/s in read performance and from 20MB/s to 110MB/s write performance. It will use less CPU too. > Now it's not apples-to-apples. There's a kernel 2.4 vs. 2.6 difference > and the memory bus is much faster and I'm not sure what kind of context > switching hit you get with the Xeon MP memory controller. On a > previous postgresql app I did I ran nearly identically spec'ed machines > except for the memory bus and saw about a 30% boost in performance just > with the 800MHz bus. I imagine the Opteron bus does even better. Memory bandwidth is so high on both that it's not a factor. Context switching / memory bus contention isn't either. > So the small machine is probably slower on disk but makes up for it in > single-threaded access to CPU and memory speed. But if this app were to > be scaled it would make much more sense to cluster several $800 > machines than it would to buy 'big-iron'. Yes it does - by a lot too. Also, having a multiprocessing executor gets all of each machine by having multiple CPUs scan simultaneously. - Luke