pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndQuadrant.com>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Tomas Vondra <tv@fuzzy.cz>
Cc: pgsql-performance@postgresql.org
Subject: Re: Reliability with RAID 10 SSD and Streaming Replication
Date: Wed, 22 May 2013 10:18:37 -0400
Message-ID: <519CD3BD.3010305@2ndQuadrant.com> (raw)
In-Reply-To: <CAHyXU0ymFT7Sqw77yPryGWKEpjV4Wv9Vkc21vGtPKo0GZWGg8A@mail.gmail.com>
References: <CAAE-9WHMycEZOB5J6HKME5AZLEdL2hYF+FV8hzbLksJinq=EJg@mail.gmail.com>
	<51957499.6050905@fuzzy.cz>
	<519991EB.8010208@2ndQuadrant.com>
	<519A8E29.60702@fuzzy.cz>
	<CAHyXU0wvW-USgbkXAYEHLG2fHgj=UdZi1aCFoVWBMQEsOFZy+A@mail.gmail.com>
	<519C0EFD.9080002@2ndQuadrant.com>
	<CAHyXU0ymFT7Sqw77yPryGWKEpjV4Wv9Vkc21vGtPKo0GZWGg8A@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

On 5/22/13 9:30 AM, Merlin Moncure wrote:
> That's most certainly *not* the only gain to be had: random read rates
> of large databases (a very important metric for data analysis) can
> easily hit 20k tps.  So I'll stand by the figure.

They can easily hit that number.  Or they can do this:

Device:     r/s    w/s  rMB/s  wMB/s avgrq-sz avgqu-sz  await svctm  %util
sdd     2702.80  19.40  19.67   0.16    14.91   273.68  71.74  0.37 100.00
sdd     2707.60  13.00  19.53   0.10    14.78   276.61  90.34  0.37 100.00

That's an Intel 710 being crushed by a random read database server 
workload, unable to deliver even 3000 IOPS / 20MB/s.  I have hours of 
data like this from several servers.  Yes, the DC S3700 drives are at 
least twice as fast on average, but I haven't had one for long enough to 
see what its worst case really looks like yet.

Here's a mechanical drive hitting its limits on the same server as the 
above:

Device:     r/s     w/s  rMB/s  wMB/s avgrq-sz avgqu-sz   await  svctm 
%util
sdb      100.80  220.60   1.06   1.79    18.16   228.78  724.11   3.11 
100.00
sdb      119.20  220.40   1.09   1.77    17.22   228.36  677.46   2.94 
100.00

Giving around 3MB/s.  I am quite happy saying the SSD is delivering 
about a single order of magnitude improvement, in both throughput and 
latency.  But that's it, and a single order of magnitude improvement is 
sometimes not good enough to solve all storage issues.

If all you care about is speed, the main situation where I've found 
there to still be value in "tier 1 storage" are extremely write-heavy 
workloads.  The best write numbers I've seen out of Postgres are still 
going into a monster EMC unit, simply because the unit I was working 
with had 16GB of durable cache.  Yes, that only supports burst speeds, 
but 16GB absorbs a whole lot of writes before it fills.  Write 
re-ordering and combining can accelerate traditional disk quite a bit 
when it's across a really large horizon like that.

> Anyways, SSD installation in the post-capacitor era has been 100.0%
> correlated in my experience (admittedly, around a dozen or so systems)
> with removal of storage as the primary performance bottleneck, and
> I'll stand by that.

I wish it were that easy for everyone, but that's simply not true.  Are 
there lots of systems where SSD makes storage look almost free it's so 
fast?  Sure.  But presuming all systems will look like that is 
optimistic, and it sets unreasonable expectations.

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


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (52+ messages)  latest in thread

Message-ID: <519CD3BD.3010305@2ndQuadrant.com>
Permalink:  ../519CD3BD.3010305@2ndQuadrant.com/
Also on:    postgresql.org/message-id/519CD3BD.3010305@2ndQuadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: greg@2ndQuadrant.com, mmoncure@gmail.com, tv@fuzzy.cz
  Subject: Re: Reliability with RAID 10 SSD and Streaming Replication
  In-Reply-To: <519CD3BD.3010305@2ndQuadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox