Data storage management method, device and equipment

A technology of data storage and management methods, applied in the direction of electrical digital data processing, special data processing applications, data processing input/output process, etc., can solve the problems of slow reading and writing speed, IO waiting, blocking, etc., and achieve less IO operations , The effect of fast reading and writing speed

Pending Publication Date: 2022-03-08
ZHEJIANG DAHUA TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] At present, when data blocks are stored in the SMR disk, the metadata management node will divide the user file into several data blocks of the same size, and select a data node with the same number of file splits to save the segmented business data stream. Data block file, after the data node receives the business data block, it will select one of the zone blocks of the SMR disk to write the data block into. After the writing is completed, the corresponding index data will be generated and written into the zone. However, in this method The index data reads and writes the SMR zone directly through the ioctl command, not only the read and write speed is slow, but also it will cause IO waiting and blocking in the distributed video / picture storage environment, and because the index data is written into the zone sequentially, when the data block needs to be When the corresponding index information is deleted, it will only be deleted in units of zones, which is less efficient

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
  • Data storage management method, device and equipment
  • Data storage management method, device and equipment
  • Data storage management method, device and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] Such as figure 2 As shown, the embodiment of the present application provides a data storage management method, wherein the data instruction includes a write data instruction and a data read instruction, and the method includes the following steps:

[0060] Step 201, in response to the write data instruction, write the data block into the zone, and use the unique identifier of the data block as the key, and the location information of the data block as the value, generate a data block index in the form of key-value, and store the The data block index is written into the storage area corresponding to the index information in the memory;

[0061] After receiving the write data command, first query whether the remaining space in the used zone can still satisfy the data block writing, if so, then write the data block into the zone in order, otherwise, write the data block into the zone in order From the used zone until the used zone is full, the data block write length is...

Embodiment approach

[0087] When the SMR disk needs to read the global data to determine the use of the zone, the above-mentioned zone index can be traversed to obtain the data storage information in each zone. As an optional implementation, the method also includes:

[0088] Responding to the SMR disk global data determination instruction, traversing the zone index;

[0089] Determine the value corresponding to each key in the traversed zone index, and obtain the data storage information in each zone.

[0090] During the implementation, since the data stored in the memory will not be retained when the SMR disk is started, after receiving the SMR disk global data confirmation command, the index information storage area of ​​the CMR area is traversed for the zone index, among which, firstly, the zone prefix is ​​used to index to All zone indexes, and then traverse.

[0091] In the above step 201, in response to the write data instruction, after the data block is written into the zone, the correspo...

Embodiment 2

[0108] A data storage management method in the present application is described above, and an apparatus for performing the above data storage management is described below.

[0109] see Figure 5 , the embodiment of the present application provides a data storage management device, the device includes:

[0110] The data block index generating module 501 is configured to write the data block into the zone in response to the write data instruction, and use the unique identifier of the data block as the key, and the position information of the data block as the value to generate a key-value format Data block index, writing the data block index into the storage area corresponding to the index information in the internal memory; when the amount of data in the storage area reaches the set threshold, the data in the storage area is encapsulated into a file and stored in the CMR area;

[0111] The data reading module 502 is configured to respond to the read data instruction, accordin...

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 provides a data storage management method, device and equipment, and the method comprises the steps: responding to a data writing instruction, writing a data block into zone, taking a unique identifier of the data block as a key, taking the position information of the data block as a value, generating a data block index in a key-value form, and writing the data block index into a storage region corresponding to index information in a memory; when the data volume of the to-be-stored area reaches a set threshold value, packaging the data of the storage area into a file and storing the file in the CMR area; in response to the data reading instruction, retrieving a first target key matched with a target identifier in the instruction in the data block index; the corresponding first target value is positioned according to the first target key, and the target data block is read according to the position information of the data block in the first target value, so that efficient storage and management of the data block and the metadata index information thereof by using the SMR disk are realized.

Description

technical field [0001] The present application relates to the technical field of data storage, and in particular to a data storage management method, device and equipment. Background technique [0002] SMR (Shingled magnetic recording disk, shingled recording disk) increases the disk density per unit space by reducing track write amplification and sacrificing random write data to obtain higher storage space. The SMR disk includes a CMR (traditional magnetic recording) area and an SMR (tile-shaped magnet recording) area. The CMR area is small and supports random reading and writing. It generally accounts for 1% of the entire SMR disk capacity, and the rest is the SMR area; the SMR area Random writing is not supported, and only 256MB can be used as the minimum unit for continuous writing and deletion (called a zone). Each zone has a write pointer, which is used to control the sequential writing of data in the zone. [0003] With the continuous development of distributed objec...

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 Applications(China)
IPC IPC(8): G06F3/06G06F16/13G06F16/172
CPCG06F3/061G06F3/064G06F3/0643G06F3/0644G06F3/0652G06F3/067G06F16/134G06F16/172
Inventor 王志豪戴恩亮罗心江文龙周明伟应秀梅
Owner ZHEJIANG DAHUA TECH CO LTD
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