Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 69085632953 for ; Sat, 24 Jul 2010 19:01:13 -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 76030-03 for ; Sat, 24 Jul 2010 22:01:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mail.postgresql.org (Postfix) with ESMTP id C987C632889 for ; Sat, 24 Jul 2010 19:01:03 -0300 (ADT) Received: from [192.168.1.5] (static-71-179-240-8.bltmmd.fios.verizon.net [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MgHFG-1OQ5TX2ez0-00N6wD; Sun, 25 Jul 2010 00:01:02 +0200 Message-ID: <4C4B629C.70501@2ndquadrant.com> Date: Sat, 24 Jul 2010 18:01:00 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Yeb Havinga CC: pgsql-performance@postgresql.org Subject: Re: Testing Sandforce SSD References: <4C4A9452.9070100@gmail.com> <4C4B1F84.5030306@2ndquadrant.com> <4C4B43DA.90201@gmail.com> <4C4B4512.2060007@gmail.com> <4C4B5984.4010705@gmail.com> In-Reply-To: <4C4B5984.4010705@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:d798YOIoEl4MPMN+W65Krausv1KVrvxK2p8h18HeDll BT0T7psqklTRkv/5OIU3rPiQK3tX+yZcQLvCh0uBN6CGz3iX4e 3ExXpZQ0GmE0rry2wQ+Z0hMmpcoGCgoWUbFnhesjOVKf4tlvdb 1hx7jn6JP0MkWh4Eubp1GCV3ifgmO2CciRENCgCNPmr9Q21BhM kE08Xk7D+ft1EdQDgSlxbKiMJqsiwez5AhVNHDg86Y= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.5 tagged_above=-10 required=5 tests=BAYES_05=-0.5, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201007/364 X-Sequence-Number: 39753 Yeb Havinga wrote: > Writes/s start low but quickly converge to a number in the range of > 1200 to 1800. The writes diskchecker does are 16kB writes. Making this > 4kB writes does not increase writes/s. 32kB seems a little less, 64kB > is about two third of initial writes/s and 128kB is half. Let's turn that into MB/s numbers: 4k * 1200 = 4.7 MB/s 8k * 1200 = 9.4 MB/s 16k * 1200 = 18.75 MB/s 64kb * 1200 * 2/3 [800] = 37.5 MB/s 128kb * 1200 / 2 [600] = 75 MB/s For comparison sake, a 7200 RPM drive running PostgreSQL will do <120 commits/second without a BBWC, so at an 8K block size that's <1 MB/s. If you put a cache in the middle, I'm used to seeing about 5000 8K commits/second, which is around 40 MB/s. So this is sitting right in the middle of those two. Sequential writes with a commit after each one like this are basically the worst case for the SSD, so if it can provide reasonable performance on that I'd be happy. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us