Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQJ8-00012N-6C for pgsql-performance@arkaria.postgresql.org; Mon, 17 Feb 2014 15:40:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WFQJ7-0001pT-IO for pgsql-performance@arkaria.postgresql.org; Mon, 17 Feb 2014 15:40:33 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQJ6-0001pL-CR for pgsql-performance@postgresql.org; Mon, 17 Feb 2014 15:40:32 +0000 Received: from mail.gransy.com ([2001:1528:137::f1]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFQJ2-0006GT-KT for pgsql-performance@postgresql.org; Mon, 17 Feb 2014 15:40:31 +0000 Received: from antispam.gransy.com (antispam.gransy.com [77.78.104.124]) by mail.gransy.com (Postfix) with ESMTP id 3086C508DC4 for ; Mon, 17 Feb 2014 16:40:25 +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 gEuyaibaSSGt for ; Mon, 17 Feb 2014 16:40:34 +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 1FFC0508D75; Mon, 17 Feb 2014 16:40:24 +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:40:21 +0100 Message-ID: In-Reply-To: References: Date: Mon, 17 Feb 2014 16:40:21 +0100 Subject: Re: Optimal settings for RAID controller - optimized for writes From: "Tomas Vondra" To: =?utf-8?B?Ik5pZWxzIEtyaXN0aWFuIFNjaGrDuGR0Ig==?= Cc: "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 On 17 Únor 2014, 16:03, Niels Kristian Schjødt wrote: > Hi, > > I’m kind of a noob when it comes to setting up RAID controllers and > tweaking them so I need some advice here. > > I’m just about to setup my newly rented DELL R720 12. gen server. It’s > running a single Intel Xeon E5-2620 v.2 processor and 64GB ECC ram. I have > installed 8 300GB SSDs in it. It has an PERC H710 raid controller (Based > on the LSI SAS 2208 dual core ROC). > > Now my database should be optimized for writing. UPDATEs are by far my > biggest bottleneck. I think it's pretty difficult to answer this without a clear idea of how much data the UPDATEs modify etc. Locating the data may require a lot of reads too. > Firstly: Should I just put all 8 drives in one single RAID 10 array, or > would it be better to have the 6 of them in one RAID 10 array, and then > the remaining two in a separate RAID 1 array e.g. for having WAL log dir > on it’s own drives? This used to be done to separate WAL and data files onto separate disks, as the workloads are very different (WAL is almost entirely sequential writes, access to data files is often random). With spinning drives this made a huge difference as the WAL drives were doing just seq writes, but with SSDs it's not that important anymore. If you can do some testing, do it. I'd probably create a RAID10 on all 8 disks. > Secondly: Now what settings should I pay attention to when setting this > up, if I want it to have optimal write performance (cache behavior, write > back etc.)? I'm wondering whether the controller (H710) actually handles TRIM well or not. I know a lot of hardware controllers tend not to pass TRIM to the drives, which results in poor write performance after some time, but I've been unable to google anything about TRIM on H710. Tomas -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance