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 6B7889FA5C8 for ; Wed, 14 Jun 2006 18:55:00 -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 77797-04 for ; Wed, 14 Jun 2006 18:54:49 -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 247849FA3D7 for ; Wed, 14 Jun 2006 18:54:49 -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; 14 Jun 2006 14:54:45 -0700 Subject: Re: Postgres fsync off (not needed) with NetApp From: Mark Lewis To: Dan Gorman Cc: pgsql-performance@postgresql.org In-Reply-To: <9A377C54-361D-4F01-BF7A-7632FBA3453C@hi5.com> References: <9A377C54-361D-4F01-BF7A-7632FBA3453C@hi5.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: MIR3, Inc. Date: Wed, 14 Jun 2006 14:54:45 -0700 Message-Id: <1150322085.31200.39.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/280 X-Sequence-Number: 19637 No. You need fsync on in order to force the data to get TO the NetApp at the right time. With fsync off, the data gets cached in the operating system. -- Mark Lewis On Wed, 2006-06-14 at 14:48 -0700, Dan Gorman wrote: > All, > So I thought I'd pose this question: > > If I have a pg database attached to a powervault (PV) with just an > off-the-shelf SCSI card I generally want fsync on to prevent data > corruption in case the PV should loose power. > However, if I have it attached to a NetApp that ensures data writes > to via the NVRAM can I safely turn fsync off to gain additional > performance? > > Best Regards, > Dan Gorman > > > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster