public inbox for [email protected]
help / color / mirror / Atom feedRe: [PATCHES] [PERFORM] Direct I/O issues
2+ messages / 2 participants
[nested] [flat]
* Re: [PATCHES] [PERFORM] Direct I/O issues
@ 2006-11-25 09:34 Greg Smith <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Greg Smith @ 2006-11-25 09:34 UTC (permalink / raw)
To: [email protected]
On Fri, 24 Nov 2006, Bruce Momjian wrote:
> OK, I modified test_fsync.c by copying the defines from xlog.c, and
> fixed the O_DIRECT alignment and check write()/fsync().
I just tested your new test_fsync as included in the 8.2rc1, and it's
working perfectly for me now on Linux. All the O_SYNC writes using
O_DIRECT are reporting realistic timings. I'm happy that this code is
working as it should and appreciate the quick response. I still think the
wal_sync_method documentation deserves an update noting that O_DIRECT is
used when available with the sync write methods.
--
* Greg Smith [email protected] http://www.gregsmith.com Baltimore, MD
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [HACKERS] [PATCHES] [PERFORM] Direct I/O issues
@ 2007-02-08 03:57 Bruce Momjian <[email protected]>
parent: Greg Smith <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2007-02-08 03:57 UTC (permalink / raw)
To: Greg Smith <[email protected]>; +Cc: pgsql-docs
Greg Smith wrote:
> On Fri, 24 Nov 2006, Bruce Momjian wrote:
>
> > OK, I modified test_fsync.c by copying the defines from xlog.c, and
> > fixed the O_DIRECT alignment and check write()/fsync().
>
> I just tested your new test_fsync as included in the 8.2rc1, and it's
> working perfectly for me now on Linux. All the O_SYNC writes using
> O_DIRECT are reporting realistic timings. I'm happy that this code is
> working as it should and appreciate the quick response. I still think the
> wal_sync_method documentation deserves an update noting that O_DIRECT is
> used when available with the sync write methods.
O_DIRECT mention added, and backpatched to 8.2.X.
--
Bruce Momjian <[email protected]> http://momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
Attachments:
[text/x-diff] /rtmp/diff (776B, 2-%2Frtmp%2Fdiff)
download | inline diff:
Index: doc/src/sgml/config.sgml
===================================================================
RCS file: /cvsroot/pgsql/doc/src/sgml/config.sgml,v
retrieving revision 1.108
diff -c -c -r1.108 config.sgml
*** doc/src/sgml/config.sgml 1 Feb 2007 00:28:16 -0000 1.108
--- doc/src/sgml/config.sgml 8 Feb 2007 03:52:01 -0000
***************
*** 1385,1390 ****
--- 1385,1391 ----
Not all of these choices are available on all platforms.
The default is the first method in the above list that is supported
by the platform.
+ The <literal>open_</>* options also use <literal>O_DIRECT</> if available.
This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line.
</para>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-02-08 03:57 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-11-25 09:34 Re: [PATCHES] [PERFORM] Direct I/O issues Greg Smith <[email protected]>
2007-02-08 03:57 ` Bruce Momjian <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox