Guarded Storage Facility Testing via Garbage Reclaim Verification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

There is no conventional mechanism to test the proper operation of the Guarded Storage (GS) facility, which is critical for managing memory resources and preventing resource leaks in Java programs, potentially leading to system slowdowns and resource depletion.

Innovation Solution

A test system is developed to verify the functionality of the GS facility by executing test programs that prompt garbage reclaim functions and analyze memory storage, determining test results, and performing remedial actions as needed, ensuring GS operates correctly within virtual environments, including with Transactional Execution (TX) and Runtime Instrumentation (RI) facilities.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If Guarded Storage facility is implemented to manage memory resources, then resource leakage is prevented and system performance is maintained, but there is no mechanism to verify proper operation leading to undetected failures

Engineering Contradiction:
ImproveGS operation reliabilityVSAvoidtesting mechanism complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent introduces test programs as intermediary components that mediate between the GS facility and verification mechanisms. These test programs contain GS events that trigger garbage reclaim functions, serving as a bridge to verify GS operation without directly modifying the GS facility itself.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent creates simplified copies of GS operations through test programs that simulate real-world memory management scenarios. By copying essential GS behaviors into testable formats, the system can verify GS functionality without needing to test the entire complex memory management system.

Inventive Principle:
Principle #26Copying

2Reliability

If test programs are executed to verify GS operation, then proper functionality is confirmed, but system resources are consumed during testing

Engineering Contradiction:
ImproveGS functionality verificationVSAvoidcomputational resources during testing
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The test programs implement partial action by focusing only on verifying specific GS events and garbage reclaim functions rather than exhaustively testing all possible memory operations. This selective approach confirms essential GS functionality while consuming minimal computational resources.

Inventive Principle:
Principle #16Partial or excessive action

3Quantity of substance

If memory objects are retained for extended periods, then resource availability is maintained, but memory consumption increases and system performance degrades

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

Solution Approach 1:

The GS facility implements periodic garbage reclaim operations that periodically free memory objects no longer in use. The test programs verify that these periodic actions occur correctly, ensuring that memory is released at appropriate intervals to maintain both resource availability and system performance.

Inventive Principle:
Principle #19Periodic action

Data Source

PatentUS10289529B2Testing a guarded storage facility
Publication Date: 2019.05.14 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US10289529B2 patent drawing
  • US10289529B2 patent drawing
  • US10289529B2 patent drawing

AI summary

A computer-implemented method includes executing one or more test programs on a computing device, where the computing device includes a Guarded Storage (GS) facility managing use of GS. Each test program of the one or more test programs comprises a respective GS event, and each respective GS event prompts execution of a respective garbage reclaim function associated with the GS. A memory storage is analyzed, by a computer processor, to verify expected operation of each of the one or more test programs. Test results of the one or more test programs are determined based on the analyzing the memory storage. A remedial action is performed in response to the test results of the one or more test programs.