Subject | RE: [firebird-support] Forced Write comes back |
---|---|
Author | Leyne, Sean |
Post date | 2008-01-24T05:48:34Z |
Maya,
Forced Writes on **Windows** has ALWAYS worked and is still STRONGLY
recommended.
Forced Writes on **Linux** has NEVER worked due to a known (but very
hard to find in the bug list) bug in the Linux Kernel.
v2.1 RC1 is the first build/release which has the necessary code changes
to enable the functionality. (I'm not sure if the change has been or
will be backported to earlier versions)
ensure that writes are flushed.
The real performance impact can be mitigated by a good disk controller
with write-back cache -- to the point that it is not even noticeable.
Forced Writes, though, are REQUIRED in order to **absolutely protect**
against database corruption.
Without Forced Writes, corruptions can and will easily occur on Windows
in the event of a server shutdown/restart while the database is active,
and occasionally on Linux (the OS is better in this regard).
Sean
> Ann Wrote:but
> >For what little it's worth, fifteen years ago, setting forced writes
> >on had a significant effect on performance on Solaris, AIX, HP/UX,
> >and DG/UX. That's why it's an option.
>
> .. and we have been telling all our users (all on FB 1.5 on Windows)
> they MUST switch forced writes on to help prevent data corruptions,
> some of them refuse to, swearing it is too slow to use if forcedwrites
> are off!I think clarification is required.
>
> So A. a lot of checking he forced writes option after reports of data
> corruption, and B. a lot of arguments over speed for nothing ;-P
Forced Writes on **Windows** has ALWAYS worked and is still STRONGLY
recommended.
Forced Writes on **Linux** has NEVER worked due to a known (but very
hard to find in the bug list) bug in the Linux Kernel.
v2.1 RC1 is the first build/release which has the necessary code changes
to enable the functionality. (I'm not sure if the change has been or
will be backported to earlier versions)
> Question: will FB 2.0 (where forced writes is now working) actuallyhave
> any effect on either speed or database corruption? Or is the effectBy definition Forced Writes can slow down performance, since the OS will
> negligible..?
ensure that writes are flushed.
The real performance impact can be mitigated by a good disk controller
with write-back cache -- to the point that it is not even noticeable.
Forced Writes, though, are REQUIRED in order to **absolutely protect**
against database corruption.
Without Forced Writes, corruptions can and will easily occur on Windows
in the event of a server shutdown/restart while the database is active,
and occasionally on Linux (the OS is better in this regard).
Sean