pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pgsql@mohawksoft.com
To: Merlin Moncure <merlin.moncure@rcsonline.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: [HACKERS] fsync vs open_sync
Date: Tue, 10 Aug 2004 11:54:28 -0400 (EDT)
Message-ID: <15691.64.119.142.34.1092153268.squirrel@mail.mohawksoft.com> (raw)
In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3412A7446@Herge.rcsinc.local>
References: <6EE64EF3AB31D5448D0007DD34EEB3412A7446@Herge.rcsinc.local>

>> 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.
>
> You are getting 300-400 inserts/sec with fsync on?  If you don't mind me
> asking, what's your hardware?  (also, have you checked fsync on #s with
> the new bgwriter in 7.5?)
>

300 inserts persecond with fsync on using fdatasync. 2500 inserts per
second with fsync on using open_sync.

[mwoodward@penguin-021 mwoodward]$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Xeon(TM) CPU 2.40GHz
stepping        : 5
cpu MHz         : 2399.373
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
bogomips        : 4784.12

Linux node1 2.4.25 #1 Mon Mar 22 13:33:41 EST 2004 i686 i686 i386 GNU/Linux

    ide2: BM-DMA at 0xc400-0xc407, BIOS settings: hde:pio, hdf:pio
hde: Maxtor 6Y200P0, ATA DISK drive
hde: attached ide-disk driver.
hde: host protected area => 1
hde: 398297088 sectors (203928 MB) w/7936KiB Cache, CHS=24792/255/63,
UDMA(100)

PDC20268: IDE controller at PCI slot 06:05.0




view thread (20+ messages)  latest in thread

Message-ID: <15691.64.119.142.34.1092153268.squirrel@mail.mohawksoft.com>
Permalink:  ../15691.64.119.142.34.1092153268.squirrel@mail.mohawksoft.com/
Also on:    postgresql.org/message-id/15691.64.119.142.34.1092153268.squirrel@mail.mohawksoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pgsql@mohawksoft.com, merlin.moncure@rcsonline.com
  Subject: Re: [HACKERS] fsync vs open_sync
  In-Reply-To: <15691.64.119.142.34.1092153268.squirrel@mail.mohawksoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox