Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V8uYj-0006vG-M4 for pgsql-admin@arkaria.postgresql.org; Mon, 12 Aug 2013 16:01:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V8uYi-0006ww-Up for pgsql-admin@arkaria.postgresql.org; Mon, 12 Aug 2013 16:01:29 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V8uYg-0006wj-PE for pgsql-admin@postgresql.org; Mon, 12 Aug 2013 16:01:26 +0000 Received: from mail.journyx.com ([209.163.206.41] helo=mail.int.journyx.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V8uYX-0007bZ-Ii for pgsql-admin@postgresql.org; Mon, 12 Aug 2013 16:01:24 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id 6756F7E6ED7; Mon, 12 Aug 2013 11:01:16 -0500 (CDT) X-Virus-Scanned: amavisd-new at zimbra.int.journyx.com Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id juQV1Q8u7hfE; Mon, 12 Aug 2013 11:01:09 -0500 (CDT) Received: from mail.int.journyx.com (zimbra.int.journyx.com [192.168.100.5]) by mail.int.journyx.com (Postfix) with ESMTP id 42AF07E6E30; Mon, 12 Aug 2013 11:01:09 -0500 (CDT) Date: Mon, 12 Aug 2013 11:01:09 -0500 (CDT) From: Scott Whitney Reply-To: Scott Whitney To: Craig James Cc: pgsql-admin@postgresql.org, "David F. Skoll" Message-ID: <14817358.266767.1376323269109.JavaMail.root@mail.int.journyx.com> In-Reply-To: Subject: Re: Opinions on SSDs MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_266766_3626445.1376323269106" X-Originating-IP: [192.168.100.188] X-Mailer: Zimbra 7.2.4_GA_2900 (ZimbraWebClient - GC28 (Win)/7.2.4_GA_2900) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org ------=_Part_266766_3626445.1376323269106 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit When you say "16 10K drives," do you mean: a) RAID 0 with 16 drives? b) RAID 1 with 8+8 drives? c) RAID 5 with 12 drives? d) RAID 1 with 7+7 drives and 2 hotspares? We moved from a 14 FC drive (15k RPM) array (6+6 with 2 hotspares) to a 6 SSD array (2+2 with 2 hotspares) because our iops would max out regularly on the spinning drives. The SSD solution I put in has show significant speed improvements, to say the very least. The short answer is unless you're going with option a (which has no redundancy), you're going to be have some I/O wait at 5k tps. Now, there is a LOT to understand about drive iops. You could start here, if you would like to read a bit about it: http://www.techrepublic.com/blog/the-enterprise-cloud/calculate-iops-in-a-storage-array/ Basically, just assume that you're getting 130 iops per drive. Well, 16 drives in a RAID 0 is going to max you out at 2100ish iops, which is low for your stated peak usage (but probably within range for your average usage). However, you start looking at 8+8 or 7+7 with HSP, you're looking at cutting that in half, and you're going to see I/O wait, period. Of course if you were to use a non-recommended RAID5, you'd be taking an even bigger hit on writes. Now, I do _not_ want to open a can of worms here and start a war about SSD versus spindles and "perceived performance vs real," or any such thing. I attended Greg Smith's (excellent) talk in Austin at PG Day wrt "Seeking Postgres," and I had also personally amassed quite a bit of data on such comparisons myself. Unfortunately, some of that talk not compare apples to apples (3-disk RAID 0 versus singe Intel 520SSD), and I quite simply find that the benchmarks do not really reflect real world usage. Source: months and months of real-world stress-testing specifically 10k drives (SAS) against SSD (SATA) drives in the same configuration on the same machine using the same tests plus over a year (total) of production deployment among 3 servers thusly configured. So far as personal experience with the Intel drives, I don't have that, personally. I'm using Crucial, and I'm pretty happy with those. The _problem_ with SSD is there is no "put it in the freezer" magic bullet. When they fail, they fail, and they're gone. So, IMO (and there are MANY MANY valid opinions on this), use slightly cheaper drives and proactively replace them every 9 months or year. ----- Original Message ----- > On Mon, Aug 12, 2013 at 8:28 AM, David F. Skoll < > dfs@roaringpenguin.com > wrote: > > 3) Our current workload peaks at about 5000 transactions per > > second; > > > you can assume about one-third to one-half of those are writes. Do > > > you think we can get away with 16 10Krpm SATA drives instead of the > > > SSDs? > > pgbench peaks out at 5K-7K transactions per second on my server which > uses just 10ea. of 7Krpm SATA drives: > WAL: RAID1 (2 disks) > Data: RAID10 (8 disks) > 3Ware RAID controller with BBU > 2x4 core Intel CPUs > 12 GB memory > I don't know how pgbench compares to your workload. But suspect 16 > 10K SATA drives would be pretty fast if you combine them with a BBU > RAID controller. > On the other hand, I swore this would be the last server I buy with > spinning storage. > Craig ------=_Part_266766_3626445.1376323269106 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: times new roman,new york,times,serif; font-size: = 12pt; color: #000000'>When you say "16 10K drives," do you mean:

a) RAID 0 with 16 drives?
b) RAID 1 with 8+8 drives?
c) RAID 5 with 12 drives?
d) RAID 1 with 7+7 drives and 2 = hotspares?

