Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: [HACKERS] win32 performance - fsync question


  • From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
  • To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • Cc: <pgsql-hackers(at)postgresql(dot)org>, <pgsql-hackers-win32(at)postgresql(dot)org>, "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
  • Subject: Re: [HACKERS] win32 performance - fsync question
  • Date: Fri, 18 Feb 2005 17:28:09 +0100
  • Message-id: <6BCB9D8A16AC4241919521715F4D8BCE4768F8(at)algol(dot)sollentuna(dot)se>

> Magnus prepared a trivial patch which added the O_SYNC flag 
> for windows and mapped it to FILE_FLAG_WRITE_THROUGH in 
> win32_open.c. 

Attached is this trivial patch. As Merlin says, it needs some more
reliability testing. But the numbers are at least reasonable - it
*seems* like it's doing the right thing (as long as you turn off write
cache). And it's certainly a significant performance increase - it
brings the speed almost up to the same as linux.


//Magnus

Attachment: o_sync.patch
Description: o_sync.patch



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group