Skip to content

FASTER as LRU cache questions #472

Answered by badrishc
avonwyss asked this question in Q&A
Discussion options

You must be logged in to vote

Eviction based on number or size of cached data, e.g. after 20M entries or so (configurable). Is it correct that all we need to do for LRU operation is to use the CopyReadsToTail.FromReadOnly and truncate using Log.ShiftBeginAddress? Is Log.TailAddress-Log.BeginAddress the metric to be used for determining the untilAddress parameter?

CopyReadsToTail.FromStorage causes any reads from disk to be copied to the tail of log. CopyReadsToTail.FromReadOnly causes any reads from either disk or the read-only region of memory to be copied to the tail of log. Latter is helpful when you do not want particularly hot items to "escape" to disk only to be immediately brought back to the tail of main mem…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@avonwyss
Comment options

Answer selected by badrishc
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