1999 · 236 citations · 10 references
ComputingComputer EngineeringComputer ScienceComputer ArchitectureData StructuresOperating SystemsCache Behavior AnalysisCachingCaching StrategiesData Locality OptimizationMemory HierarchyMemory Hierarchy DesignCache ArchitectureCache DesignCache ManagementCache Miss RateCache OptimizationCache OrganizationLocality Of ReferenceSpatial Locality
A program's cache performance can be improved by changing the organization and layout of its data---even complex, pointer-based data structures. Previous techniques improved the cache performance of these structures by arranging distinct instances to increase reference locality. These techniques produced significant performance improvements, but worked best for small structures that could be packed into a cache block.This paper extends that work by concentrating on the internal organization of fields in a data structure. It describes two techniques---structure splitting and field reordering---that improve the cache behavior of structures larger than a cache block. For structures comparable in size to a cache block, structure splitting can increase the number of hot fields that can be placed in a cache block. In five Java programs, structure splitting reduced cache miss rates 10--27% and improved performance 6--18% beyond the benefits of previously described cache-conscious reorganization techniques.For large structures, which span many cache blocks, reordering fields, to place those with high temporal affinity in the same cache block can also improve cache utilization. This paper describes bbcache, a tool that recommends C structure field reorderings. Preliminary measurements indicate that reordering fields in 5 active structures improves the performance of Microsoft SQL Server 7.0 2--3%.
10
Cache-conscious structure layout
Trishul Chilimbi, James R. Larus · 1999 · 337 citations · Full text
Cache-conscious data placement
Brad Calder, Chandra Krintz, Simmi John et al. · 1998 · 268 citations · Full text
ASTLOG: a language for examining abstract syntax trees
Roger F. Crew · 1997 · 121 citations
BIT: a tool for instrumenting java bytecodes
Han Bok Lee, Benjamin G. Zorn · 1997 · 98 citations