home contents changes options help subscribe edit (external edit)

It has been discussed to change FileStorages? use of fsync, both to fsync more often for increased data reliability and to call fsync less to increase speed. This proposal proposes to new settings to FileStorage, fsync-behaviour and fsync-interval:

fsync-behaviour: Determines when fsync is called. Default: single.

Options:

Single: Calls fsync once per transaction. Gives you reasonable data reliability in most cases. You should in a crash only lose one transaction.

Double: Calls fsync before marking transaction as complete as well as after marking it as complete. This setting is only useful if you have configured the complete storage chain (operating system, filesystem, drivers, controllers and disks) will not let fsync return until data is safely and completely written to disk. In most cases and without configuration of the complete storage chain, this setting will slow down FSStorage? without actually increasing the reliability of data written to disk.

Interval: Will call fsync only every couple of transactions, with the interval determined by the setting "fsync-interval". This is good for write-intensive applications where you don't mind loosing a couple of transactions if the computer should crash.

None: Will never call fsync. Good for applications of high write load where the data is not critical. Never ever use this setting on windows, as it on windows makes it highly likely that data will not be written to disk at all, and a crash could quite likely make you loose all your changes.

fsync-interval: A number that determines how many transactions can happen before fsync is called.



subject:
  ( 11 subscribers )