190 likes | 402 Views
LIRS: An Efficient Low Inter-reference Recency Set Replacement Policy to Improve Buffer Cache Performance Sensitivity/Overhead Analysis. By Fajin Wang Bosah M Marcel Heimlich. LIRS: An Efficient Low Inter-reference Recency Set Replacement Policy to Improve Buffer Cache Performance
E N D
LIRS: An Efficient Low Inter-reference Recency Set Replacement Policy to Improve Buffer Cache Performance Sensitivity/Overhead Analysis By Fajin Wang Bosah M Marcel Heimlich
LIRS: An Efficient Low Inter-reference Recency Set Replacement Policy to Improve Buffer Cache Performance Sensitivity/Overhead Analysis By Fajin Wang Bosah M Marcel Heimlich
Questions • Does the size of Lhirs affect the performance of LIRS? • Is there any effects of varying the thresholds for LIR/HIR switching on the performance of LIRS? • LRU is know for its simplicity and efficiency. • LIRS: time, space?
Outline 1. Size Selection of Lhirs 2. Thresholds for LIR/HIR switching 3. Overhead Analysis
Outline 1. Size Selection of Lhirs 2. Thresholds for LIR/HIR switching 3. Overhead Analysis
Block Sets Physical Cache LIR block set (size is Llirs ) Llirs Lhirs HIR block set 1. Size Selection of Lhirs 1.1 Review Cache size L =Llirs + Lhirs
1. Size selection of Lhirs 1.2 Approach Optimal, LRU, LIRS
1. Size selection of Lhirs 1.3 Results • Not sensitive • Lowers – postgres • Improves – sprite
4. Sensitivity/Overhead Analysis 1. Size Selection of Lhirs 2. Thresholds for LIR/HIR switching 3. Overhead Analysis
5 0 1 3 2 2 3 1 6 4 5 9 4 6 7 8 2. Thresholds for LIR/HIR switching 2.2 Concepts 2.2.1 Rmax The Maximum recency of the LIR blocks 2.2.2 Easiness: HIR -> LIR Difficulty: LIR -> HIR
2. Thresholds for LIR/HIR switching 2.2 Experiments Optimal, LRU, LIRS
2. Thresholds for LIR/HIR switching • Not sensitive • Large threshold • close to LRU 2.3 Results
4. Sensitivity/Overhead Analysis 4.1 Size Selection of Lhirs 4.2 Thresholds for LIR/HIR switching 4.3 Overhead Analysis
4.3 Overhead analysis LIRS Efficiency: O(1) 4.3.1 Time IRR HIR (New IRR of the HIR block) Rmax (Maximum Recency of LIR blocks) This efficiency is achieved by the LIRS stack. LRU stack + LIR block with Rmax recency in its bottom ==> LIRS stack.
4.3 Overhead analysis 4.3.1 Space • LRU stack + LIR block with Rmax recency in its bottom ==> LIRS stack. • overhead: the extended portion of the LIRS stack • LIRS stack size/LRU stack size • Stack size limit
4.3 Overhead analysis LIRS stack size/LRU stack size 4.3.2 Space Ratio = 1: strong locality
4.3 Overhead analysis Limited LIRS stack size 4.3.2 Space Sensitive: moderatly extending the LRU stack size makes a large difference on its performance
4.3 Overhead analysis • Size of Lhirs • Not sensitive • Thresholds for LIR/HIR switching • Not sensitive • -Stack size • Sensitive • Critical point? 4.3.2 Analysis summary
Conclusions LIRS • Effectively use deeper access history without explicit regularity detection and high cost operations. • Outperform exiting replacement policies. • Its implementation as simple as LRU. • Applicable to virtual memory and database buffer management.