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

File writing method and device

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-01-07
新华三智能终端有限公司
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
  • File writing method and device
  • File writing method and device
  • File writing method and device

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

The invention provides a file writing method and device, and the method comprises the steps: dividing a data storage region into a plurality of pre-distribution sub-regions in a storage medium in advance, and dividing a pre-distribution information region which is used for recording the average erasing frequency and addressing duration of a pre-distribution sub-region cluster in the storage medium; under the condition that a file writing demand exists, determining candidate pre-allocated sub-regions of which the average cluster erasing and writing times meet conditions; determining a target pre-allocation sub-region of which the addressing time length meets a condition from the candidate pre-allocation sub-regions, and writing data into the target pre-allocation sub-region. Therefore, by determining the candidate pre-allocated sub-regions with lower cluster average erasing times every time, balanced erasing is realized, so that the service life of the storage medium is prolonged; in addition, the writing efficiency is improved by determining the target pre-allocated sub-region with shorter addressing duration.

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 Applications(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