Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EB4F0475E82 for ; Mon, 25 Nov 2002 09:03:11 -0500 (EST) Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205]) by postgresql.org (Postfix) with ESMTP id 720D0475AE4 for ; Mon, 25 Nov 2002 08:57:07 -0500 (EST) Received: from trooper.velocet.ca (trooper.velocet.net [216.138.242.2]) by sabre.velocet.net (Postfix) with ESMTP id 6263413811B; Mon, 25 Nov 2002 08:57:10 -0500 (EST) Received: by trooper.velocet.ca (Postfix, from userid 66) id 02EF574AC3; Mon, 25 Nov 2002 08:57:10 -0500 (EST) Received: by canoe.velocet.net (Postfix, from userid 101) id 2819056763F; Mon, 25 Nov 2002 07:03:13 -0500 (EST) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15842.4480.962910.969960@canoe.velocet.net> Date: Mon, 25 Nov 2002 07:03:12 -0500 To: "Nikolaus Dilger" Cc: chris@ruprecht.org, mallah@trade-india.com, pgsql-admin@postgresql.org Subject: Re: H/W RAID 5 on slower disks versus no raid on faster HDDs In-Reply-To: <20021124194154.18989.h017.c001.wm@mail.dilger.cc.criticalpath.net> References: <20021124194154.18989.h017.c001.wm@mail.dilger.cc.criticalpath.net> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/247 X-Sequence-Number: 6435 >>>>> "Nikolaus" == Nikolaus Dilger writes: Nikolaus> SCSI320 in theory is twice as fast as SCSI160. But the Nikolaus> bottleneck will be the throughput of the individual disks. Nikolaus> 15,000 rpm of course will be faster than 10,000 rpm. More Nikolaus> interesting then the rpm numbers itself are seek time and Nikolaus> transfer rate. More to the point, with current disks, SCSI160 needs 3 to 4 disks to be saturated. Don't buy 320 unless you have more than 4 disks. Nikolaus> In a production environment I would always favor some kind Nikolaus> of error protection. Either RAID 5 or RAID 1 (mirroring). A Nikolaus> hardware RAID controller is faster than software RAID. I'm on a bit of a mission to stamp out this misconception. In my testing, all but the most expensive hardware raid controllers are actually slower than FreeBSD's software RAID. I've done my tests with a variety of controllers with the same data load and the same disks. As with any test, I have a theory: that the 2Ghz+ main processors of modern machines so outstrip most raid controllers that it is faster to perform the RAID on the main processor. It is also lower latency ... and latency is what matters for advanced filesystems. Nikolaus> For pure speed raw devices would be faster then file Nikolaus> systems. However, PostgeSQL currently does not support Nikolaus> them. This used to be true on machines with less processor power than disk bandwidth. It is likely no longer true. To be more exact: yes, filesystems have overhead, but the overhead is processor overhead ... of which (compared to disk bandwidth) you have lots. OSs have also become more efficient. Dave. -- ============================================================================ |David Gilbert, Velocet Communications. | Two things can only be | |Mail: dgilbert@velocet.net | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================