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 78A1ED725F for ; Tue, 6 Sep 2005 04:03:32 -0300 (ADT) 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 57598-02 for ; Tue, 6 Sep 2005 07:03:29 +0000 (GMT) Received: from mx1.neopolitan.us (mx1.neopolitan.us [65.87.16.224]) by svr1.postgresql.org (Postfix) with ESMTP id 9B5C8D70FC for ; Tue, 6 Sep 2005 04:03:28 -0300 (ADT) Received: from [64.173.25.13] (HELO [192.168.2.45]) by mx1.neopolitan.us (CommuniGate Pro SMTP 4.2.10) with ESMTP id 10548555; Tue, 06 Sep 2005 00:03:29 -0700 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Tue, 06 Sep 2005 00:03:29 -0700 Subject: Re: Postgresql Hardware - Recommendations From: "J. Andrew Rogers" To: , Message-ID: In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.312 required=5 tests=[AWL=-0.438, DNS_FROM_RFC_ABUSE=0.374, DNS_FROM_RFC_POST=1.376] X-Spam-Level: * X-Archive-Number: 200509/82 X-Sequence-Number: 14390 On 9/5/05 6:50 AM, "Christian.Kastner@gutmann.at" wrote: > The questions we are asking us now are: > > 1) Intel or AMD (or alternate Platform) > Are we better of with Xeons or Opterons? Should we consider the IBM > OpenPower platform? Opteron spanks Xeon for database loads. Advantage AMD, and you generally won't have to spend much extra money for the privilege. I've never used Postgres on the IBM OpenPower platform, but I would expect that it would perform quite well, certainly better than the Xeons and probably competitive with the Opterons in many respects -- I am not sufficiently knowledgeable to make a definitive recommendation. > 2) CPUs vs cache > Would you rather have more CPUs or more cache? Eg: 4x Xeon 1MB vs 2x > Xeon 8MB I would expect that cache sizes are relatively unimportant compared to number of processors, but it would depend on the specifics of your load. Cache coherence is a significant issue for high concurrency database applications, and a few megabytes of cache here and there will likely make little difference for a 60GB database. Databases spend most of their time playing in main memory, not in cache. The biggest advantage I can see to bigger cache would be connection scaling, in which case you'll probably buy more mileage with more processors. There are a lot of architecture dependencies here. Xeons scale badly to 4 processors, Opterons scale just fine. > 3) CPUs vs Memory > Would you rather have 4x CPUs and 8GB of memory, or 2x CPUs with 16GB of > memory? Uh, for what purpose? CPU and memory are not fungible, so how you distribute them depends very much on your application. You can never have too much memory for a large database, but having extra processors on a scalable architecture is pretty nice too. What they both buy you is not really related. The amount of memory you need is determined by the size of your cache-able working set and the nature of your queries. Spend whatever money is left on the processors; if your database spends all its time waiting for disks, no quantity of processors will help you unless you are doing a lot of math on the results. YMMV, as always. Recommendations more specific than "Opterons rule, Xeons suck" depend greatly on what you plan on doing with the database. Cheers, J. Andrew Rogers