Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 98644475E52 for ; Sat, 25 Jan 2003 18:21:54 -0500 (EST) Received: from mail2.mediadesign.nl (md2.mediadesign.nl [212.19.205.67]) by postgresql.org (Postfix) with SMTP id 7DC55475E14 for ; Sat, 25 Jan 2003 18:21:53 -0500 (EST) Received: (qmail 13771 invoked by uid 666); 25 Jan 2003 23:21:54 -0000 Date: Sun, 26 Jan 2003 00:21:54 +0100 From: pgsql.spam@vinz.nl To: pgsql-performance@postgresql.org Subject: Re: Mount options for Ext3? Message-ID: <20030125232154.GK14898@md2.mediadesign.nl> References: <200301241120.14404.josh@agliodbs.com> <20030125003011.GA28252@filer> <28176.1043457408@sss.pgh.pa.us> <20030125021159.GC28252@filer> <1260.1043463535@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1260.1043463535@sss.pgh.pa.us> User-Agent: Mutt/1.3.28i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/334 X-Sequence-Number: 981 On 2003-01-24 21:58:55 -0500, Tom Lane wrote: > The key assumption we are making about the filesystem's behavior is that > writes scheduled by the sync() will occur before the pg_control write > that's issued after it. People have occasionally faulted this algorithm > by quoting the sync() man page, which saith (in the Gospel According To > HP) > > The writing, although scheduled, is not necessarily complete upon > return from sync. > > This, however, is not a problem in itself. What we need to know is > whether the filesystem will allow writes issued after the sync() to > complete before those "scheduled" by the sync(). > Certain linux 2.4.* kernels (not sure which, newer ones don't seem to have it) have the following kernel config option: Use the NOOP Elevator (WARNING) CONFIG_BLK_DEV_ELEVATOR_NOOP If you are using a raid class top-level driver above the ATA/IDE core, one may find a performance boost by preventing a merging and re-sorting of the new requests. If unsure, say N. If one were certain his OS wouldn't do any re-ordering of writes, would it be safe to run with fsync = off? (not that I'm going to try this, but I'm just curious) Vincent van Leeuwen Media Design