Re: ext3 journalling type

From: "Matt Clark" <matt(at)ymogen(dot)net>
To: "'Dawid Kuroczko'" <qnex42(at)gmail(dot)com>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: ext3 journalling type
Date: 2004-11-08 15:14:04
Message-ID: 000d01c4c5a5$96202020$8300a8c0@solent
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

> Am I right to assume that "writeback" is both fastest and at
> the same time as safe to use as ordered? Maybe any of you
> did some benchmarks?

It should be fastest because it is the least overhead, and safe because
postgres does it's own write-order guaranteeing through fsync(). You should
also mount the FS with the 'noatime' option.

But.... For some workloads, there are tests showing that 'data=journal' can
be the fastest! This is because although the data is written twice (once to
the journal, and then to its real location on disk) in this mode data is
written _sequentially_ to the journal, and later written out to its
destination, which may be at a quieter time.

There's a discussion (based around 7.2) here:
http://www.kerneltraffic.org/kernel-traffic/kt20020401_160.txt

M

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Mark Wong 2004-11-08 16:29:59 Re: ext3 journalling type
Previous Message Bruce Momjian 2004-11-08 14:04:45 Re: ext3 journalling type