Skip to content

Cache Pools in Hybrid Cache #64

Answered by therealgymmy
pbhandar2 asked this question in Q&A
Discussion options

You must be logged in to vote

Can you explain what you're trying to achieve with cache pools on NvmCache? Also what sort of workloads?

The reason we didn't implement pools is because they can easily lead to excessive random writes, which hurt device endurance. Note this is specifically for BlockCache (large items) which benefits greatly from sequential writes.

Typically the need for pools is to isolate workload. For this, we ask the user to control this logically using the AdmissionPolicy API for NvmCache. (Refer to this for API: https://github.com/facebook/CacheLib/blob/main/cachelib/allocator/NvmAdmissionPolicy.h)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pbhandar2
Comment options

@therealgymmy
Comment options

Answer selected by therealgymmy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants