pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Gilbert <dgilbert@velocet.ca>
To: Nikolaus Dilger <nikolaus@dilger.cc>
Cc: chris@ruprecht.org
Cc: mallah@trade-india.com
Cc: pgsql-admin@postgresql.org
Subject: Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
Date: Mon, 25 Nov 2002 07:03:12 -0500
Message-ID: <15842.4480.962910.969960@canoe.velocet.net> (raw)
In-Reply-To: <20021124194154.18989.h017.c001.wm@mail.dilger.cc.criticalpath.net>
References: <20021124194154.18989.h017.c001.wm@mail.dilger.cc.criticalpath.net>

>>>>> "Nikolaus" == Nikolaus Dilger <nikolaus@dilger.cc> 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================



view thread (33+ messages)  latest in thread

Message-ID: <15842.4480.962910.969960@canoe.velocet.net>
Permalink:  ../15842.4480.962910.969960@canoe.velocet.net/
Also on:    postgresql.org/message-id/15842.4480.962910.969960@canoe.velocet.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dgilbert@velocet.ca, nikolaus@dilger.cc, chris@ruprecht.org, mallah@trade-india.com
  Subject: Re: H/W RAID 5 on slower disks versus no raid on faster HDDs
  In-Reply-To: <15842.4480.962910.969960@canoe.velocet.net>
  References: <20021124194154.18989.h017.c001.wm@mail.dilger.cc.criticalpath.net> <15842.4480.962910.969960@canoe.velocet.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox