Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9F013632ABA for ; Tue, 3 Aug 2010 06:43:58 -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 17234-03 for ; Tue, 3 Aug 2010 09:43:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from serenity.inversion.ee (serenity.inversion.ee [194.204.33.112]) by mail.postgresql.org (Postfix) with ESMTP id 3E41E6322DB for ; Tue, 3 Aug 2010 06:43:51 -0300 (ADT) Received: by serenity.inversion.ee (Postfix, from userid 108) id 61DF51BB8469; Tue, 3 Aug 2010 11:25:06 +0300 (EEST) Received: from [IPv6:::1] (localhost [127.0.0.1]) by serenity.inversion.ee (Postfix) with ESMTP id 4F2721BB8468; Tue, 3 Aug 2010 11:25:05 +0300 (EEST) Subject: Re: Testing Sandforce SSD From: Hannu Krosing To: Yeb Havinga Cc: Scott Marlowe , Greg Smith , Josh Berkus , pgsql-performance@postgresql.org In-Reply-To: <4C57D5FD.9040306@gmail.com> References: <4C4A9452.9070100@gmail.com> <4C4B1F84.5030306@2ndquadrant.com> <4C4B4B41.7000800@2ndquadrant.com> <4C52E957.8020304@gmail.com> <4C56DD8B.6050303@gmail.com> <4C5744F5.3020805@agliodbs.com> <4C575DCF.3050700@2ndquadrant.com> <4C57D5FD.9040306@gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 03 Aug 2010 12:08:42 +0300 Message-ID: <1280826522.14579.66.camel@hvost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit 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: 201008/38 X-Sequence-Number: 39881 On Tue, 2010-08-03 at 10:40 +0200, Yeb Havinga wrote: > se note that the 10% was on a slower CPU. On a more recent CPU the > difference was 47%, based on tests that ran for an hour. I am not surprised at all that reading and writing almost twice as much data from/to disk takes 47% longer. If less time is spent on seeking the amount of data starts playing bigger role. > That's why I > absolutely agree with Merlin Moncure that more testing in this > department is welcome, preferably by others since after all I could be > on the pay roll of OCZ :-) :) > I looked a bit into Bonnie++ but fail to see how I could do a test that > somehow matches the PostgreSQL setup during the pgbench tests (db that > fits in memory, Did it fit in shared_buffers, or system cache ? Once we are in high tps ground, the time it takes to move pages between userspace and system cache starts to play bigger role. I first noticed this several years ago, when doing a COPY to a large table with indexes took noticably longer (2-3 times longer) when the indexes were in system cache than when they were in shared_buffers. > so the test is actually how fast the ssd can capture > sequential WAL writes and fsync without barriers, mixed with an > occasional checkpoint with random write IO on another partition). Since > the WAL writing is the same for both block_size setups, I decided to > compare random writes to a file of 5GB with Oracle's Orion tool: Are you sure that you are not writing full WAL pages ? Do you have any stats on how much WAL is written for 8kb and 4kb test cases ? And for other disk i/o during the tests ? -- Hannu Krosing http://www.2ndQuadrant.com PostgreSQL Scalability and Availability Services, Consulting and Training