Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7BC0D64FC2C for ; Tue, 23 Sep 2008 14:02:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63501-04 for ; Tue, 23 Sep 2008 14:02:14 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id CB81264FC29 for ; Tue, 23 Sep 2008 14:02:13 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id m8NH21118074; Tue, 23 Sep 2008 13:02:01 -0400 (EDT) From: Bruce Momjian Message-Id: <200809231702.m8NH21118074@momjian.us> Subject: Re: Choosing a filesystem In-Reply-To: To: Merlin Moncure Date: Tue, 23 Sep 2008 13:02:01 -0400 (EDT) CC: david@lang.hm, Greg Smith , Guillaume Cottenceau , pgsql-performance@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/199 X-Sequence-Number: 31512 Merlin Moncure wrote: > > although for postgres the thing that you are doing the fsync on is the WAL > > log file. that is a single (usually) contiguous file. As such it is very > > efficiant to write large chunks of it. so while you will degrade from the > > battery-only mode, the fact that the controller can flush many requests > > worth of writes out to the WAL log at once while you fill the cache with > > them one at a time is still a significant win. > > The heap files have to be synced as well during checkpoints, etc. True, but as of 8.3 those checkpoint fsyncs are spread over the interval between checkpoints. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +