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 0DF8011F66BA for ; Thu, 6 Apr 2006 11:01:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64914-04 for ; Thu, 6 Apr 2006 11:01:43 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.199]) by postgresql.org (Postfix) with ESMTP id 2F36E11F662D for ; Thu, 6 Apr 2006 11:01:46 -0300 (ADT) Received: by xproxy.gmail.com with SMTP id h31so118998wxd for ; Thu, 06 Apr 2006 07:01:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CLBmHnxT0o0jQi1H7NlRRVBoHnZPKey797U/mEtD7ONjJ+ut/6o5HrArRX2GmbvcSrZ/XGO+phPnz7QqPmi4QxUYpFSR0fXqigOH3rLHAN4PczUPfFjUANaOTSVGsOrrERN6dYSIFRodtxNUTs9IZ0K2+ZdfefLtypwEZN5PYFE= Received: by 10.70.116.3 with SMTP id o3mr753196wxc; Thu, 06 Apr 2006 07:01:45 -0700 (PDT) Received: by 10.70.126.4 with HTTP; Thu, 6 Apr 2006 07:01:45 -0700 (PDT) Message-ID: Date: Thu, 6 Apr 2006 09:01:45 -0500 From: "Matthew Nuzum" Reply-To: newz@bearfruit.org To: "Juan Casero (FL FLC)" Subject: Re: Sun Fire T2000 and PostgreSQL 8.1.3 Cc: pgsql-performance@postgresql.org In-Reply-To: <7583B3F1891CC0429FA4A44952AA539C66FA8B@wfm-exchprd2.wfm.pvt> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <7583B3F1891CC0429FA4A44952AA539C66FA8B@wfm-exchprd2.wfm.pvt> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200604/110 X-Sequence-Number: 18194 On 4/6/06, Juan Casero (FL FLC) wrote: > Because I plan to develop a rather large (for us anyway) data warehouse > with PostgreSQL. I am looking for the right hardware that can handle > queries on a database that might grow to over a 100 gigabytes. You need to look for a server that has fast I/O. 100 GB of data will take a long time to scan through and won't fit in RAM. > Right > now our decision support system based on postgresql 8.1.3 stores retail > sales information for about 4 four years back *but* only as weekly > summaries. I want to build the system so it can handle daily sales > transactions also. You can imagine how many more records this will > involve so I am looking for hardware that can give me the performance I > need to make this project useable. Sounds like you need to be doing a few heavy queries when you do this, not tons of small queries. That likely means you need fewer CPUs that are very fast. > In other words parsing and loading > the daily transaction logs for our stores is likely to take huge amounts > of effort. I need a machine that can complete the task in a reasonable > amount of time. See my previous comment > As people start to query the database to find sales > related reports and information I need to make sure the queries will run > reasonably fast for them. Get more than one CPU core and make sure you have a lot of drive spindles. You will definately want to be able to ensure a long running query doesn't hog your i/o system. I have a server with a single disk and when we do a long query the server load will jump from about .2 to 10 until the long query finishes. More cpus won't help this because the bottle neck is the disk. > I have already hand optimized all of my > queries on the current system. But currently I only have weekly sales > summaries. Other divisions in our company have done a similar project > using MS SQL Server on SMP hardware far outclassing the database server > I currently use and they report heavy loads on the server with less than > ideal query run times. I am sure I can do my part to optimize the > queries once I start this project but there is only so much you can do. > At some point you just need more powerful hardware. This is where I am > at right now. You say "this is where I am at right __now__" but where will you be in 9 months? Sounds like you will be i/o bound by the time you get above 10GB. > Apart from that since I will only get this one chance to > buy a new server for data processing I need to make sure that I buy > something that can grow over time as our needs change. I don't want to > buy a server only to find out later that it cannot meet our needs with > future database projects. I have to balance a limited budget, room for > future performance growth, and current system requirements. Trust me it > isn't easy. Isn't it about time we had our annual "what kind of server can I get for $8k" thread? -- Matthew Nuzum www.bearfruit.org