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

Review log slot switch algorithm to reduce lock contention

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Non-NYC 2018-06-04

      The current log slot switching algorithm holds the slot lock while writing the content out to filesystem. That's necessary because a forced flush can come in, and it relies on an acquisition of the slot lock to indicate that any data in a slot has been written.

      If we could make a change to the forced flush algorithm so that it no longer relies on the write happening inside the lock, we could remove a point of contention in our logging algorithm that is noticeable when the log is written on a slow filesystem.

      This is related to WT-4058 and WT-4077. Those tickets have more complete description of a first attempt at this optimization, and the race condition it introduced.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: