A Characterization of Temporal Locality and Its Portability across Memory Hierarchies
A Characterization of Temporal Locality and Its Portability across Memory Hierarchies
复制标题
DOI:
10.1007/3-540-48224-5_11
复制
发表时间:
2001-07
期刊:
影响因子:
--
通讯作者:
G. Bilardi;E. Peserico
中科院分区:
文献类型:
--
作者:
G. Bilardi;E. Peserico
This paper formulates and investigates the question of whether a given algorithm can be coded in a way efficiently portable across machines with different hierarchical memory systems, modeled asa(x)-HRAMs (Hierarchical RAMs), where the time to access a locationxisa(x).Thewidth decompositionframework is proposed to provide a machine- independent characterization of temporal locality of a computation by a suitable set ofspace reuseparameters. Using this framework, it is shown that, when theschedule, i.e. the order by which operations are executed, is fixed, efficient portability is achievable. We propose (a) thedecomposition-treememory manager, which achieves time within a logarithmic factor of optimal on all HRAMs, and (b) thereoccurrence-widthmemory manager, which achieves time within a constant factor of optimal for the important class ofuniformHRAMs.We also show that, when the schedule is considered as a degree of freedom of the implementation, there are computations whose optimal schedule does vary with the access function. In particular, we exhibit some computations for which any schedule is bound to be a polynomial factor slower than optimal on at least one of two sufficiently different machines. On the positive side, we show that relatively few schedules are sufficient to provide a near optimal solution on a wide class of HRAMs.