Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1053FB5DBEA for ; Thu, 18 Aug 2011 14:31:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 54014-04 for ; Thu, 18 Aug 2011 17:31:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mxout-07.mxes.net (mxout-07.mxes.net [216.86.168.182]) by mail.postgresql.org (Postfix) with ESMTP id 1FD77B5D80A for ; Thu, 18 Aug 2011 14:31:29 -0300 (ADT) Received: from [192.168.1.108] (unknown [173.165.13.38]) by smtp.mxes.net (Postfix) with ESMTPA id 1E4B622E247; Thu, 18 Aug 2011 13:31:28 -0400 (EDT) Subject: Re: Raid 5 vs Raid 10 Benchmarks Using bonnie++ Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/alternative; boundary=Apple-Mail-80-374039323 From: Ogden In-Reply-To: <4E4C2FEB.5060301@2ndQuadrant.com> Date: Thu, 18 Aug 2011 12:31:28 -0500 Cc: pgsql-performance@postgresql.org Message-Id: <9D8C0F0D-0BAB-4531-8BDA-08D003E82F51@darkstatic.com> References: <959BD2FA-0312-458B-BD5F-ED358D2C47ED@darkstatic.com> <75A85649-2B95-43D5-8404-4776D2E580EC@darkstatic.com> <4E4C2FEB.5060301@2ndQuadrant.com> To: Greg Smith X-Mailer: Apple Mail (2.1082) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201108/227 X-Sequence-Number: 44674 --Apple-Mail-80-374039323 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Aug 17, 2011, at 4:17 PM, Greg Smith wrote: > On 08/17/2011 02:26 PM, Ogden wrote: >> I am using bonnie++ to benchmark our current Postgres system (on RAID = 5) with the new one we have, which I have configured with RAID 10. The = drives are the same (SAS 15K). I tried the new system with ext3 and then = XFS but the results seem really outrageous as compared to the current = system, or am I reading things wrong? >>=20 >> The benchmark results are here: >> http://malekkoheavyindustry.com/benchmark.html >=20 > Congratulations--you're now qualified to be a member of the "RAID5 = sucks" club. You can find other members at = http://www.miracleas.com/BAARF/BAARF2.html Reasonable read speeds and = just terrible write ones are expected if that's on your old hardware. = Your new results are what I would expect from the hardware you've = described. >=20 > The only thing that looks weird are your ext4 "Sequential Output - = Block" results. They should be between the ext3 and the XFS results, = not far lower than either. Normally this only comes from using a bad = set of mount options. With a battery-backed write cache, you'd want to = use "nobarrier" for example; if you didn't do that, that can crush = output rates. I have mounted the ext4 system with the nobarrier option: /dev/sdb1 on /var/lib/pgsql type ext4 = (rw,noatime,data=3Dwriteback,barrier=3D0,nobh,errors=3Dremount-ro) Yet the results show absolutely a decrease in performance in the ext4 = "Sequential Output - Block" results: http://malekkoheavyindustry.com/benchmark.html However, the Random seeks is better, even more so than XFS... Any thoughts as to why this is occurring? Ogden --Apple-Mail-80-374039323 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On = 08/17/2011 02:26 PM, Ogden wrote:
I am = using bonnie++ to benchmark our current Postgres system (on RAID 5) with = the new one we have, which I have configured with RAID 10. The drives = are the same (SAS 15K). I tried the new system with ext3 and then XFS = but the results seem really outrageous as compared to the current = system, or am I reading things wrong?

The benchmark = results are here:
http://malekkoheav= yindustry.com/benchmark.html

Congratulations--you'= re now qualified to be a member of the "RAID5 sucks" club.  You can = find other members at http://www.miracleas.c= om/BAARF/BAARF2.html  Reasonable read speeds and just terrible = write ones are expected if that's on your old hardware.  Your new = results are what I would expect from the hardware you've = described.

The only thing that looks weird are your ext4 = "Sequential Output - Block" results.  They should be between the = ext3 and the XFS results, not far lower than either.  Normally this = only comes from using a bad set of mount options.  With a = battery-backed write cache, you'd want to use "nobarrier" for example; = if you didn't do that, that can crush output = rates.


I have = mounted the ext4 system with the nobarrier = option:

/dev/sdb1 on /var/lib/pgsql type ext4 = (rw,noatime,data=3Dwriteback,barrier=3D0,nobh,errors=3Dremount-ro)

Yet the results show absolutely a decrease in = performance in the  ext4 "Sequential Output - Block" = results:


However, the = Random seeks is better, even more so than = XFS...

Any thoughts as to why this is = occurring?

Ogden


= --Apple-Mail-80-374039323--