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 条
  • [1] Efficient stack distance computation for priority replacement policies
    Dep. Information Engineering, Università di Padova, Padova, Italy
    不详
    Proc. ACM Int. Conf. Comput. Front., CF,
  • [2] Efficient Stack Distance Computation for a Class of Priority Replacement Policies
    Bilardi, Gianfranco
    Ekanadham, Kattamuri
    Pattnaik, Pratap
    INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 2013, 41 (03) : 430 - 468
  • [3] Efficient Stack Distance Computation for a Class of Priority Replacement Policies
    Gianfranco Bilardi
    Kattamuri Ekanadham
    Pratap Pattnaik
    International Journal of Parallel Programming, 2013, 41 : 430 - 468
  • [4] Efficient distance computation in configuration space
    Zhang, Liangjun
    Kim, Young J.
    Manocha, Dinesh
    COMPUTER AIDED GEOMETRIC DESIGN, 2008, 25 (07) : 489 - 502
  • [5] Efficient Computation of the Tree Edit Distance
    Pawlik, Mateusz
    Augsten, Nikolaus
    ACM TRANSACTIONS ON DATABASE SYSTEMS, 2015, 40 (01):
  • [6] Efficient computation of the Euclidean distance transform
    Boxer, L
    Miller, R
    COMPUTER VISION AND IMAGE UNDERSTANDING, 2000, 80 (03) : 379 - 383
  • [7] Efficient Stack Distance Approximation Based on Workload Characteristics
    Lim, Sooyoung
    Park, Dongchul
    IEEE ACCESS, 2022, 10 : 59792 - 59805
  • [8] Efficient Action Computation for Compositional SDN Policies
    Pan, Heng
    Li, Zhenyu
    Xie, Gaogang
    He, Peng
    Guan, Hongtao
    Mathy, Laurent
    IEEE TRANSACTIONS ON NETWORK AND SERVICE MANAGEMENT, 2018, 15 (01): : 387 - 401
  • [9] Efficient distributed computation of distance sketches in networks
    Das Sarma, Atish
    Dinitz, Michael
    Pandurangan, Gopal
    DISTRIBUTED COMPUTING, 2015, 28 (05) : 309 - 320
  • [10] Efficient Computation of Pairwise Minimax Distance Measures
    Chehreghani, Morteza Haghir
    2017 17TH IEEE INTERNATIONAL CONFERENCE ON DATA MINING (ICDM), 2017, : 799 - 804