IP Library Granted Patent US 12,014,791
Granted Patent B2
US 12,014,791 · App. 17/582,802 · Granted Jun 18, 2024

Memory fault handling method and apparatus, device, and storage medium

Inventors: Guangyi Qiao (Chengdu, CN); Yangbin Diao (Chengdu, CN); Jiantao Ma (Chengdu, CN)
Assignee: Huawei Technologies Co., Ltd.
G11C29/4401G11C29/1201G11C29/38G11C29/78
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,014,791
App. No.
17/582,802
Granted
Jun 18, 2024
Kind
B2
Abstract

The present disclosure provides example memory fault handling method, computer device, and computer-readable storage medium. One example method includes starting fault analysis for a memory at a first moment, where the fault analysis includes obtaining a current fault analysis result of the memory by analyzing historical fault information, the historical fault information includes fault information of the memory accumulated in a historical time period, and the historical time period is a time period before the first moment or a time period before the first moment and including the first moment. Fault recovery is started for the memory based on the current fault analysis result of the memory.

Claims (59)

1. A memory fault handling method, wherein the method comprises:

starting fault analysis for a memory of a computer system at a first moment during a running period of the computer system, wherein the fault analysis comprises:

obtaining a current fault analysis result of the memory by analyzing historical fault information, wherein the current fault analysis result comprises a fault mode, wherein the historical fault information comprises fault information of the memory accumulated in a historical time period, wherein the historical time period is a time period before the first moment or a time period before the first moment and comprising the first moment, and wherein obtaining the current fault analysis result of the memory comprises:

obtaining a first statistical feature based on the historical fault information, wherein the first statistical feature indicates a quantity of faulty bits that occur in a memory row of the memory during the historical time period, and wherein the first statistical feature is greater than a first threshold that indicates a quantity of faulty bits tolerable in each memory row; and

determining that the fault mode is the memory row fault; and

starting fault recovery for the memory based on the current fault analysis result of the memory.

2. The method according to claim 1 , wherein the first moment is a time before an uncorrectable error (UCE) fault occurs in the computer system.

3. The method according to claim 2 , wherein the first moment comprises:

a time of periodic starting based on a preset condition or a time of determining that a memory fault occurs in the memory after the computer system runs.

4. The method according to claim 1 , wherein the obtaining a current fault analysis result of the memory by analyzing historical fault information comprises:

inputting the historical fault information into a fault analysis model to obtain the current fault analysis result of the memory, wherein the fault analysis model is an intelligent calculation analysis model.

5. The method according to claim 1 , wherein the starting fault recovery for the memory based on the current fault analysis result of the memory comprises:

when the fault mode is a memory row fault, starting fault recovery for the memory, wherein the fault recovery comprises:

replacing a faulty row with a redundant row; and

recovering data in the redundant row.

6. The method according to claim 5 , wherein the recovering data in the redundant row comprises:

performing a read operation on the redundant row; and

if the data read from the redundant row is erroneous data:

correcting the erroneous data to produce corrected data; and

writing back the corrected data to the redundant row to implement recovery of the data in the redundant row.

7. The method according to claim 6 , wherein when the data read from the redundant row is erroneous data, the method further comprises:

generating a correctable error (CE); and

performing a suppressing operation to suppress the CE.

8. The method according to claim 7 , wherein after the recovery of the data in the redundant row is completed, the method further comprises:

releasing the suppression operation on the CE.

9. The method according to claim 1 , wherein the current fault analysis result further comprises a fault level, and wherein the starting fault recovery for the memory based on the current fault analysis result of the memory comprises:

when the fault mode is the memory row fault and the fault level is a high risk level, starting fault recovery for the memory.

10. The method according to claim 9 , wherein the obtaining a current fault analysis result of the memory further comprises:

obtaining at least one of a second statistical feature or a third statistical feature based on the historical fault information, wherein the second statistical feature indicates a quantity of faults of each fault type that occur in the memory row in the historical time period, and the third statistical feature indicates a quantity of error corrections that occur in the memory row in the historical time period; and

when the second statistical feature is greater than a second threshold, or when the third statistical feature is greater than a third threshold, or when the second statistical feature is greater than the second threshold and the third statistical feature is greater than the third threshold, determining that the fault level is the high risk level, wherein the second threshold indicates a quantity of faults of each fault type that are tolerable in each memory row, and the third threshold indicates a quantity of error corrections that are tolerable in each memory row.

11. The method according to claim 10 , wherein the method further comprises:

displaying a risk mode option on an interaction interface, wherein the risk mode option comprises a high risk mode and a low risk mode.

12. The method according to claim 11 , wherein the first threshold, the second threshold, and the third threshold are variables that are set based on a risk mode selected by a user on the interaction interface.

13. The method according to claim 1 , wherein the current fault analysis result comprises a fault mode, and wherein the starting fault recovery for the memory based on the current fault analysis result of the memory comprises:

when the fault mode is a memory bank fault, starting fault recovery for the memory, wherein the fault recovery comprises:

replacing a faulty bank with a redundant bank; and

recovering data in the redundant bank.

14. A computer device, comprising:

one or more processors; and

a memory storing a program to be executed by the one or more processors, wherein the program comprises instructions that cause the computer device to perform operations comprising:

starting fault analysis for a memory of a computer system at a first moment during a running period of the computer system, wherein the fault analysis comprises:

obtaining a current fault analysis result of the memory by analyzing historical fault information, wherein the current fault analysis result comprises a fault mode, wherein the historical fault information comprises fault information of the memory accumulated in a historical time period, wherein the historical time period is a time period before the first moment or a time period before the first moment and comprising the first moment, and wherein obtaining the current fault analysis result of the memory comprises:

obtaining a first statistical feature based on the historical fault information, wherein the first statistical feature indicates a quantity of faulty bits that occur in a memory row of the memory during the historical time period, and wherein the first statistical feature is greater than a first threshold that indicates a quantity of faulty bits tolerable in each memory row; and

determining that the fault mode is the memory row fault; and

starting fault recovery for the memory based on the current fault analysis result of the memory.

15. The computer device of claim 14 , wherein the first moment is a time before an uncorrectable error (UCE) fault occurs in the computer system.

16. The computer device of claim 15 , wherein the first moment comprises: a time of periodic starting based on a preset condition or a time of determining that a memory fault occurs in the memory after the computer system runs.

17. The computer device of claim 14 , wherein the obtaining a current fault analysis result of the memory by analyzing historical fault information comprises:

inputting the historical fault information into a fault analysis model to obtain the current fault analysis result of the memory, wherein the fault analysis model is an intelligent calculation analysis model.

18. The computer device of claim 14 , wherein the starting fault recovery for the memory based on the current fault analysis result of the memory comprises:

when the fault mode is a memory row fault, start fault recovery for the memory, wherein the fault recovery comprises:

replacing a faulty row with a redundant row; and

recovering data in the redundant row.

19. A non-transitory computer-readable storage medium storing one or more instructions executable by a computer device to perform operations comprising:

starting fault analysis for a memory of a computer system at a first moment during a running period of the computer system, wherein the fault analysis comprises:

obtaining a current fault analysis result of the memory by analyzing historical fault information, wherein the current fault analysis result comprises a fault mode, wherein the historical fault information comprises fault information of the memory accumulated in a historical time period, wherein the historical time period is a time period before the first moment or a time period before the first moment and comprising the first moment, and wherein obtaining the current fault analysis result of the memory comprises:

obtaining a first statistical feature based on the historical fault information, wherein the first statistical feature indicates a quantity of faulty bits that occur in a memory row of the memory during the historical time period, and wherein the first statistical feature is greater than a first threshold that indicates a quantity of faulty bits tolerable in each memory row; and

determining that the fault mode is the memory row fault; and

starting fault recovery for the memory based on the current fault analysis result of the memory.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 12, 2024
From: QIAO, GUANGYI; DIAO, YANGBIN; MA, JIANTAO
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 067090/0692 →
Priority Claims (2)
CN 202010569797.2 · Jun 20, 2020 · national
CN 202011179463.0 · Oct 29, 2020 · national
Continuity (2)
Continuation PCTCN2020126112 · Nov 3, 2020
Related Publication 20220148674A1 · May 12, 2022