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

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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: o_sync.patch
Description: application/octet-stream (3.2 KB)

Responses

pgsql-hackers by date

Next:From: Doug McNaughtDate: 2005-02-18 16:32:02
Subject: Re: sigint psql
Previous:From: Thomas HallgrenDate: 2005-02-18 16:19:22
Subject: Re: SPI_finish and RegisterExprContextCallback

pgsql-hackers-win32 by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group