WAL documentation changes

Started by Michael Rennerover 17 years ago10 messageshackers
Jump to latest
#1Michael Renner
michael.renner@amd.co.at

Hi,

the comment WRT WAL recovery and FS journals [1]64b3d98baaf96afea815b0c37ff918f02fda11c9 is a bit misleading in
it's current form.

First, none of the general purpose filesystems I've seen so far do data
journalling per default, since it's a huge performance penalty, even for
non-RDBMS workloads. The feature you talk about is ext3 specific (and
should be pointed out as such) and only disables write ordering, meaning
that metadata and file content updates are not synchronized.

best regards,
Michael

[1]: 64b3d98baaf96afea815b0c37ff918f02fda11c9

#2Bruce Momjian
bruce@momjian.us
In reply to: Michael Renner (#1)
Re: WAL documentation changes

Michael Renner wrote:

Hi,

the comment WRT WAL recovery and FS journals [1] is a bit misleading in
it's current form.

First, none of the general purpose filesystems I've seen so far do data
journalling per default, since it's a huge performance penalty, even for
non-RDBMS workloads. The feature you talk about is ext3 specific (and
should be pointed out as such) and only disables write ordering, meaning
that metadata and file content updates are not synchronized.

You are right that my docs were misleading. I have improved them by
mentioning that it is _data_ flush that as part of journalling that can
be a problem, and documented that the mount option listed is
ext3-specific, not linux-specific.

Updated docs attached. Please let me know if I can improve it some
more.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachments:

/rtmp/difftext/x-diffDownload+14-14
#3Josh Berkus
josh@agliodbs.com
In reply to: Bruce Momjian (#2)
Re: WAL documentation changes

First, none of the general purpose filesystems I've seen so far do data
journalling per default, since it's a huge performance penalty, even for
non-RDBMS workloads. The feature you talk about is ext3 specific (and
should be pointed out as such) and only disables write ordering, meaning
that metadata and file content updates are not synchronized.

You are right that my docs were misleading. I have improved them by
mentioning that it is _data_ flush that as part of journalling that can
be a problem, and documented that the mount option listed is
ext3-specific, not linux-specific.

Actually, I think that some of the other journalling filesystems allow
data journalling (I know ReiserFS does), they just don't default to it.
For that matter, a few (ZFS in particular) have data journalling which
can't be turned off. While it's not a tuning parameter, users should be
warned that they'll take a performance hit from it.

--Josh

#4Bruce Momjian
bruce@momjian.us
In reply to: Josh Berkus (#3)
Re: WAL documentation changes

Josh Berkus wrote:

First, none of the general purpose filesystems I've seen so far do data
journalling per default, since it's a huge performance penalty, even for
non-RDBMS workloads. The feature you talk about is ext3 specific (and
should be pointed out as such) and only disables write ordering, meaning
that metadata and file content updates are not synchronized.

You are right that my docs were misleading. I have improved them by
mentioning that it is _data_ flush that as part of journalling that can
be a problem, and documented that the mount option listed is
ext3-specific, not linux-specific.

Actually, I think that some of the other journalling filesystems allow
data journalling (I know ReiserFS does), they just don't default to it.
For that matter, a few (ZFS in particular) have data journalling which
can't be turned off. While it's not a tuning parameter, users should be
warned that they'll take a performance hit from it.

So I assume you are saying the docs are fine now.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#5Tatsuo Ishii
t-ishii@sra.co.jp
In reply to: Bruce Momjian (#4)
Re: WAL documentation changes

Bruce,

In your document change which one can be placed on non-journalling
file system? data? wal? or both?

For me it seems it's not clear.
--
Tatsuo Ishii
SRA OSS, Inc. Japan

Show quoted text

Josh Berkus wrote:

First, none of the general purpose filesystems I've seen so far do data
journalling per default, since it's a huge performance penalty, even for
non-RDBMS workloads. The feature you talk about is ext3 specific (and
should be pointed out as such) and only disables write ordering, meaning
that metadata and file content updates are not synchronized.

You are right that my docs were misleading. I have improved them by
mentioning that it is _data_ flush that as part of journalling that can
be a problem, and documented that the mount option listed is
ext3-specific, not linux-specific.

Actually, I think that some of the other journalling filesystems allow
data journalling (I know ReiserFS does), they just don't default to it.
For that matter, a few (ZFS in particular) have data journalling which
can't be turned off. While it's not a tuning parameter, users should be
warned that they'll take a performance hit from it.

So I assume you are saying the docs are fine now.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#6Bruce Momjian
bruce@momjian.us
In reply to: Tatsuo Ishii (#5)
Re: WAL documentation changes

Tatsuo Ishii wrote:

Bruce,

In your document change which one can be placed on non-journalling
file system? data? wal? or both?

Both. I have updated the docs to mention this, patch attached.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

Attachments:

/rtmp/difftext/x-diffDownload+4-4
#7Kevin Grittner
Kevin.Grittner@wicourts.gov
In reply to: Bruce Momjian (#6)
Re: WAL documentation changes

Bruce Momjian <bruce@momjian.us> wrote:

Tatsuo Ishii wrote:

In your document change which one can be placed on non-journalling
file system? data? wal? or both?

Both. I have updated the docs to mention this, patch attached.

Did you mean to say that journaled file systems are *not* necessary?

-Kevin

#8Bruce Momjian
bruce@momjian.us
In reply to: Kevin Grittner (#7)
Re: WAL documentation changes

Kevin Grittner wrote:

Bruce Momjian <bruce@momjian.us> wrote:

Tatsuo Ishii wrote:

In your document change which one can be placed on non-journalling
file system? data? wal? or both?

Both. I have updated the docs to mention this, patch attached.

Did you mean to say that journaled file systems are *not* necessary?

Yes, not needed for database reliablity. The patch text was attached;
was it unclear?

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#9Kevin Grittner
Kevin.Grittner@wicourts.gov
In reply to: Bruce Momjian (#8)
Re: WAL documentation changes

Bruce Momjian <bruce@momjian.us> wrote:

Kevin Grittner wrote:

Did you mean to say that journaled file systems are *not*

necessary?

Yes, not needed for database reliablity. The patch text was

attached;

was it unclear?

I think you accidentally left out the word "not".

-Kevin

#10Bruce Momjian
bruce@momjian.us
In reply to: Kevin Grittner (#9)
Re: WAL documentation changes

Kevin Grittner wrote:

Bruce Momjian <bruce@momjian.us> wrote:

Kevin Grittner wrote:

Did you mean to say that journaled file systems are *not*

necessary?

Yes, not needed for database reliablity. The patch text was

attached;

was it unclear?

I think you accidentally left out the word "not".

Oops, right, added. Good catch. Warping that sentence into something
that allowed the mention of WAL and data files was obviously too much
for me. ;-)

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +