Improve eviction selection policy to avoid update-restore evictions

    • Storage Engines, Storage Engines - Transactions
    • None
    • None
    • 0

      WiredTiger has added a mode that allows for enabling precise checkpoints. When precise checkpoints are enabled, content newer than the stable timestamp (or checkpoint timestamp when a checkpoint is running) cannot be evicted - it needs to be retained in the cache.

      That means that any dirty page that is reconciled while it has content newer than the checkpoint timestamp needs to be retained in cache, and the changes that were too new to include in a reconciliation are restored in the cache (this is called update-restore eviction).

      We should add an eviction selection heuristic that avoids evicting pages with updates newer than the checkpoint timestamp, when precise checkpoints are enabled as long as there isn't an excess of cache pressure.

            Assignee:
            Alexander Gorrod
            Reporter:
            Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: