Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for writing files

A file and file management system technology, applied in the field of file writing methods and devices, can solve problems such as low file writing efficiency and reduced service life of storage media, and achieve the goals of improving writing efficiency, balancing erasing and writing, and extending service life Effect

Active Publication Date: 2022-03-01
新华三智能终端有限公司
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the method of randomly selecting pre-allocated sub-areas in related technologies leads to low file writing efficiency and reduced service life of storage media.

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 and device for writing files
  • Method and device for writing files
  • Method and device for writing files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

[0030] The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term...

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

This application provides a file writing method and device, which divides the data storage area into several pre-allocated sub-areas in advance in the storage medium, and divides the average number of erasing and writing times and addressing of the pre-allocated sub-area clusters in the storage medium. Duration pre-allocated information area. In the case of file writing requirements, determine the candidate pre-allocation subarea whose average number of erasing and writing times of the cluster meets the conditions; and determine the target pre-allocation subarea whose addressing duration meets the condition from the candidate pre-allocation subareas, and send Allocate sub-area to write data. In this way, by determining the candidate pre-allocated sub-area with a lower average number of times of erasing and writing each time, balanced erasing and writing are realized, thereby prolonging the service life of the storage medium; in addition, by determining the target pre-allocated sub-area with a shorter addressing time , improving the writing efficiency.

Description

technical field [0001] The present application relates to the field of computer application technology, in particular to a file writing method and device. Background technique [0002] A storage medium is generally composed of multiple minimum management units (generally referred to as clusters), and the file management system realizes the management of the storage medium by managing multiple clusters in the storage medium. [0003] For some usage scenarios, the files written each time are about the same size, and the maximum value of the files will not exceed a certain value. For example, in an audio and video surveillance scenario, each file stored is audio and video data of a fixed duration. In this scenario, in order to improve the write speed and avoid the problem of write amplification, the pre-allocation method is often used. According to the theoretical maximum value of each file written, the data storage area of ​​the storage medium is divided into multiple pre-all...

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): G06F16/13G06F16/61G06F16/71
CPCG06F16/13G06F16/61G06F16/71
Inventor 武鹏伟李俊杰魏孝天王兵王俊喆
Owner 新华三智能终端有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products