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 2FC079FB29F for ; Tue, 8 Aug 2006 19:15:22 -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 48294-09 for ; Tue, 8 Aug 2006 19:15:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from colo-dns-ext1.juniper.net (colo-dns-ext1.juniper.net [207.17.137.57]) by postgresql.org (Postfix) with ESMTP id C7EEB9FA666 for ; Tue, 8 Aug 2006 19:15:14 -0300 (ADT) Received: from merlot.juniper.net (merlot.juniper.net [172.17.27.10]) by colo-dns-ext1.juniper.net (8.11.3/8.9.3) with ESMTP id k78MFDX18417; Tue, 8 Aug 2006 15:15:13 -0700 (PDT) (envelope-from kenjim@juniper.net) Received: from kenjim-lnx.juniper.net (kenjim-lnx.juniper.net [172.17.58.60]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id k78MF7g75386; Tue, 8 Aug 2006 15:15:08 -0700 (PDT) (envelope-from kenjim@juniper.net) Received: from kenjim-lnx.juniper.net (kenjim-lnx.juniper.net [127.0.0.1]) by kenjim-lnx.juniper.net (8.13.4/8.13.4) with ESMTP id k78MF7aV007809; Tue, 8 Aug 2006 15:15:07 -0700 Received: (from kenjim@localhost) by kenjim-lnx.juniper.net (8.13.4/8.13.4/Submit) id k78MF3D2007807; Tue, 8 Aug 2006 15:15:03 -0700 Date: Tue, 8 Aug 2006 15:15:03 -0700 From: Kenji Morishige To: Scott Marlowe Cc: pgsql-performance@postgresql.org, kenjim@juniper.net Subject: Re: most bang for buck with ~ $20,000 Message-ID: <20060808221503.GD6418@juniper.net> References: <20060808204354.GN29379@juniper.net> <1155074909.20252.85.camel@state.g2switchworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1155074909.20252.85.camel@state.g2switchworks.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200608/115 X-Sequence-Number: 20300 Great info, which vendor were you looking at for these Opterons? I am goign to be purchasing 2 of these. :) I do need 24/7 reliability. On Tue, Aug 08, 2006 at 05:08:29PM -0500, Scott Marlowe wrote: > On Tue, 2006-08-08 at 15:43, Kenji Morishige wrote: > > I've asked for some help here a few months ago and got some really helpfull > > answers regarding RAID controllers and server configuration. Up until > > recently I've been running PostgreSQL on a two year old Dual Xeon 3.06Ghz > > machine with a single channel RAID controller (previously Adaptec 2200S, but > > now changed to LSI MegaRAID). The 2U unit is from a generic vendor using what > > I believe is a SuperMicro motherboard. In the last week after upgrading the > > RAID controller, the machine has had disk failure and some other issues. I > > would like to build a very reliable dedicated postgreSQL server that has the > > ultimate possible performance and reliabily for around $20,000. The data set > > size is only currently about 4GB, but is increasing by approximately 50MB > > daily. The server also requires about 500 connections and I have been > > monitoring about 100-200 queries per second at the moment. I am planning to > > run FreeBSD 6.1 if possible, but I am open to any other suggestions if it > > improves performance. > > This really depends on your usage patterns. > > OLAP or OLTP workloads? Do you need 24/7 reliability and therefore a > two machine setup? There's a lot of variety in load. > > Generally, you spend your money on disks, then memory, then CPU, in that > order. > > Look at the Areca cards, they've come highly recommended here. Look at > LOTS of drives. Given the size of your db, you can go with LOTS of > smaller drives and get good performance. If you can find a good box to > hold 12 to 16 drives and fill it with 37 gig 15k RPM drives, you'll have > lots of storage, even in RAID 1+0 config. That's aiming at > transactional throughput. > > Toss as much memory as is reasonably affordable at it. That's normally > in the 4 to 8 gig range. After that things start to get expensive fast. > > Multiple - dual core CPUs are a good idea. Opterons seem to be better > "data pumps" with large memory and >2 CPUs than Intels right now. > Better to have a 2xdual core opteron with slower processors than a > single dual core or dual single core CPU(s) with a faster clock speed. > As long as the memory access is equivalent, the more CPUs the better in > Opterons, where their interconnect speed increases as you increase the > number of CPUs. Intel Xeons are the opposite. Better with fewer faster > CPUs / cores. > > I just ran through a configurator on a site selling quad dual core > opteron servers. 8 Seagate cheetah 15k rpm drives, 8 gig ram, and the > slowest (1.8 GHz) AMD dual core CPUs (4 of them) for 8 cores, came out > to $13,500 or so. > > I'd take the other $7.5 grand and buy a backup server that can old as > much but isn't quite as beefy and set up slony to have a live hot spare > sitting ready. Oh, and maybe to buy some spare parts to sit in the desk > drawer in case things break.