Skip to content

Details on cache eviction #998

Answered by vibhansa-msft
Nohac asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Is it possible to set an infinite cache timeout, and only evict based on disk usage?
  • For this you might need to put up a large value for file-cache timeout something like a month or so.
  1. How does the algorithm decide what to evict, is it possible to set it up to only evict files that's not been accessed for a long time?
  • Blobfuse2 cache eviction logic is already LRU based (based on what file was last closed by user application). However, if the configured cache size or disk is getting full then it may not wait for the eviction timeout and start early.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vibhansa-msft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants