Replies: 1 comment 4 replies
-
Hi @dannycho7, The problem with the LRU is that it is a region-based LRU as opposed to per-item LRU. The region-based FIFO with reinsertion will basically work as if it is a per-item second chance algorithm.
The hits-based reinsertion could cause the flash wearing out faster because of the reinsertions. So, there are tradeoffs between the amount of flash writes vs. hit rates, and it would be desirable to be configured per applications' needs. For FIFO, yeah, I agree FIFO could perform better than LRU in some cases. However, this would also depend on the applications' needs.
No, it doesn't. Instead, when it run out of free regions, the reinsertions will most likely fail and be silently discarded. When there is a free space in the active region, the writes will keep competing with the reinsertions, so, could be slower. |
Beta Was this translation helpful? Give feedback.
-
In the docs, a hits-based reinsertion policy is mentioned to "better approximate a LRU than the region-based LRU". I have a few questions regarding this policy:
Beta Was this translation helpful? Give feedback.
All reactions