pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Greg Smith <greg@2ndquadrant.com>
To: Scott Carey <scott@richrelevance.com>
Cc: Marti Raudsepp <marti@juffo.org>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Defaulting wal_sync_method to fdatasync on Linux for 9.1?
Date: Mon, 08 Nov 2010 17:12:57 -0500
Message-ID: <4CD875E9.30207@2ndquadrant.com> (raw )
In-Reply-To: <9D7DB2F2-683B-480C-B781-8D282A280E35@richrelevance.com >
References: <AANLkTi=n3zxiLNFhbpiN=JPQPwB=BhXf9iepw1KOEs8U@mail.gmail.com >
<4CCDCAA3.4050805@2ndquadrant.com >
<201011010010.28724.andres@anarazel.de >
<4CD472CC.80006@2ndquadrant.com >
<AANLkTinEAmKDz7x356bgX=-6x7zpjK3bB0hYAmKvYHB9@mail.gmail.com >
<4CD47FCD.6010106@2ndquadrant.com >
<AANLkTimhNzer1TOEnL55P-Un9TPp8fAeyOzX09259RxN@mail.gmail.com >
<4CD737C1.9070502@2ndquadrant.com >
<AANLkTinZ6Vw58v9_7tSPox-f1nmCyV1K4XOxuaJiDkgo@mail.gmail.com >
<9D7DB2F2-683B-480C-B781-8D282A280E35@richrelevance.com >
Scott Carey wrote:
> Im my opinion, the burden of proof lies with those contending that the default value should _change_ from fdatasync to O_DSYNC on linux. If the default changes, all power-fail testing and other reliability tests done prior on a hardware configuration may become invalid without users even knowing.
>
This seems to be ignoring the fact that unless you either added a
non-volatile cache or specifically turned off all write caching on your
drives, the results of all power-fail testing done on earlier versions
of Linux was that it failed. The default configuration of PostgreSQL on
Linux has been that any user who has a simple SATA drive gets unsafe
writes, unless they go out of their way to prevent them.
Whatever newer kernels do by default cannot be worse. The open question
is whether it's still broken, in which case we might as well favor the
known buggy behavior rather than the new one, or whether everything has
improved enough to no longer be unsafe with the new defaults.
--
Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD
PostgreSQL Training, Services and Support www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books
view thread (46+ messages) latest in thread
Message-ID: <4CD875E9.30207@2ndquadrant.com>
Permalink: ../4CD875E9.30207@2ndquadrant.com/
Also on: postgresql.org/message-id/4CD875E9.30207@2ndquadrant.com
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: greg@2ndquadrant.com, scott@richrelevance.com, marti@juffo.org, andres@anarazel.de
Subject: Re: Defaulting wal_sync_method to fdatasync on Linux for 9.1?
In-Reply-To: <4CD875E9.30207@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox