|
ABSTRACT
We present a novel external sorting algorithm using graphics processors (GPUs) on large databases composed of billions of records and wide keys. Our algorithm uses the data parallelism within a GPU along with task parallelism by scheduling some of the memory-intensive and compute-intensive threads on the GPU. Our new sorting architecture provides multiple memory interfaces on the same PC -- a fast and dedicated memory interface on the GPU along with the main memory interface for CPU computations. As a result, we achieve higher memory bandwidth as compared to CPU-based algorithms running on commodity PCs. Our approach takes into account the limited communication bandwidth between the CPU and the GPU, and reduces the data communication between the two processors. Our algorithm also improves the performance of disk transfers and achieves close to peak I/O performance. We have tested the performance of our algorithm on the SortBenchmark and applied it to large databases composed of a few hundred Gigabytes of data. Our results on a 3 GHz Pentium IV PC with $300 NVIDIA 7800 GT GPU indicate a significant performance improvement over optimized CPU-based algorithms on high-end PCs with 3.6 GHz Dual Xeon processors. Our implementation is able to outperform the current high-end PennySort benchmark and results in a higher performance to price ratio. Overall, our results indicate that using a GPU as a co-processor can significantly improve the performance of sorting algorithms on large databases.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
Clearspeed technology. (http://www.clearspeed.com), 2005.
|
 |
2
|
|
 |
3
|
|
| |
4
|
A. Ailamaki. Database architectures for new hardware. VLDB Tutorial Notes, 2004.
|
| |
5
|
|
| |
6
|
|
 |
7
|
|
 |
8
|
|
| |
9
|
N. Bandi, C. Sun, D. Agrawal, and A. El Abbadi. Hardware acceleration in commercial databases: A case study of spatial operations. VLDB, 2004.
|
| |
10
|
K.E. Batcher. Sorting networks and their applications. In AFIPS Spring Joint Computer Conference, 1968.
|
| |
11
|
|
| |
12
|
|
| |
13
|
|
| |
14
|
|
 |
15
|
|
 |
16
|
|
 |
17
|
|
 |
18
|
Naga K. Govindaraju , Brandon Lloyd , Wei Wang , Ming Lin , Dinesh Manocha, Fast computation of database operations using graphics processors, Proceedings of the 2004 ACM SIGMOD international conference on Management of data, June 13-18, 2004, Paris, France
[doi> 10.1145/1007568.1007594]
|
 |
19
|
|
 |
20
|
|
| |
21
|
Naga K. Govindaraju, Jim Gray, and Dinesh Manocha. Cache-efficient general purpose algorithms on GPUs. Technical report, Microsoft Research, December 2005.
|
 |
22
|
|
| |
23
|
D. E. Knuth. Sorting and Searching, volume 3 of The Art of Computer Programming. Addison-Wesley, Reading, MA, 1973.
|
| |
24
|
|
 |
25
|
S. J. Smith , X. Li , G. Linoff , C. Stanfill , K. Thearling, A practical external sort for shared disk MPP's, Proceedings of the 1993 ACM/IEEE conference on Supercomputing, p.666-675, December 1993, Portland, Oregon, United States
[doi> 10.1145/169627.169815]
|
| |
26
|
|
| |
27
|
Stefan Manegold, Peter A. Boncz, and Martin L. Kersten. Generic database cost models for hierarchical memory systems. In VLDB 2002: proceedings of the Twenty-Eighth International Conference on Very Large Data Bases, pages 191--202, 2002.
|
| |
28
|
Shintaro Meki and Yahiko Kambayashi. Acceleration of relational database operations on vector processors. Systems and Computers in Japan, 31(8):79--88, August 2000.
|
| |
29
|
|
 |
30
|
|
| |
31
|
Nsort: Fast parallel sorting. http://www.ordinal.com/.
|
 |
32
|
Chris Nyberg , Tom Barclay , Zarka Cvetanovic , Jim Gray , Dave Lomet, AlphaSort: a RISC machine sort, Proceedings of the 1994 ACM SIGMOD international conference on Management of data, p.233-242, May 24-27, 1994, Minneapolis, Minnesota, United States
|
| |
33
|
|
| |
34
|
J. Owens, D. Luebke, N. Govindaraju, M. Harris, J. Kruger, A. Lefohn, and T. Purcell. A survey of general-purpose computation on graphics hardware. 2005.
|
| |
35
|
Timothy J. Purcell , Craig Donner , Mike Cammarano , Henrik Wann Jensen , Pat Hanrahan, Photon mapping on programmable graphics hardware, Proceedings of the ACM SIGGRAPH/EUROGRAPHICS conference on Graphics hardware, July 26-27, 2003, San Diego, California
|
| |
36
|
|
 |
37
|
|
 |
38
|
Betty Salzberg , Alex Tsukerman , Jim Gray , Michael Stuewart , Susan Uren , Bonnie Vaughan, FastSort: a distributed single-input single-output external sort, ACM SIGMOD Record, v.19 n.2, p.94-101, Jun. 1990
|
| |
39
|
|
 |
40
|
|
| |
41
|
S. Venkatasubramanian. The graphics card as a stream computer. Workshop on Management and Processing of Data Streams, 2003.
|
 |
42
|
|
| |
43
|
J. S. Vitter and E. A. M. Shriver. Algorithms for parallel memory II: Hierarchical multilevel memories. Algorithmica, 12:148--169, 1994.
|
 |
44
|
|
 |
45
|
|
CITED BY 15
|
|
|
|
|
|
|
|
Rui Fang , Bingsheng He , Mian Lu , Ke Yang , Naga K. Govindaraju , Qiong Luo , Pedro V. Sander, GPUQP: query co-processing using graphics processors, Proceedings of the 2007 ACM SIGMOD international conference on Management of data, June 11-14, 2007, Beijing, China
|
|
|
|
|
Ke Yang , Bingsheng He , Rui Fang , Mian Lu , Naga Govindaraju , Qiong Luo , Pedro Sander , Jiaoying Shi, In-memory grid files on graphics processors, Proceedings of the 3rd international workshop on Data management on new hardware, June 15-15, 2007, Beijing, China
|
|
|
|
|
|
|
|
|
Roger D. Chamberlain , Mark A. Franklin , Eric J. Tyson , Jeremy Buhler , Saurabh Gayen , Patrick Crowley , James H. Buckley, Application development on hybrid systems, Proceedings of the 2007 ACM/IEEE conference on Supercomputing, November 10-16, 2007, Reno, Nevada
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|