Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the implementation logic for the background eviction (and promotion when multi-tier is enabled).
We benchmarked the background evictors against the current upstream branch with the following configurations using the kvcache workload and the trace replayer. Throughput was kept constant - 1.2M ops/sec using DRAM-only 40GB cache size with ampFactor set to 200. The config files are attached.
The main parameters for the background workers are the number of threads,
backgroundMoverThreads
and the batch size usedbackgroundEvictionBatch
, which configures the number of items to evict in batch (while holding the container lock), andbackgroundTargetFree
which sets target free percentage of each class. The background workers will work to keep that percentage of space free.The main result is that SET (allocate) latencies are significantly reduced.
The GET (find) latencies are unaffected by the background workers as long as the batch size remains reasonably small (10 is the default).
baseline.json
bg-eviction.json