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

Change the dhandle lock to a read/write lock

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.2, 3.2.13, 3.4.3, 3.5.4
    • Labels:
      None

      Description

      WiredTiger currently has a lock that is used to protect access to the connection wide (globally shared) dhandle list. That lock is currently a spinlock, since operations that hold it are generally short lived. The assumption about short-lived lockers doesn't hold entirely true when the number of open dhandles grows very large.

      It would be beneficial to switch the lock from a spinlock to a read/write lock, since most code paths only need to protect against the list changing while they are accessing it.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: