From cwillemsen@technocon.com Mon Nov 21 21:04:02 2011 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 2D7E9105A46E for ; Mon, 21 Nov 2011 17:04:02 -0400 (AST) Received: from mail.technocon.com ([62.132.195.121]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RSb21-0002I8-U5 for pgsql-performance@postgresql.org; Mon, 21 Nov 2011 21:04:02 +0000 Received: from meel (localhost [127.0.0.1]) by mail.technocon.com (Postfix) with ESMTP id 9BE9833AC44 for ; Mon, 21 Nov 2011 22:03:50 +0100 (CET) Received: from localhost ([127.0.0.1]) by meel with SMTP ID 529 for ; Mon, 21 Nov 2011 22:03:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.technocon.com (Postfix) with ESMTP id 7D5E133AC44 for ; Mon, 21 Nov 2011 22:03:49 +0100 (CET) Received: from mail.technocon.com ([127.0.0.1]) by localhost (meel.technocon.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UTfLaSbXc79C for ; Mon, 21 Nov 2011 22:03:46 +0100 (CET) Received: from meel.technocon.local (localhost [127.0.0.1]) by mail.technocon.com (Postfix) with ESMTP id 899ED33AC41 for ; Mon, 21 Nov 2011 22:03:46 +0100 (CET) Subject: SSD endurance calculations From: =?utf-8?Q?Christiaan_Willemsen?= To: =?utf-8?Q?pgsql-performance=40postgresql=2Eorg?= Date: Mon, 21 Nov 2011 22:03:46 +0100 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_OOHOvEAaVA3qLQcxFyIK0ZYO0bTA1JFkDxIjO8Khu24HjkAN" X-Priority: 3 (Normal) X-Mailer: Zarafa 7.0.1-28479 Message-Id: X-Archive-Number: 201111/252 X-Sequence-Number: 45763 This is a multi-part message in MIME format. Your mail reader does not understand MIME message format. --=_OOHOvEAaVA3qLQcxFyIK0ZYO0bTA1JFkDxIjO8Khu24HjkAN Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hey there,=0D=0A=0D=0A=C2=A0=0D=0AWe are looking at beefing up our server= s with SSD's. Some of you did some interesting tests with the Intel 320. = So the idea came to make a RAID10 with four 600GB models.=0D=0A=0D=0A=C2=A0= =0D=0AI did however do some calculations with the current database server= (220GB database, expected to grow to 1TB by the end of next year). I spe= cifically looked at /proc/diskstat at the read/write figures. From there = I could see a read/write ratio of 3:1, and I also saw a wopping 170GB of = writes per day (for a database that currently grows 1GB per dag). That se= ems like an insanely high figure to me! How come=3F We do mostly inserts,= hardly any updates, virtually no deletes.=0D=0A=0D=0A=C2=A0=0D=0ASecondl= y, I also looked at the reliability figures of the Intel 320. They show 5= years of 20GB per day, meaning that it will hold up for about 200 days i= n our system. RAID 10 wil make 400 days of that, but this seems hardly a = lot.. Am I missing something here=3F=0D=0A=0D=0A=C2=A0=0D=0AKind regards,= =0D=0A=0D=0A=C2=A0=0D=0AChristiaan=0D=0A=0D=0A=C2=A0=0D=0A=C2=A0=0D=0A=C2= =A0=0D=0A --=_OOHOvEAaVA3qLQcxFyIK0ZYO0bTA1JFkDxIjO8Khu24HjkAN Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0A=0A =0A =0A SSD endurance= calculations=0A =0A=0A=0A

Hey there,

 

We= are looking at beefing up our servers with SSD's. Some of you did so= me interesting tests with the Intel 320. So the idea came to make a RAID1= 0 with four 600GB models.

 

I did however do some calcul= ations with the current database server (220GB database, expected to grow= to 1TB by the end of next year). I specifically looked at /proc/diskstat= at the read/write figures. From there I could see a read/write ratio of = 3:1, and I also saw a wopping 170GB of writes per day (for a database tha= t currently grows 1GB per dag). That seems like an insanely high figure t= o me! How come=3F We do mostly inserts, hardly any updates, virtually no = deletes.

 

Secondly, I also looked at the reliability fi= gures of the Intel 320. They show 5 years of 20GB per day, meaning that i= t will hold up for about 200 days in our system. RAID 10 wil make 400 day= s of that, but this seems hardly a lot.. Am I missing something here=3F

 

Kind regards,

 

Christiaan

 

 

 =

=0A=0A --=_OOHOvEAaVA3qLQcxFyIK0ZYO0bTA1JFkDxIjO8Khu24HjkAN-- From egportal2002@yahoo.com Tue Nov 22 17:15:35 2011 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 9C4841ED23D7 for ; Tue, 22 Nov 2011 13:15:35 -0400 (AST) Received: from news.hub.org ([200.46.204.72]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RStwU-00067h-I6 for pgsql-performance@postgresql.org; Tue, 22 Nov 2011 17:15:35 +0000 Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.4/8.14.4) with ESMTP id pAMHFLpD057850 for ; Tue, 22 Nov 2011 13:15:21 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.4/8.14.4/Submit) id pAMGxInR039515 for pgsql-performance@postgresql.org; Tue, 22 Nov 2011 12:59:18 -0400 (AST) (envelope-from news) From: Edgardo Portal X-Newsgroups: pgsql.performance Subject: Re: SSD endurance calculations Date: Tue, 22 Nov 2011 16:59:17 +0000 (UTC) Organization: A noiseless patient Spider Lines: 25 Message-ID: References: Injection-Date: Tue, 22 Nov 2011 16:59:17 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="gkhyaanA3O+9spDy+Syqag"; logging-data="10593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XRVkjYTW0NsYFVapxV+AQ5t1IqRsFxRY=" User-Agent: slrn/pre1.0.0-18 (Linux) Cancel-Lock: sha1:9+qVGXbDwLyDL29S8JLwxcWtu7Y= To: pgsql-performance@postgresql.org X-Archive-Number: 201111/263 X-Sequence-Number: 45774 On 2011-11-21, Christiaan Willemsen wrote: >We= > are looking at beefing up our servers with SSD's. Some of you did so= > me interesting tests with the Intel 320. So the idea came to make a RAID1= > 0 with four 600GB models.

 

I did however do some calcul= > ations with the current database server (220GB database, expected to grow= > to 1TB by the end of next year). I specifically looked at /proc/diskstat= > at the read/write figures. From there I could see a read/write ratio of = > 3:1, and I also saw a wopping 170GB of writes per day (for a database tha= > t currently grows 1GB per dag). That seems like an insanely high figure t= > o me! How come=3F We do mostly inserts, hardly any updates, virtually no = > deletes.

 

Secondly, I also looked at the reliability fi= > gures of the Intel 320. They show 5 years of 20GB per day, meaning that i= > t will hold up for about 200 days in our system. RAID 10 wil make 400 day= > s of that, but this seems hardly a lot.. Am I missing something here=3F p>

 

Kind regards,

 

Christiaan

style=3D"font-family: monospace; "> 

 

 = >

=0A=0A Is your WAL on a separate disk (or set of disks)? Also, not sure you can fairly conclude that "RAID 10 will make 400 days of that" -- I had read some posts here a few months back suggesting that SSDs have been observed to fail very close to each other in time in a RAID configuration. From greg@2ndQuadrant.com Wed Nov 23 15:19:18 2011 Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id DE7CB1E34FD7 for ; Wed, 23 Nov 2011 11:19:18 -0400 (AST) Received: from moutng.kundenserver.de ([212.227.126.186]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RTEbW-0002XM-Tt for pgsql-performance@postgresql.org; Wed, 23 Nov 2011 15:19:19 +0000 Received: from [192.168.1.6] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0M5850-1QeINT373W-00yfqI; Wed, 23 Nov 2011 16:19:06 +0100 Message-ID: <4ECD0EE8.5030401@2ndQuadrant.com> Date: Wed, 23 Nov 2011 10:19:04 -0500 From: Greg Smith User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20111110 Icedove/3.0.11 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: SSD endurance calculations References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:+ryvLBsutN61LvV22NpgF2c+T7/TpjohRA9dxE8qfqF QbfrtO2Yse8YfnAymQi9/uNkanP0+x2NzF3ZN0ZsyGBDBLCyOh i03gOKjGomPHscgOroeV6/MZVGjdR9QhV+la5WVE3/5EVWcFky F93QCiwNBjqGhXQMX96GXJ58qNBMYEInhFs2mLGXrjzpCXAA5b OLcTh8CQWj/4VWaoSQK8f56TcpgHWCj2Xodd25HnfMeSfFZfQP CoAP52x0mtqO/0rX4qci6GeXyCvEHic3yI027AXkwswpBqwxlY 1NAfDc+BL83SrGjAuta/zVN9mpqi8PcDOsINaMnIWzkIjc/kI3 LGtKuwpjHt6+NI4niH6c= X-Archive-Number: 201111/258 X-Sequence-Number: 45769 On 11/21/2011 04:03 PM, Christiaan Willemsen wrote: > > Secondly, I also looked at the reliability figures of the Intel 320. > They show 5 years of 20GB per day, meaning that it will hold up for > about 200 days in our system. RAID 10 wil make 400 days of that, but > this seems hardly a lot.. Am I missing something here? > The 320 series drives are not intended for things that write as heavily as you do. If your database is growing fast enough that you're going to hit a terabyte in a short period of time, just cross that right off the list of possibilities. Intel's 710 series is the one aimed at your sort of workload. You can probably pull down the total write volume on your system by more aggressively running VACUUM FREEZE shortly after new data is loaded. PostgreSQL tends to write blocks even in INSERT-only tables several times; forcing them to freeze early can eliminate several of them. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us