On-line file caching

被引:59
作者
Young, NE [1 ]
机构
[1] Dartmouth Coll, Hanover, NH 03755 USA
[2] Akamai Technol, Cambridge, MA 02138 USA
关键词
paging; caching; on-line algorithms; competitive analysis;
D O I
10.1007/s00453-001-0124-5
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Consider the following file caching problem: in response to a sequence of requests for files, where each file has a specified size and retrieval cost, maintain a cache of files of total size at most some specified k so as to minimize the total retrieval cost. Specifically, when a requested file is not in the cache, bring it into the cache and pay the retrieval cost, and remove other files from the cache so that the total size of files remaining in the cache is at most k. This problem generalizes previous paging and caching problems by allowing objects of arbitrary Size and cost, both important attributes when caching files for world-wide-web browsers, servers, and proxies. We give a simple deterministic on-line algorithm that generalizes many well-known paging and weighted-caching strategies, including least-recently-used, first-in-first-out, flush-when-full, and the balance algorithm. On any request sequence, the total cost incurred by the algorithm is at most k/(k-h+1) times the minimum possible using a cache of size h less than or equal to k. For any algorithm satisfying the latter bound, we show it is also the case that for most choices of k, the retrieval cost is either insignificant or at most a constant (independent of k) times the optimum. This helps explain why competitive ratios of many on-line paging algorithms have been typically observed to be constant in practice.
引用
收藏
页码:371 / 383
页数:13
相关论文
共 18 条
  • [1] COMPETITIVE PAGING WITH LOCALITY OF REFERENCE
    BORODIN, A
    IRANI, S
    RAGHAVAN, P
    SCHIEBER, B
    [J]. JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1995, 50 (02) : 244 - 258
  • [2] Cao P., 1997, USENIX S INT TECHN S
  • [3] NEW RESULTS ON SERVER PROBLEMS
    CHROBAK, M
    KARLOFF, H
    PAYNE, T
    VISHWANATHAN, S
    [J]. SIAM JOURNAL ON DISCRETE MATHEMATICS, 1991, 4 (02) : 172 - 181
  • [4] COMPETITIVE PAGING-ALGORITHMS
    FIAT, A
    KARP, RM
    LUBY, M
    MCGEOCH, LA
    SLEATOR, DD
    YOUNG, NE
    [J]. JOURNAL OF ALGORITHMS, 1991, 12 (04) : 685 - 699
  • [5] Fiat A, 1997, PROCEEDINGS OF THE EIGHTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P63
  • [6] Fiat A., 1995, Proceedings of the Twenty-Seventh Annual ACM Symposium on the Theory of Computing, P626, DOI 10.1145/225058.225280
  • [7] Strongly competitive algorithms for paging with locality of reference
    Irani, S
    Karlin, AR
    Phillips, S
    [J]. SIAM JOURNAL ON COMPUTING, 1996, 25 (03) : 477 - 497
  • [8] Irani Sandy, 1997, Proc. 29th Annual ACM Symposium on the Theory of Computing STOC, P701
  • [9] Karger David., 1997, P 29 ANN ACM S THEOR, P654, DOI [10.1145/258533.258660, DOI 10.1145/258533.258660]
  • [10] Karlin A. R., 1992, Proceedings 33rd Annual Symposium on Foundations of Computer Science (Cat. No.92CH3188-0), P208, DOI 10.1109/SFCS.1992.267771