Adaptive Swap Buffer for Mobile Device Memory Management
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Mobile devices face inefficiencies in managing data swapping between volatile and non-volatile memory, leading to performance issues due to the lack of differentiated swapping operations for various data types.
Innovation Solution
A mobile device with a storage system that includes a swap victim buffer and normal data area, where an application processor performs instant or lazy swapping operations based on the data type of page data, using DRAM and nonvolatile memory, and controls data paths through direct memory access to optimize swapping.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If all page data is swapped using the same operation (instant swap), then the implementation is simple, but performance deteriorates due to unnecessary swapping of compressible data
Solution Approach 1:
The patent applies dynamics by making the swapping operation adaptive rather than static. The system dynamically selects between instant swapping and lazy swapping based on data characteristics (compressibility). This allows the swapping mechanism to adjust its behavior according to the specific data being swapped, improving overall memory management efficiency while maintaining implementation feasibility through a unified buffer structure.
Solution Approach 2:
The patent changes the swapping parameter (operation type) based on data properties. By analyzing data compressibility and selecting different swapping modes (instant vs. lazy), the system optimizes memory operations. Compressible data undergoes lazy swapping with compression, while non-compressible data uses instant swapping, thereby improving productivity without significantly increasing complexity.
2Quantity of substance
If lazy swapping with compression is performed on all page data, then memory usage is optimized, but processing time increases due to compression overhead
Solution Approach 1:
The patent applies local quality by treating different data regions differently based on their compressibility characteristics. Instead of applying compression uniformly to all data, the system identifies compressible data portions and applies lazy swapping only to those regions. This localized approach optimizes memory usage for suitable data while avoiding the time penalty of compression for non-compressible data.
Solution Approach 2:
The system changes the swapping parameter based on data properties, selecting lazy swapping with compression only when beneficial. By evaluating data compressibility first, the system avoids unnecessary compression operations, thereby optimizing the balance between memory usage and processing time.
3Speed
If instant swapping is used for all data types, then swapping speed is fast, but memory efficiency deteriorates due to lack of compression
Solution Approach 1:
The system dynamically adjusts the swapping speed based on data characteristics. For compressible data, it uses lazy swapping which includes compression, accepting slower speed for better memory efficiency. For non-compressible data, it uses instant swapping for fast performance. This dynamic adaptation resolves the contradiction between speed and memory efficiency.
Solution Approach 2:
The patent changes the swapping mode parameter based on data compressibility analysis. By selecting instant swapping for non-compressible data and lazy swapping for compressible data, the system optimizes both speed and memory efficiency according to the specific data being handled.
4Productivity
If differentiated swapping operations are implemented for various data types, then memory management efficiency is improved, but device complexity increases
Solution Approach 1:
The patent applies segmentation by dividing the swapping operation into distinct types (instant swapping and lazy swapping) based on data characteristics. The buffer memory is also segmented into different areas (swap victim buffer area and normal data area). This segmentation allows efficient handling of different data types while maintaining a structured and manageable implementation.
Solution Approach 2:
The patent introduces a swap victim buffer as an intermediary structure between the normal data area and the swap operations. This intermediary buffer facilitates the differentiated swapping operations by providing a dedicated space for data being swapped out, simplifying the implementation complexity while enabling efficient memory management.
Data Source
AI summary
A mobile device includes a storage configured to store data, a buffer memory configured to include a swap victim buffer area and a normal data area, and an application processor configured to select page data to be swapped from the normal data area and to perform a swapping operation on the selected page data. The swapping operation performs an instant swapping operation or a lazy swapping operation according to a data type of the selected page data.


