Reserved Memory Scanning for VM Cold-Hot State Tracking

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

VSEngineering 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

Engineering Contradiction:
Improvememory resource availabilityVSAvoidcold and hot state monitoring capability
Core Design Contradiction:
Quantity of substanceVSMeasurement precision

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

Inventive Principle:
Principle #24Intermediary (Mediator)

2Measurement precision

If memory scanning is performed at preset time intervals, then cold and hot state tracking is improved, but system time consumption increases

Engineering Contradiction:
Improvecold and hot state tracking accuracyVSAvoidscanning time cost
Core Design Contradiction:
Measurement precisionVSLoss of time

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

Inventive Principle:
Principle #19Periodic action

3Productivity

If reserved memory is not monitored by kernel functions, then host kernel performance is improved, but memory state information collection deteriorates

Engineering Contradiction:
Improvehost kernel performanceVSAvoidmemory state information
Core Design Contradiction:
ProductivityVSLoss of information

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

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS12481598B2Memory scanning method and apparatus
Publication Date: 2025.11.25 CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD
  • US12481598B2 patent drawing
  • US12481598B2 patent drawing
  • US12481598B2 patent drawing

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.