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

Only sweep btree handles that have been evicted from cache

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None

      By default, MongoDB keeps handles open for over a day, even if they aren’t used.

      This configuration was chosen because of a disconnect between cache management (where pages of data are pushed out of memory when the cache is full and they aren’t accessed for a while), vs handle management where handles are marked idle regardless of whether they are taking up space in cache.

      If we change WT’s handle sweep to only close handles where the trees have already been evicted from cache (i.e., __wt_btree_bytes_evictable returns 0), then it would be fine for MongoDB to run with the normal WiredTiger default (discard handles after 30 seconds being idle and not in cache).

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: