Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YxkmS-0008Jv-Jn for pgsql-admin@arkaria.postgresql.org; Wed, 27 May 2015 23:30:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YxkmS-0006KJ-4H for pgsql-admin@arkaria.postgresql.org; Wed, 27 May 2015 23:30:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxkdE-0004c3-88 for pgsql-admin@postgresql.org; Wed, 27 May 2015 23:21:04 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1YxkdB-0003x8-46 for pgsql-admin@postgresql.org; Wed, 27 May 2015 23:21:02 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Yxkd9-0007UF-LW; Wed, 27 May 2015 19:20:59 -0400 Date: Wed, 27 May 2015 19:20:59 -0400 From: Bruce Momjian To: "Graeme B. Bell" Cc: "pgsql-admin@postgresql.org" Subject: Re: raid writethrough mode (WT), ssds and your DB. (was Performances issues with SSD volume ?) Message-ID: <20150527232059.GA7962@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) 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 On Thu, May 21, 2015 at 11:21:49AM +0000, Graeme B. Bell wrote: > > Not using your raid controllers write cache then? Not sure just how > > important that is with SSDs these days, but if you've got a BBU set > > it to "WriteBack". Also change "Cache if Bad BBU" to "No Write Cache > > if Bad BBU" if you do that. > > I did quite a few tests with WB and WT last year. > > - WT should be OK with e.g. Intel SSDs. From memory I saw write > performance gains of about 20-30% with Crucial M500/M550 writes on a > Dell H710 RAID controller. BUT that controller didn't have WT fastpath > though which is absolutely essential to see substantial gains WT. I > expect with WT and a fastpath enabled RAID you'd see much higher > numbers, e.g. 100%+ higher IOPS. > > (So, if you don't have fastpath on your controller, you might as > well plan to leave WB on and just buy cheaper SSD drives rather than > expensive ones - the raid controller will be your choke point for > performance on WT and it's a source of risk). > > - WT with most SSDs will likely corrupt your postgres database the > first time you lose power. (on all the drives I've tested) > > - WB is the only safe option unless you have done lots of plug pull > tests on a drive that is guaranteed to protect data "in flight" during > power loss (Intel disks + maybe the new samsung pcie). I think you have WT (write-through) and WB (write-back) reversed above. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin