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

Reduce the WT_SESSION hazard_size when possible

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.0, 3.2.10, 3.3.15
    • Labels:
      None

      Description

      The current hazard pointer implementation in WiredTiger never reduces the number of active hazard pointers in a session from the high water mark. That means that if a session has many hazard pointers out at a point in time, all future walks will include up to the high water mark.

      We could reduce the size in __wt_hazard_clear if the pointer being freed is the last in the list. Or even more simply clear the size in session reset.

        Attachments

          Activity

            People

            • Assignee:
              michael.cahill Michael Cahill
              Reporter:
              alexander.gorrod Alexander Gorrod
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: