DocumentCode
3121941
Title
BP-Wrapper: A System Framework Making Any Replacement Algorithms (Almost) Lock Contention Free
Author
Ding, Xiaoning ; Jiang, Song ; Zhang, Xiaodong
Author_Institution
Comput. Sci. & Eng. Dept., Ohio State Univ., Columbus, OH
fYear
2009
fDate
March 29 2009-April 2 2009
Firstpage
369
Lastpage
380
Abstract
In a high-end database system, the execution concurrency level rises continuously in a multiprocessor environment due to the increase in number of concurrent transactions and the introduction of multi-core processors. A new challenge for buffer management to address is to retain its scalability in responding to the highly concurrent data processing demands and environment. The page replacement algorithm, a major component in the buffer management, can seriously degrade the system´s performance if the algorithm is not implemented in a scalable way. A lock-protected data structure is used in most replacement algorithms, where high contention is caused by concurrent accesses. A common practice is to modify a replacement algorithm to reduce the contention, such as to approximate the LRU replacement with the clock algorithm. Unfortunately, this type of modification usually hurts hit ratios of original algorithms. This problem may not exist or can be tolerated in an environment of low concurrency, thus has not been given enough attention for a long time. In this paper, instead of making a trade-off between the high hit ratio of a replacement algorithm and the low lock contention of its approximation, we propose a system framework, called BP-Wrapper, that (almost) eliminates lock contention for any replacement algorithm without requiring any changes to the algorithm. In BP-Wrapper, we use batching and prefetching techniques to reduce lock contention and to retain high hit ratio. The implementation of BP-Wrapper in PostgreSQL version 8.2 adds only about 300 lines of C code. It can increase the throughput up to two folds compared with the replacement algorithms with lock contention when running TPC-C-like and TPC-W-like workloads.
Keywords
buffer storage; data structures; database management systems; BP-Wrapper; LRU replacement; PostgreSQL version 8.2; batching techniques; buffer management; clock algorithm; concurrent data processing; execution concurrency level; high-end database system; lock contention free; lock-protected data structure; multicore processors; page replacement algorithm; prefetching techniques; Approximation algorithms; Concurrent computing; Data processing; Data structures; Database systems; Degradation; Environmental management; Multicore processing; Scalability; System performance; Lock Contention; Multi-core; Replacement Algorithm;
fLanguage
English
Publisher
ieee
Conference_Titel
Data Engineering, 2009. ICDE '09. IEEE 25th International Conference on
Conference_Location
Shanghai
ISSN
1084-4627
Print_ISBN
978-1-4244-3422-0
Electronic_ISBN
1084-4627
Type
conf
DOI
10.1109/ICDE.2009.96
Filename
4812418
Link To Document