Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-4159

Improve log preallocation algorithm

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.5, 4.1.6, WT3.2.0
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Storage Engines 2018-11-19

      Description

      The current log file preallocation algorithm, which is implemented in the __log_server function has a few aspects that should be improved:

      • The loop uses a timer - but it only waits around a condition variable - it should instead re-set only when a preallocated log file is created. It's possible with the current implementation that some workloads won't pre-allocate log files.
      • I'm concerned that preallocation waits for the hot backup lock - which can be held for a long time if a hot backup is in progress. A try lock might be better in the code - to avoid other operations done by the log server being starved.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sue.loverso Susan LoVerso
                Reporter:
                alexander.gorrod Alexander Gorrod
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: