USPatent applicationPatented

Systems and methods of selectively managing errors in memory modules

Granted 17 Dec 2013 · 4 office actions

Current assignee: SK Hynix · originally Hewlett Packard Enterprise

Law firm: Law firm · Log in to unlock

Attorney: Attorney · Log in to unlock

Inventors: Andrew C. Walton, George Krejci, Larry J. Thayer, Mike H. Cogdill · Examiner: Chae Ko · AU 2114 · TC 2100

Life of the application

16 dated events
⤢ drag to zoom20062008201020122014201620182020202220242026ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

System and methods of selectively managing errors in memory modules. In an exemplary implementation, a method may include monitoring for persistent errors in the memory modules. The methods may also include mapping at least a portion of the memory modules to a spare memory cache only to obviate persistent errors. The method may also include initiating memory erasure on at least a portion of the memory modules only if insufficient cache lines are available in the spare memory cache.

Description

5 parts
›BACKGROUND

Computer memory systems typically include one or more memory modules, such as, e.g., dynamic random access memory (DRAM), which may be readily accessed by a processor. During normal operation of the computer system, a memory controller transfers data between a data store (e.g., hard disk drive) and the memory modules, and between the memory modules and the processor. From time-to-time, all or a part of the memory modules may fail.

Memory failures may cause data to be corrupted or even lost. Some operating systems are configured to de-allocate entire “pages” of the memory modules that are associated with the failure. De-allocating memory in this manner unnecessarily reduces the amount of memory available to the processor(s), and may even cause the computer system to cease operations. More sophisticated computer systems implement erasure, wherein a specific bit or bits in the memory module which are determined to be causing the error are ignored. In other systems, a spare memory cache may implemented to replace failing or failed portions of memory modules by mapping failing portions of the memory modules to the spare memory cache. As more errors are encountered, however, the spare memory cache may be used up.

›BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a high-level block diagram of an exemplary computer system which may be implemented for selectively managing errors in memory modules.

FIG. 2 is a functional block diagram of exemplary program code for selectively managing errors in memory modules.

FIG. 3 is a flowchart illustrating exemplary operations which may be implemented for selectively managing errors in memory modules.

FIG. 4 is another flowchart illustrating exemplary operations which may be implemented for memory migration when selectively managing errors in memory modules.

›DETAILED DESCRIPTION · 1 of 3

FIG. 1 is a high-level block diagram of an exemplary computer system 100 which may be implemented for selectively managing errors in memory modules. Exemplary computer system 100 may include a memory controller 110 communicatively coupling a processor 120 to one or more memory modules 140 a - c (generally referred to as memory modules 140 ), e.g., via a memory bus and interfaces 112 , 114 , respectively. Memory controller 110 handles read/write requests for a processor 120 by accessing the memory modules 140 (e.g., via logic 130 ).

Memory modules 140 may be implemented as addressable memory locations in which data retrieved from a data store 150 (e.g., disk drive) may be temporarily stored for faster access by the processor 120 . In an exemplary embodiment, memory modules 140 are implemented as dynamic random access memory (DRAM), and may include any number of memory modules (e.g., the memory modules 140 a - c shown in FIG. 1 ).

In operation, a portion of one or more of the memory modules 140 may fail. For example, data associated with specific bits in the memory modules 140 may be corrupted due to persistent or intermittent hardware failure, such as, a malfunctioning DRAM component, a wire defect, etc. Transient or “soft” errors, occur intermittently, and are usually not indicative of a serious hardware failure. These errors can typically be handled by retrying the read/write request or rewriting corrected data. Persistent or “hard” errors occurring repeatedly may indicate that one or more bits in the memory modules 140 a , 140 b is failing or has failed.

Computer system 100 may respond to persistent errors by mapping the failing or failed bits of the memory modules 140 to a spare memory cache 160 , applying memory erasure to one or more of the memory modules 140 to free cache lines in the spare memory cache 160 , and optionally, implementing page de-allocation for one or more of the memory modules 140 , and/or handling memory migration so that one or more memory module can be added, removed and/or replaced (referred to herein as “added/removed/replaced”).

One or more of these operations may be implemented selectively by program code 170 . That is, the program code 170 may determine which of the operations to implement and when to implement the operation(s). For example, program code 170 may only map portions of the memory modules which are exhibiting persistent errors to the spare memory cache. In addition, the program code 170 may only apply memory erasure to memory modules contributing the largest number of errors and only after the spare memory cache 160 is exhausted.

