Dynamic Shared Memory Pool Mechanism for Service Scenario Adaptation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing memory pool management systems are inflexible and unable to adapt to varying service scenarios, leading to performance bottlenecks due to either fixed memory allocation, which is not scalable, or frequent dynamic scaling that fluctuates system performance.

Innovation Solution

A method and apparatus for dynamically managing a shared memory pool by determining the appropriate mechanism based on service scenarios, adjusting between fixed and dynamic memory pool mechanisms based on memory usage parameters, ensuring optimal resource allocation and performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If a fixed memory pool mechanism is used, then memory allocation is simple and stable, but the system cannot adapt to varying service scenarios and memory usage patterns

Engineering Contradiction:
Improveadaptability to service scenariosVSAvoidmemory management complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent implements a dynamic memory pool mechanism that automatically adjusts memory allocation based on service scenarios and usage patterns. The system transitions from a static fixed memory pool to a dynamic one that can scale and adapt to different computational workloads, thread configurations, and data stream characteristics, thereby improving adaptability while managing complexity through automated control.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes memory management parameters dynamically based on service scenario detection. When a service scenario changes is detected, the system adjusts memory pool size, allocation strategies, and management mechanisms to match the new scenario requirements, enabling adaptability without requiring complete system redesign.

Inventive Principle:
Principle #35Parameter changes

2Adaptability or versatility

If a dynamic memory pool mechanism is used, then memory can be allocated on demand, but frequent scaling causes fluctuation of system performance

Engineering Contradiction:
Improveflexibility in memory allocationVSAvoidsystem performance stability
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system performs preliminary detection of service scenario changes before executing memory pool adjustments. By detecting scenario changes in advance and preparing appropriate memory management strategies, the system reduces abrupt transitions and performance fluctuations, maintaining stability while preserving flexibility.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements a feedback mechanism that monitors service scenario changes and memory usage patterns, then adjusts memory pool configuration accordingly. This closed-loop control ensures that memory allocation adapts to实际需求 while minimizing unnecessary scaling operations that would cause performance instability.

Inventive Principle:
Principle #23Feedback

3Reliability

If memory pool size is increased to handle all scenarios, then memory availability is sufficient, but memory resources are wasted in scenarios with lower usage

Engineering Contradiction:
Improvememory availabilityVSAvoidmemory resource usage
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The system uses a dynamic memory pool that adjusts its size and allocation based on detected service scenarios. Instead of allocating maximum memory for all scenarios, the memory pool scales to match actual requirements, ensuring sufficient availability when needed while reducing waste during low-usage scenarios.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent changes memory pool parameters such as size, allocation strategy, and management mechanism based on service scenario detection. This enables the system to optimize memory resource usage by matching allocation to actual demand rather than using a fixed oversized pool for all cases.

Inventive Principle:
Principle #35Parameter changes

4Quantity of substance

If memory pool size is reduced to save resources, then memory efficiency is improved, but memory availability becomes insufficient during high-demand scenarios

Engineering Contradiction:
Improvememory resource efficiencyVSAvoidmemory availability
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The dynamic memory pool mechanism allows the system to reduce memory usage during low-demand scenarios to improve efficiency, while automatically expanding memory availability when high-demand scenarios are detected. This dynamic adjustment ensures both resource efficiency and sufficient availability.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system adjusts memory pool parameters dynamically based on service scenario detection, increasing memory allocation when scenarios require higher availability and reducing it when efficiency is prioritized, thus resolving the contradiction between resource efficiency and availability.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12175082B2Method and apparatus for dynamically managing shared memory pool
Publication Date: 2024.12.24 HUAWEI TECH CO LTD
  • US12175082B2 patent drawing
  • US12175082B2 patent drawing
  • US12175082B2 patent drawing

AI summary

A method and an apparatus for dynamically managing a shared memory pool are provided, to determine, based on different service scenarios, a shared memory pool mechanism applicable to a current service scenario, and then dynamically adjust a memory pool mechanism based on the determined result. The method for dynamically managing a shared memory pool includes: determining a first shared memory pool mechanism for the shared memory pool, where the first shared memory pool mechanism is a fixed memory pool mechanism or a dynamic memory pool mechanism; determining a second shared memory pool mechanism suitable for a second service scenario based on the second service scenario, where the second shared memory pool mechanism is a fixed memory pool mechanism or a dynamic memory pool mechanism; and when the second shared memory pool mechanism is different from the first shared memory pool mechanism, adjusting the first shared memory pool mechanism to the second shared memory pool mechanism.