Unlock instant, AI-driven research and patent intelligence for your innovation.

A b+ tree management method based on remote direct non-volatile memory access

A technology of memory access and management methods, applied in the field of B+ tree management mechanism, which can solve the problems of B+ tree performance degradation, long occupying lock time, unsatisfactory disk performance, etc., to reduce wear, ensure performance, and reduce data persistence overhead Effect

Active Publication Date: 2019-10-11
NAT UNIV OF DEFENSE TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, with the development of computer technology, the performance gap between memory and disk is getting bigger and bigger, and the performance of disk can no longer meet the needs of massive data analysis; data storage architecture has gradually centered on memory; and new storage devices, Such as PCM (Phase Change Random Access Memory) and 3D Xpoint, which have the characteristics of non-volatility of external memory, high integration and memory-level access speed, etc., which can make up for the volatile characteristics of existing DRAM (Dynamic Random Access Memory) , high energy consumption and limited capacity, the non-volatile memory (NVM, Non-Volatile Memory) based on these devices has become a hot spot for computer designers and researchers to improve the performance of storage systems
It is true that the design of the index structure for non-volatile memory also faces new challenges, such as non-volatile memory upgrading the original data persistence level from external memory to memory and its own write wear and other problems; generally speaking, memory The level of data persistence is to explicitly refresh the data in the CPU cache to the memory. For the B+ tree, due to the order of the elements on the leaf nodes, the insertion of the elements will cause the movement of the data, resulting in The overhead of a lot of CPU cache refreshing reduces the performance of the B+ tree; and in a multi-core system, the performance reduction of the single-threaded B+ tree operation will make it occupy the lock for too long, which will lead to more concurrent competition among multiple threads. Intense, further reducing the performance of the B+ tree and the utilization of system resources; the existing stand-alone can no longer meet the needs of large data storage, but in a distributed environment, because the processing of the B+ tree is server-centric, so The B+ tree design based on non-volatile memory faces the same challenges, such as the trade-off between data persistence and concurrency performance, and NVM write wear, etc.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A b+ tree management method based on remote direct non-volatile memory access
  • A b+ tree management method based on remote direct non-volatile memory access
  • A b+ tree management method based on remote direct non-volatile memory access

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] refer to figure 1 , the invention provides a kind of B+ tree management method based on remote direct non-volatile memory access, comprising:

[0018] In the first step, the client competes for the operation lock of the B+ tree through the atomic operation of RDMA. After successfully acquiring the operation lock, it sends the message of the keyword, data length (optional) and operation command to the server to register with the DRAM of the network card. middle;

[0019] In the second step, the server parses the information field in the received message, and operates the complete B+ tree stored in the DRAM according to the corresponding command;

[0020] In the third step, the server associates a leaf node stored in the non-volatile memory with each leaf node of the B+ tree stored in the DRAM;

[0021] In the fourth step, if the client's command is an insert operation, the server directly returns the memory address of the current operation of the non-volatile leaf node...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a B+ tree management method based on remote direct non-volatile memory access. This method stores the internal nodes of the complete B+ tree on the DRAM. The volatile leaf nodes on the DRAM only contain keywords, and the corresponding data is stored in the leaf nodes on the non-volatile memory. Each volatile leaf node is associated with A non-volatile leaf node; the client obtains the remote lock through the RDMA atomic operation, and then sends the operation command of the B+ tree to the server; the server reserves the space for remote operation in the corresponding non-volatile leaf node, and then the client The remote write technology using RDMA uses logs to directly persist data to non-volatile leaf nodes on the server side. The present invention uses the client to cooperate with the server to operate the B+ tree based on non-volatile memory, which reduces the processing burden of the server in the case of concurrent access; in addition, the operation of the non-volatile leaf nodes in the form of a log alleviates the NVM of write wear.

Description

technical field [0001] The invention relates to a B+ tree management mechanism, in particular to a B+ tree management method based on remote direct non-volatile memory access. Background technique [0002] As an important part of the function of the storage system, the index can speed up the search of data. As an index structure of the widely used B-tree class, it is originally a balanced multi-way search tree designed for the access characteristics of disks. For a B-tree of order m, its main characteristics are: each node has at most m subtrees; except for the root node, other nodes have at least m / 2 (rounded) subtrees; the root node has at least two subtrees, Except that the B-tree contains only one node; all leaf nodes are on the same level; the data on all nodes is arranged in order by key. The size of the nodes of the B-tree is usually the same as the block size of the disk. In this way, each time an element is searched, a node to which it belongs is read and prefetch...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/50G06F3/06H04L29/06H04L29/08
CPCG06F3/0623G06F3/0647G06F3/0652G06F3/067G06F9/5016G06F9/5022H04L67/5682H04L67/01
Inventor 肖侬余松平邓明翥邢玉轩刘芳陈薇
Owner NAT UNIV OF DEFENSE TECH