Memory compaction mechanism for main memory databases
Abstract
The present invention extends to methods, systems, and computer program products for performing memory compaction in a main memory database. The main memory database stores records within pages which are organized in doubly linked lists within partition heaps. The memory compaction process uses quasi-updates to move records from a page to the emptied to an active page in a partition heap. The quasi-updates create a new version of the record in the active page, the new version having the same data contents as the old version of the record. The creation of the new version can be performed using a transaction that employs wait for dependencies to allow the old version of the record to be read while the transaction is creating the new version thereby minimizing the effect of the memory compaction process on other transactions in the main memory database.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method, performed by a computer system storing a main memory database, for performing memory compaction within the main memory database, the method comprising: scanning a doubly linked list of pages in memory, the pages for storing records of the main memory database, scanning comprising determining memory utilization of each page; determining, based on the memory utilization of each page, which pages have a memory utilization that is below a specified threshold; for each page having a memory utilization below the threshold, performing a memory compaction process, the memory compaction proce
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (5)
- "International Search Report & Written Opinion for PCT Patent Application No. PCT/US2013/045749", Mailed Date: Oct. 9, 2013, Filed Date: Jun. 13, 2013, 6 Pages.
- Gidenstam, et al., "Efficient and Reliable Lock-Free Memory Reclamation Based on Reference Counting," IEEE Transactions on Parallel and Distributed Systems, vol. 20, No. 8, Aug. 2009.
- Lim, et al., "A Memory-Efficient Real-Time Non-Copying Garbage Collector", In Proceedings of the 1st International Symposium on Memory Management, 1998, pp. 118-129.
- Schatz, "Incremental Garbage Collection II", In Seminar aus Softwareentwicklung: Garbage Collection, 2006, pp. 1-16. http://www.ssw.jku.at/Teaching/Lectures/Sem/2005/Reports/Schatz.pdf.
- Sundell. et al., "Lock-Free Deques and Doubly Linked Lists," J. Parallel Distributed Computing, (68) 2008. pp. 1008-1020.