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

Re: win32 performance - fsync question

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Magnus Hagander <mha(at)sollentuna(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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-27 00:54:00
Message-ID: 200502270054.j1R0s0822782@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32
Patch applied.  Thanks.

I assume this is not approprate for 8.0.X.

---------------------------------------------------------------------------


Magnus Hagander wrote:
> > 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

Content-Description: o_sync.patch

[ Attachment, skipping... ]

> 
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

Responses

pgsql-hackers by date

Next:From: Bruce MomjianDate: 2005-02-27 00:55:40
Subject: Re: [HACKERS] UTF8 or Unicode
Previous:From: lsunleyDate: 2005-02-26 23:56:59
Subject: Re: [HACKERS] UTF8 or Unicode

pgsql-hackers-win32 by date

Next:From: Michael PaesoldDate: 2005-02-27 10:47:15
Subject: Re: win32 performance - fsync question
Previous:From: Tom LaneDate: 2005-02-25 19:17:42
Subject: Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32

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