Method for dynamically calculating MD5 value in storage device

A storage device and dynamic technology, applied in the field of network storage, can solve the problems of high CPU consumption and waste of CPU resources, and achieve the effects of reducing CPU consumption, avoiding waste of CPU resources, and improving CPU utilization.

Active Publication Date: 2022-01-21
CHINA ZHESHANG BANK +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to address the deficiencies in the prior art, and provide a method for dynamically calculating MD5 values ​​in a storage device, so as to solve the problem of high CPU consumption in the prior art calculation of MD5 values ​​in storage devices that communicate with the S3 protocol and the NAS protocol, especially in The frequent modification of the scene by the object causes a waste of CPU resources

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
  • Method for dynamically calculating MD5 value in storage device
  • Method for dynamically calculating MD5 value in storage device
  • Method for dynamically calculating MD5 value in storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the above objects, features and advantages of the present invention more comprehensible, specific implementations of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0027] In the following description, a lot of specific details are set forth in order to fully understand the present invention, but the present invention can also be implemented in other ways different from those described here, and those skilled in the art can do it without departing from the meaning of the present invention. By analogy, the present invention is therefore not limited to the specific examples disclosed below.

[0028] The present application proposes a method for dynamically calculating the MD5 value in a storage device, the method comprising:

[0029] Such as figure 1 As shown, in a storage device that communicates with the S3 protocol and the NAS protocol, objects can be read and modified through both NAS and S3; ...

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 discloses a method for dynamically calculating an MD5 value in a storage device, which is applied to the storage device in which an object storage S3 protocol and a file storage NAS protocol are intercommunicated to realize dynamic calculation of the MD5 value. When an object is uploaded through an NAS protocol, an MD5 value is calculated online in real time; when the object is modified in a modified writing or additional writing mode, the MD5 value is modified to be in a temporary state, meanwhile, a calculation task is created to asynchronously calculate the MD5 value, and the priority of the calculation task is set; and the background thread periodically enumerates the calculation task for calculation. Counts are set in a frequent object modification scene, and when the object is modified, the counts are increased if a previously created calculation task is not executed, so that repeated calculation is avoided; in order to reduce CPU consumption caused by frequent modification, a validity period is set, if an object is modified in the validity period, only the MD5 value is modified to be in a temporary state without calculation, and if a user needs to check the MD5 value in the validity period, an asynchronous calculation task is created, and the priority of the calculation task is improved.

Description

technical field [0001] The invention relates to the technical field of network storage, in particular to a method for dynamically calculating MD5 values ​​in a storage device. Background technique [0002] Network storage technology is a data storage technology and a data storage method based on the network. Through various network media, storage devices and servers are connected to provide shared, highly scalable, and easy-to-manage data storage for application systems. [0003] Unstructured data is data whose data structure is irregular or incomplete, without a predefined data model. File storage NAS (Network Attached Storage, Network Attached Storage) and object storage are currently mainstream unstructured data storage methods. NAS stores unstructured data in an organized manner through a hierarchical system of directories and folders. S3 (SimpleStorage Service, simple Storage Service) and other object storage stores attributes such as file names and creation dates of ...

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): G06F16/182G06F9/50
CPCG06F16/1827G06F9/505G06F2209/5021
Inventor 周文举赵鸿博富浩
Owner CHINA ZHESHANG BANK
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