Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 03118650EE5 for ; Wed, 25 Jun 2008 14:46:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 20686-05 for ; Wed, 25 Jun 2008 14:46:15 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by postgresql.org (Postfix) with ESMTP id 68C83650E88 for ; Wed, 25 Jun 2008 14:46:15 -0300 (ADT) Received: by fk-out-0910.google.com with SMTP id e30so3970386fke.3 for ; Wed, 25 Jun 2008 10:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=qIQJqm/D49z9sIq9bc/uLYmJvO8IyWT29rIRZ/nCAG8=; b=LU0/wdSENnB6AW4e0sVp8CszWd6TQ5r+vLmGAlD7SEaFJZYTJ9aSb+vy430QW4NhFB liQJ/qNw1KruR1s0BFzeFL/x2n7mHFmhMX3LhIs3X0K92/kG35YdC++RNU+tw4EF+Jan odpYwSiVWsc5cxzL1VbN8IxgOD7QWdDaPUoGo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jKUWm1uEYt26iFv0lATYhiiSAwpGBjRVFHB4WO5AV5YNq1ZihZK/B35qrQRB0e+rTQ iTunETmSgdnZFZiJm04uOnh86Gscrz9QXIlrDf0tbD7yrpZWSSJjRl/mWf5CwOdR5IEt kgT2ad9E0lHMhNa8FWcpbcTiHbkk1EtUh2WTo= Received: by 10.82.182.1 with SMTP id e1mr659234buf.7.1214415974380; Wed, 25 Jun 2008 10:46:14 -0700 (PDT) Received: by 10.82.147.4 with HTTP; Wed, 25 Jun 2008 10:46:14 -0700 (PDT) Message-ID: Date: Wed, 25 Jun 2008 13:46:14 -0400 From: "Merlin Moncure" To: "Matthew Wakeling" Subject: Re: Hardware vs Software RAID Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48622660.4050403@careerjunction.co.za> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/147 X-Sequence-Number: 30497 On Wed, Jun 25, 2008 at 9:03 AM, Matthew Wakeling wrote: > On Wed, 25 Jun 2008, Merlin Moncure wrote: >>> >>> Has anyone done some benchmarks between hardware RAID vs Linux MD >>> software >>> RAID? >> >> I have here: >> >> http://merlinmoncure.blogspot.com/2007/08/following-are-results-of-our-testing-of.html >> >> The upshot is I don't really see a difference in performance. > > The main difference is that you can get hardware RAID with battery-backed-up > cache, which means small writes will be much quicker than software RAID. > Postgres does a lot of small writes under some use cases. As discussed down thread, software raid still gets benefits of write-back caching on the raid controller...but there are a couple of things I'd like to add. First, if your sever is extremely busy, the write back cache will eventually get overrun and performance will eventually degrade to more typical ('write through') performance. Secondly, many hardware raid controllers have really nasty behavior in this scenario. Linux software raid has decent degradation in overload conditions but many popular raid controllers (dell perc/lsi logic sas for example) become unpredictable and very bursty in sustained high load conditions. As greg mentioned, I trust the linux kernel software raid much more than the black box hw controllers. Also, contrary to vast popular mythology, the 'overhead' of sw raid in most cases is zero except in very particular conditions. merlin