Re: fsync vs open_sync

From: Mark Kirkwood <markir(at)coretech(dot)co(dot)nz>
To: pgsql(at)mohawksoft(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: fsync vs open_sync
Date: 2004-08-10 00:23:55
Message-ID: 4118159B.2030605@coretech.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Just out of interest, what happens to the difference if you use *ext3*
(perhaps with data=writeback)

regards

Mark
pgsql(at)mohawksoft(dot)com wrote:

>I did a little test on the various options of fsync.
>...
>create table testndx (value integer, name varchar);
>create index testndx_val on testndx (value);
>
>for(int i=0; i < 1000000; i++)
>{
> printf_query( "insert into testndx (value, name) values ('%d', 'test')",
>random());
>
> // report here
>}
>
>
>Anyway, with fsync enabled using standard fsync(), I get roughly 300-400
>inserts per second. With fsync disabled, I get about 7000 inserts per
>second. When I re-enable fsync but use the open_sync option, I can get
>about 2500 inserts per second.
>
>(This is on Linux 2.4 kernel, ext2 file system)
>
>
>
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2004-08-10 00:49:53 Re: Beta Page on Developer's site is out of date
Previous Message Tom Lane 2004-08-10 00:22:11 Re: Tablespace issues (comment on ,moving indexes)