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

test_fsync on MinGW(win32)

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: test_fsync on MinGW(win32)
Date: 2006-10-12 16:29:52
Message-ID: 063c01c6ee1b$a4d15df0$a543040a@wiseknot.local (view raw, whole thread or download thread mbox)
Lists: pgsql-patches

I wanted to see this difference. It is somewhat ad hoc.
However, It is more effective than it doesn't show it at all.

-- MinGW(win32) --
$ test_fsync
Simple write timing:
        write                    3.644000

Compare fsync times on write() and non-write() descriptor:
(If the times are similar, fsync() can sync data written
 on a different descriptor.)
        write, fsync, close     40.543000
        write, close, fsync     47.033000

Compare one o_sync write to two:
        (o_sync unavailable)  
        open o_dsync, write      0.094000

        (fdatasync unavailable)
        write, fsync,           26.700000

Compare file sync methods with 2 8k writes:
        open o_dsync, write      0.203000
        (fdatasync unavailable)
        write, fsync,           27.920000

Hiroshi Saito

Attachment: test_fsync_patch
Description: application/octet-stream (3.3 KB)


pgsql-patches by date

Next:From: Peter EisentrautDate: 2006-10-12 17:17:52
Subject: Re: [GENERAL] ISO week dates
Previous:From: Hiroshi SaitoDate: 2006-10-12 15:36:52
Subject: Re: warning: "min" redefined of qsort.

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