Data storage method and medium

A technology for data storage and storage media, which is used in electrical digital data processing, digital data information retrieval, special data processing applications, etc. Utilize storage space, avoid wasting storage space, and improve the overall effect

Active Publication Date: 2021-02-23
深圳市云网万店科技有限公司
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the actual use of the above-mentioned random overwriting method, due to the random selection of storage segments, it is easy to have unused storage segments not selected, resulting in waste of storage space, and because files are randomly written into different storage segments, resulting in head Frequent movement will cause a large delay in file writing and affect the overall writing performance

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 method and medium
  • Data storage method and medium
  • Data storage method and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056]In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Some, but not all, embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0057] As mentioned in the background art, the existing file system usually pre-allocates a section of space on the disk for random writing of files, and writes in a random overwriting manner. However, random overwriting is likely to cause waste of storage space, and frequent head movement affects the writing process. In order to solve the above technical problems, an ...

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 data storage method and a medium. The data storage method comprises the steps that a writing request of a file is received, wherein the file comprises a data block, the datablock comprises a data page, and data is recorded in the data page; reading storage segment information, searching a first currently available storage segment in a storage segment linked list according to the storage segment information, and determining the first currently available storage segment as a to-be-written storage segment, wherein the storage segment linked list is composed of currentlyunavailable storage segments and adjacently arranged currently available storage segments, wherein each storage section in the currently available storage sections is arranged according to the size of the available storage space; and additionally writing each data block in the file into the to-be-written storage segment by taking the data page as a unit. According to the method, the data page ispreferentially written into the currently available storage segment with small available storage space, so that the space of the storage segment can be fully utilized, and the waste of the storage space is avoided.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a data storage method and a medium. Background technique [0002] Existing file systems usually use random overwriting when writing files, that is, the disk is pre-allocated into several segments as storage segments, and the data to be written is read into the cache before writing, and then the storage segment is randomly selected , Erase invalid data in the storage segment, read valid data to the cache, and finally write the data in the cache to the storage segment. In the actual use of the above-mentioned random overwriting method, due to the random selection of storage segments, it is easy to have unused storage segments not selected, resulting in waste of storage space, and because files are randomly written into different storage segments, resulting in head Frequent movement will cause a large delay in file writing, which will affect the overall writing performance. ...

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/172G06F3/06
CPCG06F16/172G06F3/0608G06F3/0643
Inventor 荆伟朱晓伟
Owner 深圳市云网万店科技有限公司
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