# US 11,119,874 B2 · Memory fault detection

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 11,119,874 B2
- Document ID: US11119874B2
- Status: Granted
- Kind: B2
- Application number: 16/748,274
- Filed: 2020-01-21
- Published: 2020-05-21
- Granted: 2021-09-14
- Earliest claimed: 2017-09-30
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Gang Song; Chengguo Ding; Fei Zhang
- Web page: https://patentgrep.com/patent/US11119874B2

## CPC

- G06F 11/2273: {Test methods}
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G06F 11/073: {in a memory management context, e.g. virtual memory or cache management (memory management G06F12/00; testing of static memory units G11C29/00)}
- G06F 11/076: {by exceeding a count or rate limit, e.g. word- or bit count limit}
- G06F 11/108: {Parity data distribution in semiconductor storages, e.g. in SSD}
- G06F 11/22: Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F 11/2205: {using arrangements specific to the hardware being tested}
- G06F 11/2268: {Logging of test results}
- G06F 11/30: Monitoring
- G11C 29/44: Indication or identification of errors, e.g. for repair
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A memory fault detection method includes: receiving a first interrupt signal sent when a count value of a first leaky bucket counter of a server reaches a first threshold; disabling an interrupt switch of the first leaky bucket counter; enabling the interrupt switch of the first leaky bucket counter after the interrupt switch of the first leaky bucket counter has been disabled for a preset time and the count value of the first leaky bucket counter is reset to zero; receiving a second interrupt signal sent when a count value of a second leaky bucket counter reaches a second threshold; if the second leaky bucket counter and the first leaky bucket counter are a same leaky bucket counter, and the second rank and a first rank are a same rank, determining that a hardware fault occurs in the first rank.

## Claims

### Claim 1

A method comprising:
receiving a first interrupt signal when a first count value of a first leaky bucket counter of a server reaches a first threshold, wherein the first leaky bucket counter counts a first correctable error occurring in a first memory rank corresponding to the first leaky bucket counter;
disabling an interrupt switch of the first leaky bucket counter in response to the first interrupt signal;
enabling the interrupt switch after the interrupt switch has been disabled for a preset time and the first count value resets to zero;
receiving a second interrupt signal when a second count value of a second leaky bucket counter of the server reaches a second threshold, wherein the second leaky bucket counter counts a second correctable error occurring in a second memory rank corresponding to the second leaky bucket counter; and
identifying that a hardware fault has occurred in the first memory rank when the first leaky bucket counter and the second leaky bucket counter are the same leaky bucket counter and when the first memory rank and the second memory rank are the same memory rank.

### Claim 2 (depends on 1)

The method of claim 1, wherein when the first leaky bucket counter and the second leaky bucket counter are the same leaky bucket counter and when the first memory rank and the second memory rank are the same memory rank, the method further comprises:
recording, each time the first interrupt signal is received, a memory chip that is in the first memory rank and that has the first correctable error;
recording, each time the second interrupt signal is received, the memory chip; and
further determining that the hardware fault has occurred in the memory chip when a quantity of times of recording the memory chip reaches a predetermined quantity.

### Claim 3 (depends on 2)

The method of claim 2, further comprising performing in-service replacement on the memory chip when the hardware fault has occurred.

### Claim 4 (depends on 3)

The method of claim 3, wherein before performing the in-service replacement, the method further comprises:
determining that a redundant memory chip exists in the first memory rank; and
further performing the in-service replacement on the memory chip using the redundant memory chip.

### Claim 5 (depends on 3)

The method of claim 3, further comprising resetting the first count value to zero.

### Claim 6 (depends on 1)

The method of claim 1, wherein when the first leaky bucket counter and the second leaky bucket counter are the same leaky bucket counter and when the first memory rank and the second memory rank are the same memory rank, the method further comprises:
recording the first memory rank each time the first interrupt signal is received;
recording the first memory rank each time the second interrupt signal is received; and
further determining that the hardware fault has occurred in the first memory rank when a quantity of times of recording the first memory rank reaches a predetermined quantity.

### Claim 7 (depends on 1)

The method of claim 1, wherein when the first leaky bucket counter and the second leaky bucket counter are the same leaky bucket counter and when the first memory rank and the second memory rank are the same memory rank, the method further comprises:
recording a first memory module each time the first interrupt signal is received, wherein the first memory module comprises the first memory rank;
recording the first memory module each time the second interrupt signal is received; and
further determining that the hardware fault has occurred in the first memory module when a quantity of times of recording the first memory module reaches a predetermined quantity.

### Claim 8 (depends on 7)

The method according to claim 7, giving a fault alarm when the hardware fault has occurred in the first memory module.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first leaky bucket counter and the second leaky bucket counter are different, and wherein the method further comprises:
recording a first memory module each time the first interrupt signal is received, wherein the first memory module comprises the first memory rank and the second memory rank;
recording the first memory module each time the second interrupt signal is received; and
further determining that the hardware fault has occurred in the first memory module when a quantity of times of recording the first memory module reaches a predetermined quantity.

### Claim 10 (depends on 1)

The method of claim 1, further comprising performing in-service replacement on the first memory rank when the hardware fault has occurred.

### Claim 11 (depends on 10)

The method according to claim 10, wherein before performing the in-service replacement, the method further comprises:
determining that a redundant memory rank exists in a memory module in which the first memory rank is located; and
further performing the in-service replacement on the first memory rank using the redundant memory rank.

### Claim 12

A chip comprising:
a memory comprising instructions; and
a processor coupled to the memory and configured to execute the instructions to:
receive a first interrupt signal when a first count value of a first leaky bucket counter of a server reaches a first threshold, wherein the first leaky bucket counter counts a first correctable error occurring in a first memory rank corresponding to the first leaky bucket counter;
disable an interrupt switch of the first leaky bucket counter in response to the first interrupt signal;
enable the interrupt switch after the interrupt switch has been disabled for a preset time and the first count value resets to zero;
receive a second interrupt signal when a second count value of a second leaky bucket counter of the server reaches a second threshold, wherein the second leaky bucket counter counts a second correctable error occurring in a second memory rank corresponding to the second leaky bucket counter; and
determine that a hardware fault has occurred in the first memory rank when the first leaky bucket counter and the second leaky bucket counter are the same leaky bucket counter and when the first memory rank and the second memory rank are the same memory rank.

### Claim 13 (depends on 12)

The chip of claim 12, wherein the processor is further configured to:
record, each time the first interrupt signal is received, a memory chip that is in the first memory rank and that has a correctable error;
record, each time the second interrupt signal is received, the memory chip; and
further determine that the hardware fault has occurred in the memory chip when a quantity of times of recording the memory chip reaches a predetermined quantity.

### Claim 14 (depends on 12)

The chip of claim 12, wherein the processor is further configured to:
record the first memory rank each time the first interrupt signal is received;
record the first memory rank each time the second interrupt signal is received; and
further determine that the hardware fault has occurred in the first memory rank when a quantity of times of recording the first memory rank reaches a predetermined quantity.

### Claim 15 (depends on 12)

The chip of claim 12, wherein the processor is further configured to:
record a first memory module each time the first interrupt signal is received, wherein the first memory module comprises the first memory rank;
record the first memory module each time the second interrupt signal is received; and
further determine that the hardware fault has occurred in the first memory module when a quantity of times of recording the first memory module reaches a predetermined quantity.

### Claim 16 (depends on 12)

The chip of claim 12, wherein the processor is further configured to:
record a first memory module each time the first interrupt signal is received, wherein the first memory module comprises the first memory rank and the second memory rank;
record the first memory module each time the second interrupt signal is received; and
further determine that the hardware fault has occurred in the first memory module when a quantity of times of recording the first memory module reaches a predetermined quantity.

### Claim 17

A server comprising:
a storage;
a memory controller coupled to the storage; and
a control module coupled to the memory controller and configured to:
receive a first interrupt signal when a first count value of a first leaky bucket counter of the server reaches a first threshold, wherein the first leaky bucket counter counts a first correctable error occurring in a first memory rank corresponding to the first leaky bucket counter;
disable an interrupt switch of the first leaky bucket counter in response to the first interrupt signal;
enable the interrupt switch after the interrupt switch has been disabled for a preset time and the first count value resets to zero;
receive a second interrupt signal when a second count value of a second leaky bucket counter of the server reaches a second threshold, wherein the second leaky bucket counter counts a second correctable error occurring in a second memory rank corresponding to the second leaky bucket counter; and
determine that a hardware fault has occurred in the first memory rank when the first leaky bucket counter and the second leaky bucket counter are the same leaky bucket counter and when the first memory rank and the second memory rank are the same memory rank.

### Claim 18 (depends on 17)

The server of claim 17, wherein the control module is further configured to:
record, each time the first interrupt signal is received, a memory chip that is in the first memory rank and that has a correctable error;
record, each time the second interrupt signal is received, the memory chip; and
further determine that the hardware fault has occurred in the memory chip when a quantity of times of recording the memory chip reaches a predetermined quantity.

### Claim 19 (depends on 17)

The server of claim 17, wherein when the first leaky bucket counter and the second leaky bucket counter are the same leaky bucket counter and when the first memory rank and the second memory rank are the same memory rank, the control module is further configured to:
record the first memory rank each time the first interrupt signal is received;
record the first memory rank each time the second interrupt signal is received; and
further determine that the hardware fault has occurred in the first memory rank when a quantity of times of recording the first memory rank reaches a predetermined quantity.

### Claim 20 (depends on 17)

The server of claim 17, wherein when the first leaky bucket counter and the second leaky bucket counter are the same leaky bucket counter and when the first memory rank and the second memory rank are the same memory rank, the control module is further configured to:
record a first memory module each time the first interrupt signal is received, wherein the first memory module comprises the first memory rank;
record the first memory module each time the second interrupt signal is received; and
further determine that the hardware fault has occurred in the first memory module when a quantity of times of recording the first memory module reaches a predetermined quantity.
