Skip to content

Combine block writes better in the cache. #2127

Closed

Description

@srh

We have a bit of performance regression from 1.11, presumably one which could be handled by combining block writes better. Right now we can combine index writes (once they hit the merger serializer) but we don't combine block writes very well. A typical workload (where everything is in RAM) will result in every insert having its own write operation, with deduping of index writes, but no deduping of block writes. This is bad because they touch the superblock and stats block.

The performance impact here might actually be caused by us forcing the data block GC to work harder.

Activity

  1. modified the milestones: , subsequent on Mar 21, 2014
  2. danielmewes commented on Jun 10, 2014

    @danielmewes
    Member

    I don't think there's any optimization left to do here.

    page_cache_t::compute_changes() will avoid writing the same block twice, and page_cache_t::maximal_flushable_txn_set() will make sure that as many transactions are merged together into a single flush as possible at a given time.

    @srh: Did you have an additional optimization in mind?

    Otherwise I think we can just close this.

  3. srh commented on Jun 10, 2014

    @srh
    ContributorAuthor

    Agreed, I think we fixed this.

  4. modified the milestones: 1.13, subsequent on Jun 10, 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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions