pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steinar H. Gunderson <sgunderson@bigfoot.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgresql Performance on an HP DL385 and
Date: Tue, 15 Aug 2006 23:00:54 -0400
Message-ID: <28555.1155697254@sss.pgh.pa.us> (raw)
In-Reply-To: <20060815222323.GA18180@uio.no>
References: <20060814170545.GG27928@pervasive.com>
	<20060814170902.GN2900@mathom.us>
	<20060815162926.GS27928@pervasive.com>
	<20060815172645.GU2900@mathom.us>
	<20060815183327.GC12834@mark.mielke.cc>
	<20060815190254.GW2900@mathom.us>
	<20060815193951.GA13695@mark.mielke.cc>
	<20060815205857.GY2900@mathom.us>
	<20060815213842.GA15210@mark.mielke.cc>
	<20060815222024.GV21363@pervasive.com>
	<20060815222323.GA18180@uio.no>

"Steinar H. Gunderson" <sgunderson@bigfoot.com> writes:
> On Tue, Aug 15, 2006 at 05:20:25PM -0500, Jim C. Nasby wrote:
>> This is only valid if the pre-allocation is also fsync'd *and* fsync
>> ensures that both the metadata and file data are on disk. Anyone
>> actually checked that? :)

> fsync() does that, yes. fdatasync() (if it exists), OTOH, doesn't sync the
> metadata.

Well, the POSIX spec says that fsync should do that ;-)

My guess is that most/all kernel filesystem layers do indeed try to sync
everything that the spec says they should.  The Achilles' heel of the
whole business is disk drives that lie about write completion.  The
kernel is just as vulnerable to that as any application ...

			regards, tom lane



view thread (70+ messages)  latest in thread

Message-ID: <28555.1155697254@sss.pgh.pa.us>
Permalink:  ../28555.1155697254@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28555.1155697254@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, sgunderson@bigfoot.com
  Subject: Re: Postgresql Performance on an HP DL385 and
  In-Reply-To: <28555.1155697254@sss.pgh.pa.us>

* 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