Dynamic Memory Space Management for Data Storage
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing data management systems for memory media, such as cameras and embedded devices, face limitations in memory space utilization due to fixed allocations for each data type, leading to inefficiencies like unused space, data loss, and inefficient space reallocation.
Innovation Solution
A data management method and device that dynamically assesses the need for additional space by identifying excess data types and deleting unnecessary data to free up space, allowing new data to be written into the memory medium efficiently.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If fixed memory space allocation is used for each data type, then data storage is guaranteed within allocated space, but memory medium utilization is insufficient and space cannot be fully utilized
Solution Approach 1:
The patent implements dynamic memory space management by allowing data to exceed pre-allocated memory spaces when sufficient free space exists in the memory medium. The system continuously monitors free space and permits overflow writing from one data type's allocated space into available free space, transforming the static fixed allocation into a dynamic flexible allocation mechanism that adapts to actual storage needs.
2Productivity
If pre-allocated memory spaces are reduced for certain data types, then space can be freed for other purposes, but older data exceeding allocated space is deleted causing data loss risk
Solution Approach 1:
Instead of reducing allocated space to free up memory (traditional approach), the patent inverts the logic by allowing data to expand beyond allocated spaces when free space is available. The system checks if total free space suffices before permitting overflow writing, thereby utilizing existing free space rather than forcing reallocation that would delete data.
3Device complexity
If memory space is strictly allocated per data type, then space management is simple, but unoccupied spaces cannot be used for other purposes
Solution Approach 1:
The patent enables memory spaces to serve multiple functions: each data type has its pre-allocated space, but when free space is available, other data types can write into that space temporarily. This makes the memory medium universally usable by multiple data types under different conditions, increasing overall utilization without requiring complex manual reallocation.
4Reliability
If fixed allocation is used, then each data type has guaranteed space, but the upper limit of memory space for a single type is always limited to specified size
Solution Approach 1:
The patent changes the parameter of memory space allocation from fixed to variable. While pre-allocated spaces provide baseline guarantees, the actual usable space becomes dynamic based on available free space in the memory medium. This allows the upper limit of any single data type's storage to expand beyond its pre-allocated size when conditions permit, enhancing adaptability while maintaining reliability.
Data Source
AI summary
A data management method and device are provided. The method includes: in response to a first data type of first data to be written into a memory medium, obtaining a space size of a first write space of the first data; in response to determining that the space size is not less than or equal to a total free space of the memory medium, determining whether there is an excess data type among the data types; in response to determining that there is the excess data type, deleting at least part of second data belonging to the excess data type, updating the total free space, and determining whether the space size is less than or equal to the updated total free space; and in response to determining that the space size is less than or equal to the updated total free space, writing the first data into the memory medium.


