From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Dawid Kuroczko <qnex42@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: ext3 journalling type
Date: Mon, 8 Nov 2004 09:04:45 -0500 (EST)
Message-ID: <200411081404.iA8E4jK27330@candle.pha.pa.us> (raw)
In-Reply-To: <758d5e7f04110804263efdf475@mail.gmail.com>
Dawid Kuroczko wrote:
> The ext3fs allows to selet type of journalling to be used with
> filesystem. Journalling pretty much "mirrors" the work of WAL
> logging by PostgreSQL... I wonder which type of journalling
> is best for PgSQL in terms of performance.
> Choices include:
> journal
> All data is committed into the journal prior to being
> written into the main file system.
> ordered
> This is the default mode. All data is forced directly
> out to the main file system prior to its metadata being
> committed to the journal.
> writeback
> Data ordering is not preserved - data may be written into
> the main file system after its metadata has been commit-
> ted to the journal. This is rumoured to be the highest-
> throughput option. It guarantees internal file system
> integrity, however it can allow old data to appear in
> files after a crash and journal recovery.
>
> 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?
Yes. I have seen benchmarks that say writeback is fastest but I don't
have any numbers handy.
--
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: pgman@candle.pha.pa.us, qnex42@gmail.com
Subject: Re: ext3 journalling type
In-Reply-To: <200411081404.iA8E4jK27330@candle.pha.pa.us>
References: <758d5e7f04110804263efdf475@mail.gmail.com> <200411081404.iA8E4jK27330@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