Class PLRUCache
java.lang.Object
NetStrategies.CacheStrategy
NetStrategies.CacheStrategies.PLRUCache
- All Implemented Interfaces:
AutoCheck
PLRU (Pseudo Least Recently Used) cache eviction strategy: approximates LRU behaviour at a lower implementation cost.
-
Field Summary
Fields inherited from class CacheStrategy
engine, netSystem, removeItemMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRemoveItem(LinkedList<CacheItem> caches) For CPU caches with large associativity (generally > four ways), the implementation cost of LRU becomes prohibitive.Methods inherited from class CacheStrategy
check, getRemoveItemMode, setNetSystem, setRandomEngine, setRemoveItemMode
-
Constructor Details
-
PLRUCache
public PLRUCache()
-
-
Method Details
-
getRemoveItem
For CPU caches with large associativity (generally > four ways), the implementation cost of LRU becomes prohibitive. PLRU (Pseudo-LRU) approximates the behavior of the more computationally expensive Least Recently Used (LRU) algorithm but with lower implementation complexity.- Specified by:
getRemoveItemin classCacheStrategy- Parameters:
caches- the list of the cached items.- Returns:
-