Skip to content

Purging optimization #771

Open
Open

Description

@interwq

We introduced two-phase purging in #521. There are a couple of things we can consider tuning in this context:

  1. extents re-use: re-using more recently deallocated extents gives better locality, but also means older extents tend to be purged (thus we pay the purging cost, and reduce rss). re-use older extents means we avoid purging as much as possible, but lost the locality. The tradeoff should be evaluated.

  2. if MADV_FREE is available, we can be more aggressive on the first phase given the cheaper cost. We can also consider different re-use policies for the two stages, e.g. try improve locality for first stage, but try avoid purging for second stage.

Activity

  1. added this to the 5.1.0 milestone on Apr 17, 2017
  2. davidtgoldblatt commented on Oct 6, 2017

    @davidtgoldblatt
    Contributor

    One thought I had: we could try picking the extent to purge by last-fit instead of LRU. The idea being, those are the extents we're least likely to want to use when doing a first-fit selection policy.

  3. modified the milestones: 5.1.0, 5.2.0 on Apr 11, 2018
  4. modified the milestones: 5.2.0, 6.0 on Apr 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions