HPA: Use a whole-shard purging heuristic.

Previously, we used only hpdata-local information to decide whether to purge.
This commit is contained in:
David Goldblatt 2020-12-06 13:48:46 -08:00 committed by David Goldblatt
parent dc886e5608
commit 56e85c0e47
4 changed files with 86 additions and 34 deletions

View file

@ -225,7 +225,6 @@ psset_update_begin(psset_t *psset, hpdata_t *ps) {
void
psset_update_end(psset_t *psset, hpdata_t *ps) {
hpdata_assert_consistent(ps);
assert(hpdata_in_psset_get(ps));
hpdata_updating_set(ps, false);
psset_stats_insert(psset, ps);
@ -258,6 +257,7 @@ psset_update_end(psset_t *psset, hpdata_t *ps) {
hpdata_in_psset_hugify_container_set(ps, false);
hpdata_hugify_list_remove(&psset->to_hugify, ps);
}
hpdata_assert_consistent(ps);
}
hpdata_t *