Skip to content

NVM cache replacement policy #120

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

You must be logged in to vote

On access, an item is promoted to DRAM from NVM. The NVM copy stays in NVM. Eventually when an item is evicted from DRAM, we check whether or not it is "clean" (i.e. does it have a copy in NVM). If it's clean, we will not evict it to nvm cache again since it's already present. See architecture guide: https://cachelib.org/docs/Cache_Library_Architecture_Guide/hybrid_cache#item-allocation-and-eviction

how does it make a difference to select FIFO or LRU

Item in NvmCache still age out in some order. FIFO or LRU in Navy governs the how these items eventually are evicted out of NvmCache. A frequently accessed item will stay in NvmCache for longer with a LRU policy compared to FIFO.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #119 on March 07, 2022 18:47.