Skip to content

Avoid excessive copy-on-write copying of memory buffers in the cache when flushing. #2128

Open

Description

@srh

Right now, when we release a block that we've written, a snapshot of the block is stored in the page_txn_t. If another operation goes to modify the block, it'll have to copy the memory. We could instead not snapshot the block, and make the next transaction that modifies the page a "preceder" (in the page_txn_t lingo) of the previous transaction that modified the page. Or, maybe we should only do this when the next transaction estimates it will only write a small number of pages, or when the previous transaction is in soft durability mode (lest the previous transaction have its to-disk latency slowed by a very large transaction that follows it).

We should not do this change without profiling reporting high CPU usage in the copy-on-write page copying that currently is believed to happen.

Activity

  1. added this to the backlog milestone on Mar 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions