Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5307AB5DBFE for ; Thu, 18 Aug 2011 11:09:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 71531-04 for ; Thu, 18 Aug 2011 14:09:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mxout-08.mxes.net (mxout-08.mxes.net [216.86.168.183]) by mail.postgresql.org (Postfix) with ESMTP id 155D2B5DBCE for ; Thu, 18 Aug 2011 11:09:31 -0300 (ADT) Received: from [10.0.1.7] (unknown [69.245.205.64]) by smtp.mxes.net (Postfix) with ESMTPA id AA32A50A6B; Thu, 18 Aug 2011 10:09:31 -0400 (EDT) Subject: Re: Raid 5 vs Raid 10 Benchmarks Using bonnie++ Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Ogden In-Reply-To: <4E4CBA47.5070600@catalyst.net.nz> Date: Thu, 18 Aug 2011 09:09:30 -0500 Cc: pgsql-performance@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <959BD2FA-0312-458B-BD5F-ED358D2C47ED@darkstatic.com> <75A85649-2B95-43D5-8404-4776D2E580EC@darkstatic.com> <4E4C2FB4.4010409@2ndQuadrant.com> <207E881B-73CD-4C31-A863-2C238838C41F@darkstatic.com> <4E4CA4BC.9050908@ringerc.id.au> <4E4CBA47.5070600@catalyst.net.nz> To: Mark Kirkwood X-Mailer: Apple Mail (2.1082) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/226 X-Sequence-Number: 44673 On Aug 18, 2011, at 2:07 AM, Mark Kirkwood wrote: > On 18/08/11 17:35, Craig Ringer wrote: >> On 18/08/2011 11:48 AM, Ogden wrote: >>> Isn't this very dangerous? I have the Dell PERC H700 card - I see = that it has 512Mb Cache. Is this the same thing and good enough to = switch to nobarrier? Just worried if a sudden power shut down, then data = can be lost on this option. >>>=20 >>>=20 >> Yeah, I'm confused by that too. Shouldn't a write barrier flush data = to persistent storage - in this case, the RAID card's battery backed = cache? Why would it force a RAID controller cache flush to disk, too? >>=20 >>=20 >=20 > If the card's cache has a battery, then the cache is preserved in the = advent of crash/power loss etc - provided it has enough charge, so = setting 'writeback' property on arrays is safe. The PERC/SERVERRAID = cards I'm familiar (LSI Megaraid rebranded models) all switch to = write-though mode if they detect the battery is dangerously discharged = so this is not normally a problem (but commit/fsync performance will = fall off a cliff when this happens)! >=20 > Cheers >=20 > Mark So a setting such as this: Device Name : /dev/sdb Type : SAS Read Policy : No Read Ahead Write Policy : Write Back Cache Policy : Not Applicable Stripe Element Size : 64 KB Disk Cache Policy : Enabled Is sufficient to enable nobarrier then with these settings? Thank you Ogden=