Supercharge Your Innovation With Domain-Expert AI Agents!

File writing method and device, equipment and medium

A file and large file technology, applied in the field of information, can solve the problems of users having no use value and wasting resources.

Pending Publication Date: 2022-07-05
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When writing, the data in the address of the user state is copied to the page cache of the file, and then the next thread is executed to place the data on the disk, but in fact, the read data has no direct use value for the user, and is only for the second Integrity of data written at one time, resulting in waste of 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
  • File writing method and device, equipment and medium
  • File writing method and device, equipment and medium
  • File writing method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0047] In the prior art, the general technique adopted by the lib library is to locate the position of the small file in the large file according to the offset of the small file in the large file, and to achieve the purpose of operating the small file by operating the large file, in particular, The process of writing hierarchical aggregation files by the lib library is a bit more complicated. According to whether the writing process ma...

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 file writing method and device, equipment and a medium, and relates to the technical field of information. The method comprises the following steps: acquiring a file writing request carrying to-be-written data for a target file; judging whether the target file is a small file used for forming a large file through hierarchical aggregation processing or not; if the target file is the small file, judging whether a file writing type corresponding to the file writing request is a file additional writing type or not; if the file writing type is a file appending writing type, creating a corresponding temporary page and a target page cache for the target file, and reading the target file into the temporary page; and copying the target file in the temporary page to the target page cache based on a page copying technology, and directly writing the to-be-written data into the target file. By means of the scheme, unnecessary resource waste can be reduced during file writing, the writing efficiency is improved, and the file writing process is optimized.

Description

technical field [0001] The present invention relates to the field of information technology, and in particular, to a file writing method, device, device and medium. Background technique [0002] In a distributed storage system, the data and metadata of files read and written by users through the kernel client are stored on the server side. Usually, files that are accessed frequently by users are placed in the source pool, and files that are accessed less frequently by users are placed in the migration pool. The data of the file is usually placed in the source pool at the beginning of creation, and after a period of time, it is migrated to the migration pool, and the migration process is called data grading. In some specific scenarios, there will be a large number of small files. In order to improve the classification efficiency of small files, the server needs to aggregate small files into large files and then migrate the large files. The aggregation is performed along with...

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
IPC IPC(8): G06F16/16G06F16/172G06F16/182
CPCG06F16/16G06F16/172G06F16/184
Inventor 荣章权
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More