X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 05BF69FA5D2 for ; Thu, 15 Jun 2006 20:25:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 61184-10 for ; Thu, 15 Jun 2006 20:25:22 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mir3-fs.mir3.com (mail.mir3.com [65.208.188.100]) by postgresql.org (Postfix) with ESMTP id ED58D9FA160 for ; Thu, 15 Jun 2006 20:25:21 -0300 (ADT) Received: mir3-fs.mir3.com 172.16.1.11 from 172.16.2.68 172.16.2.68 via HTTP with MS-WebStorage 6.0.6249 Received: from archimedes.mirlogic.com by mir3-fs.mir3.com; 15 Jun 2006 16:25:17 -0700 Subject: Re: SAN performance mystery From: Mark Lewis To: Tom Lane Cc: Brian Hurt , Tim Allen , pgsql-performance@postgresql.org In-Reply-To: <1751.1150410284@sss.pgh.pa.us> References: <4491D61B.9040507@proximity.com.au> <4491D8DC.4070906@janestcapital.com> <1751.1150410284@sss.pgh.pa.us> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: MIR3, Inc. Date: Thu, 15 Jun 2006 16:25:17 -0700 Message-Id: <1150413917.31200.109.camel@archimedes> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-27) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/334 X-Sequence-Number: 19691 On Thu, 2006-06-15 at 18:24 -0400, Tom Lane wrote: > I agree with Brian's suspicion that the SATA drive isn't properly > fsync'ing to disk, resulting in bogusly high throughput. However, > ISTM a well-configured SAN ought to be able to match even the bogus > throughput, because it should be able to rely on battery-backed > cache to hold written blocks across a power failure, and hence should > be able to report write-complete as soon as it's got the page in cache > rather than having to wait till it's really down on magnetic platter. > Which is what the SATA drive is doing ... only it can't keep the promise > it's making for lack of any battery backup on its on-board cache. It really depends on your SAN RAID controller. We have an HP SAN; I don't remember the model number exactly, but we ran some tests and with the battery-backed write cache enabled, we got some improvement in write performance but it wasn't NEARLY as fast as an SATA drive which lied about write completion. The write-and-fsync latency was only about 2-3 times better than with no write cache at all. So I wouldn't assume that just because you've got a write cache on your SAN, that you're getting the same speed as fsync=off, at least for some cheap controllers. -- Mark Lewis