Adaptive Swap Pool Allocation for QoS-Aware Virtual Memory

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing memory management systems struggle to efficiently manage virtual memory by optimizing the distribution of swap pools and swap operations based on quality of service (QoS) and system efficiency, leading to suboptimal performance and resource utilization.

Innovation Solution

A method and device that adaptively adjust the distribution state and size of swap pools based on QoS and system efficiency, using a first and second swap pool, where the first pool is compressed and the second is uncompressed, to optimize swap-in and swap-out operations, ensuring QoS and improving system efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If swap space is allocated on the same physical disk as the root file system, then device utilization is improved, but I/O performance deteriorates due to contention for disk I/O resources

Engineering Contradiction:
Improvedevice utilizationVSAvoidI/O performance
Core Design Contradiction:
Adaptability or versatilityVSSpeed

Solution Approach 1:

The patent segments the swap space from the root file system by allocating it on a separate physical disk or partition. This separation divides the I/O resources into distinct domains, allowing the root file system and swap space to operate independently without competing for the same disk I/O bandwidth, thereby resolving the performance degradation caused by I/O contention.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary mechanism through the memory management unit that mediates between the root file system and swap space. By managing page swap operations through this intermediary layer and optimizing the timing and location of swap operations, the system reduces direct I/O contention while maintaining effective use of available disk resources.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Device complexity

If a fixed swap space size is configured, then system simplicity is improved, but system efficiency deteriorates when memory usage patterns change

Engineering Contradiction:
Improveconfiguration simplicityVSAvoidsystem efficiency
Core Design Contradiction:
Device complexityVSProductivity

Solution Approach 1:

The patent implements dynamic swap space management where the swap space allocation is no longer fixed but adapts to changing memory usage patterns. The system continuously monitors memory pressure and workload characteristics, dynamically adjusting the amount of swap space allocated and the aggressiveness of swap operations to match current system demands, thereby maintaining high efficiency across varying workload conditions.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes key parameters of the swap space management system based on runtime conditions. This includes adjusting swap threshold percentages, swap-out frequencies, and priority levels for different processes based on system load, memory pressure, and workload type. These parameter changes allow the system to optimize swap behavior for different scenarios without requiring manual reconfiguration.

Inventive Principle:
Principle #35Parameter changes

3Quantity of substance

If aggressive swap-out policies are used, then memory utilization is improved, but task execution speed deteriorates due to frequent swap-in operations

Engineering Contradiction:
Improvememory utilizationVSAvoidtask execution speed
Core Design Contradiction:
Quantity of substanceVSSpeed

Solution Approach 1:

The patent implements periodic swap operations rather than continuous aggressive swapping. The system uses aging algorithms and time-based metrics to determine when swap operations should occur, performing swaps at regular intervals or when specific time-based thresholds are met. This periodic approach prevents excessive swap-in operations while still maintaining adequate memory utilization by gradually moving less frequently used pages to swap space.

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The patent incorporates feedback mechanisms that monitor system performance metrics including task execution speed, memory pressure, and swap operation frequency. When swap-in operations begin to degrade performance, the feedback loop adjusts the swap-out policy to be less aggressive. The system uses this feedback to dynamically balance memory utilization against execution speed, preventing the harmful effects of excessive swapping while maintaining efficient memory usage.

Inventive Principle:
Principle #23Feedback

Data Source

PatentEP4435611B1Method and device with dynamic adjustment of swapping
Publication Date: 2026.05.06 SAMSUNG ELECTRONICS CO LTD
  • EP4435611B1 patent drawingFigure 1A
  • EP4435611B1 patent drawingFigure 1B
  • EP4435611B1 patent drawingFigure 2

AI summary

A method, for managing a virtual memory using a first memory including a main memory space and a first swap pool and a second memory including a second swap pool, includes: based on a quality of service (QoS) of tasks or on a system efficiency corresponding to execution of the tasks, adaptively adjusting a distribution state of the first memory or a size of the first swap pool; and based on the adaptively adjusted distribution state of the first memory or the adaptively adjusted size of the first swap pool, performing swap-out of a first page of the tasks from the main memory space to the first swap pool or the second swap pool or performing swap-in of a second page of the tasks from the first swap pool or the second swap pool to the main memory space.