It is noted that these examples for selectively managing memory operations are not intended to be limiting. In other exemplary embodiments, memory erasure may be selectively applied to all of the memory modules which contributed errors. In another example, erasure may be selectively applied only to slower and/or older memory modules. Still other embodiments are also contemplated.

In an exemplary embodiment, program code 170 may be implemented as firmware executable by a management processor 180 coupled to the memory controller 110 , e.g., via interface 182 . It will be readily appreciated by those skilled in the art after becoming familiar with the teachings herein that program code 170 is not limited to such implementation. In other embodiments, the program code 170 may be executable by the memory controller 110 , processor 120 , and/or other components of the computer system 100 . Exemplary functional components of the program code 170 are described in more detail below with reference to FIG. 2 .

FIG. 2 is a functional block diagram of exemplary firmware 200 for selectively managing errors in memory modules 210 (e.g., the program code 170 and memory modules 140 shown in FIG. 1 ). Before continuing, it is noted that the large arrows illustrated in FIG. 2 between the firmware 200 and memory modules 210 , the firmware 200 and spare memory cache 215 , and the firmware 200 and user interface 270 represent communication between these components and do not necessarily represent direct connections.

Exemplary firmware 200 may include error detection module 220 for monitoring errors in the memory controller (e.g., the memory IO 225 ), mapping module 230 for mapping failing or failed portions of the memory modules 210 to spare memory cache 215 , memory erasure module 240 for “erasing” portions of memory modules 210 , page de-allocation module 250 for de-allocating entire memory modules 210 , and memory migration module 260 to facilitate replacement of memory modules 210 . Before continuing, it is noted that “erasing” portions of memory modules does not “zero out” the contents, but is rather a process wherein the data is “ignored” from a portion of the memory subsystem that is known to be bad. The ignored data is replaced through use of an Error Correction Code (ECC).

Error detection module 220 may be implemented to monitor error correction activity corresponding to read/write requests, e.g., the use of error correction code (ECC) algorithms by the memory controller. For example, error detection module 220 may monitor how many times data needs to be error-corrected. The error detection module 220 may also determine whether portions of the memory modules are exhibiting transient or persistent errors.

In an exemplary embodiment, error detection module 220 implements an algorithm which analyzes the occurrences of data corruption to identify repeated bit patterns. If a repeated bit pattern is identified, the software algorithm correlates the occurrence of data corruption to a particular memory component. If a sufficient number of occurrences of data corruption are detected as originating from the particular component according to the same pattern of data corruption, the algorithm activates the mapping module 230 to remedy the underlying hardware issue through application of the spare memory cache.

Mapping module 230 maps the failed portion of the memory modules 210 to one or more memory locations in the spare memory cache 215 , e.g., in memory management table 265 . For example, the management processor may write to registers in the memory controller to route read/write requests for the memory modules 210 to the spare memory cache using an out-of-band path. The term “out-of-band” as used herein refers to alternate modes of operation (e.g., not the standard or typical path for memory operations).

›DETAILED DESCRIPTION · 2 of 3

Mapping module 230 may also copy the contents of the failing or failed portion of the memory modules 210 into the spare memory cache 215 . The memory controller (e.g., via logic 130 shown in FIG. 1 ) may then access the memory management table 265 to direct read/write requests for the failing or failed memory locations in memory modules 210 to the spare memory cache 215 when an address associated with the read/write request is mapped to the spare memory cache 215 .

Before continuing, it is noted that the spare memory cache 215 may be implemented, e.g., as a fully associative cache, a FIFO, or a stack, wherein a physical memory address is stored along with the contents of a portion of memory that corresponds to the address. Given the cost of implementing a larger spare memory cache 215 , the number of cache lines in the spare memory cache 215 may be limited to a relatively small number, such as eight.

Over time as the spare memory cache 215 is used to obviate errors, all of the cache lines may be used Lip. Accordingly, memory erasure module 240 may be invoked to free cache lines in the spare memory cache 215 by “erasing” portions of the memory modules 210 that exhibited persistent errors. Erased memory locations in the memory modules 210 may be maintained in the memory management table 265 .

