Announcement

Collapse
No announcement yet.

IB/FB Forced Writes off

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • IB/FB Forced Writes off

    Über Forced Write off ist in diesem Forum schon einiges geschrieben wurden, mich würde aber mal interessieren ob jemand konkrete Erfahrung mit IB/FB und ausgeschaltetem Forced Writes hat?

    Unser Server ist ein W2000 Server, der an einer stabilen USV hängt. Mir geht es um praktische Erfahrung und nicht um die theoretischen Gefahren. Also ob jemand ohne Probleme einen solchen Server über einen größeren Zeitraum in Betrieb hat.

    Besten Dank

    Gerhard

  • #2
    Hallo Gerhard,<br><br>
    also, konkrete Erfahrung mit FORCED WRITES OFF unter Windows hab ich nicht, da ich immer FORCED WRITES ON verwende, vor allem unter Windows. Ich hab Dir hier etwas aus dem Draft1 der Release Notes von Firebird 1.5 herauskopiert (als PDF in Firebird 1.5 RC5 enthalten). <b>MaxUnflushedWrites</b> und <b>MaxUnflushedWriteTime</b> sind neue Parameter in firebird.conf, damit man auch mit FORCED WRITES OFF etwas sicherer fährt.<br><br>
    <b>MaxUnflushedWrites</b><br>
    This parameter was introduced in Version 1.5 to handle a bug in the Windows server operating systems,
    whereby asynchronous writes were never flushed to disk except when the Firebird server underwent a
    controlled shutdown. (Asynchronous writes are not supported in Windows 9x or ME.) Hence, on 24/7
    systems, asynchronous writes were never flushed at all.
    This parameter determines how frequently the withheld pages are flushed to disk when Forced Writes
    are disabled (asynchronous writing is enabled). Its value is an integer which sets the number of pages
    to be withheld before a flush is flagged to be done next time a transaction commits. Default is 100 in
    Windows installations and -1 (disabled) in installations for all other platforms.
    If the end of the MaxUnflushedWriteTime cycle (see below) is reached before the count of withheld
    pages reaches the MaxUnflushedWrites count, the flush is flagged immediately and the count of
    withheld pages is reset to zero.<br><br>
    <b>MaxUnflushedWriteTime</b><br>
    This parameter determines the maximum length of time that pages withheld for asynchronous writing
    are flushed to disk when Forced Writes are disabled (asynchronous writing is enabled). Its value is an
    integer which sets the interval, in seconds, between the last flush to disk and the setting of a flag to
    perform a flush next time a transaction commits. Default is 5 seconds in Windows installations and -1
    (disabled) in installations for all other platforms.<br><br>
    Das heißt, sollte Dir z.B. die Festplatte eingehen, dann hilft Dir auch die USV nichts, und da dann auf die Festplatte nicht mehr geschrieben werden kann, hilft vermutlich auch nichts mehr, wenn der Firebird Server "kontrolliert" heruntergefahren wird. Vermutlich sieht es wieder anders aus, wenn man ein RAID System hat ...<br><br>
    Gruss,<br>
    Thoma
    Thomas Steinmaurer

    Firebird Foundation Committee Member
    Upscene Productions - Database Tools for Developers
    Mein Blog

    Comment


    • #3
      Hallo Thomas,

      vielen Dank für Deine Antwort. Ich hatte diese Parameter vorige Woche auch gefunden und seit cirk. 4 Tagen haben wir write force ausgeschaltet. Die Performance ist auch etwas gestiegen (wir schreiben cirk. 9000 Dokumente per Tag in die DB)ohne das ich zum jetzigen Zeitpunkt jedoch exakte Zeitangaben machen kann.
      Unser Server läuft mit einem RAID-System und die DB wird ständig auf einem zweiten Backup-Server repliziert. Natürlich wird auch regelmäßig ein Backup gefahren.
      Ich denke, dass wir damit das Risiko eines Datentotalverlustes recht gering halten.

      Gruß
      Gerhar

      Comment

      Working...
      X