SSD Abnormal Power Failure Handling via Cold Data Discard

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Solid state disks (SSDs) face data loss due to abnormal power failures, as the short power supply from capacitors cannot complete the writing of large quantities of unwritten data, leading to incomplete storage of data sent from the host.

Innovation Solution

A method and apparatus for processing abnormal power failures in SSDs, which involves acquiring and discarding cold data write operations, determining the minimum write address of cold data blocks, and generating data block information to optimize resource usage and prevent data loss. This includes detecting power failures, identifying cold data write operations, releasing resources, and determining the minimum write address to reset the write pointer for efficient data storage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If the SSD attempts to write all unwritten data during abnormal power failure, then data completeness is improved, but the writing time exceeds the capacitor power supply duration resulting in data loss

Engineering Contradiction:
Improvedata lossVSAvoidpower supply duration
Core Design Contradiction:
Loss of informationVSDuration of action of moving object

Solution Approach 1:

The patent segments write operations into two categories: cold data write operations (which can be discarded) and non-cold data write operations (which must be completed). This segmentation allows the system to prioritize essential data writing within the limited capacitor power supply duration, preventing data loss while avoiding attempts to write all data that would exceed the available time window.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies partial action by selectively discarding cold data write operations rather than attempting to complete all pending writes. This partial approach recognizes that not all data requires completion during the emergency power window, and focusing resources on essential data ensures critical information is preserved within the capacitor's limited energy capacity.

Inventive Principle:
Principle #16Partial or excessive action

2Productivity

If the SSD continues processing cold data write operations during abnormal power failure, then resource utilization is improved, but data loss occurs due to insufficient completion time

Engineering Contradiction:
Improvedata writing throughputVSAvoidunwritten data loss
Core Design Contradiction:
ProductivityVSLoss of information

Solution Approach 1:

The patent performs preliminary classification of write operations before the abnormal power failure completes. By identifying and marking cold data write operations in advance, the system prepares a prioritization list that enables immediate decision-making when power failure occurs, allowing essential data to be written while non-essential cold data is safely discarded.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent applies different quality requirements to different data types. Cold data write operations are identified and treated with lower priority (can be discarded), while other write operations maintain high priority (must be completed). This local differentiation of data importance allows the system to optimize resource allocation during the critical power failure window.

Inventive Principle:
Principle #3Local quality

3Reliability

If the SSD writes all data including cold data during abnormal power failure, then storage completeness is improved, but resource waste occurs due to incomplete writes

Engineering Contradiction:
Improvedata storage reliabilityVSAvoidcapacitor energy waste
Core Design Contradiction:
ReliabilityVSLoss of energy

Solution Approach 1:

The patent discards cold data write operations that cannot be completed during abnormal power failure, preventing waste of capacitor energy on futile writing attempts. By identifying which writes can be safely abandoned, the system recovers the energy that would have been consumed by incomplete write operations, preserving it for essential data completion.

Inventive Principle:
Principle #34Discarding and recovering

4Loss of information

If the SSD attempts to complete all write operations during abnormal power failure, then data integrity is improved, but the writing time exceeds available power duration

Engineering Contradiction:
Improvedata completenessVSAvoidwriting time
Core Design Contradiction:
Loss of informationVSLoss of time

Solution Approach 1:

The patent segments the write operation queue into cold data operations and other operations. This segmentation creates a clear distinction between data that can be safely discarded and data that must be written, enabling the system to complete essential writes within the available time window while abandoning non-essential cold data writes that would exceed the power duration.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies partial action by completing only the necessary subset of write operations rather than attempting all pending writes. This selective approach ensures that critical data is written within the capacitor's power duration while accepting that some cold data writes will remain incomplete, thus avoiding time loss on futile operations.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS12118218B2Method and apparatus for processing abnormal power failure of solid state disk, and electronic device and medium
Publication Date: 2024.10.15 INSPUR SUZHOU INTELLIGENT TECH CO LTD
  • US12118218B2 patent drawing
  • US12118218B2 patent drawing

AI summary

Provided are a method and apparatus for processing abnormal power failure of a solid state disk, and an electronic device and a computer-readable storage medium. The method includes: in response to detecting an abnormal power failure of a solid state disk, acquiring a write operation for the solid state disk; in response to the write operation being a cold data write operation, acquiring a write address corresponding to the write operation, and discarding the cold data write operation, wherein the write address points to a cold data block; obtaining the minimum write address of the cold data block by using the write address; and generating, by using the minimum write address, data block information corresponding to the cold data block.