The invention provides a cardinal number tree access
system based on RDMA and a nonvolatile memory. The cardinal number tree access
system comprises: a data storage module, wherein the data storage module adopts a nonvolatile persistent memory as a storage medium of a cardinal number tree; a remote read-write module which is used for establishing RDMA communication connection between the
server CPU and the
client; and a background
processing module which is used for carrying out background
processing when the
client carries out remote reading and writing so as to ensure the consistency of thedata. The method comprises the following steps: S1, in a cardinal number tree initialization stage, constructing a data block to support
insertion, update and deletion of far-end data; S2, after the cardinal number tree initial data block is full, reconstructing a
data structure into a cardinal number
tree structure which comprises a prefix node and a
data node, and writing the prefix node of thetree structure into the
client; and S3, regularly checking the data nodes of the cardinal number tree. On the premise that
data consistency is effectively guaranteed, the pressure of a
server-side CPUcan be greatly reduced, the
throughput rate is increased, and therefore the overall performance of remote data reading and writing is improved.