Adaptive Shared Virtual Memory Page Management Mode Switching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing shared virtual memory page management modes, either DSM or SPM, fail to adapt to varying access characteristics, leading to suboptimal performance in different application scenarios, as they are fixed and do not dynamically adjust to changing access frequencies and modes.
Innovation Solution
A method and device that monitor access characteristics to dynamically switch between DSM and SPM modes based on specific threshold conditions, allowing for adaptive management of shared virtual memory pages by changing the mode to DSM when access frequency is high or access is read-only, and to SPM when access frequency is low or access is write-intensive.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If the shared virtual memory page uses the DSM mode as its management mode fixedly, then the system maintains simplicity in memory management, but the access performance cannot well meet actual requirements in some application scenarios
Solution Approach 1:
The patent implements dynamic mode switching between DSM and SPM management modes based on monitored access characteristics. The system transitions from a fixed management mode to a dynamic one that adapts to changing access patterns, thereby resolving the contradiction between maintaining simplicity and achieving high access performance across different application scenarios.
Solution Approach 2:
The patent changes the management mode parameter (DSM/SPM) based on monitored access characteristics such as access frequency and access mode. By dynamically adjusting this parameter according to actual usage patterns, the system optimizes access performance while maintaining adaptability to different application requirements.
2Productivity
If the shared virtual memory page uses the SPM mode as its management mode fixedly, then the system ensures uniform memory access, but the access performance cannot well meet actual requirements in other application scenarios
Solution Approach 1:
The patent implements dynamic mode switching between DSM and SPM management modes based on monitored access characteristics. The system transitions from a fixed management mode to a dynamic one that adapts to changing access patterns, thereby resolving the contradiction between maintaining simplicity and achieving high access performance across different application scenarios.
Solution Approach 2:
The patent changes the management mode parameter (DSM/SPM) based on monitored access characteristics such as access frequency and access mode. By dynamically adjusting this parameter according to actual usage patterns, the system optimizes access performance while maintaining adaptability to different application requirements.
3Productivity
If the management mode is changed dynamically based on access characteristics, then the access performance is optimized, but the device complexity increases due to monitoring and mode switching mechanisms
Solution Approach 1:
The patent employs a feedback mechanism where access characteristics are monitored and used to dynamically adjust the management mode. This feedback loop enables the system to optimize performance by adapting to actual usage patterns, justifying the increased complexity through measurable performance improvements.
Solution Approach 2:
The memory management system performs self-adjustment by automatically monitoring its own access characteristics and switching modes without external intervention. This self-service capability reduces the need for complex external control mechanisms while achieving performance optimization.
Data Source
Figure 1~2-a
Figure 2-b
Figure 3
AI summary
Embodiments of the present invention disclose a method and a related device for determining a management mode of a shared virtual memory page. A method for determining a management mode of a shared virtual memory page may include: monitoring access characteristics of a process accessing the shared virtual memory page; and changing the management mode of the shared virtual memory page to a shared physical memory mode if the monitored access characteristics meet a first set condition and a current management mode of the shared virtual memory page is a distributed shared memory mode. The technical solutions provided in the embodiments of the present invention can enhance performance of accessing a shared virtual memory.