xfs
[Top] [All Lists]

Re: XFS for postgres databases?

To: Feizhou <feizhou@xxxxxxxxxxxxx>
Subject: Re: XFS for postgres databases?
From: Andi Kleen <ak@xxxxxx>
Date: Thu, 13 May 2004 16:51:21 +0200
Cc: jwbaker@xxxxxxx, linux-xfs@xxxxxxxxxxx
In-reply-to: <40A22CA8.5090300@linuxmail.org> (feizhou@linuxmail.org's message of "Wed, 12 May 2004 21:54:48 +0800")
References: <200405121300.14866.stevew@catalyst.net.nz> <1084332608.11308.3.camel@noodles> <40A22CA8.5090300@linuxmail.org>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux)
Feizhou <feizhou@xxxxxxxxxxxxx> writes:
>
> Why would you put a database on a meta data journaling only filesystem?

Databases do their own journaling. Doing another journaling
layer for the data in the file system is just a waste of IO bandwidth.

In addition the data journaling in the file system is quite useless
for this because the fs doesn't have any idea about the transaction
boundaries the database needs. The database tells the file system
about them using fsync() or synchronous writes, and there is not much
difference between a data journaling and not data journaling fs for this -
both will flush the blocks to disk.

-Andi


<Prev in Thread] Current Thread [Next in Thread>