Reserved Memory Scanning for VM Cold-Hot State Tracking
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In new virtualization scenarios, the reserved memory allocated to virtual machines is not monitored effectively for its cold and hot states, leading to an inability to track changes in memory usage patterns, which affects host kernel functions and memory management efficiency.
Innovation Solution
A memory scanning method and apparatus that periodically scans reserved memory at preset intervals to determine its current cold and hot states, recording these states into a target record table to track changes and aging conditions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Quantity of substance
If reserved memory is allocated for future virtual machine use, then memory resource availability is improved, but the ability to monitor cold and hot states deteriorates
Solution Approach 1:
The patent introduces a memory scanning module as an intermediary component that periodically scans reserved memory regions to collect access information. This mediator enables monitoring of cold and hot states without interfering with the reserved memory's primary function of being available for future virtual machine allocation, thus resolving the contradiction between memory availability and monitoring capability
2Measurement precision
If memory scanning is performed at preset time intervals, then cold and hot state tracking is improved, but system time consumption increases
Solution Approach 1:
The patent implements periodic scanning of reserved memory at preset time intervals rather than continuous scanning. This periodic action maintains accurate tracking of cold and hot states by capturing memory access patterns at regular intervals, while significantly reducing the time cost compared to continuous monitoring, thus resolving the contradiction between tracking accuracy and time consumption
3Productivity
If reserved memory is not monitored by kernel functions, then host kernel performance is improved, but memory state information collection deteriorates
Solution Approach 1:
The patent introduces a memory scanning module as an intermediary that collects memory state information without relying on host kernel functions. This intermediary operates independently to gather cold and hot state information, thus maintaining host kernel performance while preventing loss of memory state information that would occur without monitoring
Data Source
AI summary
Provided in the embodiments of the present specification are a memory scanning method and apparatus, wherein the method includes: determining a reserved memory scanning range at a preset time interval; scanning reserved memory to be scanned within the reserved memory scanning range and determining a current cold and hot state of the reserved memory to be scanned; and determining a target record table for the current cold and hot state of the reserved memory to be scanned according to the current cold and hot state of the reserved memory to be scanned and recording the current cold and hot state of the reserved memory to be scanned into the target record table.


