skip to main content
10.1145/503272.503283acmconferencesArticle/Chapter ViewAbstractPublication PagespoplConference Proceedingsconference-collections
Article

The hardness of cache conscious data placement

Authors Info & Claims
Published:01 January 2002Publication History

ABSTRACT

The growing gap between the speed of memory access and cache access has made cache misses an influential factor in program efficiency. Much effort has been spent recently on reducing the number of cache misses during program run. This effort includes wise rearranging of program code, cache-conscious data placement, and algorithmic modifications that improve the program cache behavior. In this work we investigate the complexity of finding the optimal placement of objects (or code) in the memory, in the sense that this placement reduces the cache misses to the minimum. We show that this problem is one of the toughest amongst the interesting algorithmic problems in computer science. In particular, suppose one is given a sequence of memory accesses and one has to place the data in the memory so as to minimize the number of cache misses for this sequence. We show that if P ≠ NP, then one cannot efficiently approximate the optimal solution even up to a very liberal approximation ratio. Thus, this problem joins the small family of extremely inapproximable optimization problems. The other two famous members in this family are minimum coloring and maximum clique.

References

  1. 1.S. Arora and C. Lund. Hardness of approximations. In Hochbaum {1.7}, chapter 10, pages 399-446. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2.S. Arora, C. Lund, R. Motwani, M. Sudan, and M. Szegedy. Proof verification and the hardness of approximation problems. Journal of the ACM, 45(3):501-555, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3.S. Arora S. Safra. Probabilistic checking of proofs: a new characterization of NP. Journal of the ACM, 45(1):70-122, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. 4.G. Ausiello, P. Crescenzi, G. Gambosi, V. Kann, A. Marchetti-Spaccamela, and M. Protasi. Complexity and Approarirnation; Combinatorial optimization problems and their approxirnability properties. Springer Verlag, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. 5.M. Bellare, O. GoMreich, and M. Sudan. Free bits, PCPs, and nonapproximability--towards tight results. SiAM Journal on Computing, 27(3):804-915, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. 6.H.-J. Boehm. Reducing garbage collector cache misses. In T. Hosking, editor, {SMM 2000 Proceedings of the Second international Symposium an, Memory Management, volume 36(1.) of SIGPLAN Minneapofis, MN, Oct. 2000. ACM Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. 7.B. Calder, C. Krintz, S. John, and T. Austin. Cache-conscious data placement. In Eighth international Conference an Architectural Support far Programming Languages and Operating Systems, San Jose, CA, Oct. 1.998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8.T. M. Chifimbi, B. Davidson, and J. R. Larus. Cache-conscious structure definition. In PLDI {22}, pages 13-24. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9.T. M. Chilimbi, M. D. Hill, and J. R. Lans. Cache-conscious structure layout. In PLDI {22}, pages 1-12. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. 10.T. M. Chilimbi and J. R. Larus. Using generational garbage collection to implement cache-conscious data placement. In R. Jones, editor, {SMM'98 Proceedings of the First International Symposium an, Memory Management, volume 34(3) of SIGPLAN pages 37-48, Vancouver, Oct. 1.998. ACM Press. ISMM is the successor to the IWMM series of workshops. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. 11.U. Feige, S. Goldwasser, L. Lovasz, S. Saila, and M. Szegedy. Approximating clique is Mmost NP-complete. In 32th {f f f Symposium on Foundations of Computer Science, pages 2-12, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. 12.U. Feige and J. Kilian. Zero knowledge and the chromatic nmnber. Journal of Computer and System Sciences, 57(2):187-199, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. 13.M. R. Garey and D. S. Johnson. Computers and intractability; A Guide to the Theory of NP-Completeness. W.H. Freeman and Company, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. 14.N. Gloy and M. D. Smith. Procedure placement using temporM-ordering information. ACM Transactions an Programming Languages and Systems, 21.(5):977-1.027, 1.999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. 15.J. Hastad. Clique is hard to approximate within In 37th IEEE Symposium on Foundations of Computer Science, pages 627-636, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. 16.E. A. Henis, G. Haber, M. Klausner, and A. Warshavsky. FDPR - a post-link optimization tool for large subsystems. Feedback Directed Optimizations 2 Workshop, 1999.Google ScholarGoogle Scholar
  17. 17.D. S. Hochbaum, editor. Approximation Algorimms far NP-Hard Problem. PWS Publishing Company, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. 18.Y. ttolander. Search algorimms far cache memory. PhD thesis, Technion - Israel Institute of Tedmology, 1995.Google ScholarGoogle Scholar
  19. 19.Desktop performance and optimization for Intel (a) Pentium (a) 4 processor, http ://developer. intel. corn/des ign/pent ima4/papers/249438, htm, 2001.Google ScholarGoogle Scholar
  20. 20.Intel (R) Pentium (R) 4 processor optimization, reference mammal, http ://developer. intel, com/design/ pentium4/manuals/248966, htm.Google ScholarGoogle Scholar
  21. 21.K. S. McKinley, S. Cart, and C.-W. Tseng. Improving data locality with loop transformations. A CM Transactions an Programming Languages and Systems, 18(4):424-453, 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. 22.Proceedings of SIGPLAN'99 Conference an, Programming Languages Design and implementation, SIGPLAN, Atlanta, May 1999. ACM Press.Google ScholarGoogle Scholar
  23. 23.G. Rivera and C.-W. Tseng. Eliminating conflict misses for high performance architectures. In Proceedings of the international Conference on Supercomputing (ICS-98), pages 353-360, New York, 1998. ACM press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. 24.W. J. Schmidt, R. R. Roediger, C. S. Mestad, B. Mendelson, I. Shavit-Lottem, and V. Bortnikov-Sitnitsky. Profile-directed restructuring of operating system code. IBM ,Systems Journal, 37(2):270-305, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Conferences
    POPL '02: Proceedings of the 29th ACM SIGPLAN-SIGACT symposium on Principles of programming languages
    January 2002
    351 pages
    ISBN:1581134509
    DOI:10.1145/503272

    Copyright © 2002 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 1 January 2002

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • Article

    Acceptance Rates

    POPL '02 Paper Acceptance Rate28of128submissions,22%Overall Acceptance Rate824of4,130submissions,20%

    Upcoming Conference

    POPL '25

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader