1. Field of the Invention
This invention relates to a method for scrubbing storage in a computer memory, and particularly to a memory scrubbing method which enables the use of a pattern that correlates with physical structures to perform a memory scrubbing operation of a plurality of memory modules, in order to detect errors in the memory modules more quickly, and to perform testing or replacement thereof more efficiently.
2. Description of Background
In memory modules such as dual-in-line memory modules (DIMMs) used in portable electronic devices, for example, mobile phones and portable computers, memory data and keys are periodically scrubbed to correct soft errors, i.e., correctable errors (CEs) before they develop into hard errors, i.e., uncorrectable errors (UEs). Conventionally, each memory module is fully scrubbed in turn, sequentially, one at a time. Thus, this creates a problem in that when one of the memory chips of a memory module includes errors and the erroneous memory chip is located at a non-sequential memory location such that it would take a long time to sequentially scan to arrive to that memory address, the erroneous memory chip may not be found and corrected until the entire memory subsystem has been scrubbed.
The shortcomings of the prior art are overcome and additional advantages are provided through the provision of a method for scrubbing storage in a computer memory which includes a plurality of memory modules each having plurality of memory chips. The method includes selecting a pattern that correlates with physical structures for scanning the memory chips of the memory modules for errors and scanning a memory chip of a memory module for errors based upon the selected pattern. The method further includes successively scanning remaining memory chips of the respective memory module for errors when an error is found in the scanned memory chip, and scanning a memory chip of another memory module when an error is not found in the scanned memory chip of the respective memory module.
A computer program products corresponding to the above-summarized method is also described and claimed herein.
Additional features and advantages are realized through the techniques of the present invention. Other embodiments and aspects of the invention are described in detail herein and are considered a part of the claimed invention. For a better understanding of the invention with advantages and features, refer to the description and to the drawings.
Embodiments of the present invention create a method of changing a scrubbing algorithm of memory chips in a plurality of memory modules based on a pattern that correlates with physical structures in order to perform a memory scrubbing operation of the memory modules more efficiently.
As a result of the summarized invention, technically we have achieved a solution which enables localized correctable errors in memory chips to be found and repaired before they become uncorrectable errors.
The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other objects, features, and advantages of the invention are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
Turning now to the drawings in greater detail, it will be seen that in
According to the current exemplary embodiment, in
From operation 210, the process moves to operation 220 where it is determined whether errors are found in the scanned memory chip 105a-105d. When it is determined at operation 220 that an error is detected in the scanned memory chip 105a-105d, the process moves to operation 230 where the remaining memory chips 105a-105d are successively scanned for errors prior to scanning a memory chip of a next memory module for errors at operation 240. At operation 240, one of the memory chips 115a-115d of another memory module DIMM 110, for example, is scanned for errors.
On the other hand, when it is determined at operation 220 that the scanned memory chip 105a-105d does not include any errors, the process moves to operation 240 where one of the memory chips 115a-115d of memory module DIMM 110 is scanned for errors. The process then returns to operation 220 where it is determined whether errors are found in the scanned memory chip 115a-115d. According to an exemplary embodiment of the present invention, the above-method is performed for each of the memory modules DIMMS 100-170 shown in
According to an exemplary embodiment, a queue is created and a memory module DIMM 100-170 is placed in the queue to be scanned first, when an error is found at a memory chip 105a-175d of the respective memory module DIMM 100-170. For example if memory chip 125a of DIMM 120 includes an error, then DIMM 120 may be placed in queue to be scanned first during an next scanning operation.
In addition, according to an exemplary embodiment, diagnostic testing may be performed for a predetermined time period on the memory modules DIMMS 100-170 including errors, or the memory modules DIMMS 100-170 including errors may be replaced.
Examples of different types of patterns will now be described with reference to
As shown,
The present invention is not limited to the first memory chips 105a, 115a, 125a, 135a, 145a, 155a, 165a and 175a of each memory module DIMMs 100-170 being first scanned. According to another exemplary embodiment, all of the second memory chips 105b, 115b, 125b, 135b, 145b, 155b, 165b and 175b, third memory chips 105c, 115c, 125c, 135c, 145c, 155c, 165c and 175c or fourth memory chips 105d, 115d, 125d, 135d, 145d, 155d, 165d and 175d of the memory modules 100-170 may be first scanned.
According to an exemplary embodiment, the non-sequential memory location of a memory chip first scanned for each of the memory modules DIMMs 100-170 is the same for each memory module DIMM 100-170.
The capabilities of the present invention can be implemented in software, firmware, hardware or some combination thereof.
As one example, one or more aspects of the present invention can be included in an article of manufacture (e.g., one or more computer program products) having, for instance, computer usable media. The media has embodied therein, for instance, computer readable program code means for providing and facilitating the capabilities of the present invention. The article of manufacture can be included as a part of a computer system or sold separately.
Additionally, at least one program storage device readable by a machine, tangibly embodying at least one program of instructions executable by the machine to perform the capabilities of the present invention can be provided.
The flow diagram depicted herein is just an example. There may be many variations to this diagram or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order, or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.
While the preferred embodiment to the invention has been described, it will be understood that those skilled in the art, both now and in the future, may make various improvements and enhancements which fall within the scope of the claims which follow. These claims should be construed to maintain the proper protection for the invention first described.
Number | Name | Date | Kind |
---|---|---|---|
4964130 | Bowden, III et al. | Oct 1990 | A |
5263032 | Porter et al. | Nov 1993 | A |
6216169 | Booman et al. | Apr 2001 | B1 |
6279128 | Arnold et al. | Aug 2001 | B1 |
6480982 | Chan et al. | Nov 2002 | B1 |
6560725 | Longwell et al. | May 2003 | B1 |
6762611 | Hubner et al. | Jul 2004 | B2 |
7058782 | Henderson et al. | Jun 2006 | B2 |
7100004 | Chen Johnson et al. | Aug 2006 | B2 |
20030097608 | Rodeheffer et al. | May 2003 | A1 |
20030135794 | Longwell et al. | Jul 2003 | A1 |
20060212778 | Wheeler et al. | Sep 2006 | A1 |
20070022244 | Kimmery | Jan 2007 | A1 |
20070050667 | Zohar et al. | Mar 2007 | A1 |
20070101238 | Resnick et al. | May 2007 | A1 |
20080022186 | Co et al. | Jan 2008 | A1 |
20080301530 | Spanel et al. | Dec 2008 | A1 |
20090125788 | Wheeler et al. | May 2009 | A1 |
Number | Date | Country | |
---|---|---|---|
20090164855 A1 | Jun 2009 | US |