Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B243064FC0D for ; Tue, 23 Sep 2008 16:00:57 -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 97883-03 for ; Tue, 23 Sep 2008 16:00:54 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail128140.authsmtp.co.uk (outmail128140.authsmtp.co.uk [62.13.128.140]) by postgresql.org (Postfix) with ESMTP id 873AB64FC22 for ; Tue, 23 Sep 2008 16:00:54 -0300 (ADT) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt2.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m8NJ0SLr049535; Tue, 23 Sep 2008 20:00:28 +0100 (BST) Received: from [192.168.0.3] (85-211-71-126.dyn.gotadsl.co.uk [85.211.71.126]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id m8NJ0MVx092036; Tue, 23 Sep 2008 20:00:24 +0100 (BST) Subject: Re: Choosing a filesystem From: Simon Riggs To: Bruce Momjian Cc: Merlin Moncure , david@lang.hm, Greg Smith , Guillaume Cottenceau , pgsql-performance@postgresql.org In-Reply-To: <200809231702.m8NH21118074@momjian.us> References: <200809231702.m8NH21118074@momjian.us> Content-Type: text/plain Date: Tue, 23 Sep 2008 20:01:15 +0100 Message-Id: <1222196475.4445.444.camel@ebony.2ndQuadrant> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Server-Quench: e2f8d00b-89a1-11dd-8155-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksacBtFagZbflxB HGQLW1xEUl17WWN/ aQIfZQBDYEtPQQJr TklLRE1QEQdtHhxP WxZgKBkPEU1GcXxw ZkAsX3ZYXgovdxB1 Fk5UR3AObDZhdWEe BBRFfwJRdR5Kfh5E YlUrV3QKMjRJBC9q VzwLEgofGg96HWx+ QgYKNlMUTg4CVjA9 Qx0ZDC4zEEht X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:1374/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Status: No virus detected - but ensure you scan with your own anti-virus system! 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/200 X-Sequence-Number: 31513 On Tue, 2008-09-23 at 13:02 -0400, Bruce Momjian wrote: > 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. No, the fsyncs still all happen in a tight window after we have issued the writes. There's no waits in between them at all. The delays we introduced are all in the write phase. Whether that is important or not depends upon OS parameter settings. -- Simon Riggs www.2ndQuadrant.com PostgreSQL Training, Services and Support