File storage method and system

A technology of small files and large files, applied in closed-circuit television systems, special data processing applications, instruments, etc., can solve the problems of low performance, low storage performance, waste of storage space, etc., to save storage space, avoid file fragmentation, improve The effect of write performance

Active Publication Date: 2015-03-25
ZHEJIANG UNIVIEW TECH CO LTD
View PDF4 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, when storing small files through the file system, file fragments are prone to occur after a long period of full coverage, and the storage performance is low; while storing small files through cloud storage solutions, such as Hadoop solutions, cluster devices or multiple If a copy store stores small files, there will still be problems with low storage performance and a waste of storage 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
  • File storage method and system
  • File storage method and system
  • File storage method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The present invention aims to map small files written by front-end equipment into large files for storage, and has the storage performance of large files.

[0051]The solution of the present invention locally creates a large file for merging and storing the small files written by the front-end device, and when receiving the small file written by the front-end device, caches the index information of the received small file locally, Then write the small file and the corresponding description information into the large file according to the writing order, and when the large file can no longer write new data or write overtime, the index information of the small file that has been cached Batches are written to the small file index area in the order of writing. Since the index information includes the specified access path of the large file and the start offset of the small file in the large file, the user can The start offset directly accesses the small file on the large fi...

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 storage method which is applied to a storage device. The file storage method includes the steps that large files for merging and storing small files written by a front-end device are created in local; when the small files written by the front-end device are received, index information of the small files is cached in local; the large files are appointed for the small files, the small files and corresponding description information are written into the appointed large files according to the written-in sequence, and the cached indexing information of the small files is written into small file indexing areas in batch according to the written-in sequence when new data cannot be written into the large files any more or writing is timed out, wherein the indexing information comprises access paths of the appointed large files and starting offset of the small files in the large files. By means of the file storage method, the written-in performance of the small files can be improved.

Description

technical field [0001] The invention relates to the field of video monitoring, in particular to a file storage method and system. Background technique [0002] With the rapid development of the bayonet monitoring business, the storage of small files such as single pictures has become a major problem in the industry. At present, the existing solutions for the storage of small files in the industry are mainly realized through file systems or cloud storage solutions. [0003] However, when storing small files through the file system, file fragments are prone to occur after a long period of full coverage, and the storage performance is low; while storing small files through cloud storage solutions, such as Hadoop solutions, cluster devices or multiple If a replica store stores small files, there will still be problems of low storage performance and a waste of storage space. Contents of the invention [0004] In view of this, the present invention proposes a small file storag...

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): G06F17/30H04N7/18
CPCG06F16/134H04N7/18
Inventor 吕志明
Owner ZHEJIANG UNIVIEW TECH CO LTD
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