We moved from a 14 FC drive (15k RPM) a= rray (6+6 with 2 hotspares) to a 6 SSD array (2+2 with 2 hotspares) because= our iops would max out regularly on the spinning drives. The SSD solution = I put in has show significant speed improvements, to say the very least.

The short answer is unless you're going with option = a (which has no redundancy), you're going to be have some I/O wait at 5k tp= s.

Now, there is a LOT to understand about drive i= ops. You could start here, if you would like to read a bit about it:
<= div>http://www.techrepublic.com/blog/the-enterpri= se-cloud/calculate-iops-in-a-storage-array/

Ba= sically, just assume that you're getting 130 iops per drive. Well, 16 drive= s in a RAID 0 is going to max you out at 2100ish iops, which is low for you= r stated peak usage (but probably within range for your average usage). How= ever, you start looking at 8+8 or 7+7 with HSP, you're looking at cutting t= hat in half, and you're going to see I/O wait, period. Of course if you wer= e to use a non-recommended RAID5, you'd be taking an even bigger hit on wri= tes.

Now, I do _not_ want to open a can of worms h= ere and start a war about SSD versus spindles and "perceived performance vs= real," or any such thing. I attended Greg Smith's  (excellent) talk i= n Austin at PG Day wrt "Seeking Postgres," and I had also personally amasse= d quite a bit of data on such comparisons myself.  Unfortunately, some= of that talk not compare apples to apples (3-disk RAID 0 versus singe Inte= l 520SSD), and I quite simply find that the benchmarks do not really reflec= t real world usage.

Source: months and = months of real-world stress-testing specifically 10k drives (SAS) against S= SD (SATA) drives in the same configuration on the same machine using the sa= me tests plus over a year (total) of production deployment among 3 servers = thusly configured.

So far as personal experience with the Intel driv= es, I don't have that, personally. I'm using Crucial, and I'm pretty happy = with those. The _problem_ with SSD is there is no "put it in the freezer" m= agic bullet. When they fail, they fail, and they're gone. So, IMO (and ther= e are MANY MANY valid opinions on this), use slightly cheaper drives and pr= oactively replace them every 9 months or year.



On Mon, Aug 12, 2013 at 8:28 AM, David F. = Skoll <dfs@roaringpenguin.com> wrote:

3) Our current workload peaks at about 5000 transactions per second;
you can assume about one-third to one-half of those are writes.  Do you think we can get away with 16 10Krpm SATA drives instead of the
SSDs?

pgbench peaks out at 5K-7K transactions per= second on my server which uses just 10ea. of 7Krpm SATA drives:

&nb= sp; WAL: RAID1 (2 disks)
  Data: RAID10 (8 disks)
  3Ware R= AID controller with BBU
  2x4 core Intel CPUs
  12 GB memory

I don't know how p= gbench compares to your workload.  But suspect 16 10K SATA drives woul= d be pretty fast if you combine them with a BBU RAID controller.

On = the other hand, I swore this would be the last server I buy with spinning s= torage.

Craig


------=_Part_266766_3626445.1376323269106--