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 9518A9DCDC1 for ; Sun, 19 Mar 2006 12:26:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45664-07 for ; Sun, 19 Mar 2006 12:26:29 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.Mi8.com (d01gw01.mi8.com [63.240.6.47]) by postgresql.org (Postfix) with ESMTP id 524739DCDC9 for ; Sun, 19 Mar 2006 12:26:22 -0400 (AST) Received: from 172.16.1.25 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Sun, 19 Mar 2006 11:26:21 -0500 X-Server-Uuid: 241911D6-425B-44B9-A073-E3FE0F8FC774 Received: from MI8NYCMAIL06.Mi8.com ([172.16.1.160]) by D01HOST03.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 19 Mar 2006 11:26:21 -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.106]) with Microsoft Exchange Server HTTP-DAV ; Sun, 19 Mar 2006 16:26:21 +0000 User-Agent: Microsoft-Entourage/11.2.3.060209 Date: Sun, 19 Mar 2006 11:26:16 -0800 Subject: Re: Best OS & Configuration for Dual Xeon w/4GB & From: "Luke Lonergan" To: "Kenji Morishige" , "Claus Guttesen" cc: pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Best OS & Configuration for Dual Xeon w/4GB & Adaptec RAID 2200S Thread-Index: AcZKIDwQk+uFjzHfRo2txPlZ02oXPABasGbc In-Reply-To: <20060318000855.GB14661@juniper.net> MIME-Version: 1.0 X-OriginalArrivalTime: 19 Mar 2006 16:26:21.0572 (UTC) FILETIME=[DBAF3C40:01C64B71] X-WSS-ID: 680359A72JC81074-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.349 required=5 tests=[AWL=0.096, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.349 X-Spam-Level: * X-Archive-Number: 200603/320 X-Sequence-Number: 17757 Kenji, On 3/17/06 4:08 PM, "Kenji Morishige" wrote: > Thanks guys, I'm studying each of your responses and am going to start to > experiement. I notice that no one asked you about your disk bandwidth - the Adaptec 2200S is a "known bad" controller - the bandwidth to/from in RAID5 is about 1/2 to 1/3 of a single disk drive, which is far too slow for a 10GB database, and IMO should disqualify a RAID adapter from being used at all. Without fixing this, I'd suggest that all of the other tuning described here will have little value, provided your working set is larger than your RAM. You should test the I/O bandwidth using these simple tests: time bash -c "dd if=/dev/zero of=bigfile bs=8k count=1000000 && sync" then: time dd if=bigfile of=/dev/null bs=8k You should get on the order of 150MB/s on four disk drives in RAID5. And before people jump in about "random I/O", etc, the sequential scan test will show whether the controller is just plain bad very quickly. If it can't do sequential fast, it won't do seeks fast either. - Luke