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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com