You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We introduced two-phase purging in #521. There are a couple of things we can consider tuning in this context:
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.
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.
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.
Activity
davidtgoldblatt commentedon Oct 6, 2017
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.