Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQWi-0001QI-0W for pgsql-performance@arkaria.postgresql.org; Mon, 17 Feb 2014 15:54:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WFQWh-0002cP-Ff for pgsql-performance@arkaria.postgresql.org; Mon, 17 Feb 2014 15:54:35 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQWf-0002aX-NL for pgsql-performance@postgresql.org; Mon, 17 Feb 2014 15:54:33 +0000 Received: from mail.gransy.com ([2001:1528:137::f1]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQWd-0006XR-CR for pgsql-performance@postgresql.org; Mon, 17 Feb 2014 15:54:33 +0000 Received: from antispam.gransy.com (antispam.gransy.com [77.78.104.124]) by mail.gransy.com (Postfix) with ESMTP id AF1F1508DD2 for ; Mon, 17 Feb 2014 16:54:30 +0100 (CET) X-Virus-Scanned: G-Hosting.cz + Station.cz + Klenot.cz + Subreg.cz amavisd-new at antispam.gransy.com Received: from mail.gransy.com ([82.208.29.194]) by antispam.gransy.com (antispam.gransy.com [77.78.104.124]) (amavisd-new, port 10024) with ESMTP id xrbYMl9vLWaT for ; Mon, 17 Feb 2014 16:54:39 +0100 (CET) Received: from sq.gransy.com (elizabeth.gransy.com [89.187.132.199]) (Authenticated sender: tv@fuzzy.cz) by mail.gransy.com (Postfix) with ESMTPA id 39F56508DC4; Mon, 17 Feb 2014 16:54:29 +0100 (CET) Received: from 212.47.19.46 (SquirrelMail authenticated user tv@fuzzy.cz) by sq.gransy.com with HTTP; Mon, 17 Feb 2014 16:54:27 +0100 Message-ID: In-Reply-To: References: Date: Mon, 17 Feb 2014 16:54:27 +0100 Subject: Re: Optimal settings for RAID controller - optimized for writes From: "Tomas Vondra" To: "DFE" Cc: =?utf-8?B?Ik5pZWxzIEtyaXN0aWFuIFNjaGrDuGR0Ig==?= , "pgsql-performance@postgresql.org list" User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org The thing is, it's difficult to transfer these experiences without clear idea of the workloads. For example I wouldn't say 200 updates / second is a write-heavy workload. A single 15k drive should handle that just fine, assuming the data fit into RAM (which seems to be the case, but maybe I got that wrong). Niels, what amounts of data are we talking about? What is the total database size? How much data are you updating? Are those updates random, or are you updating a lot of data in a sequential manner? How did you determine UPDATEs are the bottleneck? Tomas On 17 Únor 2014, 16:29, DFE wrote: > Hi, > I configured a similar architecture some months ago and this is the best > choice after some pgbench and Bonnie++ tests. > Server: DELL R720d > CPU: dual Xeon 8-core > RAM: 32GB ECC > Controller PERC H710 > Disks: > 2xSSD (MLC) Raid1 for Operating System (CentOS 6.4) > 4xSSD (SLC) Raid10 for WAL archive and a dedicated "fast tablespace", > where > we have most UPDATE actions (+ Hot spare). > 10xHDD 15kRPM Raid5 for "default tablespace" (optimized for space, instead > of Raid10) (+ Hot spare). > > Our application have above 200 UPDATE /sec. (on the "fast tablespace") and > above 15GB per die of records (on the "default tablespace"). > > After the testing phase I had the following conclusion: > 4xSSD (SLC) RAID 10 vs. 10xHDD RAID 5 have comparable I/O performance in > the sequential Read and Write, but much more performance on the Random > scan > (obviously!!), BUT as far I know the postgresql I/O processes are not > heavily involved in a random I/O, so at same price I will prefer to buy > 10xHDD instead of 4xSSD (SLC) using above 10x of available space at the > same price!! > > 10xHDD RAID 10 vs. 10xHDD RAID 5 : with Bonnie++ I noticed a very small > difference in I/O performance so I decided to use RAID 5 + a dedicated Hot > Spare instead of a RAID10. > > If I could go back, I would have spent the money of the SLC in other > HDDs. > > regards. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance