Persistent Memory Transaction Recovery via Validation Markers

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In resource-constrained environments like smartcards, transactional writing to persistent memory is costly and prone to failures due to 'weak writes' where data integrity is compromised, especially when power is lost during a write operation, leading to unreliable data recovery.

Innovation Solution

A method involving a transactional writing step and a transaction recovery step, where a transaction recovery marker is used to indicate the start of recovery, allowing for the restoration of data values and reducing the risk of memory system failures by using valid markers to verify the integrity of data writes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If transactional writing to persistent memory is performed without validation markers, then write operations are faster and simpler, but data integrity is compromised due to weak writes

Engineering Contradiction:
Improvedata integrityVSAvoidtransaction buffer structure
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by writing validation markers (first valid marker and second valid marker) into the transaction buffer before performing the actual data write operation. This allows the system to detect and handle weak writes during the recovery phase without compromising the integrity of the data write process itself. The markers are prepared in advance so that if a weak write occurs, the system can identify it and restore the previous value.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The validation markers act as intermediaries between the data write operation and the recovery process. Instead of directly verifying data integrity after a weak write, the system uses these markers as indirect indicators to detect whether a write operation completed successfully. The markers mediate the detection process, allowing the system to identify weak writes without complex verification of the actual data.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If the system performs frequent write operations to persistent memory for transaction support, then transaction reliability is improved, but memory lifetime is reduced due to wear

Engineering Contradiction:
Improvetransaction reliabilityVSAvoidmemory lifetime
Core Design Contradiction:
ReliabilityVSDuration of action of stationary object

Solution Approach 1:

The patent segments the transaction buffer into multiple entries, each with its own validation markers. This allows the system to track and manage individual write operations separately. By segmenting the buffer, the system can identify which specific entries are weak writes and only restore those particular entries, rather than performing unnecessary write operations for the entire buffer, thus reducing overall wear on the persistent memory.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements a discard and recover mechanism where weak write entries are identified through validation markers and then restored from the previous valid values stored in the transaction buffer. This allows the system to discard corrupted entries and recover the correct values without performing additional write operations, thereby reducing memory wear while maintaining transaction reliability.

Inventive Principle:
Principle #34Discarding and recovering

3Reliability

If the system uses a simple transaction buffer without validation markers, then runtime performance is better, but weak writes cannot be detected

Engineering Contradiction:
Improveweak write detectionVSAvoidruntime performance
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The validation markers are written into the transaction buffer in advance, before the actual data write operation. This preliminary action allows the system to detect weak writes during the recovery phase without adding significant overhead to the normal transaction processing path. The detection logic is prepared beforehand, so when a weak write occurs, the system can quickly identify it using the pre-positioned markers.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The transaction buffer structure is designed to be self- verifying through the validation markers. The markers automatically indicate whether a write operation completed successfully, eliminating the need for complex external verification mechanisms. The buffer essentially validates itself through the presence or absence of proper markers, reducing the computational overhead required for weak write detection.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS7861114B2System and method for recovery of memory transactions
Publication Date: 2010.12.28 GLOBALFOUNDRIES INC
  • US7861114B2 patent drawing
  • US7861114B2 patent drawing
  • US7861114B2 patent drawing

AI summary

A method for transactional writing of data into a persistent memory comprising memory cells includes a transactional writing step and a transaction recovery step. The transactional writing step comprises one or more memory cell writing steps comprising the sub-steps of writing in a transaction buffer as transaction buffer entry the current data value and the corresponding address of the respective memory cell, writing a first valid marker for the memory cell in the transaction buffer, and writing a new data value to the memory cell. The transaction recovery step is performed in case of an abortion of the transactional writing step for restoring the current data values of the aborted transaction in the persistent memory, the transaction recovery step comprising the sub-step of writing a transaction recovery marker to the transaction buffer indicating the start of the transaction recovery.