As used herein, the term “erasing” refers to decoding an ECC code word by assuming that an identified bit or bits are corrupted. The erasure mode is activated by loading a register in a memory controller with a suitable value to identify the location of the repeatable error. The algorithm may activate the erasure mode by setting appropriate registers of the memory controller. The memory controller responds by decoding ECC code words by assuming that the identified bits within the ECC code words are corrupted, and therefore “ignoring” the contribution from these bits and recreating the values the bits should contain to correct the error.

In an exemplary embodiment, ECC logic in the memory controller may implement the decoding procedure of a [36, 33, 4] shortened narrow-sense Reed-Solomon code (where the code word length is 36 symbols, the payload length is 33 symbols, and the Hamming distance is 4 bits) over the finite Galios field (2 8 ). The finite Galios field defines the symbol length to be 8 bits. By adapting the ECC logic in this manner, the error correction may occur in two distinct modes. In a first mode, ECC logic in the memory controller performs single-byte correction. In the second mode (the erasure mode), a byte location (or locations) is specified in the ECC code word as an erasure via a register setting. The location is identified by a software or firmware process as a repeatable error caused by a hardware failure. The ECC logic decodes the retrieved data by assuming that the single-byte associated with the identified erasure is corrupted. Because the minimum Hamming distance is reduced, the ECC logic enables the data to be recovered even when another (e.g., a transient) single-byte error is present in addition to the erasure error.

It is noted that the foregoing example is provided for purposes of illustration and is not intended to be limiting. Other embodiments for implementing memory erasure, either now known or later developed, are also contemplated.

Over still more time as erasure is used to return (or make available again) cache lines in the spare memory cache 215 , it may be desirable to de-allocate one or more pages of the memory modules 210 . For example, it may be desirable to invoke page de-allocation if the memory modules 210 include so many errors that erasure slows or otherwise impedes memory operations. Page de-allocation module 250 may be implemented to remove pages of the memory modules 210 from access by the processor. De-allocated pages may be maintained in memory management table 265 .

By having first selectively used the spare memory cache 215 to obviate errors, and then selectively applied memory erasure to free cache lines for use again in obviating errors, the use of page de-allocation is minimized and the memory modules 210 are not de-allocated unnecessarily or prematurely.

It may also become necessary or desirable to add/remove/replace one or more of the memory modules 210 . For example, memory modules 210 may be added/removed/replaced if so many of the memory modules have been de-allocated from use that the computer system is slowing or no longer operating efficiently. Memory modules may also be added/removed/replaced to upgrade the memory system.

Memory migration module 260 may be operatively associated with the memory management table 265 to facilitate adding/removed/replacing memory modules 210 . Memory migration module 260 may also be operatively associated with a user interface 270 to receive input from a user (e.g., which memory modules are being added/removed/replaced). In an exemplary embodiment, the user interface 270 is implemented in software as a graphical user interface (GUI) available to a user via the operating system. Before a user adds/removes/replaces memory modules 210 the user notifies the memory migration module 260 via the user interface which memory modules 210 are to be added/removed/replaced. The memory migration module 260 prepares the memory management table 265 for the memory migration, and then responds by notifying the user when it is safe to add/remove/replace the memory modules 210 .

As discussed above, the firmware 200 dynamically updates (i.e., continually during operation) the memory management table 265 . Accordingly, memory management table 265 stays current, identifying those portions of the memory modules 210 which are being mapped to spare memory cache 215 , those portions of the memory modules 210 which are “erased”, and those portions of the memory modules 210 which are de-allocated.

By implementing the memory migration module 260 and memory management table 265 in firmware 200 directly associated with the memory controller 110 (separately from the operating system or other system software), memory management does not need to be relearned. That is, the portions of memory modules that are still in use after memory migration, continue to be mapped to the spare memory cache 215 , erased, and de-allocated even after adding/removing/replacing one or more of the memory modules 210 . Such an embodiment is particularly desirably where the computer system is executing multiple operating systems and/or where the operating system(s) does not support memory management such as, page de-allocation.

›DETAILED DESCRIPTION · 3 of 3

Before continuing, it is noted that the functional components of program code 200 shown in FIG. 2 and described above are provided for purposes of illustration only, and are not intended to be limiting. The functional components shown in FIG. 2 do not need to be encapsulated as separate modules. In addition, other functional components (not shown) may also be provided and are not limited to those shown and described herein.

