Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AEACA475E04 for ; Mon, 9 Sep 2002 19:43:07 -0400 (EDT) Received: from mail.tgd.net (mail.tgd.net [209.81.25.10]) by postgresql.org (Postfix) with ESMTP id 3B96C475C60 for ; Mon, 9 Sep 2002 19:43:07 -0400 (EDT) Received: by mail.tgd.net (Postfix, from userid 1001) id D8B2120F01; Mon, 9 Sep 2002 16:43:04 -0700 (PDT) Date: Mon, 9 Sep 2002 16:43:04 -0700 From: Sean Chittenden To: Tom Lane Cc: Gaetano Mendola , pgsql-admin@postgresql.org Subject: Re: fsync or fdatasync Message-ID: <20020909234304.GK26147@ninja1.internal> References: <11753.1031590251@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HzaOE8X7KzPzAQEl" Content-Disposition: inline In-Reply-To: <11753.1031590251@sss.pgh.pa.us> User-Agent: Mutt/1.4i X-PGP-Key: finger seanc@FreeBSD.org X-PGP-Fingerprint: 6CEB 1B06 BFD3 70F6 95BE 7E4D 8E85 2E0A 5F5B 3ECB X-Web-Homepage: http://sean.chittenden.org/ X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/96 X-Sequence-Number: 5635 --HzaOE8X7KzPzAQEl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > apparently the default value for wal_sync_method is fsync, > > and apparently the best method is fdatasync. >=20 > Best on what platform, and according to what evidence? >=20 > We'll be glad to consider changing the default for a specific platform > if we have a reasonably convincing argument that the other value is > better. So far, not much study has been done of which method is best > on which platforms (and under what load conditions). heh, just a quick note: I had one of FreeBSD's kernel guru's point out that fsync() on linux is a no-op. I haven't had that src tree in years so I can't confirm, but I'm inclined to believe him. Just an FYI. -sc --=20 Sean Chittenden --HzaOE8X7KzPzAQEl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: Sean Chittenden iD8DBQE9fTIIjoUuCl9bPssRAoxbAKC0ygaLtU8RB1M0iNsuJnAk2jQvswCghUBk 109gwmTVN0gjBfHUOeMvM/w= =MGOR -----END PGP SIGNATURE----- --HzaOE8X7KzPzAQEl--