Adaptive Shared Virtual Memory Page Management Mode Switching

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improveaccess performanceVSAvoidadaptability to different access patterns
Core Design Contradiction:
ProductivityVSAdaptability or versatility

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.

Inventive Principle:
Principle #15Dynamics

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.

Inventive Principle:
Principle #35Parameter changes

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

Engineering Contradiction:
Improveaccess performanceVSAvoidadaptability to different access patterns
Core Design Contradiction:
ProductivityVSAdaptability or versatility

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.

Inventive Principle:
Principle #15Dynamics

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.

Inventive Principle:
Principle #35Parameter changes

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

Engineering Contradiction:
Improveaccess performanceVSAvoidcomplexity of memory management system
Core Design Contradiction:
ProductivityVSDevice complexity

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.

Inventive Principle:
Principle #23Feedback

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.

Inventive Principle:
Principle #25Self-service

Data Source

PatentEP2940595B1Method and relevant device for determining mode of managing shared virtual memory page
Publication Date: 2020.02.12 HUAWEI TECH CO LTD
  • EP2940595B1 patent drawingFigure 1~2-a
  • EP2940595B1 patent drawingFigure 2-b
  • EP2940595B1 patent drawingFigure 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.