FIGS. 3 and 4 are flowcharts illustrating exemplary operations. The operations may be embodied as logic instructions on one or more computer-readable medium. When executed on a processor, the logic instructions cause a general purpose computing device to be programmed as a special-purpose machine that implements the described operations. In an exemplary embodiment, the components and connections depicted in the figures may implement the operations.

FIG. 3 is a flowchart illustrating exemplary operations 300 which may be implemented for selectively managing errors in memory modules. Error monitoring begins in operation 310 . For example, the memory controller (or IO within the memory controller) may be monitored for errors. A determination is made in operation 320 . If an error is determined to be a transitory (or “soft”) error, operations return as illustrated by arrow 325 to operation 310 to continue monitoring for errors. If an error is determined to be a persistent (or “hard”) error, the portion(s) of memory module(s) exhibiting a persistent error is mapped to a spare memory cache in operation 330 .

In operation 340 a determination is made whether the spare memory cache is “full.” For example, if all of the cache lines in the spare memory cache are already being implemented, the spare memory cache may be full. Alternatively, the spare memory cache may be considered full if there are insufficient cache lines available for mapping predicted failures of the memory modules, or if the remaining cache lines will be mapped before other memory management operations can be implemented (e.g., erasure in operation 360 ).

If the spare memory cache is not full, operations may return as indicated by arrow 345 to continue monitoring for errors. If the spare memory cache is determined to be full, one or more of the memory modules is identified in operation 350 for applying memory erasure. In an exemplary embodiment, the memory module(s) exhibiting the most persistent errors is selected for erasure. Other examples for selecting memory modules for erasure are also contemplated, and include for example, selecting older (or newer), slower (or faster) memory modules.

In operation 360 , the memory module(s) identified in operation 350 are erased to free cache lines in the spare memory cache. Operations may then return to operation 310 to continue monitoring for errors, as illustrated by arrow 365 .

It is noted that the operations are not limited to the ordering shown in FIG. 3 . For example, operations may continue to monitor for errors (operation 310 ) while mapping and/or erasure operations are being executed. Still other operations may also be implemented, such as, e.g., page de-allocation and/or memory migration operations.

FIG. 4 is another flowchart illustrating exemplary operations 400 which may be implemented for memory migration when selectively managing errors in memory modules. In operation 410 , memory migration is initiated. For example, a user may initiate memory migration via a user interface before adding/removing/replacing memory modules. In operation 420 , memory migration information is received, e.g., from the user identifying which memory modules are being added/removed/replaced. Other memory migration information may include physical characteristics of the memory modules (e.g., memory size, speed, etc.). Still other information may be provided during operation 420 .

In operation 430 , a determination is made whether it is safe to proceed with memory migration. If it is not safe, operations loop until it becomes safe to proceed. For example, it may not be safe to proceed if the firmware is in the process of updating the memory management table because adding/removing/replacing memory during this process may corrupt the memory management table. If it is safe to proceed with memory migration, a user may be notified in operation 440 and the memory modules can be physically added/removed/replaced.

In operation 450 , memory management information (e.g., contained in the memory management table) may be updated with memory migration information. For example, memory management information may be updated to remove mapping to the spare memory cache, remove erasures, and/or remove de-allocated pages corresponding to a memory module which has been removed or replaced by the memory migration. Memory operations may resume in operation 460 .

It is noted that the operations are not limited to the ordering shown in FIG. 4 . For example, memory migration information may be received (operation 420 ) after notifying the user that it is safe to migrate the memory (operation 440 ). Still other operations may also be implemented, such as, e.g., opting out of the loop for operation 430 .

It is noted that the exemplary embodiments shown and described are provided for purposes of illustration and are not intended to be limiting. Still other embodiments are also contemplated for selectively managing errors in memory modules.

Claims as granted

20 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

7 codes
IPC · International Patent Classification
Section G — Physics
  • G06F11/07
USPC · US Patent Classification
714/6.13714/710714/6.11714/768714/764714/6.1

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoom200620072008200920102011201220132014USPTOApplicantNon-final rejectionResponse after non-finalFinal rejectionNotice of allowance
USPTOApplicanthover for detail · click to open
Pendency
7.7 y
2,818 days filing → grant
Office actions
4
non-final + final
Responses
3
no RCE
Appeals
1
notices of appeal
Examiner
Chae Ko
art unit 2114 · TC 2100
Citations: 31 back · 9 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom20062008201020122014201620182020202220242026Owner 1Owner 2Owner 3
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock