> > ... most file systems can't process fsync's
> > simultaneous with other writes, so those writes block because the file
> > system grabs its own internal locks.
> 
> Oh?  That would be a serious problem, but I've never heard that asserted
> before.  Please provide some evidence.
> 
> On a filesystem that does have that kind of problem, can't you avoid it
> just by using O_DSYNC on the WAL files?

To make this competitive, the WAL writes would need to be improved to 
do more than one block (up to 256k or 512k per write) with one write call 
(if that much is to be written for this tx to be able to commit).
This should actually not be too difficult since the WAL buffer is already 
contiguous memory.

If that is done, then I bet O_DSYNC will beat any other config we currently 
have.

With this, a separate disk for WAL and large transactions you shoud be able 
to see your disks hit the max IO figures they are capable of :-)

Andreas

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to