Re: Tuning for PostGreSQL Database

From: Simon J Mudd (sjmudd_at_pobox.com)
Date: 07/22/03

  • Next message: Lamont Lucas: "Re: sbwait state for loaded Apache server"
    To: freebsd-performance@freebsd.org
    Date: 22 Jul 2003 20:05:53 +0200
    
    

    jim@nasby.net ("Jim C. Nasby") writes:

    > > On Sat, 19 Jul 2003, Tom Samplonius wrote:
    > > > Softupdates on, async off. Softupdates is just a better async.
    > >
    > > postgresql fsync's all its files before returning from a commit in order
    > > to ensure durability, right? Does softupdates interfere with the
    > > functioning of sync(2)/fsync(2)?
    >
    > No, afaik it only fsync's the write-ahead-logs.

    Someone else mentioned Qmail. I use Postfix and I know the author
    relies on fsync semantics before confirming the acceptance of email.
    I'm sure Qmail (and sendmail, ...) does the same. They should do -
    the RFC requires this (that mail can't be lost once it is accepted for
    delivery).

    Therefore I think we are confusing 2 different issues. The effect of
    soft-updates (which tries to reorder writes to ensure FS recover is
    easier) and sync/fsync which only returns when the FS or file have
    been flushed to disk.

    I would guess that PostGreSQL uses fsync() and softupdates do not
    effect the fsync() semantics.

    Or am I missing something?

    Simon

    _______________________________________________
    freebsd-performance@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-performance
    To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org"


  • Next message: Lamont Lucas: "Re: sbwait state for loaded Apache server"

    Relevant Pages

    • Re: Tuning for PostGreSQL Database
      ... If softupdates changes ... postgresql server because postgresql counts on fsync in order to make its ... durability guarantees. ... your dirty buffers to be flushed to disk... ...
      (freebsd-performance)
    • Re: Tuning for PostGreSQL Database
      ... If softupdates changes ... >> postgresql server because postgresql counts on fsync in order to make its ... If softupdates breaks the semantics of sync/fsync it affects a lot more ... does this - reorders/delays sync/fsync - on writes within a file? ...
      (freebsd-performance)
    • Re: terrible performance in 6.1beta4
      ... "you may have to dedicate more memory to it" ... I don't know PostgreSQL much but I also has been recently running quite ... After comparing my config file to yours I see some differences: ... I suspect that the main difference in our configs is fsync setting ...
      (freebsd-questions)
    • Re: The journalling file system saga
      ... > disk, even with write caching disabled on the media. ... > things like PostgreSQL provided that the order of writes is preserved, ... fsyncworks as advertised with softupdates enabled so that shouldn't cause ...
      (freebsd-questions)
    • Re: Tuning for PostGreSQL Database
      ... Softupdates is just a better async. ... postgresql fsync's all its files before returning from a commit in order ... > Public consumption, yes. ...
      (freebsd-performance)