pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: markw@osdl.org
Cc: manfred@colorfullife.com
Cc: tgl@sss.pgh.pa.us
Cc: josh@agliodbs.com
Cc: Q@ping.be
Cc: markir@paradise.net.nz
Cc: pgsql-performance@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] fsync method checking
Date: Thu, 25 Mar 2004 13:52:56 -0500 (EST)
Message-ID: <200403251852.i2PIquv29582@candle.pha.pa.us> (raw)
In-Reply-To: <200403251716.i2PHGh222327@mail.osdl.org>

markw@osdl.org wrote:
> > I've made a test run that compares fsync and fdatasync: The performance 
> > was identical:
> > - with fdatasync:
> > 
> > http://khack.osdl.org/stp/290607/
> > 
> > - with fsync:
> > http://khack.osdl.org/stp/290483/
> > 
> > I don't understand why. Mark - is there a battery backed write cache in 
> > the raid controller, or something similar that might skew the results? 
> > The test generates quite a lot of wal traffic - around 1.5 MB/sec. 
> > Perhaps the writes are so large that the added overhead of syncing the 
> > inode is not noticable?
> > Is the pg_xlog directory on a seperate drive?
> > 
> > Btw, it's possible to request such tests through the web-interface, see
> > http://www.osdl.org/lab_activities/kernel_testing/stp/script_param.html
> 
> We have 2 Adaptec 2200s controllers, without the battery backed add-on,
> connected to four 10-disk arrays in those systems.  I can't think of
> anything off hand that would skew the results.
> 
> The pg_xlog directory is not on a separate drive.  I haven't found the
> best way to lay out of the drives on those systems yet, so I just have
> everything on a 28 drive lvm2 volume.

We don't actually extend the WAL file during writes (preallocated), and
the access/modification timestamp is only in seconds, so I wonder of the
OS only updates the inode once a second.  What else would change in the
inode more frequently than once a second?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (42+ messages)  latest in thread

Message-ID: <200403251852.i2PIquv29582@candle.pha.pa.us>
Permalink:  ../200403251852.i2PIquv29582@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200403251852.i2PIquv29582@candle.pha.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: pgman@candle.pha.pa.us, markw@osdl.org, manfred@colorfullife.com, tgl@sss.pgh.pa.us, josh@agliodbs.com, Q@ping.be, markir@paradise.net.nz, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] fsync method checking
  In-Reply-To: <200403251852.i2PIquv29582@candle.pha.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