Re: Performance advice for a new low(er)-power server

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Greg Smith <greg(at)2ndquadrant(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance advice for a new low(er)-power server
Date: 2011-06-16 22:44:11
Message-ID: BANLkTi=eu9v5dVmeUgTsmMZvwiO2jNxjzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Jun 16, 2011 at 5:12 PM, Greg Smith <greg(at)2ndquadrant(dot)com> wrote:
> On 06/16/2011 03:04 PM, Merlin Moncure wrote:
>>
>> I don't necessarily agree. the drives are SLC and have the potential
>> to have a much longer lifespan than any MLC drive, although this is
>> going to depend a lot on the raid controller if write caching is
>> disabled.  Also, reading the post that got all this started
>>
>> (http://www.mysqlperformanceblog.com/2009/03/02/ssd-xfs-lvm-fsync-write-cache-barrier-and-lost-transactions/)
>> the OP was able to configure them to run durably with 1200 write iops.
>>
>
> We've also seen
> http://petereisentraut.blogspot.com/2009/07/solid-state-drive-benchmarks-and-write.html
> where Peter was only able to get 441 seeks/second on the bonnie++ mixed
> read/write test that way.  And no one has measured the longevity of the
> drive when it's running in this mode.  A large portion of the lifespan
> advantage MLC would normally have over SLC goes away if it can't cache
> writes anymore.  Worst-case, if the drive is always hit with 8K writes and
> the erase size is 128KB, you might get only 1/16 of the specified lifetime
> running it cacheless.
>
> I just can't recommend that people consider running one of these in a mode
> it was never intended to.  The fact that the consumer drives from this
> generation still lose data even with the write cache turned off should make
> you ask what other, more difficult to trigger failure modes are still
> hanging around the enterprise drives, too.  Everyone I've seen suffer
> through problems with these gave up on them before even trying really
> in-depth reliability tests, so I don't consider that territory even very
> well explored.

I've always been more than little suspicious about Peter's results --
using lvm and luks, and the filesystem wasn't specified or the write
barriers setting. Also they are much slower than any other results
I've seen, and no numbers are given using a more standard setup.
Other people are showing 1200 write iops vs 441 mostly read iops. Not
that I think they aren't correct, but there simply has to be an
explanation of why his results are so much slower than all others on
the 'net...I think 1200 write iops is a realistic expectation.

One the cache/lifespan issue, you might be correct -- it's going to
depend on the raid controller. The drive has a 10x longer lifespan and
there is not going to be a 1:1 correspondence between sync requests
and actual syncs to the drive. But the drive is denied the ability to
do it's own reordering so unless the raid controller is really
optimized for flash longevity (doubtful), you probably do have to give
back a lot of the savings you get from being SLC (possibly more). So
it's complex -- but I think the whole issue becomes moot soon because
non consumer flash drives from here on out are going to have
capacitors in them (the 720 ramsdale will immediately knock out the
x25-e). So the prudent course of action is to wait, or to just go with
the current crop capacitor based drives and deal with the lifespan
issues.

merlin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Haestan 2011-06-17 08:42:19 Re: Performance advice for a new low(er)-power server
Previous Message Greg Smith 2011-06-16 22:12:08 Re: Performance advice for a new low(er)-power server