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

Use more accurate statistics for cursor cache totals

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.10, 4.1.7, 4.0.6, WT3.2.0
    • Component/s: None
    • Labels:
    • Sprint:
      Storage Engines 2018-12-03, Storage Engines 2018-12-17
    • Backport Requested:
      v4.0, v3.6

      Description

      The current statistics used are not modified atomically, and are probably not so useful to use for a resource counter.  Over time, cache effects may cause a drift in the value.

      At the minimum, the current global count of cached statistics should be accurate (that is, incremented/decremented in an atomic way.  If there is a measurable performance hit by adding this, we could avoid changing the open_cursor_count metric when caching/reopening a cursor, and change the meaning of that metric to include cached cursors.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              donald.anderson Donald Anderson
              Reporter:
              donald.anderson Donald Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: