X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B6D5D52805 for ; Sat, 4 Jun 2005 20:23:48 -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 70214-01 for ; Sat, 4 Jun 2005 23:23:36 +0000 (GMT) Received: from priv-edtnes51.telusplanet.net (outbound04.telus.net [199.185.220.223]) by svr1.postgresql.org (Postfix) with ESMTP id C10C1528D0 for ; Sat, 4 Jun 2005 20:23:34 -0300 (ADT) Received: from localhost ([199.185.220.240]) by priv-edtnes51.telusplanet.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20050604232337.ZGJH21662.priv-edtnes51.telusplanet.net@localhost>; Sat, 4 Jun 2005 17:23:37 -0600 Received: from 64.180.5.127 ( [64.180.5.127]) as user a3a18850@192.168.200.1 by webmail.telus.net with HTTP; Sat, 4 Jun 2005 16:23:37 -0700 Message-ID: <1117927417.42a237f92b0f7@webmail.telus.net> Date: Sat, 4 Jun 2005 16:23:37 -0700 From: Mischa Sandberg To: Bernd Jagla Cc: 'Pgsql performance' Subject: Re: Best hardware References: <002701c56909$a5491720$0300a8c0@JAGLABLAPTOP> In-Reply-To: <002701c56909$a5491720$0300a8c0@JAGLABLAPTOP> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1-cvs X-Originating-IP: 64.180.5.127 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.057 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_POST, FORGED_RCVD_HELO X-Spam-Level: * X-Archive-Number: 200506/93 X-Sequence-Number: 12731 Quoting Bernd Jagla : > ... the speed of the head of the HD is actually > limitiing. Also, I only experimented with RAID5, and heard that > RAID10 will be good for reading but not writing. Au contraire. RAID5 is worse than RAID10 for writing, because it has the extra implicit read (parity stripe) for every write. I've switched all my perftest boxes over from RAID5 to RAID10, and the smallest performance increase was x1.6 . This is in an update-intensive system; the WAL log's disk write rate was the controlling factor. > Are Quad CPUs any good? I heard that the IBM quad system is supposed to be 40% > faster than HP or Dell???. Check out the other threads for negative experiences with Xeon 2x2 and perhaps quad CPU's. Me, I'm looking forward to my first Opteron box arriving next week. > And how much RAM should go for: are 8GB enough? Oh, of course I wanted to run it under RedHat... First off, you need enough RAM to hold all your connections. Run your app, watch the RSS column of "ps". For my own simpler apps (that pump data into the db) I allow 20MB/connection. Next, if you are heavy on inserts, your tables will never fit in RAM, and you really just need enough to hold the top levels of the indexes. Look at the disk space used in your $PGDATA/base// files, and you can work out whether holding ALL your indexes in memory is feasible. If you are heavy on updates, the above holds, but ymmv depending on locality of reference, you have to run your own tests. If you have concurrent big queries, all bets are off --- ask not how much RAM you need, but how much you can afford :-)