Use a machine learning module to determine whether to perform error checking of storage cells
Dynamically adjusting the error checking frequency of the storage device through the machine learning module solves the problem of resource waste and waiting time delay caused by the parity erasure operation in the existing technology, and achieves more efficient error checking and resource optimization.
Patent Information
- Application Number
- CN201980031061.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-06-29
- Filing Date
- 2019-06-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2039-06-20
AI Technical Summary
Existing technologies lead to a waste of computing resources and storage resources when performing parity erasure operations in storage systems, and error checking at fixed intervals may cause waiting time delays, making it impossible to effectively optimize error checking frequency.
Use the machine learning module to dynamically determine the error checking frequency according to the properties of the storage device, determine whether to perform error checking operations through input values, optimize the allocation of computing and storage resources, adjust the write counter and output value to determine the error checking frequency, and ensure that errors are possible Perform checks when probability is high and check less frequently when error probability is low.
Dynamically adjust error checking frequency, optimize resource allocation, reduce unnecessary error checking, improve storage system efficiency and data integrity, and avoid waiting time delays.
Smart Images

Figure CN112088364B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a computer program product, system and method for using a machine learning module to determine when to perform error checking of a storage unit. Background Art
[0002] In order to maintain data integrity in a storage system, error checking and error correction operations may be performed on the data (if an error is detected). For storage arrays, such as a redundant array of independent disks (RAID), parity data may be maintained, which may be used to check for data errors and correct the data. In a RAID array, a parity erase operation may be periodically performed to verify the integrity of the data and parity blocks by reading all blocks in a RAID stripe stored across the storage devices in the RAID array and comparing the read data to the parity data to determine if there are inconsistencies. Parity erase operations are computationally expensive, requiring system computing resources and continuous access to read data and parity data from the storage array. As drive capacities have increased, the extent of error checking operations for parity erases has experienced a corresponding increase, which may result in latency delays for other operations and applications seeking to access data in the RAID array.
[0003] One technique for error checking is to periodically perform a parity erase after a fixed number of write operations. For critical data, the system administrator can set the fixed number low to ensure continuous error correction operations to avoid data errors from propagating through the critical data. However, these continuous error checking operations may cause latency delays in accessing critical data.
[0004] There is a need in the art for improved techniques for determining when to perform error correction checks and operations in a memory cell. Summary of the invention
[0005] A first embodiment includes a computer program product, system, and method for using a machine learning module to determine when to perform an error check of a storage unit. Input of properties of at least one storage device including the storage unit is provided to the machine learning module to generate an output value. An error check frequency is determined based on the output value. It is determined whether the error check frequency indicates that an error check operation is to be performed for the storage unit. An error check operation is performed in response to determining that the error check frequency indicates that an error check operation is to be performed.
[0006] Viewed from a first aspect, the present invention provides an improvement in computer technology for determining when to perform error checking and handling by using machine learning modules and algorithms to dynamically determine the likelihood of errors at storage cells based on current operating parameters recorded for storage devices. In this way, the described embodiments optimize the allocation of computing and storage resources to error checking operations by dynamically determining the frequency of performing error checking operations based on predictions about whether data errors are likely at storage devices given current operating conditions. The dynamic determination is based on the prediction of whether data errors are likely at storage devices given current operating conditions to perform error checking decisions.
[0007] Preferably, the present invention provides a computer program product, wherein the storage unit comprises one of an array of storage devices or a storage device.
[0008] Preferably, the present invention provides a computer program product for extending optimization techniques to optimize error checking operations for storage arrays (such as RAID arrays) for storage devices and for individual storage device storage units.
[0009] Preferably, the present invention provides a computer program product for providing input regarding properties of a storage unit, comprising periodically providing the input to a machine learning module to periodically generate output values, wherein an operation of determining an error checking frequency and determining whether the error checking frequency indicates performing an error checking operation.
[0010] Preferably, the present invention provides a computer program product for determining when to perform error checking using a machine learning algorithm to limit error checking to those instances where there is a prediction of a likelihood of error, the computer program product being executed periodically to continuously determine whether error checking is needed to optimize error checking. This ensures that any cycles with increased error occurrences will be subject to error checking and handling, and that cycles with low error rates will not result in error checking because checking is not performed when the likelihood of error is low.
[0011] Preferably, the present invention provides a computer program product, wherein determining an error checking frequency based on an output value comprises determining a number of writes based on the output value. Determining whether the error checking frequency indicates that the error checking operation is to be performed comprises determining whether a write counter exceeds the error checking frequency. In response to the write counter exceeding the error checking frequency, the error checking operation is performed.
[0012] Preferably, the present invention provides a computer program product for optimizing error checking operations by checking for errors when a write counter exceeds an error checking frequency, the error checking frequency being adjusted based on a determination of the likelihood of an error occurring with respect to a storage device. Thus, in this case, error checking is performed again based on the determined likelihood of an error to ensure an optimized allocation of computing resources between error checking and other processes.
[0013] Preferably, the present invention provides a computer program product for resetting the write counter to zero in response to determining to perform the error checking operation.
[0014] Preferably, the present invention provides a computer program product wherein the write counter is reset to allow the next determination of performing an error check to occur at an error check frequency rate trained based on current operating conditions.
[0015] Preferably, the present invention provides a computer program product, whose output value includes a number from 0 to 1, which indicates the possibility of an error in the storage unit. Determining whether the error checking frequency indicates to perform the error checking operation includes: in response to the output value being less than a lower limit, not performing the error checking operation; in response to the output value being greater than an upper limit, performing the error checking operation; and in response to the output value being between the lower limit and the upper limit, adjusting the error checking frequency based on the output value.
[0016] Preferably, the present invention provides a computer program product, wherein when the output value indicates that the probability of an error is below a low threshold, the error checking operation is not performed to optimize resource allocation to other operations, and if there is a greater probability of an error, the error checking operation is performed, which ensures that during times of increased error rates, the use of resources is redirected to error checking. Further, the error checking frequency can be adjusted based on the output value to further optimize resource allocation for future error checking resources.
[0017] Preferably, the present invention provides a computer program product wherein the error checking operation checks a fixed number of last writes, and wherein adjusting the error checking frequency sets the error checking frequency to the fixed number of last writes divided by the output value.
[0018] Preferably, the present invention provides a computer program product wherein only a limited number of writes are subject to error checking to further limit the use of computing resources as part of the error checking.
[0019] Preferably, the present invention provides a computer program product, wherein the properties of at least one memory used as input to a machine learning module include at least one of: an error type if an error checking operation detected an error during the last run of the error checking operation, or an indication of no errors if no errors were detected during the last run of the error checking operation; a type of at least one storage device comprising the storage unit; an age of the at least one storage device from first use; a firmware level of the at least one storage device; read operations per second at the at least one storage device; and write operations per second at the at least one storage device.
[0020] Preferably, the present invention provides a computer program product, wherein the attributes used to determine the likelihood of an error include those attributes that are most likely to predict the occurrence of an error to optimize operations to determine when to perform error checking. For example, if the error type is an error type that may or may not occur again, the error type of the last error will have a significant predictive value. Usage level or age can be predictive, such as older or more used storage devices may be more prone to errors. If a particular firmware level is associated with a greater error rate, the firmware level can be predictive. In addition, the number of read and write operations occurring can also be highly predictive, as errors may occur more frequently during periods of high usage.
[0021] Preferably, the present invention provides a computer program product, wherein a write counter is incremented in response to performing a write operation on the storage unit; it is determined whether the write counter satisfies the condition regarding the error checking frequency; in response to determining that the write counter satisfies the condition regarding the error checking frequency, the error checking operation is performed and the write counter is reset.
[0022] Preferably, the present invention provides a computer program product, wherein the error checking operation is scheduled to occur when the number of writes indicated in the write counter satisfies the condition of the error frequency (such as being equal to the error frequency). At this point, an error check should be performed to determine whether there are errors to be corrected.
[0023] Viewed from another perspective, the present invention provides a computer program product, which includes a computer program product, method and system for error checking data in a storage unit. A determination is made to train a machine learning module. In response to the determination to train the machine learning module, an input including a property of at least one storage device of the storage unit is determined. The machine learning module is trained to generate an expected output value indicating the execution of an error checking operation of the storage unit from the determined input in response to detecting an error. The machine learning module is executed to generate an output value for determining whether to perform an error checking operation on the storage unit.
[0024] Advantageously, the present invention provides a computer technique for performing error checking by retraining a machine learning module based on current properties of a storage device to produce an expected output value that reflects the current likelihood of an error, so that the machine learning module more accurately predicts the likelihood of an error at a storage unit, e.g., a single storage device or an array of storage devices. Thus, the accuracy of the machine learning module in determining the likelihood of an error based on current operating conditions and properties is improved.
[0025] Preferably, the present invention provides a computer program product for detecting errors while performing error checking operations, wherein a determination to train a machine learning module occurs in response to detecting an error. The expected output value is set to indicate an output value for training the machine learning module in response to performing error checking for detecting an error.
[0026] Preferably, the present invention provides a computer program product in which the predictability of the machine learning module is improved by retraining the module to determine the likelihood of an error based on current operating conditions that occur when an error is actually detected. In this way, the machine learning module is trained during real-time error detection to indicate an error to improve the likelihood of predicting the error during actual error operating conditions.
[0027] Preferably, the present invention provides a computer program product for detecting that an error is not detected in a fixed number of error checking operations. In response to detecting that an error is not detected in the fixed number of error checking operations, a determination is made to train a machine learning module. In response to detecting that an error is not detected in the fixed number of error checking operations, an expected output value is set to an output value indicating that error checking is not performed for training the machine learning module.
[0028] Preferably, the present invention provides a computer program product in which the predictability of a machine learning module is improved by retraining the module to determine the likelihood of no errors based on current operating conditions that occur when no errors are detected during error checking. In this way, the machine learning module is trained during real-time error detection to indicate low error likelihood to improve the likelihood of predicting errors during actual operating conditions when no errors are detected.
[0029] Preferably, the present invention provides a computer program product, wherein training the machine learning module comprises determining an error bound between the output value of the machine learning module and the expected output value, and an error bound and input for training the weights and biases of nodes in the machine learning module to produce the expected output value.
[0030] Preferably, the present invention provides a computer program product in which a machine learning module generates output values from inputs from a storage array of storage devices managed by a storage controller to provide output values to a storage controller based on inputs from the storage devices indicating whether the storage controller should perform error checking operations relative to storage devices in the storage array managed by the storage controller.
[0031] Preferably, the present invention provides a computer program product wherein the network error prediction is improved by combining the prediction with a machine learning module that can be retrained based on errors occurring at all storage controllers. Thus, retraining based on error detection at any storage controller in the network will improve the predictability of determining the likelihood of an error when used for any storage controller in the network.
[0032] Preferably, the present invention provides a computer program product, further comprising detecting a field error independently of the error checking operation, wherein the determination to train the machine learning module occurs in response to detecting the field error. The expected output value is set to indicate an output value for performing error checking for training the machine learning module in response to detecting the error.
[0033] Preferably, the present invention provides a computer program product in which the predictability of a machine learning module is improved by retraining the module to determine the likelihood of an error based on detecting a field error (such as a discarded write) that is detected independently of the operation of error checking. In this way, the machine learning module is trained to indicate errors during real-time independent error detection to improve the likelihood of predicting errors during actual error operating conditions.
[0034] From another point of view, the present invention provides a method for error checking data in a storage unit, comprising: providing input about properties of at least one storage device including the storage unit to a machine learning module to generate an output value; determining an error checking frequency based on the output value; determining whether the error checking frequency indicates that an error checking operation is to be performed on the storage unit; and performing the error checking operation in response to determining that the error checking frequency indicates that the error checking operation is to be performed.
[0035] From another aspect, the present invention provides a system computer for error checking data in a storage unit, comprising: a processor; and a computer-readable storage medium storing a computer-readable program code, wherein the computer-readable program code performs operations when executed, the operations comprising: providing an input of a property of at least one storage device including the storage unit to a machine learning module to generate an output value; determining an error checking frequency based on the output value; determining whether the error checking frequency indicates that an error checking operation is to be performed on the storage unit; and performing the error checking operation in response to determining that the error checking frequency indicates that the error checking operation is to be performed. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 An embodiment of a computing environment is shown.
[0037] Figure 2 An embodiment of storing device information is shown.
[0038] Figure 3 An embodiment of error checking information is shown.
[0039] Figure 4 An embodiment of the operation of periodically running a machine learning module to perform error checking operations is shown.
[0040] Figure 5 An embodiment of the operation of processing a write request is shown.
[0041] Figure 6 An embodiment of operations for performing error checking operations is shown.
[0042] Figure 7 An embodiment of the operation of training a machine learning module to determine the likelihood of an error in a memory cell is shown.
[0043] Figure 8 An embodiment of operations for performing field error handling is shown.
[0044] Fig. 9 Additional embodiments of computing environments including multiple storage controllers and storage arrays are shown.
[0045] Fig.10 It shows that it can be realized Figure 1 and 8 The computing environment of the components. DETAILED DESCRIPTION
[0046] Prior art systems that periodically perform error checking operations in storage arrays such as RAID arrays direct resources and storage access away from applications for the purpose of performing error checking and processing. This redirection of computing and storage resources can result in latency delays for applications attempting to access data in the storage array. If there are relatively few errors in the storage array, prior art systems that periodically perform error checking operations at fixed intervals may perform error checking more frequently than necessary, thereby unnecessarily causing latency delays. Further, if a larger number of errors occur in the storage array, periodically performing error checking operations at fixed intervals may perform less frequent error checking than necessary, which may result in data integrity errors in the system.
[0047] The described embodiments provide improved computer techniques for determining when to perform error checking and handling operations that use machine learning modules and algorithms to dynamically determine the likelihood of errors at storage cells based on current operating parameters recorded for storage devices. The machine learning modules can be continually retrained to improve the accuracy of predictions for determining whether a storage device is experiencing an error using the current state of the operating parameters and feedback about actual experienced errors or lack of errors. In this way, the described embodiments optimize the allocation of computing and storage resources to error checking operations by dynamically determining the frequency at which error checking operations are performed based on predictions about whether data errors are likely given current operating conditions at the storage device.
[0048] Figure 1 An embodiment of a computing environment is shown. Computing system 100 accesses data in storage devices 102 in storage array 104. Computing system 100 includes processor 106 and memory 108, memory 108 including cache 110 that caches data of storage array 104. Processor 106 may include one or more central processing units (CPUs) or a set of multiple cores on a single CPU. Cache 110 buffers data requested by processes within the computing system. Alternatively, computing system 100 may include a storage controller that handles input / output (I / O) access requests to tracks in storage array 104 from a host 105 connected to computing system 100 (storage controller) via network 107.
[0049] The memory 108 also includes a storage manager 112 to manage access requests to tracks in the storage array 104 from internal processes in the computing system 100 and / or from the host 105. The cache manager 114 maintains the accessed tracks in the cache 110 for future read accesses to the tracks to allow the accessed tracks to be returned from the faster accessed cache 110 rather than having to be retrieved from the storage array 104. A track may include any unit of data configured in the storage array 104, such as a track, a logical block address (LBA), etc., which is part of a larger grouping of tracks such as a volume, a logical device, etc.
[0050] The memory 108 also includes an error checking module 116 to perform error checking operations, such as parity checking operations or parity erasures to determine that the data is valid according to a parity code or an error checking code (ECC). If there is a detected error, the error checking module 116 may perform an error correction operation, such as using parity information to correct the data, correcting the parity information, blocking the data, or providing a notification to replace the storage device. The error checking module 116 maintains storage device information 200 having information about the storage devices 102 in the storage array 104 and error checking information 300 for determining whether to perform error checking operations and error handling. The error checking module 116 may provide the storage device information 200 as an input 118 to the machine learning module 120 to generate an output value 122 indicating the possibility that an error has occurred at the checked storage device 102 and an error checking operation needs to be performed to determine whether there is an error at the storage device 102, such as a parity error.
[0051] The machine learning module 120 can implement machine learning techniques such as decision tree learning, association rule learning, neural networks, inductive programming logic, support vector machines, Bayesian models, etc. to receive certain storage device information 200 as input 118 and generate an output value 122 or confidence level, such as a value between 0 and 1, indicating the possibility of an error at a storage cell, including a storage device or an array 104 of storage devices 102.
[0052] In one embodiment, the machine learning module 120 may include an artificial neural network program trained using back propagation to adjust weights and biases at nodes in a hidden layer of the first artificial neural network program to produce output values 122 based on input 118 including storage device information 200. Back propagation may include an algorithm for supervised learning of an artificial neural network using gradient descent. Given an artificial neural network and an error function, the method may calculate the gradient of the error function with respect to the weights and biases of the neural network.
[0053] Storage manager 112, cache manager 114, error checking module 116, and machine learning module 120 are Figure 1 1 is shown as program code loaded into memory 108 and executed by processor 106. Alternatively, some or all of the functionality may be implemented in hardware devices in system 100, such as in an application specific integrated circuit (ASIC), or performed by a separate dedicated processor.
[0054] The storage array 104 may include one or more storage devices 102 known in the art, such as solid-state storage devices (SSDs) including solid-state electronics, EEPROM (electrically erasable programmable read-only memory), flash memory, flash disks, random access memory (RAM) drives, storage class memory (SCM), phase change memory (PCM), resistive random access memory (RRAM), spin-transfer torque memory (STM-RAM), conductive bridge RAM (CBRAM), magnetic hard disk drives, optical disks, magnetic tapes, etc. The storage devices 102 may also be configured as device arrays, such as just a bunch of disks (JBOD), direct access storage devices (DASD), redundant array of independent disks (RAID) arrays, virtualized devices, etc. Further, the storage devices may include heterogeneous storage devices from different vendors or from the same vendor.
[0055] Memory 108 may include suitable volatile or non-volatile memory devices, including those described above.
[0056] The network 107 may include a storage area network (SAN), a local area network (LAN), a wide area network (WAN), the Internet, an intranet, and the like.
[0057] In a RAID embodiment, the error checking operation may include a parity erase, wherein the error checking module 116 reads blocks within a RAID stripe of a RAID array configured within the storage device 102 and uses parity data in the parity blocks to identify errors, such as discarded writes, media errors, checksum errors, parity consistency, etc.
[0058] exist Figure 1 , the machine learning module 120 is shown as being separate from the error checking module 116. In further embodiments, some or all components of the machine learning module 120 may be part of the error checking module 116.
[0059] Figure 2An embodiment of an instance of storage device information 200i for a storage device 102i is shown, and includes a storage device identifier (ID) 202 for the storage device 102i; a last error check result 204, such as the result of the last error check operation performed by the error checking module 116, which may indicate no errors, or a type of error, such as a link error, a hardware error, an expander error indicating dropped links, dropped writes, a power error, etc.; a manufacturer 206 of the storage device 202; an age 208, which may be measured as the time since first use or by the number of writes that have occurred (e.g., loss); a firmware level 210 of the storage device 202; a rate of read operations per second ("OPS") 212 measured for the last number of writes (N) tracked at the storage device 202; and a rate of write operations per second 214 measured for the last number of writes (N) tracked at the storage device 202. The storage device information 200i includes static information (such as 202, 206, 210) and dynamic information (such as in blocks 204, 208, 212, and 214), which can be continuously updated. For example, each time an error check operation is performed at the storage device 102i, the last error check result 204 can be updated, and after one or more read / write operations, the read 212 and write 214 operations per second and the age 208 can be updated.
[0060] Figure 3 An example of error checking information 300i maintained for a storage unit (such as storage device 102 or a RAID row of one storage device 102i) is shown, including: a storage unit ID 302, such as a RAID row ID or storage device ID 102i; a write counter 304, which indicates the number of writes that have occurred since the last error checking operation relative to the storage unit 302; an error checking frequency 306, which indicates the number of writes that must occur before an error checking operation at the storage unit 302 is to be performed; a last output value 308 calculated by the machine learning module 120 for the storage unit 302; and an error checking counter 310, which indicates the number of error checking operations that occurred at the storage unit 302 without detecting an error.
[0061] for Figure 3 In an embodiment, an instance of the error-checking information 300i may be maintained for each of the storage devices 102i (i.e., storage device-specific error-checking information), or an instance of the error-checking information 300i may be maintained for all storage devices in a storage unit (such as a RAID level), wherein writes are striped across multiple storage devices in the storage device.
[0062] Figure 4An embodiment of operations performed by the error checking module 116 and / or the machine learning module 120 to periodically run the machine learning module 120 to determine whether to perform an error checking operation or adjust the error checking frequency 306 is shown. The machine learning module 120 may be run periodically at time intervals or in response to an event. The machine learning module 120 may be called individually for each storage device 102 or for a RAID column to train for all storage devices 102 in a RAID column (or other type of storage array). When calling (at block 400) a machine learning module 120 for a storage unit of a RAID column or storage array that may include one storage device 102i or multiple storage devices 102, (at block 402) an input 118 is determined from storage device information 200i for one or more storage devices 102i that include the storage unit. In an embodiment where error checking information 300i is provided for a separate storage device 102i, the machine learning module 120 may receive storage device information 200i for only one storage device 102i as input 118. In an embodiment where error checking information 300 i is provided for a RAID column of storage devices, the machine learning module 120 may receive as input 118 storage device information 200 i for all storage devices 102 in the RAID column.
[0063] The machine learning module 120 is called (at block 404) with the determined input 118 to generate an output value 122 indicating a likelihood of an error occurring at a storage unit (i.e., a storage device or a storage / RAID array). In one embodiment, the output value 122 may be between 0 and 1, wherein a value closer to 0 indicates a lower likelihood of an error occurring at the storage unit and a value closer to 1 indicates a higher likelihood of an error occurring at the storage unit.
[0064] If (at block 406) the output value is less than a lower limit that may indicate a low likelihood of a data error, then control ends. If (the NO branch from block 406) the output value is above the lower limit but less than (the NO branch from block 408) the upper limit, then the error checking frequency 306 of the memory cell may be adjusted (at block 410) based on the output value. In one embodiment, the error checking frequency 306 may be adjusted by setting the error checking frequency 306 to a fixed number (N) of the last writes to the error check divided by the output value. In alternative embodiments, other calculations and variables may be considered along with the output value to adjust the error checking frequency 306. If (at block 408) the output value is greater than the upper limit, indicating a greater likelihood of an error at the memory cell, then control proceeds (at block 412) to Figure 6 To perform error checking operations, such as parity checking for the last N writes at a storage unit, such as a storage device or a rank of storage devices 102.
[0065] for Figure 4 In an embodiment of the present invention, the machine learning module 120 is operated to determine the probability of an error in a storage unit based on the actual operating conditions of one or more storage devices in the storage unit. This probability is based on a trained machine learning algorithm that bases the determination of the probability of an error on the current operating conditions at the storage device 102 and a statistical and probabilistic model that relates such operating conditions of the storage device 102 to the probability of an error. In this way, the determination of the error checking frequency is adjusted based on the probability of an error so that the error checking frequency 306 is increased, that is, if there is a greater probability of an error and the error checking frequency 306 is reduced, the frequency of the number of writes is reduced, that is, if there is a lower probability of an error at the storage unit, the frequency of the number of writes is increased. Because error checking operations (such as parity erase for RAID array storage units) consume a lot of processing resources (which may cause delays in other operations), adjusting the error checking frequency based on actual error conditions improves the allocation of system resources. If there is a low probability of an error, the error checking frequency can be reduced to reduce the number of error checking operations, thereby freeing up resources to reduce waiting time for other operations. However, if there is a higher probability of error, the error checking frequency can be increased because the importance of the benefit of correcting data errors offsets the negative impact of increased latency for other operations. In this way, using machine learning module 120 to adjust the error checking frequency optimizes resource allocation between error checking and other operations.
[0066] Figure 5 An embodiment of operations performed by the storage manager 112 to process a write request to a storage unit (storage device or RAID row of storage devices) is shown. Upon receiving (at block 502) a write request, the write request is processed (at block 504), such as writing to a storage device 102i or striping across columns of storage devices 102. The write counter 304 for the storage unit is incremented (at block 506), and the storage device information 200i for one or more storage devices in the storage unit is updated (at block 508), such as in fields 208, 212, 214. If (at block 510) the write counter 304 is greater than or equal to the error check frequency 306, then the write counter 304 is reset (at block 512), and control proceeds (at block 514) to the next write request. Figure 6 To perform error checking operations, such as parity checking for the last N writes at a storage unit, such as a storage device or rank of storage devices 102. If (at block 510) the write counter is less than the error checking frequency 306, control ends.
[0067] exist Figure 5In the embodiment, the determination of whether to perform error checking is based on whether the write counter 304 is greater than or less than the error checking frequency 306. In alternative embodiments, other conditions or relationships between the write counter 304 and the error checking frequency 306 may be used to determine whether to perform error checking.
[0068] for Figure 5 In an embodiment, error checking operations are optimized by checking for errors when the write counter exceeds the error checking frequency 306, which is adjusted based on a determination of the likelihood of an error occurring with respect to the storage device.
[0069] Figure 6 FIG. 1 shows an example of an error checking operation performed by the error checking module 116, which may be executed when the machine learning module 120 generates a high output value 122. Figure 4 , and if the write counter 304 exceeds the error check frequency 306, then Figure 5 The error checking module 116 is called at block 514 in . When an error checking operation is initiated (block 600), the error checking counter 310 is incremented (at block 602) and an error checking operation is performed (at block 604) on a fixed number of last writes (N) on a storage unit (one or more storage devices 102). The error checking operation may include a parity check or an error correction code check operation. If an error is detected (at block 606), the error checking counter 310 indicating the number of consecutive error checking operations without errors is reset (at block 608). The error checking module 116 performs (at block 610) an error handling operation to correct errors in the data and / or parity information of the last N writes for checking. The error handling may correct the data in the last N writes from the parity information, or correct the parity information from the data. After performing the error handling, control proceeds (at block 612) to Figure 7 The machine learning module 120 of the storage unit (the device or row of the storage device having the error) is trained with expected output values including the highest output value indicating that the error checking operation is performed (e.g., expected output value 1).
[0070] If (at block 606) no errors are detected, then the error check counter 310 indicating the number of consecutive error checking operations without errors is incremented (at block 614). A determination is made (at block 616) whether the error check counter 310 is greater than or equal to a no-error threshold number of error checking operations. If (at block 616) the error check counter exceeds the no-error threshold, i.e., there has been a threshold number of error checking operations without errors, then the error check counter 318 is reset (at block 618) and control proceeds (at block 620) to Figure 7To train the machine learning module 120 with a storage unit (storage device or arrangement of storage devices with errors) having an expected output value that includes a low threshold, indicating that no error checking operations are performed, such as .001. If (at block 616) the error checking counter 310 does not exceed the error-free threshold, control ends without retraining the machine learning module 120 to decrease the output value because there is not a sufficient number of error-free checking operations to warrant adjusting the output value downward.
[0071] use Figure 6 In an embodiment, after performing an error check, the machine learning module 120 is trained to generate an output value at the storage unit indicating a high probability of an error from the current operating condition that caused the error to increase the probability that the machine learning module 120 can accurately predict the error when similar operating conditions occur in the future. Similarly, if no error occurs after a predetermined number of error checking operations, then the machine learning module 120 is trained to generate an output value at the storage unit indicating a low probability of an error from the current operating condition that caused the number of error checking operations without the error occurring to increase the probability that the machine learning module 120 can accurately predict the absence of an error when similar operating conditions occur in the future.
[0072] Figure 7 1 and 120 to retrain the machine learning module 120 to produce a desired output value, such as depending on whether an error has been detected ( Figure 6 610 in ) or the threshold number of failures (from Figure 6620 in block 700). When the operation is initiated (at block 700) to train the machine learning module 120 to produce the expected output value of the storage unit (storage device or row of storage devices), the input for one or more storage devices in the storage unit from the current storage device information 200i is determined (at block 702), and the machine learning module 120 is trained for the storage unit. The machine learning module 120 runs (at block 704) with the determined input to produce the current output value 122. Determine (at block 706) the error range of the expected output value and the current output value 122. The machine learning module 120 uses the determined input 118 and the error margin and other information to train (at block 708) to produce the expected output value. The machine learning module 120 can be trained using back propagation to reduce the error margin, thereby producing the expected output value. In an embodiment where the machine learning module 120 algorithm includes an artificial neural network, the back propagation routine can be used to retrain the machine learning module 120 to produce the expected output value 122. For other types of machine learning algorithms, such as Bayesian models, other techniques may be used to retrain the machine learning module 120 to produce the desired output values. These settings (e.g., the adjusted weights and biases of the hidden layers of the machine learning module 120) are then saved (at block 710) for later use.
[0073] for Figure 7 In an embodiment, based on current properties of a storage device that enable the machine learning module 120 to more accurately predict the likelihood of an error at a storage cell, the machine learning module 120 is retrained to produce an expected output value that reflects the current likelihood of an error, for example, a single storage device or an array of storage devices.
[0074] exist Figures 1 to 7 In an embodiment of the present invention, the machine learning module 120 determines the probability of errors at one or more storage devices of a single computer system and a storage array 104 having one or more RAID levels.
[0075] Figure 8 An embodiment of operations performed by the error checking module 116 and / or the machine learning module 120 for handling detected field errors (such as loss errors or other errors encountered independently) is shown. When field error handling is initiated (at block 802), a field error such as a discarded write is detected (at block 806) and the error checking counter 310 is reset (at block 806). Error handling operations are performed (at block 808) to correct errors in the data and / or parity of the last N writes, or to fence the storage device 102 having the error and rebuild the data of a new storage device. Control then proceeds (at block 810) to Figure 7, to train the machine learning module 120 of the storage unit (storage device or row of storage devices having errors) with expected output values, the expected output values including the highest output value indicating that an error checking operation is performed due to the detection of field errors.
[0076] for Figure 8 In the embodiment of Figure 6 The machine learning module is trained when a field error is detected outside of an error checking operation so that if input 118 occurs when a detected field error occurs, the machine learning module 120 is retrained to output a value indicating that error checking is performed.
[0077] Fig. 9 Showing the Figures 1 to 8 The described computing system 100 communicates with an additional embodiment of a plurality of storage controllers 9001, 9002 ... 900m, each of which manages access to a storage array 9021, 9022 ... 902m through a network 904. The machine learning module 120 receives input from one or more storage devices in the storage array 9021, 9022 ... 902m to calculate output values of the storage controllers 9001, 9002 ... 900m for managing the storage array 9021, 9022 ... 902m for determining whether to initiate an error checking and correction operation. In this way, the machine learning module 120 can be more frequent and therefore more accurate because it is trained from the storage devices in the plurality of storage arrays 9021, 9022 ... 902m. Although the machine learning module 120, the storage device information 200, and the error checking information 300 can be maintained in the computing system 100, the error checking module 116 can be maintained locally in each of the storage controllers 9001, 9002 ... 900m.
[0078] In the described embodiments, the variables "i, m, n," etc. when used with different elements may refer to the same or different instances of the elements.
[0079] The present invention may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium (or medium) having computer-readable program instructions thereon, the computer-readable program instructions being used to cause a processor to perform various aspects of the present invention.
[0080] A computer-readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer-readable storage media includes the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device (such as a punch card) or a raised structure in a groove with instructions recorded thereon), and any suitable combination of the above. As used herein, a computer-readable storage medium should not be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse by a fiber optic cable), or an electrical signal transmitted by a wire.
[0081] The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a corresponding computing / processing device, or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network may include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium within the corresponding computing / processing device.
[0082] The computer-readable program instructions for performing the operations of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, an electronic circuit (including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA)) may execute computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit so as to perform aspects of the present invention.
[0083] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0084] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine that, when executed by a processor of the computer or other programmable data processing apparatus, creates a device for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions may also be stored in a computer-readable storage medium that can instruct a computer, a programmable data processing apparatus, and / or other device to function in a particular manner, such that a computer-readable storage medium having instructions stored therein includes an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.
[0085] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other apparatus that causes a series of operating steps to be performed on a computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0086] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to different embodiments of the present invention. To this end, each box in the flow chart or block diagram can represent a part of a module, segment or instruction, which includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the box may not occur in the order marked in the figure. For example, depending on the function involved, the two boxes shown in succession can actually be executed substantially at the same time, or these boxes can sometimes be executed in the opposite order. It will also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a system based on special-purpose hardware, and the system based on special-purpose hardware performs a specified function or action or performs a combination of special-purpose hardware and computer instructions.
[0087] Figure 1 and 8 The computing components (including host 105, computing system 100 and storage controllers 9001, 9002 ... 900m) can be in one or more computer systems (such as Fig.10 1002). The computer system / server 1002 can be implemented in the general context of computer system executable instructions (such as program modules) executed by a computer system. In general, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. The computer system / server 1002 can be practiced in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
[0088] like Fig.10As shown, computer system / server 1002 is shown in the form of a general-purpose computing device. Components of computer system / server 1002 may include, but are not limited to, one or more processors or processing units 1004, system memory 1006, and a bus 1008 that couples different system components including system memory 1006 to processor 1004. Bus 1008 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example and not limitation, such architectures include an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0089] Computer system / server 1002 typically includes a variety of computer system readable media. Such media can be any available media that can be accessed by computer system / server 1002, and it includes volatile and nonvolatile media, removable and non-removable media.
[0090] System memory 1006 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1010 and / or cache memory 1012. Computer system / server 1002 may also include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 1013 may be provided for reading from and writing to a non-removable, non-volatile magnetic medium (not shown, and commonly referred to as a "hard drive"). Although not shown, a disk drive for reading and writing removable non-volatile disks (e.g., "floppy disks") and an optical drive for reading and writing removable non-volatile optical disks such as CD-ROMs, DVD-ROMs, or other optical media may be provided. In such instances, each may be connected to bus 1008 via one or more data media interfaces. As will be further depicted and described below, memory 1006 may include at least one program product having a collection (e.g., at least one) of program modules configured to perform the functions of an embodiment of the present invention.
[0091] A program / utility 1014 having a set (at least one) of program modules 1016, as well as an operating system, one or more application programs, other program modules, and program data, may be stored in memory 1006 by way of example and not limitation. Each or some combination of the operating system, one or more application programs, other program modules, and program data may include an embodiment of a networking environment. Components of computer 1002 may be implemented as program modules 1016, which generally perform the functions and / or methods of embodiments of the present invention described herein. Figure 1 The systems may be implemented in one or more computer systems 1002, wherein if they are implemented in multiple computer systems 1002, the computer systems may communicate via a network.
[0092] The computer system / server 1002 may also communicate with one or more external devices 1018, such as a keyboard, a pointing device, a display 1020, etc.; one or more devices that enable a user to interact with the computer system / server 1002; and / or any device that enables the computer system / server 1002 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may occur via an input / output (I / O) interface 1022. In addition, the computer system / server 1002 may communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and / or a public network (e.g., the Internet) via a network adapter 1024. As shown, the network adapter 1024 communicates with other components of the computer system / server 1002 via a bus 1008. It should be understood that, although not shown, other hardware and / or software components may be used in conjunction with the computer system / server 1002. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archiving storage systems, etc.
[0093] Unless expressly stated otherwise, the terms "embodiment", "embodiment", "embodiment", "embodiment", "embodiment", "one or more embodiments", "some embodiments" and "one embodiment" mean "one or more (but not all) embodiments of the invention".
[0094] The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless expressly stated otherwise.
[0095] An enumerated listing of items does not imply that any or all of the items are mutually exclusive, unless expressly specified otherwise.
[0096] Unless expressly stated otherwise, the terms "a", "an" and "the" mean "one or more".
[0097] Devices that are in communication with each other need not be in continuous communication with each other unless expressly specified otherwise. In addition, devices that are in communication with each other may communicate directly or indirectly through one or more intermediaries.
[0098] The description of an embodiment with several components in communication with each other does not imply that all such components are required. Rather, various optional components are described to illustrate various possible embodiments of the invention.
[0099] When a single device or article is described herein, it will be apparent that more than one device / article (whether or not they collaborate) may be used in place of a single device / article. Similarly, when more than one device or article (whether or not they collaborate) is described herein, it will be readily apparent that a single device / article may be used in place of more than one device or article, or that a different number of devices / articles may be used in place of the number of devices or programs shown. The functions and / or features of a device may alternatively be embodied by one or more other devices that are not explicitly described as having such functions / features. Thus, other embodiments of the present invention do not need to include the device itself.
[0100] For the purpose of illustration and description, the foregoing description of different embodiments of the present invention has been presented. It is not intended to be exhaustive or to limit the present invention to the precise form disclosed. In view of the above teachings, many modifications and variations are possible. The scope of the present invention is not intended to be limited by this detailed description, but rather by the limitations of the appended claims. The above description, examples, and data provide a complete description of the manufacture and use of the compositions of the present invention. Because many embodiments of the present invention can be made without departing from the scope of the present invention, the present invention lies in the following appended claims.
Claims
1. A computer program product for error checking data in a storage unit, the computer program product comprising a computer-readable storage medium storing a computer-readable program code, the computer-readable program code performing operations when executed, the operations comprising: providing an input regarding a property of at least one storage device including the storage unit to a machine learning module to generate an output value based on a current state of the property provided as the input, the output value comprising a digital value indicating a likelihood that the storage unit is experiencing an error; determining an error checking frequency from the output value; determining whether the error checking frequency indicates that an error checking operation is to be performed for the storage unit; and In response to determining that the error checking frequency indicates that the error checking operation is to be performed, the error checking operation is performed.
2. The computer program product according to claim 1, wherein: The storage unit includes an array of storage devices or one of the storage devices.
3. The computer program product of claim 1, wherein: Providing the input regarding the properties of the storage unit includes: periodically providing the input to the machine learning module to periodically generate the output value, wherein the error checking frequency is determined and determining whether the error checking frequency indicates performing the error checking operation.
4. The computer program product of claim 1, wherein: Determining the error checking frequency based on the output value includes determining a number of writes as a function of the output value, wherein determining whether the error checking frequency indicates that the error checking operation is to be performed includes: A determination is made as to whether a write counter exceeds the error checking frequency, wherein the error checking operation is performed in response to the write counter exceeding the error checking frequency.
5. The computer program product of claim 4, wherein: The operations further include resetting the write counter to zero in response to determining to perform the error checking operation.
6. The computer program product of claim 1, wherein: The output value comprises a number from zero to one, wherein determining whether the error checking frequency indicates that the error checking operation is to be performed comprises: not performing the error checking operation in response to the output value being less than a lower limit; performing the error checking operation in response to the output value being greater than an upper limit; and In response to the output value being between the lower limit and the upper limit, the error checking frequency is adjusted based on the output value.
7. The computer program product of claim 6, wherein: The error checking operation checks a fixed number of last writes, and wherein adjusting the error checking frequency sets the error checking frequency to the fixed number of last writes divided by the output value.
8. The computer program product of claim 1, wherein: The properties of the at least one storage device used as the input to the machine learning module include at least one of the following: an error type, if the error checking operation detected an error during a last run of the error checking operation, or an indication of no error, if the error checking operation did not detect an error during the last run; a type of the at least one storage device comprising the storage unit; an age of the at least one storage device from first use; a firmware level of the at least one storage device; read operations per second at the at least one storage device; as well as Write operations per second at the at least one storage device.
9. The computer program product of claim 1, wherein: The operations further include: incrementing a write counter in response to performing a write operation with respect to the memory cell; determining whether the write counter satisfies a condition regarding the error check frequency; and In response to determining that the write counter satisfies the condition regarding the error check frequency, the error check operation is performed and the write counter is reset.
10. A computer program product for error checking data in a storage unit, the computer program product comprising a computer-readable storage medium storing a computer-readable program code, the computer-readable program code performing operations when executed, the operations comprising: In response to detecting an error in the storage unit, executing: determining an input of a property of at least one storage device comprising the storage unit; as well as training the machine learning module to process the determined inputs to produce output values by training weights and biases of nodes in the machine learning module, the output values comprising a digital value indicating a likelihood of an error being present in the memory cell, wherein an error checking operation of the memory cell is performed when the digital value indicates the likelihood of the error being present; as well as The machine learning module is executed to produce a further output value, the further output value comprising a digital value indicating a likelihood of an error existing in the memory cell and used to determine whether to perform an error checking operation on the memory cell.
11. The computer program product of claim 10, wherein: The operations further include: Detecting that an error is not detected in a fixed number of error checking operations, wherein determining the input and training the machine learning module are performed in response to detecting that the error is not detected in the fixed number of error checking operations.
12. The computer program product of claim 10, wherein: Training the machine learning module includes: Executing the machine learning module to generate a current output value; determining an error range between the current output value and the digital value indicating the likelihood that an error exists in the memory cell; and The weights and the biases of the nodes in the machine learning module are trained using the error margin and the input to produce the digital value.
13. The computer program product of claim 10, wherein: The machine learning module generates an output value from an input of a storage array of storage devices managed by a storage controller, wherein the output value from the machine learning module is provided to the storage controller, wherein the storage controller performs an error checking operation relative to the storage device in the storage array managed by the storage controller when the output value indicates the possibility of the error existing.
14. The computer program product of claim 10, wherein: The operations further include: A field error is detected independently of the error checking operation, wherein the determination of the input and the training of the machine learning module are performed in response to detecting the field error.
15. A system for performing error checking on data in a storage unit, comprising: A processor; as well as A computer-readable storage medium storing a computer-readable program code, when the computer-readable program code is executed, performs operations, the operations comprising: providing an input regarding a property of at least one storage device including the storage unit to a machine learning module to generate an output value based on a current state of the property provided as the input, the output value comprising a digital value indicating a likelihood that the storage unit is experiencing an error; determining an error checking frequency from the output value; determining whether the error checking frequency indicates that an error checking operation is to be performed for the memory cell; and In response to determining that the error checking frequency indicates that the error checking operation is to be performed, the error checking operation is performed.
16. The system of claim 15, wherein: Determining the error checking frequency based on the output value includes determining a number of writes as a function of the output value, wherein determining whether the error checking frequency indicates that the error checking operation is to be performed includes: A determination is made as to whether a write counter exceeds the error checking frequency, wherein the error checking operation is performed in response to the write counter exceeding the error checking frequency.
17. The system of claim 15, wherein: The output value comprises a number from 0 to 1, wherein determining whether the error checking frequency indicates that the error checking operation is to be performed comprises: not performing the error checking operation in response to the output value being less than a lower limit; performing the error checking operation in response to the output value being greater than an upper limit; and In response to the output value being between the lower limit and the upper limit, the error checking frequency is adjusted based on the output value.
18. The system of claim 15, wherein: The operations further include: incrementing a write counter in response to performing a write operation with respect to the memory cell; determining whether the write counter satisfies a condition regarding the error check frequency; and In response to determining that the write counter satisfies the condition regarding the error check frequency, the error check operation is performed and the write counter is reset.
19. A system for performing error checking on data in a storage unit, comprising: A processor; as well as A computer-readable storage medium storing a computer-readable program code, when the computer-readable program code is executed, performs operations, the operations comprising: In response to detecting an error in the storage unit, executing: determining an input of a property of at least one storage device comprising the storage unit; and training the machine learning module to process the determined inputs to produce output values by training weights and biases of nodes in the machine learning module, the output values comprising a digital value indicating a likelihood of an error being present in the memory cell, wherein an error checking operation of the memory cell is performed when the digital value indicates the likelihood of the error being present; and The machine learning module is executed to produce a further output value, the further output value comprising a digital value indicating a likelihood of an error existing in the memory cell and used to determine whether to perform an error checking operation on the memory cell.
20. The system of claim 19, wherein: The operations further include: Detecting that an error is not detected in a fixed number of error checking operations, wherein determining the input and training the machine learning module are performed in response to detecting that the error is not detected in the fixed number of error checking operations.
21. A method for performing error checking on data in a storage unit, comprising: providing an input regarding a property of at least one storage device including the storage unit to a machine learning module to generate an output value based on a current state of the property provided as the input, the output value comprising a digital value indicating a likelihood that the storage unit is experiencing an error; determining an error checking frequency from the output value; determining whether the error checking frequency indicates that an error checking operation is to be performed for the storage unit; and In response to determining that the error checking frequency indicates that the error checking operation is to be performed, the error checking operation is performed.
22. The method of claim 21, wherein: Determining the error checking frequency based on the output value includes determining a number of writes based on the output value, wherein determining whether the error checking frequency indicates that the error checking operation is to be performed includes: A determination is made as to whether a write counter exceeds the error checking frequency, wherein the error checking operation is performed in response to the write counter exceeding the error checking frequency.
23. The method of claim 21, wherein: The output value comprises a number from 0 to 1, wherein determining whether the error checking frequency indicates that the error checking operation is to be performed comprises: not performing the error checking operation in response to the output value being less than a lower limit; performing the error checking operation in response to the output value being greater than an upper limit; and In response to the output value being between the lower limit and the upper limit, the error checking frequency is adjusted based on the output value.
24. The method of claim 21, further comprising: incrementing a write counter in response to performing a write operation with respect to the memory cell; determining whether the write counter satisfies a condition regarding the error checking frequency; and In response to determining that the write counter satisfies the condition regarding the error check frequency, the error check operation is performed and the write counter is reset.
