Unlock instant, AI-driven research and patent intelligence for your innovation.

Small file aggregation storage processing method

A processing method and technology for small files, which are applied in digital data processing, input/output process of data processing, instruments, etc., and can solve problems such as inability to clear small files in time, inability to determine file information, and troublesome disk management.

Active Publication Date: 2017-09-15
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when small files are stored in close alignment, multiple small files are stored on the same object, and the file information stored in the object cannot be determined when the file is read from the object
Since the disk space is not really released when the small file is deleted, it is necessary to count the disk usage of each object of the aggregated file, and determine whether to start the disk cleanup task according to the disk usage of the aggregated file. Therefore, it brings trouble to the disk management and cannot be timely Clear useless small files, wasting disk space

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
  • Small file aggregation storage processing method
  • Small file aggregation storage processing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions protected by the present invention will be clearly and completely described below using specific embodiments and accompanying drawings. Obviously, the implementation described below Examples are only some embodiments of the present invention, but not all embodiments. Based on the embodiments in this patent, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this patent.

[0033] This embodiment provides a small file aggregation storage processing method, such as figure 1 As shown, the methods include:

[0034] S1: Set the information list in the cache, and the information list is used to record the ino and size information of small files;

[0035] S2: Write the small file into the cache of the aggregation object, and record the ino information of the smal...

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 small file aggregation storage processing method. The method comprises following steps: setting an information list in a cache, wherein the information list is used for recording the ino and size information of the small file; writing the small file to the cache of the aggregate object, and recording the ino information of the small file into the information list; when the aggregate object cache reaches the refresh condition, extracting the ino of the small file from the information list and recording the ino in an array; after the ino of all small files are recorded in the array, inserting the array into a preset position of the aggregate object. By means of the small file ino stored in object header, small files contained in the current object can be clearly indicated. By means of bitmap information of the object header, the data storage status of the current object can be indicated; during scanning, the cache utilization rate of the current object can be calculated according to the bitmap.

Description

technical field [0001] The invention relates to the field of small file processing, in particular to a small file aggregation storage processing method. Background technique [0002] With the continuous development of technologies such as cloud computing, cloud storage, and the Internet of Things, data is showing an explosive growth trend. In some scenarios with a large number of small files, such as social shopping sites, radio and television, and online videos, the system generates a large number of small files such as text, pictures, and music. These files have the following characteristics: large in number, and the size is generally below 1M. Fast flow, frequent operations (write once, read many times). By aggregating small files into a large aggregate file in a tightly aligned manner, and then storing them, small files can be stored efficiently, disk usage can be improved, and the number of Rados calls can be reduced during file reading and writing, reducing the need f...

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): G06F3/06
CPCG06F3/0608G06F3/0643G06F3/0656
Inventor 张书扬
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD