| From: | Matthew Kirkwood <matthew(at)hairy(dot)beasts(dot)org> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: WAL and commit_delay |
| Date: | 2001-02-19 13:29:00 |
| Message-ID: | Pine.LNX.4.10.10102191239300.9444-300000@sphinx.mythic-beasts.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sun, 18 Feb 2001, Tom Lane wrote:
> I think that there may be a performance advantage to pre-filling the
> logfile even so, assuming that file allocation info is stored in a
> Berkeley/McKusik-like fashion (note: I have no idea what ext2 or
> reiserfs actually do).
ext2 is a lot like [UF]FS. reiserfs is very different, but does
have similar hole semantics.
BTW, I have attached two patches which streamline log initialisation
a little. The first (xlog-sendfile.diff) adds support for Linux's
sendfile system call. FreeBSD and HP/UX have sendfile() too, but the
prototype is different. If it's interesting, someone will have to
come up with a configure test, as autoconf scares me.
The second removes a further three syscalls from the log init path.
There are a couple of things to note here:
* I don't know why link/unlink is currently preferred over
rename. POSIX offers strong guarantees on the semantics
of the latter.
* I have assumed that the close/rename/reopen stuff is only
there for the benefit of Windows users, and ifdeffed it
for everyone else.
Matthew.
| Attachment | Content-Type | Size |
|---|---|---|
| xlog-sendfile.diff | text/plain | 1.2 KB |
| xlog-streamline.diff | text/plain | 645 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sascha Schumann | 2001-02-19 13:42:09 | Re: PHP 4.0.4pl1 / Beta 5 |
| Previous Message | Larry Rosenman | 2001-02-19 13:23:46 | Re: PHP 4.0.4pl1 / Beta 5 |