Run gc at 200%

150% pessimized the "real data" benchmark
This commit is contained in:
2024-08-12 10:48:24 -07:00
parent e3d1b2e842
commit f5f5fb620b

View File

@@ -3254,12 +3254,11 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
}
}
// Run gc at least 150% the rate we're inserting entries
// Run gc at least 200% the rate we're inserting entries
keyUpdates +=
(std::max<int64_t>(
tls.accum.entries_inserted - tls.accum.entries_erased, 0) *
3) >>
1;
std::max<int64_t>(tls.accum.entries_inserted - tls.accum.entries_erased,
0) *
2;
memory_bytes.set(totalBytes);
point_writes_total.add(tls.accum.point_writes);