Efficient Stack Distance Computation for Priority Replacement Policies

被引:3
|
作者
Bilardi, Gianfranco [1 ]
Ekanadham, Kattamuri [2 ]
Pattnaik, Pratap [2 ]
机构
[1] Univ Padua, Dept Informat Engn, Padua, Italy
[2] IBM Corp, TJ Watson Res Ctr, Yorktown Hts, NY 10598 USA
关键词
Optimal Page Replacement; COMPUTER;
D O I
10.1145/2016604.2016607
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
The concept of stack distance, applicable to the important class of inclusion replacement policies for the memory hierarchy, enables to efficiently compute the number of misses incurred on a given address trace, for all cache sizes. The concept was introduced by Mattson, Gecsei, Sluts, and Traiger (Evaluation techniques for storage hierarchies, IBM System Journal, (9) 2: 78-117, 1970), together with a Linear-Scan algorithm, which takes time O(V) per access, in the worst case, where V is the number of distinct (virtual) items referenced within the trace. While subsequent work has lowered the time bound to O(log V) per access in the special case of the Least Recently Used policy, no improvements have been obtained for the general case. This work introduces a class of inclusion policies called policies with nearly static priorities, which encompasses several of the policies considered in the literature. The Min-Tree algorithm is proposed for these policies. The performance of the Min-Tree algorithm is very sensitive to the replacement policy as well as to the address trace. Under suitable probabilistic assumptions, the expected time per access is O(log 2 V). Experimental evidence collected on a mix of benchmarks shows that the Min-Tree algorithm is significantly faster than Linear-Scan, for interesting policies such as OPT (or Belady), Least Frequently Used (LFU), and Most Recently Used (MRU). As a further advantage, Min-Tree can be parallelized to run in time O(log V) using O(V/log V) processors, in the worst case. A more sophisticated Lazy Min-Tree algorithm is also developed which achieves O(root V log V) worst-case time per access. This bound applies, in particular, to the policies OPT, LFU, and Least Recently/Frequently Used (LRFU), for which the best previously known bound was O(V).
引用
收藏
页数:10
相关论文
共 50 条
  • [21] Discretization orders and efficient computation of cartesian coordinates for distance geometry
    Douglas S. Gonçalves
    Antonio Mucherino
    Optimization Letters, 2014, 8 : 2111 - 2125
  • [22] Space-efficient Pointwise Computation of the Distance Transform on GPUs
    Khan, Numair
    Zahran, Mohamed
    2017 IEEE INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS (IPDPSW), 2017, : 557 - 566
  • [23] Efficient computation of key performance indicators in a distance learning university
    Pecori, Riccardo
    Suraci, Vincenzo
    Ducange, Pietro
    INFORMATION DISCOVERY AND DELIVERY, 2019, 47 (02) : 96 - 105
  • [24] Discretization orders and efficient computation of cartesian coordinates for distance geometry
    Goncalves, Douglas S.
    Mucherino, Antonio
    OPTIMIZATION LETTERS, 2014, 8 (07) : 2111 - 2125
  • [25] Efficient and Accurate Hausdorff Distance Computation Based on Diffusion Search
    Zhang, Dejun
    Zou, Lu
    Chen, Yilin
    He, Fazhi
    IEEE ACCESS, 2018, 6 : 1350 - 1361
  • [27] Efficient representation of binary nonlinear codes: constructions and minimum distance computation
    Villanueva, Merce
    Zeng, Fanxuan
    Pujol, Jaume
    DESIGNS CODES AND CRYPTOGRAPHY, 2015, 76 (01) : 3 - 21
  • [28] Efficient representation of binary nonlinear codes: constructions and minimum distance computation
    Mercè Villanueva
    Fanxuan Zeng
    Jaume Pujol
    Designs, Codes and Cryptography, 2015, 76 : 3 - 21
  • [29] Efficient Hausdorff Distance computation for freeform geometric models in close proximity
    Kim, Yong-Joon
    Oh, Young-Taek
    Yoon, Seung-Hyun
    Kim, Myung-Soo
    Elber, Gershon
    COMPUTER-AIDED DESIGN, 2013, 45 (02) : 270 - 276
  • [30] Efficient Computation of the Hausdorff Distance Between Polytopes by Exterior Random Covering
    Bernardo Llanas
    Computational Optimization and Applications, 2005, 30 : 161 - 194