From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Wong <markw@osdl.org>
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Neil Conway <neilc@samurai.com>
Cc: Guy Thornley <guy@esphion.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: O_DIRECT setting
Date: Wed, 29 Sep 2004 23:03:38 -0400
Message-ID: <8906.1096513418@sss.pgh.pa.us> (raw)
In-Reply-To: <20040929184510.B15723@osdl.org>
References: <200409231335.i8NDZjR21993@candle.pha.pa.us>
<26123.1095951461@sss.pgh.pa.us>
<20040929184510.B15723@osdl.org>
Mark Wong <markw@osdl.org> writes:
> I talked to Jan a little about this during OSCon since Linux filesystems
> (ext2, ext3, etc) let you use O_DIRECT. He felt the only place where
> PostgreSQL may benefit from this now, without managing its own buffer first,
> would be with the log writer. I'm probably going to get this wrong, but
> he thought it would be interesting to try an experiment by taking X number
> of pages to be flushed, sort them (by age? where they go on disk?) and
> write them out.
Hmm. Most of the time the log writer has little choice about page write
order --- certainly if all your transactions are small it's not going to
have any choice. I think this would mainly be equivalent to O_SYNC with
the extra feature of stopping the kernel from buffering the WAL data in
its own buffer cache. Which is probably useful, but I doubt it's going
to make a huge difference.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, markw@osdl.org, pgman@candle.pha.pa.us, neilc@samurai.com, guy@esphion.com
Subject: Re: O_DIRECT setting
In-Reply-To: <8906.1096513418@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox