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

Method and device for dynamically adjusting storage unit based on block storage

A storage unit, dynamic adjustment technology, applied in the input/output process of data processing, instruments, electrical digital data processing and other directions, can solve the problem of waste of storage space, and achieve the effect of improving utilization, taking into account storage performance, and avoiding changes

Active Publication Date: 2019-07-30
ZHEJIANG UNIVIEW TECH CO LTD
View PDF8 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a method for dynamically adjusting storage units based on block storage, optimize and improve the existing file block storage method, and better solve the problem of waste of storage space caused by file block storage

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 dynamically adjusting storage unit based on block storage
  • Method and device for dynamically adjusting storage unit based on block storage
  • Method and device for dynamically adjusting storage unit based on block storage

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] Embodiment 1, if the picture size S1>the remaining space S2 of the storage unit.

[0051] If the remaining space S2 of the storage unit is greater than the first threshold X1, then expand the size of the storage unit so as to store the file to be stored;

[0052] If the remaining space S2 of the storage unit is less than the second threshold X2, then keep the size of the storage unit unchanged, and store the file to be stored in the next storage unit;

[0053] If the remaining space S2 of the storage unit is less than or equal to the first threshold X1 and greater than or equal to the second threshold X2, the size of the storage unit is reduced, and the file to be stored is stored in the next storage unit.

[0054]That is, when the remaining space S2 of the storage unit>the first threshold X1, it means that the remaining space S2 of the storage unit is relatively large, and the storage unit can be expanded to a size that can just store the picture by enlarging the size ...

Embodiment 2

[0057] Embodiment 2, if the picture size S1>the remaining space S2 of the storage unit.

[0058] When the remaining space S2 of the storage unit>the first threshold X1, it means that the remaining space S2 of the storage unit is relatively large, and the size of the storage unit can be enlarged to the size that can just store the picture, and the value can be enlarged Equal to S1–S2, to store pictures. Adjust the index and adjust the offset at the same time.

[0059] When the remaining space S2 of the storage unit<the second threshold X2, it means that the remaining space S2 of the storage unit is relatively small and can no longer be used. The size of the storage unit is not adjusted, and the picture continues to be stored in the next storage unit. The advantage of this is to avoid frequent adjustments and affect performance.

[0060] When the second threshold X2<=remaining space S2 of the storage unit<=the first threshold X1, it means that the remaining space S2 of the sto...

Embodiment 3

[0061] Embodiment 3, if the picture size S1<=the remaining space S2 of the storage unit.

[0062] Store the picture directly in the remaining space of the storage unit without adjusting the size of the storage unit. Also update the index.

[0063] It should be noted that when adjusting the size of the storage unit, generally speaking, the amount of expansion or reduction shall be based on the amount that can just save the file to be stored. Of course, appropriately relaxing the amount of expansion or reduction will not affect the technical effect of the present invention. The purpose of the technical solution is to minimize the waste of storage space.

[0064] In one embodiment, expanding or reducing the size of the storage unit to adapt to the size of the file to be stored also includes:

[0065] When the size of the storage unit is expanded or reduced to suit the size of the file to be stored, the index corresponding to the file to be stored is updated and the offset is re...

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 method and a device for dynamically adjusting a storage unit based on block storage. Through comparing the size of a to-be-stored file and the remaining space of a storage unit, when the to-be-stored file is smaller than or equal to the residual space of the storage unit, the size of the storage unit is kept unchanged for storage, otherwise, the size of the storage unit is expanded or reduced to adapt to the size of the to-be-stored file. In the block storage mode, the size of the storage unit can be dynamically adjusted through threshold setting, the utilization rateof the storage space is increased, meanwhile, the two thresholds including the minimum threshold and the maximum threshold are set, frequent change is avoided, and therefore the storage performance is considered. In addition, the problem of reading when the file is fully covered is solved by storing the reference address value before adjustment.

Description

technical field [0001] The invention belongs to the technical field of data storage, and in particular relates to a method and device for dynamically adjusting storage units based on block storage. Background technique [0002] In the field of video surveillance, especially in the application scenarios of video surveillance bayonets, the storage of small files including pictures is a major problem that needs to be faced. There are usually problems such as low performance of picture storage, unreliable stored data, and waste of storage space. . For the problem of low storage performance and space waste of files, especially image blocks, the existing similar solutions and ideas are: aggregate and store multiple images, and write the offset of the image relative to the storage unit into the index to achieve one-time Find and locate, and solve the problem of wasting image storage space to a certain extent. [0003] The above technical solution stores a batch of small files tog...

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): G06F3/06
CPCG06F3/0607G06F3/064G06F3/0643G06F3/0644
Inventor 周迪付建辉路小波
Owner ZHEJIANG UNIVIEW TECH CO LTD
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