Buffering Database Operations for Enhanced Instruction Cache Performance (2004)
Cached
Download Links
- [www.cs.columbia.edu]
- [research.microsoft.com]
- [www.research.microsoft.com]
- DBLP
Other Repositories/Bibliography
| Venue: | In Proc. SIGMOD |
| Citations: | 22 - 2 self |
BibTeX
@INPROCEEDINGS{Zhou04bufferingdatabase,
author = {Jingren Zhou},
title = {Buffering Database Operations for Enhanced Instruction Cache Performance},
booktitle = {In Proc. SIGMOD},
year = {2004}
}
Years of Citing Articles
OpenURL
Abstract
As more and more query processing work can be done in main memory, memory access is becoming a significant cost component of database operations. Recent database research has shown that most of the memory stalls are due to second-level cache data misses and first-level instruction cache misses. While a lot of research has focused on reducing the data cache misses, relatively little research has been done on improving the instruction cache performance of database systems. We first answer the question “Why does a database system incur so many instruction cache misses? ” We demonstrate that current demand-pull pipelined query execution engines suffer from significant instruction cache thrashing between different operators. We propose techniques to buffer database operations during query execution to avoid instruction cache thrashing. We implement a new light-weight “buffer ” operator and study various factors which may affect the cache performance. We also introduce a plan refinement algorithm that considers the query plan and decides whether it is beneficial to add additional “buffer ” operators and where to put them. The benefit is mainly from better instruction locality and better hardware branch prediction. Our techniques can be easily integrated into current database systems without significant changes. Our experiments in a memory-resident PostgreSQL database system show that buffering techniques can reduce the number of instruction cache misses by up to 80 % and improve query performance by up to 15%. 1.







