Abstract
Due to the development of new non-volatile storage technologies, bridging the access delay gap between storage and memory has been promoted. Therefore, since the volume of data continues to increase, the need for new types of non-volatile storage for high-performance computing and database management systems significantly increases. As a basic algorithm of the database management system, external sorting is widely used but suffers from numerous I/O operations caused by the frequent data exchange between the memory and external memory. Non-volatile memory (NVM) is a promising solution. However, the traditional external sorting algorithm is only designed for disk storage and cannot be used for NVM. To solve this issue, we propose LazySort, which is a novel external sorting algorithm that exploits the NVM byte addressing mechanism and the orderly distribution of data to improve the sorting efficiency. Specifically, LazySort first detects the ordered data segment in the memory and then records the storage location of the data segment as well as its maximum/minimum values in an index table named ITable. Next, to reduce memory usage and accelerate the sorting procedure, LazySort performs an optimization strategy RunMerge to merge non-intersecting data blocks according to the range of ITable records. To verify the performance of LazySort, we built an experimental platform with the NVM-DRAM storage architecture combining NVM and dynamic random access memory (DRAM) and conducted a series of experiments. The experimental results show that LazySort is more efficient than the traditional external sorting algorithm, since the sorting time of LazySort is shortened by 93.08% and the number of NVM write operations is reduced by 49.50%. Moreover, the advantage of LazySort over traditional algorithms is more significant when the data amount increases.
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.