Re: 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: win32 performance - fsync question
Date: 2005-02-18 16:28:09
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE4768F8@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32

> 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 Content-Type Size
o_sync.patch application/octet-stream 3.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Doug McNaught 2005-02-18 16:32:02 Re: sigint psql
Previous Message Thomas Hallgren 2005-02-18 16:19:22 Re: SPI_finish and RegisterExprContextCallback

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Magnus Hagander 2005-02-20 16:54:02 Re: [pgsql-hackers-win32] win32 performance - fsync question
Previous Message Merlin Moncure 2005-02-18 15:11:18 Re: win32 performance - fsync question