Construction method and operation method of DRAM-NVM hybrid index structure
A technology of DRAM-NVM and index structure, which is applied in the field of information storage, can solve problems such as fault recovery that cannot take into account high read and write performance, and achieve the effect of speeding up the process of fault recovery, reducing blocking, and ensuring read and write performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] A method for constructing a DRAM-NVM hybrid index structure, comprising: constructing an index layer, an intermediate layer and a data layer to obtain a DRAM-NVM hybrid index structure; specifically, as figure 1 As shown, wherein, the index layer is a tree structure, preferably a B+ tree, stored in DRAM; the middle layer includes one or more metadata nodes, stored in DRAM, and there is a backup in NVM; and when the metadata When there are multiple nodes, each metadata node is connected back and forth to form a linked list structure, preferably a two-way linked list structure; the data layer includes a log persistence tree LogTree; LogTree is a tree structure, preferably a B+ tree, and its number is the same as that of the metadata node. The number is the same, corresponding to metadata nodes one by one; in the initial state, LogTree is stored in NVM, which is recorded as NvmTree; in the process of reading and writing, if the access heat of LogTree is greater than the pre...
Embodiment 2
[0068] The reading and writing request processing method of the index structure constructed by the construction method of the DRAM-NVM hybrid index structure described in Embodiment 1, taking the insertion request and the query request as an example, such as Figure 6 shown, including:
[0069] When an insert request is received, perform the insert operation:
[0070] S11. Query the index layer based on the target keyword key in the request, obtain the metadata node pointer corresponding to the target keyword key, determine the metadata node in the middle layer, and accumulate the access heat of the LogTree corresponding to the metadata node; in NVM Allocate a persistent space for the value in the request, and persist it, and get a pointer to the value;
[0071] S12. Determine whether the CacheTree in the LogTree corresponding to the metadata node is under the creation or synchronization operation of the CacheTree, if so, go to step S13; otherwise, go to step S14;
[0072] S...
Embodiment 3
[0100] When the system is powered off or fails, the data on the DRAM will be lost, and the structure on the NVM may also appear in an inconsistent state. Therefore, when the system where the index structure is located is powered off or fails, fault recovery is required to ensure normal and Serve. Specifically, the power-down or fault recovery method of the index structure constructed by the construction method of the DRAM-NVM hybrid index structure described in Embodiment 1 includes the following steps:
[0101] 1), the restoration of the middle layer: when restoring, first traverse the metadata nodes backed up in the middle layer of NVM, and judge whether there is data overlap in the NvmTree root node of the LogTree corresponding to the adjacent metadata nodes, if there is data overlap, Split the NvmTree root node with overlapping data, and correct the problem that the precursor pointer of the corresponding metadata node points to the wrong node, so as to ensure that the midd...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com