Re: mmap for zeroing WAL log - Mailing list pgsql-hackers

From Tom Lane
Subject Re: mmap for zeroing WAL log
Date
Msg-id 13140.983312703@sss.pgh.pa.us
Whole thread Raw
In response to mmap for zeroing WAL log  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: mmap for zeroing WAL log  (Matthew Kirkwood <matthew@hairy.beasts.org>)
List pgsql-hackers
Matthew Kirkwood <matthew@hairy.beasts.org> writes:
> I had assumed that the overhead would come from synchronous
> metadata incurring writes of at least the inode, block bitmap
> and probably an indirect block for each syscall.

No Unix that I've ever heard of forces metadata to disk after each
"write" call; anyone who tried it would have abysmal performance.
That's what fsync and the syncer daemon are for.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: regression.out and regression.diff
Next
From: Matthew Kirkwood
Date:
Subject: Re: mmap for zeroing WAL log