A data processing method of a non-volatile storage medium and a computer storage medium

A non-volatile storage and data processing technology, applied in electrical digital data processing, input/output process of data processing, calculation, etc., can solve the problem of the expensive overhead of adjusting the hash table, reduce the overhead, and delay the adjustment of the hash table. Table size operation time and other issues, to achieve the effect of ensuring data consistency, reducing the number of adjustments, and fast detection

Active Publication Date: 2022-03-04
XIAMEN UNIV
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The operation of resizing the hash table usually includes rehashing and moving the data of the old hash table to the new hash table, these operations will bring huge overhead, and also block other operations of the hash table
Although effectively resolving hash conflicts can delay the time to adjust the size of the hash table, it still cannot solve the expensive overhead of adjusting the hash table operation
[0006] Some existing hash methods move less data in the old hash table as much as possible when resizing the hash table. For example, the hierarchical hash method only needs to move one-third of the hash table size operation each time. data, thus reducing the overhead of resizing the hash table; however, the layered hash method will still frequently resize the hash table, because the newly generated hash table is only twice the size of the old hash table
[0007] On the other hand, data on non-volatile memory will cause consistency problems, that is, data loss or incomplete data when a failure occurs
Solving the problem of data consistency requires the use of expensive log operations, that is, writing old data or data to be updated into non-volatile memory first, and then performing normal write or update operations on non-volatile memory Logging operations will undoubtedly bring huge overhead and reduce its lifespan

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 data processing method of a non-volatile storage medium and a computer storage medium
  • A data processing method of a non-volatile storage medium and a computer storage medium
  • A data processing method of a non-volatile storage medium and a computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] The present invention will be further described below through specific embodiments.

[0066] A data processing method of a non-volatile storage medium, referring to figure 1 , including the following steps:

[0067] 1) During initialization, a multi-layer ring hash table with a ring structure is created in the non-volatile storage medium according to user instructions, and a layer of empty space is set between the last layer hash table and the first layer hash table. Layer, initialize three variables to identify the hash table of the first layer, the last layer of hash table and the hash table of the empty layer, create a bitmap group according to the total number of hash table buckets of each layer, and set it to solve the hash table The detection distance and detection times of conflicting buckets.

[0068] see figure 2 , this step specifically includes the following:

[0069] 1.1) Create a multi-layer ring hash table with different bits of the hash value as an i...

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

A data processing method of a non-volatile storage medium and a computer storage medium, after the initialization step is completed, concurrent data insertion, data query, data deletion and data update steps are performed according to user instructions, and the concurrent smooth execution is controlled by a spin lock to guarantee. If the size of the hash table needs to be changed in the data insertion and data deletion steps, the step of adjusting the size of the hash table is triggered. After the size of the hash table is adjusted, the data insertion and data deletion steps are continued. When the user issues an instruction to end access, enter the end step. The present invention reduces cascading writes to the hash table and effectively resolves hash conflicts, and at the same time reduces the data that needs to be moved when adjusting the size of the hash table, reduces the number of times the operation of adjusting the size of the hash table is performed during frequent writing, and further Improve the life of the non-volatile storage medium, ensure data consistency and improve the performance of the hash index structure on the non-volatile storage medium.

Description

technical field [0001] The invention relates to the field of computer data storage, in particular to a data processing method of a non-volatile storage medium and a computer storage medium. Background technique [0002] At present, non-volatile memory (also called persistent memory) is gradually commercialized. Byte addressing, high density and other characteristics, non-volatile memory will become the main component of the next generation memory system. Although non-volatile memory can directly exchange data with the CPU through the memory bus using load instructions and store instructions, but due to the limited write persistence and asymmetric read-write performance of non-volatile memory, the design of Data structures face many problems. [0003] Nowadays, there have been many studies on the improvement of tree-based index structures in non-volatile memory, such as B-trees, log-structured merge trees, etc., and a small number of studies have focused on hash-based index...

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): G06F3/06
CPCG06F3/0614G06F3/0638G06F3/0679
Inventor 吴素贞张芝豪沈志荣毛波兰思杰
Owner XIAMEN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products