Very Large Data Bases · 2007 · 98 citations · 19 references
ComputingComputer EngineeringComputer ScienceComputer ArchitectureDatabasesParallel ComputingMemory HierarchyMulticore Processor DesignParallel Computer ArchitectureParallel DatabasesParallel Performance AnalysisQuery ProcessingAggregationCache Hierarchy DesignHash Table Performance AnalysisParallel AggregationShared Cache DesignShared-memory ArchitectureShared-memory Data StructuresThread Parallelism
The recent introduction of commodity chip multiprocessors requires that the design of core database operations be carefully examined to take full advantage of on-chip parallelism. In this paper we examine aggregation in a multi-core environment, the Sun UltraSPARC T1, a chip multiprocessor with eight cores and a shared L2 cache. Aggregation is an important aspect of query processing that is seemingly easy to understand and implement. Our research, however, demonstrates that a chip multiprocessor adds new dimensions to understanding hash-based aggregation performance---concurrent sharing of aggregation data structures and contentious accesses to frequently used values. We also identify a trade off between private data structures assigned to each thread versus shared data structures for aggregation. Depending on input characteristics, different aggregation strategies are optimal and choosing the wrong strategy can result in a performance penalty of over an order of magnitude. We provide a thorough explanation of the factors affecting aggregation performance on chip multiprocessors and identify three key input characteristics that dictate performance: (1) average run length of identical group-by values, (2) locality of references to the aggregation hash table, and (3) frequency of repeated accesses to the same hash table location. We then introduce an adaptive aggregation operator that performs lightweight sampling of the input to choose the correct aggregation strategy with high accuracy. Our experiments verify that our adaptive algorithm chooses the highest performing aggregation strategy on a number of common input distributions.
19
David J. DeWitt, Jim Gray · Communications of the ACM · 1992 · 1.3K citations · Full text
Ron Avnur, Joseph M. Hellerstein · ACM SIGMOD Record · 2000 · 795 citations
Quickly generating billion-record synthetic databases
Jim Gray, Prakash Sundaresan, Susanne Englert et al. · 1994 · 352 citations
Robust query processing through progressive optimization
Volker Markl, Vijayshankar Raman, David Simmen et al. · 2004 · 231 citations