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

Scrub dirty pages rather than evicting them

    Details

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

      Description

      Various workloads do fast appends where reads trail behind by some amount.

      This is particularly true for oplog workloads where recent data is completely evicted from cache and has to be read by secondaries for replication (cf WT-2647).

      Instead, when eviction is operating in "dirty" mode (to meet the eviction_dirty_target), or when evicting a page than needs "urgent" eviction, we should "scrub" pages. That means clean page images should be written to disk, and the original in-memory pages should be replace with the clean page images, without the need to read them back in. Ordinary eviction can take care of paging out the clean pages if there is cache pressure and they are not needed again.

      This mode would also be helpful for keeping small allocations bounded in the cache, though we might want different page selection criteria.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                keith.bostic Keith Bostic
                Reporter:
                michael.cahill Michael Cahill
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: