Parallelism versus memory allocation in pipelined router forwarding engines

被引:16
作者
Chung, Fan [1 ]
Graham, Ronald
Mao, Jia
Varghese, George
机构
[1] Univ Calif San Diego, Dept Math, La Jolla, CA 92093 USA
[2] Univ Calif San Diego, Dept Comp Sci & Engn, La Jolla, CA 92093 USA
关键词
Online Algorithm; Memory Allocation; Memory Bank; Weak Edge; Memory Request;
D O I
10.1007/s00224-006-1249-3
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A crucial problem that needs to be solved is the allocation of memory to processors in a pipeline. Ideally, the processor memories should be totally separate (i.e., one-port memories) in order to minimize contention; however, this minimizes memory sharing. Idealized sharing occurs by using a single shared memory for all processors but this maximizes contention. Instead, in this paper we show that perfect memory sharing of shared memory can be achieved with a collection of two-port memories, as long as the number of processors is less than the number of memories. We show that the problem of allocation is NP-complete in general, but has a fast approximation algorithm that comes within a factor of 3/2 asymptotically. The proof utilizes a new bin packing model, which is interesting in its own right. Further, for important special cases that arise in practice a more sophisticated modification of this approximation algorithm is in fact optimal. We also discuss the online memory allocation problem and present fast online algorithms that provide good memory utilization while allowing fast updates.
引用
收藏
页码:829 / 849
页数:21
相关论文
共 15 条
[1]  
BASU A, 2003, P INFOCOM, V13, P690
[2]  
BERGE C, 1976, GRAPH HYPERGRAPHS
[3]   Accounting for memory bank contention and delay in high-bandwidth multiprocessors [J].
Blelloch, GE ;
Gibbons, PB ;
Matias, Y ;
Zagha, M .
IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 1997, 8 (09) :943-958
[4]  
Carey M., 1979, COMPUTER INTRACTABIL
[5]  
Co man Jr EG, 1996, APPROXIMATION ALGORI, P46
[6]  
Culler DavidE., 1999, PARALLEL COMPUTER AR
[7]  
DEGERMARK M, 1997, P ACM SIGCOMM, P3
[8]  
Garey M. R., 1975, SIAM Journal on Computing, V4, P397, DOI 10.1137/0204035
[9]  
LAKSHMAN TV, 1998, P ACM SIGCOMM, P203
[10]   HOW TO EMULATE SHARED MEMORY [J].
RANADE, AG .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1991, 42 (03) :307-326