Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yxyqw-0008Dr-Ta for pgsql-admin@arkaria.postgresql.org; Thu, 28 May 2015 14:32:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yxyqw-0007AW-8l for pgsql-admin@arkaria.postgresql.org; Thu, 28 May 2015 14:32:10 +0000 Received: from makus.postgresql.org ([174.143.35.229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxymD-0005cg-RF for pgsql-admin@postgresql.org; Thu, 28 May 2015 14:27:17 +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 1YxymB-0004Bn-4B for pgsql-admin@postgresql.org; Thu, 28 May 2015 14:27:16 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1Yxym9-0008Me-Vf; Thu, 28 May 2015 10:27:13 -0400 Date: Thu, 28 May 2015 10:27:13 -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: <20150528142713.GA18209@momjian.us> References: <20150527232059.GA7962@momjian.us> <5F6C17BC-7487-4E24-B322-39FEC6373C92@skogoglandskap.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5F6C17BC-7487-4E24-B322-39FEC6373C92@skogoglandskap.no> 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 28, 2015 at 01:37:48PM +0000, Graeme B. Bell wrote: > Hi Bruce > > I'm *extremely* certain of what I say when I say WB+BBU=good and direct WT=bad. It is my understanding that write-through is always safe as it writes through to the layer below and waits for acnoledgement. Write-back doesn't, so when you say: > WT should be OK with e.g. Intel SSDs. I assume you mean Write-Back is OK because the drive has a BBU, while Write-Through is always safe. You also say: > >> - WT with most SSDs will likely corrupt your postgres database the > >> first time you lose power. (on all the drives I've tested) which contradicts what you said above, and I assume you mean write-back here. -- 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