Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C0DB7B5DC0C for ; Wed, 24 Aug 2011 14:41:41 -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 04427-05 for ; Wed, 24 Aug 2011 17:41:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mail.postgresql.org (Postfix) with ESMTP id 2493CB5DBF7 for ; Wed, 24 Aug 2011 14:41:31 -0300 (ADT) Received: from [192.168.1.7] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MN62C-1Qu4X41FKC-007NON; Wed, 24 Aug 2011 19:41:30 +0200 Message-ID: <4E5537C9.9080308@2ndQuadrant.com> Date: Wed, 24 Aug 2011 13:41:29 -0400 From: Greg Smith User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110702 Icedove/3.0.11 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Intel 320 SSD info References: <4E552DCF.80802@boreham.org> <1314206629.63488.YahooMailNeo@web111301.mail.gq1.yahoo.com> In-Reply-To: <1314206629.63488.YahooMailNeo@web111301.mail.gq1.yahoo.com> Content-Type: multipart/alternative; boundary="------------090101040906020109030402" X-Provags-ID: V02:K0:Q0AcbHcdPufHVdR+uE1snuMir1d/GiJuVZD4iS4uSs9 UrrI3yo2/hZoxCdjDxaft3iRPoY6mTZkQuOhFMOUgIIWsw+8Qr hAgvitFJHNeFdlRwn1KgbyvxA3NFO0+I3cn9iDrjCJ27qcBPMD jCqMOGyHScRKKAFVplkkeSrCrAr01zcQlyXEZiEkFlIfNmKTTD nr+gpzKhVEhogR1xNlDl9BMo0WHZxok7GA3W//IFXI= 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, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201108/274 X-Sequence-Number: 44721 This is a multi-part message in MIME format. --------------090101040906020109030402 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/24/2011 01:23 PM, Andy wrote: > According to the specs for database storage: > > "Random 4KB arites: Up to 600 IOPS" > > Is that for real? 600 IOPS is *atrociously terrible* for an SSD. Not > much faster than mechanical disks. > > Has anyone done any performance benchmark of 320 used as a DB storage? > Is it really that slow? > Many SSDs that claim better are cheating though, or only quoting under conditions that don't take into account drive cleanup operations. That's fine in a non-database context, but if the data isn't any good to you unless it's guaranteed to be safe either on disk or on a non-volatile cache, Intel's numbers are the more relevant ones. I wouldn't assume other drives really are better unless it's in a true apples to apples fair comparison. I published some numbers at http://archives.postgresql.org/message-id/4D9D1FC3.4020207@2ndQuadrant.com that suggested 400 TPS was the worst-case for this drive on database random writes running the pgbench workload, which does a couple of writes per commit. That's only 2X as fast as a typical mechanical hard drive running the same workload. On random reads, the performance gap is much bigger, in favor of the SSD. I've measured the performance of this drive from a couple of directions now, and it always comes out the same. For PostgreSQL, reading or writing 8K blocks, I'm seeing completely random workloads hit a worst-case of 20MB/s; that's just over 2500 IOPS. It's quite possible that number can go lower under pressure of things like internal drive garbage collection however, which I believe is going into the 600 IOPS figure. I haven't tried to force that yet--drive is too useful to me to try and burn it out doing tests like that at the moment. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us --------------090101040906020109030402 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 08/24/2011 01:23 PM, Andy wrote:
According to the specs for database storage:

"Random 4KB arites: Up to 600 IOPS"

Is that for real? 600 IOPS is *atrociously terrible* for an SSD. Not much faster than mechanical disks.

Has anyone done any performance benchmark of 320 used as a DB storage? Is it really that slow?


Many SSDs that claim better are cheating though, or only quoting under conditions that don't take into account drive cleanup operations.  That's fine in a non-database context, but if the data isn't any good to you unless it's guaranteed to be safe either on disk or on a non-volatile cache, Intel's numbers are the more relevant ones.  I wouldn't assume other drives really are better unless it's in a true apples to apples fair comparison.

I published some numbers at http://archives.postgresql.org/message-id/4D9D1FC3.4020207@2ndQuadrant.com that suggested 400 TPS was the worst-case for this drive on database random writes running the pgbench workload, which does a couple of writes per commit.  That's only 2X as fast as a typical mechanical hard drive running the same workload.  On random reads, the performance gap is much bigger, in favor of the SSD.

I've measured the performance of this drive from a couple of directions now, and it always comes out the same.  For PostgreSQL, reading or writing 8K blocks, I'm seeing completely random workloads hit a worst-case of 20MB/s; that's just over 2500 IOPS.  It's quite possible that number can go lower under pressure of things like internal drive garbage collection however, which I believe is going into the 600 IOPS figure.  I haven't tried to force that yet--drive is too useful to me to try and burn it out doing tests like that at the moment.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us
--------------090101040906020109030402--