pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kurt Roeckx <Q@ping.be>
To: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mark Kirkwood <markir@paradise.net.nz>
Cc: pgsql-performance@postgresql.org, PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] fsync method checking
Date: Thu, 18 Mar 2004 21:26:21 +0100
Message-ID: <20040318202621.GB8330@ping.be> (raw)
In-Reply-To: <200403182009.i2IK9PJ24080@candle.pha.pa.us>
References: <20040318200359.GA8330@ping.be>
	<200403182009.i2IK9PJ24080@candle.pha.pa.us>

Here are my results on Linux 2.6.1 using cvs version 1.7.

Those times with > 20 seconds, you really hear the disk go crazy.

And I have the feeling something must be wrong.  Those results
are reproducible.


Kurt


Simple write timing:
        write                    0.139558

Compare fsync times on write() and non-write() descriptor:
(If the times are similar, fsync() can sync data written
 on a different descriptor.)
        write, fsync, close      8.249364
        write, close, fsync      8.356813

Compare one o_sync write to two:
        one 16k o_sync write    28.487650
        two 8k o_sync writes     2.310304

Compare file sync methods with one 8k write:
        (o_dsync unavailable)
        open o_sync, write       1.010688
        write, fdatasync        25.109604
        write, fsync,           26.051218

Compare file sync methods with 2 8k writes:
(The fastest should be used for wal_sync_method)
        (o_dsync unavailable)
        open o_sync, write       2.212223
        write, fdatasync        27.439907
        write, fsync,           27.772294




view thread (42+ messages)  latest in thread

Message-ID: <20040318202621.GB8330@ping.be>
Permalink:  ../20040318202621.GB8330@ping.be/
Also on:    postgresql.org/message-id/20040318202621.GB8330@ping.be

 · 

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: Q@ping.be, pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, markir@paradise.net.nz, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] fsync method checking
  In-Reply-To: <20040318202621.GB8330@ping.be>

* 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