NVRAM Garbage Collection Threshold Adjustment

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The operational efficiency of NVRAM components degrades over time due to the accumulation of invalid data, leading to increased write amplification and reduced effective lifespan, as well as decreased system performance.

Innovation Solution

A computer-implemented method that monitors performance in NVRAM and adjusts the percentage of invalid pages triggering garbage collection based on changes in the flow rate of I/O requests, increasing it during high flow rates and decreasing it during low flow rates.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If garbage collection is performed frequently to reclaim invalid pages, then memory performance is improved, but write amplification increases and device lifespan decreases

Engineering Contradiction:
Improvememory performanceVSAvoidwrite amplification
Core Design Contradiction:
ProductivityVSLoss of substance

Solution Approach 1:

The patent implements dynamic adjustment of garbage collection thresholds based on I/O workload characteristics. The system monitors I/O patterns and adapts the percentage of invalid pages that triggers garbage collection, using higher thresholds during high I/O periods and lower thresholds during low I/O periods, thereby optimizing the balance between performance and write amplification

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes the garbage collection trigger parameter (percentage of invalid pages) based on operating conditions. By adjusting this parameter dynamically according to I/O workload, the system achieves better performance during high throughput while reducing unnecessary garbage collection operations during low throughput, thus lowering overall write amplification

Inventive Principle:
Principle #35Parameter changes

2Quantity of substance

If garbage collection is performed to reclaim invalid data, then available memory space increases, but system performance decreases due to additional P/E cycles

Engineering Contradiction:
Improveavailable memory spaceVSAvoidsystem performance
Core Design Contradiction:
Quantity of substanceVSProductivity

Solution Approach 1:

The system dynamically adjusts garbage collection behavior based on real-time I/O workload monitoring. During high I/O periods, the system tolerates more invalid pages (higher threshold) to avoid disrupting performance-critical operations. During low I/O periods, it performs garbage collection more aggressively (lower threshold) to reclaim space, thus balancing space reclamation with performance maintenance

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system implements feedback control by monitoring I/O workload characteristics and using this information to adjust garbage collection thresholds. This closed-loop approach ensures that garbage collection is performed at optimal times when it least impacts system performance, while still maintaining sufficient available memory space

Inventive Principle:
Principle #23Feedback

3Productivity

If the garbage collection threshold is kept low to maintain performance, then invalid data is reclaimed promptly, but write amplification increases

Engineering Contradiction:
Improvememory performanceVSAvoidwrite amplification
Core Design Contradiction:
ProductivityVSLoss of energy

Solution Approach 1:

The system changes the garbage collection trigger parameter dynamically based on workload conditions. During high I/O periods, it increases the threshold to reduce unnecessary garbage collection and associated write amplification. During low I/O periods, it decreases the threshold to reclaim invalid data efficiently, thus optimizing the trade-off between performance and energy loss from write amplification

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12314171B2Adjusting garbage collection based on input/output flow rates
Publication Date: 2025.05.27 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12314171B2 patent drawing
  • US12314171B2 patent drawing
  • US12314171B2 patent drawing

AI summary

A computer-implemented method, according to one approach, includes: monitoring performance in NVRAM having a plurality of memory blocks. Moreover, a change in the flow rate of I/O requests received at the NVRAM is identified as a result of the monitoring. In response to identifying the change is an increase in the flow rate of received I/O requests, the percentage of invalid pages in a given block of NVRAM that triggers garbage collection to be performed on the given block is increased. However, in response to identifying the change is a decrease in the flow rate of received I/O requests, the percentage of invalid pages in a given block that triggers garbage collection to be performed on the given block is decreased.