Re: What is WAL used for?

From: Thierry Missimilly <THIERRY(dot)MISSIMILLY(at)BULL(dot)NET>
To: Cott Lang <cott(at)internetstaff(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: What is WAL used for?
Date: 2003-12-08 09:53:41
Message-ID: 3FD44A25.87BC677E@BULL.NET
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Cott Lang wrote:

> On Fri, 2003-12-05 at 02:40, Thierry Missimilly wrote:
>
> > With the data=writeback mode, I increase the TPS by 18% and dicrease the wait
> > I/O from 54% to 30%.
> > I did not change my filesystem to ext2 as I have to have to cancel the partition
> > and recreate all the database. Futhermore, i have understood that journaled
> > filesystem allowed better and faster fsck after a Power off crash and it is not
> > redundant with the WAL Crash recovery.
> > I think that "journaling" is at file system level and WAL is above in the
> > Database level. What happen if the xlog filesystem has been breakdown by a power
> > off. All the Data concisentcy done by PG will be lost. I hope that data stored
> > in the FS journal, can avoid that.
>
> What's the recommended method of changing an ext3 partition to
> data=writeback mode on RH9?
>

For exemple, with the root privilege :
mount -t ext3 -o data=writeback /dev/sdb1 /data1

or in /etc/fstab :
/dev/sdb1 /data1 ext3 data=writeback 0 0

>
> I tried the tune2fs -j method to set the default journal type and
> rebooted, but saw *no* performance differences, so I was wondering if
> setting the default actually put it in writeback mode.
>
> Does anyone know if there's an easy way to verify the mode, or if I'm
> setting it wrong ?
>

By default the mode is "ordered".
The command : mount returns how FS are mounted.

Thierry Missimilly

>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

Attachment Content-Type Size
THIERRY.MISSIMILLY.vcf text/x-vcard 327 bytes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Keith C. Perry 2003-12-08 10:20:47 Re: pgsql 7.4 on minimal environment
Previous Message Ian Barwick 2003-12-08 09:42:18 Re: Where to find information about implementing full-text-search