pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: fsync method checking
Date: Thu, 18 Mar 2004 13:23:14 -0500
Message-ID: <4059E912.2050509@dunslane.net> (raw)
In-Reply-To: <200403181746.i2IHkDA00975@candle.pha.pa.us>
References: <200403181746.i2IHkDA00975@candle.pha.pa.us>



Bruce Momjian wrote:

>I have been poking around with our fsync default options to see if I can
>improve them.  One issue is that we never default to O_SYNC, but default
>to O_DSYNC if it exists, which seems strange.
>
>What I did was to beef up my test program and get it into CVS for folks
>to run.  What I found was that different operating systems have
>different optimal defaults.  On BSD/OS and FreeBSD, fdatasync/fsync was
>better, but on Linux, O_DSYNC/O_SYNC was faster.
>
>[snip]
>
>Linux 2.4.9:
>	
>

This is a pretty old kernel (I am writing from a machine running 2.4.22)

Maybe before we do this for Linux testing on a more modern kernel might 
be wise.

cheers

andrew




view thread (42+ messages)  latest in thread

Message-ID: <4059E912.2050509@dunslane.net>
Permalink:  ../4059E912.2050509@dunslane.net/
Also on:    postgresql.org/message-id/4059E912.2050509@dunslane.net

 · 

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: andrew@dunslane.net, pgsql-hackers@postgresql.org
  Subject: Re: fsync method checking
  In-Reply-To: <4059E912.2050509@dunslane.net>

* 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