Using error correction-based metrics to identify poorly performing data storage devices
By introducing reliability engines and health metrics into the data storage system, the problem of identifying and solving poorly performing devices is solved, and efficient management and maintenance of the data storage system is achieved.
Patent Information
- Application Number
- CN201980078941.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-19
- Filing Date
- 2019-12-26
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-12-26
AI Technical Summary
Existing technologies are difficult to accurately identify and resolve poorly performing data storage devices in data storage systems, leading to resource waste and increased maintenance costs.
By introducing a reliability engine into the system controller of the data storage system, using FRPH (full recovery per hour) metrics and QoS (quality of service) metrics, the health status of each data storage device is periodically monitored and analyzed, and the original Repair or decommission poorly performing devices.
It achieves accurate identification and repair of poorly performing devices, reduces resource waste and maintenance costs, and improves the reliability and efficiency of the data storage system.
Smart Images

Figure CN113179665B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is a continuation-in-part of and claims the benefit of priority to pending U.S. patent application No. 16 / 453,368, filed on June 26, 2019, entitled “Use Of Recovery Behavior For Prognosticating And In-Situ Repair of Data Storage Devices,” the entire contents of which are incorporated by reference for all purposes as fully set forth herein. Technical Field
[0003] Embodiments of the present invention may relate generally to data storage systems, and more particularly to methods of identifying operationally problematic data storage devices. Background Art
[0004] There is a commercial need for high capacity digital data storage systems in which multiple data storage devices (DSDs) (or, more commonly, "drives") are housed in a common housing. The data storage system typically includes a large housing that houses multiple shelves on which multiple rows of DSDs are mounted. A typical method of using a data storage system is to remove or remove from service DSDs that malfunction or fail in the field. Such DSDs are then typically replaced with replacement DSDs by a technician at an in-house laboratory or a customer deployment site. The failed drives are typically destroyed by the customer or returned to the manufacturer for failure analysis.
[0005] Any approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. BRIEF DESCRIPTION OF THE DRAWINGS
[0006] Embodiments are illustrated by way of example and not limitation in the accompanying drawings in which like reference numerals refer to similar elements and in which:
[0007] Figure 1A is a plan view showing a hard disk drive (HDD) according to one embodiment;
[0008] Figure 1B is a block diagram illustrating a solid state drive (SSD) according to one embodiment;
[0009] Figure 2 is a perspective view showing a data storage system according to one embodiment;
[0010] Figure 3is a block diagram illustrating a data storage system architecture according to one embodiment;
[0011] Figure 4 is a flow chart illustrating a method of identifying a problematic hard drive according to one embodiment;
[0012] Figure 5 is a flow chart illustrating a method of identifying an underperforming data storage device according to one embodiment; and
[0013] Figure 6 is a flow chart illustrating a method of identifying an underperforming data storage device, according to one embodiment. DETAILED DESCRIPTION
[0014] The present invention describes a method for identifying a problematic data storage device in use. In the following description, for the purpose of explanation, many specific details are set forth in order to provide a thorough understanding of the embodiments of the present invention described herein. However, it will be apparent that the embodiments of the present invention described herein can be practiced without these specific details. In other cases, well-known structures and devices are shown in the form of block diagrams in order to avoid unnecessarily obscuring the embodiments of the present invention described herein.
[0015] Physical Description of an Exemplary Operational Context Data Storage System
[0016] There is a commercial need for a high capacity digital data storage system in which multiple data storage devices (DSDs) such as hard disk drives (HDDs) and / or solid state drives (SSDs) are housed in a common housing. The data storage system typically includes a large housing housing multiple shelves on which multiple rows of DSDs are mounted. Figure 2 2 is a perspective view showing an example of a data storage system according to an embodiment. The data storage system 200 may include a system housing 202 (or "rack 202") in which a plurality of data storage system trays 204 are housed. For example, each tray 204 may be placed or slid into a corresponding slot within the rack 202. The rack 202 also houses a system controller and may also house switches, storage servers, application servers, power supplies, cooling fans, etc.
[0017] Figure 3is a block diagram illustrating a data storage system architecture according to one embodiment. The exemplary architecture 300 illustrates a data storage system 200 including a plurality of hard disk drives (DSDs) 304a (HDD1), 304b (HDD2), and 304n (HDDn), where n represents any number of HDDs (and / or SSDs) that may vary depending on the specific implementation. Each HDD 304a-304n communicates with a data storage system controller 312 via a communication interface 322 according to a corresponding communication protocol 323 and is under the control of the data storage system controller. Each HDD 304a-304n includes a corresponding non-volatile memory (NVM) 306 (e.g., in the case of a HDD, typically in the form of a rotating disk medium), which is controlled by a corresponding HDD controller 308 including a log module 310. Each log module 310 (which may be, for example, a component of a corresponding system-on-chip (SoC), such as a portion of a data channel circuit or a hard disk controller circuit, as shown in the context of a HDD) is capable of recording actions taken by the HDD controller 308, such as recording read, write and seek errors, associated recovery actions, and other recent and long-term HDD state information. The system controller 312 of the data storage system 200 includes a memory 313, a processor 315, and a reliability engine 314 and an associated FRPH (Full Recovery Per Hour) module 316, which together represent process functions related to prognosis and in-situ repair of the HDDs 304a-304n, as described in more detail elsewhere herein.
[0018] Processes, functions, procedures, actions, method steps, etc. described herein as being performed or executable by the system controller 312 or the HDDs 304a-304n may include being performed by executing one or more sequences of instructions stored in one or more memory units, and when executed by one or more processors, result in such performance. The system controller 312 may be implemented in any form and / or combination of software, hardware, and firmware. For example, and in accordance with one embodiment, the system controller 312 includes an application specific integrated circuit (ASIC) including at least one memory unit for storing such instructions (such as firmware as a non-limiting example) and at least one processor for executing such instructions, enabling prognosis of potentially problematic HDDs with respect to the plurality of HDDs 304a-304n (e.g., "silent" failed drives, which may be struggling to complete data transactions internally but have not yet disclosed a failure), and managing, controlling, and facilitating in-situ repair actions corresponding to failed and failing HDDs.
[0019] The data storage system 200 may be communicatively coupled to a host 350, which may be implemented as a hardware machine (for non-limiting examples, a computer or hardware server, etc.) on which executable code is executed, or as software instructions executable by one or more processors (for non-limiting examples, a software server such as a database server, an application server, a media server, etc.). The host 350 generally represents a client of the data storage system 200 and has the ability to make read and write requests (input / output or "IO") to the data storage system 200. It is noted that the system controller 312 may also be referred to as a "host" because the term is generally used with reference to any device that makes IO calls to a data storage device or array of devices, such as HDDs 304a-304n. Background Art
[0021] As used herein, the term "substantially" should be understood to describe a feature that is mostly or nearly structured, configured, dimensioned, etc., but in practice manufacturing tolerances, etc. cause the structure, configuration, dimensions, etc. not always or necessarily to be exactly as described. For example, describing a structure as "substantially vertical" would give the term its ordinary meaning, such that the sidewalls are vertical for all practical purposes, but may not be at exactly 90 degrees.
[0022] While terms such as "best," "optimize," "minimum," "minimize," etc. may not have certain values associated with them, if such terms are used herein, it is intended that one of ordinary skill in the art will understand that such terms will include affecting values, parameters, metrics, etc. in beneficial directions consistent with the present disclosure as a whole. For example, describing a value of something as "minimum" does not require that the value actually equal some theoretical minimum value (e.g., zero), but should be understood in a practical sense that the corresponding goal is to move the value in a beneficial direction toward the theoretical minimum value.
[0023] Some data storage systems implement diagnostic and in-situ (e.g., "in place" or "in place") repair procedures. This means that system HDDs that have failed during field operation are diagnosed and repaired to the extent possible on site, and if they cannot be repaired, they are deactivated in situ rather than replaced. Preferably, in-situ repair requires an automated or semi-automated process, and the HDD in question remains in the system housing. Many HDD repairs do not result in any loss of capacity or performance. HDDs can be repaired in a way that still allows system software to continue to be used, although with reduced capacity or performance. Unrepairable HDDs may be allowed to fail in place within the system, such as in the case where the system comes with over-configured storage capacity, which allows the availability of the full specified storage capacity despite the presence of many drive failures. In-situ repairs can eliminate the cost of dispatching service technicians to replace drives that fail in the field, as well as the cost of these replacement drives. In addition, in-situ repairs can reduce the AFR (annual failure rate) of storage devices, and will likely eliminate the ARR (annual repair rate) when future product releases adopt a "field failure" model.
[0024] Implementation of in-situ repair in HDDs can minimize the amount of over-provisioning necessary in data storage systems to be able to provide lifetime hardware guarantees. As mentioned, some storage systems (and / or storage system operating system software) may be able to continue using many HDDs after they have failed. Analysis of failed drives has shown that many HDDs that fail in the field can be restored to full or partial use with relatively simple techniques.
[0025] A fairly common manifestation of poor performance of a data storage device (DSD) causes the data storage system to exhibit poor performance. Existing methods of identifying faulty devices are significantly resource intensive. A data storage system encounters a group of HDDs that exhibit excessive average IO completion times (latencies). This can occur with respect to read operations or write operations, or both. This behavior occurs because the drive is invoking high utilization of data recovery program (DRP) actions whenever a faulty, marginal, or error-prone head or surface is accessed. This type of device is referred to herein as a "poorly performing drive."
[0026] Poorly performing drives are typically adequate to operate normally, such that they do not generate hard errors visible to the host (e.g., check condition + KCQ (key code validator), and IO completion latency does not exceed the HBA (host bus adapter) timeout threshold (about 5 seconds-10 seconds). However, these drives often exhibit much higher average latency than their peers, enough to cause significant problems. In systems using erasure coding and / or RAID technology, several associated drives must each execute one or more IO requests to satisfy the needs of a single higher-level operation (e.g., an S3 operation). In addition, some types of external host operations cannot be completed until all member drives have successfully completed their assigned roles in the operation. Therefore, drives that are slower to complete some or most IO requests can increase the completion time of external host operations. Poorly performing drives can also cause resource bottlenecks or even starvation when the data storage system attempts to autonomously perform management operations such as object verification or reconstruction.
[0027] Currently, hosts of data storage systems cannot accurately detect underperforming drives. This is often because drive health detection methods are based on detection of hard errors or command protocol timeouts visible to the host. As a result, underperforming drives are difficult to identify, and the associated service tickets often require manual intervention on the target machine.
[0028] Avoiding excessive tail latency
[0029] The storage industry typically defines a poorly performing drive as one that exhibits high "tail latency." Tail latency is a phenomenon where the majority of IOs complete in a reasonable amount of time, but a very small percentage complete with unacceptably high latency. A typical OEM customer spec for drive tail latency can read something along the lines of "maximum command queue depth of 16, allowing at most only 1:100k single-block random reads to exceed 1000 millisecond (msec) completion time."
[0030] Typically, high tail latency occurs due to intentional driver behavior, as described below:
[0031] (a) Prioritization of IO requests with respect to seek distance from the current head position. HDDs typically optimize command execution to minimize seek and rotational delays. Such a strategy may postpone satisfying inconvenient IO requests. Only after an IO request has aged for longer than a fixed maximum completion time (perhaps 2-3 seconds) is the IO request elevated to high priority so it can complete quickly to avoid host timeouts.
[0032] (b) Prioritization of IO requests against drive background activities. DSDs typically prioritize host IO over background activities. However, if host load requests arrive at critical times, or if the request stream is persistent enough over a long period of time, eventually some or all host IO requests will be postponed until at least some background activities have been allowed to run.
[0033] One approach to avoiding high tail latency may involve minimization of queue depth. If the HDD is only given a small number of IOs to process simultaneously (only 1 in the extreme case), the drive will not have the opportunity to select a preferred seek mode. This results in more deterministic latency at the expense of lower throughput. A recently proposed approach to mitigate the effects of tail latency is to allow the host to specify a specific maximum timeout for each command it issues to the drive. If the drive cannot complete the operation in the allotted time, the drive will "fast fail", which signals the host to rebuild the data from a redundant source.
[0034] Host monitoring of average latency
[0035] Another industry approach involves monitoring the disks with external tools such as the Linux built-in "iostat" tool, which reports the average IO latency of transactions (updated over an arbitrary time window) to each DSD. However, the reported latency includes all parts of the backend stack, for example, the measured latency starts from the Linux driver, to the HBA driver, the HBA, the DSD, back from the DSD, through the HBA and its driver and finally back to the Linux driver. The latency of operations external to the DSD can be comparable to or greater than the latency of the DSD itself. This makes it difficult or impossible to isolate the exact latency that can be attributed to a poorly performing DSD. Statistics based on "iostat" also cannot distinguish between various causes of drive-induced latency, such as internal error correction, background tasks, or congestion presented by heavy IO load patterns.
[0036] SMART host monitoring
[0037] Another approach is to rely on SMART (Self-Monitoring, Analysis and Reporting Technology), an onboard self-diagnostic subsystem. As a technology, SMART is able to alert the host to performance degradation of the DSD. However, existing real-world implementations of SMART are limited to providing a consolidated report of health-related statistics collected using a single shell command sequence. In practice, SMART is very limited in its ability to predict or diagnose failed drives, especially poor performance that does not exhibit hard errors.
[0038] Reliability Engine
[0039] refer to Figure 3According to one embodiment, a software component referred to as reliability engine 314 is responsible for performing or managing data storage device (DSD) diagnostic, prognostic, and repair operations. With respect to diagnostics, when a system (e.g., system controller 312 of data storage system 200) detects a problem with a DSD 304a-304n of data storage system 200, the system calls reliability engine 314 and passes information describing the system's problem with the DSD. Typically, reliability engine 314 may enter a diagnostic state with respect to the DSD and analyze the DSD to identify the root cause of the problem. With respect to repair, once the root cause of the problem is identified, reliability engine 314 notifies system controller 312 of the logic of the recommended repair action, which system controller 312 may schedule according to the urgency level based on system events (e.g., code upload, impending shutdown / restart) and the disk redundancy level within the system. Once the system controller 312 requests a repair, the DSD is typically taken offline and reliability engine 314 performs the repair (which may take anywhere from a few seconds to a few days). At the conclusion of repair and post-repair diagnostics, the DSD may be restored to full use, restored to use at reduced capacity and / or performance, or the DSD may be deactivated from the system.
[0040] According to an embodiment, regarding prognosis, the reliability engine 314 also periodically monitors the health of each DSD when each DSD is online and used by the system. In the context of a hard disk drive (HDD), this can be done by reading and analyzing a limited time subset of the internal E6 log 317 of the HDD, such as in conjunction with a FRPH module 316 or with the help of the FRPH module, as described in more detail elsewhere herein. Similarly, further in the context of a solid-state drive (SSD), this can be done by reading and analyzing the log sense counter 319 of the DSD, such as in conjunction with a QoS (quality of service) module 318 or with the help of the QoS (quality of service) module, as described in more detail elsewhere herein. Therefore, the reliability engine 314 can actively detect, for example, a delay problem or an error rate problem in the DSD, which may (or may not) affect the host visible performance, but is not serious enough for the system to cause the DSD to fail. For example, a HDD that consistently enters a high DRP (data recovery process) level when accessing a specific head or area of the medium will generally exhibit a higher IO completion delay than its peer drive. In some storage systems with erasure coding or RAID-based systems, the host-visible latency is often limited by the performance of the slowest DSD in the data set. The reliability engine 314 can asynchronously notify the logic of the system controller 312 of the recommended repair operation for the DSD. Once the system allows the reliability engine 314 to proceed with the repair, for example, to remove the high-latency head / surface of the HDD, the host-visible latency degradation is resolved.
[0041] Hard Drive Prognosis Tool: Full Recovery in Hours
[0042] Figure 4 is a flow chart illustrating a method of identifying a problematic hard drive, according to one embodiment. Figure 4 The process or flow may be implemented as one or more instruction sequences stored in one or more memory units and, when executed by one or more processors, cause the process to be performed. For example, a sequence of instructions stored in one or more memory units (e.g., a ROM inherent to the controller firmware) and, when executed by one or more processors (e.g., Figure 3 When executed by the processor 315 of the system controller 312, the execution Figure 4 The instruction sequence of the process shown (for example, embodied in Figure 3 reliability engine 314 in the firmware of the system controller 312).
[0043] Additionally, a similar approach is contemplated for identifying problematic solid-state drives (SSDs), with appropriate modifications based on the different technologies underlying hard disk drives and solid-state drives. For example, for HDDs, the primary reason that the DRP step increases host-visible latency is due to rotational latency due to having to wait for an additional rotation of the media to retry the operation. In contrast, in the context of SSDs, there is no rotational latency, and thus a key cause of host-visible latency is scenarios where host IO must wait for other activities being performed by the SSD, such as host IO requests conflicting with background tasks (e.g., garbage collection, cell refresh, read disturb, etc.), host IO requests conflicting with other host IO requests, and increased latency due to non-volatile memory components requiring longer program / erase operations as they exhibit degradation due to aging and / or wear. Thus, in addition to SSDs, a metric functionally equivalent to the FRPH function can be used to quantify the variability of latency (and, likewise, the variability of QoS (quality of service)) in storage system SSDs.
[0044] At block 402, a corresponding recovery log is retrieved from each of a plurality of hard disk drives. Figure 2 and Figure 3 ) of the system controller 312 ( Figure 3 ) from a plurality of HDDs 304a-304n ( Figure 3 ) of one or more log modules 310 ( Figure 3 ) Retrieve E6 log 317 ( Figure 3). The E6 log 317 refers to a specific implementation of a binary file used to snapshot the state of the HDD. The E6 log 317 contains a large number (tens of) sub-segments, including a media error log, and is typically in the size range (order of magnitude) of 10MB to 100MB, depending on which "modes" (segment groups) are acquired. There is also an incremental E6 log capability that only acquires "new" state, that is, since the most recent full or incremental acquisition. An incremental E6 log can be as small as a few MB, but can be up to the size of the full E6 log 317. The segments of the E6 log 317 have various themes / purposes, some are globally fixed-size "drive life" states, and some grow over time as more drive activity accumulates. Some of the data elements in a segment are retained during the life of the drive, and some are wrapped because the HDD autonomously deletes older states to avoid exceeding a bounded upper limit on the size. According to one embodiment, the media error log portion of the E6 log 317 is used below to calculate the following FRPH (full recoveries per hour) metric and is functionally referred to as a "recovery log" because this particular portion or segment of the E6 log 317 records the data recovery steps (e.g., seek recovery, read recovery, write recovery) performed by each read / write head within the corresponding HDD.
[0045] At box 404, a value of a metric referred to as FRPH is determined for each corresponding read-write head of each corresponding HDD in the plurality of HDDs based on each corresponding recovery log. For example, as described below, based on the recovery log retrieved at box 402, a FRPH value is calculated for each read-write head (e.g., read-write head 110a of FIG. 1) of each of the one or more of the plurality of HDDs 304a-304n. A DRP or recovery "step" is an action that the HDD dynamically calls to recover data from one or more sectors that are unreadable after executing a previous step. For example, there may be hundreds of possible DRP steps available to the HDD / head, which may be more generally classified in one of the categories for read, write, and seek recovery steps, where higher step numbers represent more involved recovery algorithms, and therefore take longer to execute than lower numbered DRP steps. According to one embodiment, a "full recovery" is the execution of all possible DRP steps. If the full recovery is unsuccessful, the host receives a hard error indicating that data cannot be transferred.
[0046] At block 404a, the amount of time spent on all recovery steps performed by the head is summed over a particular length of time (i.e., the evaluation period). For example, the relevant recovery log is analyzed, and for a non-limiting example, the severity (time spent according to each "type" or "level" of recovery steps) of all recovery steps performed by each HDD head (e.g., the HDD media error log section from the E6 log 317) over the last 300 hours of operating time is summed. According to one embodiment, the evaluation period is a configurable parameter that allows an arbitrary time window over which recovery steps are analyzed.
[0047] Conceptually, a full recovery means that all recovery steps of a recovery event have been run, and the more recovery steps required, the more serious the problem is and the longer it will take for data recovery. However, according to one embodiment, for algorithmic purposes, a "full recovery" is characterized as corresponding to a predetermined length of time that the head spends on one or more recovery steps. According to one embodiment, a full recovery is established as the head actually spending about 2.5 seconds on one or more recovery steps. However, the manner in which a full recovery is characterized for algorithmic purposes may vary from implementation to implementation. Therefore, for each predetermined amount of time (e.g., 2.5 seconds of real time) that the head spends on a recovery step, a "full recovery" is counted. With respect to the severity of the recovery steps, as described with reference to the exemplary system, there are hundreds of possible DRP recovery steps, where higher step numbers represent more involved complex recovery algorithms, and therefore, take longer to execute than lower numbered DRP steps. In addition, recovery steps are classified into groups of similar complexity and therefore have similar execution times. For example, one thousand "step 4" recovery steps may be equivalent in time to one hundred "step 8" recovery steps.
[0048] Therefore, at box 404b, an equal number of full recoveries within a specific duration is determined. Referring to the aforementioned example, the number of 2.5 second time units spent on the recovery step by the head within the 300-hour evaluation period establishes the number of full recoveries for the head. Then, at box 404c, based on the number of full recoveries generated and the specific duration evaluated, the FRPH value of the head is determined, which represents the DRP recovery time spent per head on average per hour (e.g., in units of the time spent for the maximum length full recovery), for example, the DRP recovery time spent per hour on average over the past 300 hours. Therefore, at box 404, boxes 404a-404c are iterated for each head from each HDD 304a-304n to be evaluated. In addition, FRPH is calculated by checking the recovery log to identify each IO that requires any recovery step, and then accumulating an estimated value of the total amount of time to perform all recovery steps representing the use of the IO, and the FRPH metric is calculated separately for each head in the HDD.
[0049] The calculation of the FRPH metric at box 404 can be achieved by analyzing the recovery log of the evaluation cycle, summing the total time spent by each head in each of the hundreds of DRP recovery steps, which will effectively produce a histogram recording the number of calls to each recovery step / level by each head. For each recovery step, a constant time value that estimates how long the specific recovery step is executed can be multiplied by the corresponding call of the recovery step, which will produce the total amount of time spent by each head in any recovery step. The total amount of time spent in all recovery steps can be divided by the evaluation cycle (e.g., 300 hours), which will obtain the average amount of time spent per hour in any recovery step for each head. The average time / hour spent in all recovery steps can be normalized by dividing the time established for full recovery (e.g., the equivalent of 2.5 seconds of "full recovery"), which will produce a FRPH value normalized to the evaluation cycle, wherein a FRPH value of one will mean that on average per hour (e.g., in the past 300 hours of the evaluation cycle), the head has spent the time spent to perform a full recovery in the recovery operation mode.
[0050] At block 406, in response to a particular head FRPH reaching a predetermined FRPH threshold, an in-situ repair of the HDD in which the particular head operates is determined. For example, and in accordance with one embodiment, an HDD having one or more heads having a FRPH value of one (e.g., a threshold) or greater for a particular length of time (e.g., a 300 hour evaluation period) is identified as a problematic HDD, i.e., one that may be failing "silently." Additionally, the FRPH metric may be made available for querying by a client, such as via a RESTful API (representational state transfer application program interface), whereby the client will decide whether the FRPH value warrants a mitigation action, and if so, will need to initiate such action itself.
[0051] According to one embodiment, if any HDD 304a-304n has one or more heads with a FRPH greater than or equal to one, the head with the highest FRPH in the problematic HDD is identified and a "head ejection" (head detachment) is performed on the head, i.e., the head is classified (e.g., classified to the system controller 312 and / or classified to the HDD controller 308) as not eligible for use in further IO operations, thereby effectively disabling further use / operation. Alternatively, according to one embodiment, the originally problematic HDD may be reformatted to its current capacity. For example, in the case where one or more heads have been "ejected" (detached) in a previous repair operation and it is decided not to eject another head at this time, the HDD may be reformatted to its current capacity, taking into account the reduced capacity corresponding to the previously detached head. Additionally, and in accordance with one embodiment, because it can be determined from the media error log how much of the media and which problematic areas contribute to the FRPH value, another repair option involves forcibly leaving out problematic areas of the media (e.g., marking areas unavailable for further IO) rather than performing a longer and more complex reformat or eject repair.
[0052] Intelligent system-level reliability solutions
[0053] Historical storage systems may include storage devices with autonomous, independently designed diagnostic and device reliability schemes, which may result in reduced efficiency and effectiveness of the overall storage system. In contrast, an expanded holistic view of operational functionality at and between different storage devices distributed throughout the storage system may result in a more efficient and reliable overall system.
[0054] Data storage devices, such as those constituting the data storage system 200 ( Figure 2 and Figure 3 ) of DSD304a-304n( Figure 3 ), which can be considered as sensitive sensors of factors that may affect the data integrity and reliability associated with each DSD, such as temperature, airflow, vibration, etc. in the context of HDDs, and age, storage cycles, etc. in the context of SSDs. In addition, DSDs 304a-304n can be a source of information regarding position error signals (PES) corresponding to specific media heads or regions and factors contributing thereto, DRP recovery operations, etc. Therefore, when used in conjunction with controllers such as controller 312 ( Figure 3), the data integrity and recovery information that each DSD may know internally and their combination can provide an inexpensive but valuable extended vision of data degradation symptoms at the device level to serve as an informed and effective diagnostic, prognostic, and repair control point at the system level. There may also be additional information about the DSDs available at the system level (e.g., available to the system controller 312) that can be facilitated and / or combined to facilitate intelligent predictive decisions at the system level. For example, in the context of HDDs, the system controller may be made aware of information such as the storage device form factor, the number of disks (and / or actuators), the RPM (revolutions per minute) of the disks, and other common variations in HDD models, as well as the speed of each storage device in a particular shelf and system rack (e.g., Figure 2 2, relative proximity to fans, fan speeds, relative proximity to heat sources, and other factors external to each device itself. It is noted that the HDDs 304a-304n and the system controller 312 may be programmed to "learn" over time. Therefore, the factors that may affect the reliability of data associated with each HDD may not be static, that is, these factors (and repair decisions based on these factors) may be dynamic over time.
[0055] The closed-loop nature of the DSD monitoring diagnosis / prognosis repair described herein can continuously monitor the DSD log, show the calculated metrics of the behavior of this one DSD, and then compare the metrics of each DSD with the metrics of its peer drive to determine "pass / fail". It should be noted that the event log of each DSD is used to calculate the metrics of each DSD, where each DSD is only aware of itself. Here, the system can see the values of the metrics of many DSDs, and compare the metrics of one DSD with the metrics of the DSD peer drive, where the definition of the peer drive can be variable, for example, by similar model types, firmware revisions, and even by the use case of the DSD in the rack. Similarly, the calculation of each FRPH metric only evaluates the health of the head on one HDD. However, the diagnostic host can set a threshold for which value of the FRPH metric constitutes a pass or fail by the following operation: consider the degree of abnormality of the FRPH metric of each drive relative to the larger ecosystem visible to the diagnostic host. For example and according to one embodiment, the pass / fail threshold (i.e., FRPH threshold) can be set to a value equal to two or three standard deviations, which is higher than the average (or median) FRPH score of the rest of the deployment.
[0056] Quality of Service (QOS) metrics for detecting underperforming drives
[0057] This document describes quality of service (QoS) metrics that are periodically calculated and monitored by host software or the DSD (aka the drive) itself. The QoS metrics are based on the concept that a drive with perfect quality will satisfy 100% of host IO requests without performing any error recovery that increases latency. That is, whenever the drive needs to invoke the DRP, any increased latency caused by those recovery steps reduces the quality of service provided to the host. Drives that have poor QoS metric values or that are trending toward poor QoS values relative to a fixed specification or relative to peer drive behavior can be actively selected for examination of the FRPH metrics described elsewhere in this document. After evaluating the FRPH metrics, the drive can undergo additional diagnostic and repair steps, and / or be actively removed from active use. In systems that do not have the ability to obtain FRPH metrics, active use can be actively withdrawn based solely on analysis of its QoS metrics.
[0058] Computing QoS metrics based on log sensing counters
[0059] According to the embodiment, the QoS metric is calculated by the parameter reported as a SCSI (small computer system interface) "log sense" counter (also referred to as a SCSI log page), which can be queried or polled from a SCSI target device using a log sense command. These log sense counters (and log sense commands, supported log page definitions and page parameter definitions) are defined by long-established industry standards, specifically, by T10 / BSR INCITS SPC (SCSI master commands). In the latest draft (SPC-4, Revision 37a, published on June 26, 2014) (which is incorporated by reference in its entirety for all purposes, as shown in full herein), Table 349 defines the existence of a "write error counter" (page 2), a "read error counter" (page 3), and a "verification error counter" (page 5). Tables 405, 437, and 434 define the common parameters reported in each log page in the same draft elsewhere.
[0060] According to one embodiment, the QoS metrics are calculated using parameter codes 0001h (errors corrected with possible delays), 0004h (total time for correction algorithm processing), and 0005h (total bytes processed). When the "log sensing" page and parameters are combined, the host can calculate a total of six different QoS metrics: 2 QoS metrics for each of the three operation domains (read, write, verify) ("possibly delayed", "total time for processing"). According to one embodiment, each QoS metric is expressed as a floating point value that indicates the "number of nines" in the average percentage of bytes processed without the drive performing autonomous error correction.
[0061] For example, if the log sense page 3 "Read Error Counters" reports:
[0062] Parameter 0001h: Errors that may be delayed in correction: 3;
[0063] Parameter 0004h: Total time of the correction algorithm processed: 176;
[0064] Parameter 0005h: Total bytes processed: 1TB (1×10 12 );
[0065] Then, the percentage of bytes transmitted without autonomous error correction is:
[0066] (Page 3 parameter 0005h - Page 3 parameter 0001h) / Page 3 parameter 0005h =
[0067] =((1×10 12 )-3) / (1×10 12 )=
[0068] 99.99999999997%.
[0069] Then according to one embodiment, the corresponding QoS metric will be calculated as:
[0070] QoS (read) = -log10 (Page 3 parameter 0001h / Page 3 parameter 0005h) =
[0071] QoS(read)=-log10(3 / (1×10 12 ))=
[0072] 11.52.
[0073] Some considerations regarding the foregoing definition of a QoS metric include the fact that the metric value cannot be calculated if any of the input values to the QoS formula is zero. One solution to this concern might be to arbitrarily assign a constant QoS value, implying "perfect QoS," for which an upper value would be specified for the range of acceptable performing drives with imperfect QoS values for this purpose. However, it is preferred that all drives (or at least nearly all drives) have a computable QoS metric because this increases the validity of statistical methods such as median, mean, and standard deviation to compare each individual drive QoS metric to the entire population of peer drives, rather than just to the subset of "imperfect" drives for which a QoS metric can be calculated. Implicit here is that the preference is to base counts on internal data recoveries as broadly as possible. In other words, it is preferred to utilize counters that reflect all data recoveries performed by the drive, rather than just those performed directly in satisfying a host-initiated IO.
[0074] Likewise, when a QoS metric is calculated with parameter 0001h in the numerator (incremented once for each error recovery), the QoS metric is measuring the "soft error rate". This in itself is considered useful, but not all soft errors are of equal concern. The more frequently a drive must use a highly involved data recovery procedure, the greater the impact on average host visible latency. Furthermore, frequent use of a highly involved data recovery procedure means an increased likelihood that in the near future the drive will be unable to recover data at all, resulting in a hard error. Therefore, it is preferable to utilize a counter that increments by a variable amount that is proportional to the latency effect of each error recovery procedure utilized.
[0075] To reduce the impact of the above considerations, according to one embodiment, a set of QoS statistics may be calculated that includes parameter 0004h (which is rarely zero, even when parameter 0001h is zero) rather than parameter 0001h (which experiments have shown to be zero in 10% to 15% of the drives tested).
[0076] Furthermore, parameter 0004h is incremented multiple times during the error recovery process for each IO, ie, once for each call of the data recovery step.
[0077] To form the QoS (read) statistics using parameter 0004h, the formula is modified to:
[0078] (Page 3 parameter 0005h - Page 3 parameter 0001h) / Page 3 parameter 0005h =
[0079] =((1×10 12 )-3) / (1×10 12 )=
[0080] 99.99999999997%.
[0081] Then according to one embodiment, the corresponding QoS metric will be calculated as:
[0082] QoS(read)=-log10(Page 3 parameter 0004h / Page 3 parameter 0005h)=
[0083] QoS(read)=-log10(176 / (1×10 12 ))=
[0084] 9.75.
[0085] QoS monitoring in storage system subsystems
[0086] According to one embodiment, an alternative deployment strategy for QoS metrics is to embed a monitoring agent / process into the data storage system shell monitoring subsystem, which shifts the responsibility for monitoring the QoS statistics of the drive queues into the shell rather than into an external host, and wherein the drive model specific knowledge of QoS is encapsulated in a single storage vendor provided subsystem. Thus, the monitoring agent will be present and active regardless of the state of the host and server on which they reside. However, such a specific implementation will limit the system shell to monitoring and comparing the QoS behavior of local drives, and in large deployments, it will be necessary to upgrade multiple system shells to modify the behavior of the QoS monitoring logic.
[0087] Embedding the QoS calculation and evaluation process into the storage system housing is further complicated by the limited operating systems (OS) and computing environments available in typical implementations. Specifically, a typical storage system environment has only SAS (Serial Attached SCSI) expanders in the case of JBOD ("Just a Bunch of Disks" or "Just a Bunch of Drives"), or only PCIe (Peripheral Component Interconnect Express) switch chips in the case of JBOF ("Just a Bunch of Flash"). Such limitations have several key impacts on the implementation of the QoS monitoring agent, for example, there is no standard OS (e.g., Linux) and associated off-the-shelf host communication tools, there is no standard file system (e.g., Ext4), which means that the data read by the operation used to obtain the QoS precursor needs to be adapted into a dedicated area of RAM / DRAM, and there is no hardware support for floating-point arithmetic operations. Further with respect to floating-point issues, code that uses float / double types and calls the log() function can usually be compiled and linked, but at runtime, all of these operations will be captured as unimplemented instructions and emulated by the floating-point library using integer arithmetic (e.g., as opposed to "direct" processing of floating-point arithmetic). This can significantly increase the execution time associated with calculating and comparing QoS metric values, and can significantly increase the firmware image size if a floating point emulation library is not already in use by the firmware.
[0088] According to one embodiment, an alternative implementation of the QoS metric avoids the need to emulate floating point arithmetic. Rather than calculating the average percentage of bytes transmitted without autonomous error correction (i.e., expressed as a number-based floating point value), a method that seeks to avoid using direct (e.g., intrinsic or integral) floating point arithmetic capabilities may alternatively calculate the average number of bytes transmitted without autonomous error correction (e.g., expressed as a quadratic-based integer value).
[0089] The general expression for the formula of a QoS metric using only integer arithmetic is as follows:
[0090] QoS = number of bytes processed / errors corrected which may be delayed.
[0091] For example, if the log sense page 3 "Read Error Counters" reports:
[0092] Parameter 0001h: Errors that may be delayed in correction: 3;
[0093] Parameter 0004h: Total time of the correction algorithm processed: 176;
[0094] Parameter 0005h: Total bytes processed: 1TB (1×10 12 );
[0095] The average number of bytes transmitted without autonomous error correction is then calculated using integer division (discarding any remainder) as follows:
[0096] Page 3 parameter 0005h / Page 3 parameter 0001h=
[0097] =(1×10**12) / 3=
[0098] 333,333,333,333.
[0099] The corresponding QoS metric is then calculated by determining the position of the most significant bit (MSB) of the resulting divisor:
[0100] 333,333,333,333=4D.9C37.0555h;
[0101] Highest setting bit = 38;
[0102] QoS = 38 (e.g., average 2 38 byte).
[0103] As with the floating-point implementation, the integer implementation is suitable for calculating a total of six different QoS metrics: two QoS metrics ("may have delays", "total time to process") for each of the three operation domains (read, write, verify). However, it is not feasible to directly compare values based on the floating-point and integer calculation methods. In addition, as with the floating-point implementation of QoS, the exact values of the integer implementations of the metrics are not very relevant to comparisons of the metrics relative to peer drives and trends in values observed over time periods (such as the previous day, week, month, etc.). In addition, as with the floating-point implementation of QoS, any values calculated should be considered to be provided in the case where the drive exhibits "perfect" QoS, and the metrics are most standard when the drive under consideration has load characteristics similar to its pool of peer drives.
[0104] Now generally speaking, QoS metrics are applicable to any environment where it can be determined how frequently a storage device is performing retries that result in host-visible delays in order to satisfy a requested workload. For example, it is contemplated and considered reasonable that an SSD may be configured to provide similar precursors that would enable calculation of a QoS metric value (or, if provided on a per-die basis, a value such as FRPH) as described herein.
[0105] With respect to the use of log sensing log counters rather than SMART parameters (sometimes referred to as attributes), while the SMART framework itself generally supports all storage device types (HDD / SSD) and all storage device protocol types (SAS / SATA (Serial ATA or Serial Advanced Technology Attachment) / NVMe (Non-Volatile Express Memory)), the set of SMART parameters supported in the specific implementation of any particular storage device is vendor-unique and implementation-dependent. In the case of some enterprise-class SAS HDDs, the parameters used to calculate QoS are accessible via SMART or log sensing methods, and therefore the implementation and use of SMART parameters to calculate QoS values is specifically contemplated. However, the host action of reading SMART parameters is likely to cause or can cause the drive to collect and return many irrelevant parameters that are irrelevant to QoS calculations. Therefore, according to one embodiment, it is preferred that the inputs collected to the QoS formula via log sensing (rather than SMART) are less intrusive because the log sensing operation returns a smaller set of parameters. Similarly, while the log sensing implementation currently applies directly to SAS (SCSI) drives, it is contemplated and considered reasonable to expect that SATA and / or NVMe storage devices, as well as other types of future storage devices not yet known, will be configured to support similar capabilities required to calculate QoS metrics as described herein.
[0106] Incremental QoS Metrics
[0107] By default, the parameters reported by the log sense page are based on the device's lifetime, and therefore the direct QoS metrics are also based on the device's lifetime. However, according to one embodiment, an enhanced QoS metric can be calculated by applying a formula to the difference between pairs of log sense parameter values captured at different times. This can be performed over arbitrary time intervals, but in general, it is believed that intervals in the range of one day to one week may be consistent with the likely rate at which a heavily used drive begins to exhibit reduced or deteriorated QoS behavior. For example, if samples of log sense parameters 0001h and 0005h (from any of the 3 domains: read, write, verify) are captured at different times, the host can use the following formula to calculate the enhanced QoS metric. Note that similar formulas used with log sense parameters 0004h and 0005h are equally valid.
[0108] Incremental QoS = -log10((parameter 0001h(N)-parameter 0001(N-1)) /
[0109] (Parameter 0005h(N)-Parameter 0005h(N-1))
[0110] Determine QoS metric pass / fail thresholds
[0111] According to one embodiment, determination of the pass / fail thresholds for the QoS metric is preferably performed on a basis relative to device population rather than on an absolute basis. It is noted that errors requiring DRP correction in relatively healthy drives tend to occur in infrequent clustered patterns rather than at a constant rate. Use of the QoS metric is believed to be particularly effective in environments such as, but not limited to, RAID (Redundant Array of Independent Disks or Drives) or erasure coding, where various associated drives are all of approximately the same age (as measured by power-on time) and are subject to comparable workloads. That is, it is preferred not to compare QoS scores for drives of different ages, as a single DRP recovery on a relatively unused (or "young") drive with a low byte count will change the QoS metric score more than the QoS metric score on a relatively more used (or "old") drive. Furthermore, it is preferred not to compare QoS scores between drives running significantly different workloads, as errors requiring DRP recovery will only be encountered if the drive accesses an error-prone head or area of the media. Furthermore, any attempt to establish an absolute threshold for the QoS metric will need to take into account the thermal and vibration characteristics of the drive enclosure.
[0112] Driver monitoring of QoS metrics
[0113] Data storage devices typically maintain statistics necessary to calculate QoS metrics, and they periodically record these lifetime statistics. If the host can obtain a time series snapshot of the lifetime statistics, a series of lifetime and incremental QoS metrics can be calculated for various time ranges.
[0114] According to one embodiment, the drive may also be configured to provide a variant of the log-sensing Page 2, Page 3, and Page 5 counters, wherein the variant provides a list of sets of parameter values, each set showing a counter applied to each drive head in the case of an HDD. This will allow the host to calculate head specific QoS metrics, and will allow the host to calculate FRPH metrics for each head without having to query the E6 log.
[0115] Method for identifying poorly performing data storage devices
[0116] Figure 5 is a flow chart illustrating a method of identifying an underperforming data storage device, according to one embodiment. Figure 5 The process or flow may be implemented as one or more instruction sequences stored in one or more memory units and, when executed by one or more processors, cause the process to be performed. For example, an instruction sequence stored in one or more memory units (e.g., a ROM inherent to the controller firmware) (e.g., embodied in Figure 3 The firmware of the system controller 312 or embodied in Figure 1A The firmware of the hard disk controller and / or the SOC of the HDD 100, or embodied in Figure 1B The reliability engine 314 in the firmware of the controller 162 of the SSD 152), and the instruction sequence when executed by one or more processors (e.g., Figure 3 The processor 315 of the system controller 312 or the Figure 1A A processor of a hard disk controller and / or a SOC of HDD 100 or a processor integrated in the hard disk controller and / or the SOC, or a processor constituting Figure 1B When executed by a processor of the controller 162 of the SSD 152 or a processor integrated in the controller), it may cause Figure 5 Execution of the process shown.
[0117] At block 502, a corresponding set of SCSI (Small Computer System Interface) log pages are retrieved from each of a plurality of data storage devices (DSDs). Figure 2 and Figure 3 ) of the system controller 312 ( Figure 3 ) from a plurality of DSDs 304a-304n ( Figure 3 ) of one or more QoS modules 318 ( Figure 3 ) or in conjunction with the QoS module to retrieve the SCSI log sense counter 319 ( Figure 3 As described, SCSI "log sense" counters (or SCSI log pages) may be interrogated or polled from a SCSI target device (e.g., DSD 304a-304n) using log sense commands, where these log sense counters are defined by industry standards such as T10 / BSR INCITS SPC (SCSI Master Commands).
[0118] At block 504, a value of a quality of service (QoS) metric is determined or calculated for each respective DSD in the plurality of DSDs based on each respective set of SCSI log pages, wherein each QoS metric represents a percentage of bytes processed without autonomous error correction performed by the respective DSD. Thus, the QoS metric is not directly reported by log sensing (or SMART) parameters, but is derived from parameters reported by such subsystems. For example, according to one embodiment, the QoS value is calculated based on the aforementioned QoS formula using log sensing parameters as described elsewhere herein. According to one embodiment, the QoS metric value is calculated based on the following precursor counters: (a) parameter 0001h: errors corrected that may have been delayed or (b) parameter 0004h: total time for correction algorithm processing, and (c) parameter 0005h: total bytes processed. In addition, according to a related embodiment, the QoS metric value is calculated based on domains from a read domain, a write domain, and a verification operation domain. Further, according to one embodiment, for a non-limiting example, the QoS metric value is calculated based on a predetermined time period less than the life of the device, such as a time period in the range of one day to one week.
[0119] At block 506, a determination is made as to whether the QoS value of each DSD reaches (e.g., meets or exceeds) a predetermined QoS threshold. For example, each QoS value may be compared to a corresponding data storage system (e.g., Figure 3 The data storage system 200) includes a DSD group (e.g., Figure 3 The QoS metrics of a given drive may be compared to a median, mean, or some other statistical measure of the DSDs 304a-304n). Thus, according to one embodiment, a given drive QoS metric is not necessarily evaluated against a static pass / fail threshold, but rather is evaluated against the QoS metrics of associated peer drives (and observed QoS metric trends).
[0120] At block 508 and according to one embodiment, in response to a particular DSD QoS value reaching a predetermined QoS threshold (e.g., at block 506), a determination is made whether to perform an in-situ repair for the particular DSD or to add the particular DSD to a candidate DSD list for further inspection, investigation, or prognosis. For example, in response to a DSD QoS value reaching a threshold, various in-situ repair operations described elsewhere herein may be performed on or in association with the particular DSD. Alternatively, in response to a DSD QoS value reaching a threshold, the particular DSD may be placed on a candidate list for further FRPH (full recovery per hour) inspection or calculation, as described elsewhere herein, in response to the DSD QoS value reaching a threshold. In the latter case, in response to a particular HDD head FRPH reaching a predetermined FRPH threshold, an in-situ repair may then be determined for the particular HDD in which the particular head operates.
[0121] Now generally speaking, a QoS metric is a measure of the host visible effect of a high soft error rate, i.e., a drive has encountered many errors that the device has corrected autonomously, compared to methods that can utilize hard errors that can indicate pending drive failure. Embodiments described herein can utilize QoS metrics to identify / remove drives that have caused immediate performance issues (e.g., latency) for the data set located thereon and the associated peer drive relative to peer drives, rather than strictly predicting future data loss and / or drive failure. Using QoS metrics, underperforming drives can be identified based on trend analysis of that drive, but also based on the value of the QoS metric relative to associated peer drives.
[0122] Host Monitoring for QoS Metrics
[0123] Generally speaking, HDDs that exhibit lower peer drive values for QoS and also exhibit a substantial drop in QoS over the most recent monitoring period (e.g., a week) are the most likely drives to contain heads that exhibit marginal or unacceptable FRPH values. According to one embodiment, an exemplary process illustrating a process for providing effective monitoring of QoS in an associated pool of drives in a system-level deployment is as follows.
[0124] Figure 6 is a flow chart illustrating a method of identifying an underperforming data storage device, according to one embodiment. Figure 6 The process or flow may be implemented as one or more instruction sequences stored in one or more memory units and, when executed by one or more processors, cause the process to be performed. For example, a sequence of instructions stored in one or more memory units (e.g., a ROM inherent to the controller firmware) and, when executed by one or more processors (e.g., Figure 3 When executed by the processor 315 of the system controller 312, the execution Figure 6 The instruction sequence of the process shown (for example, embodied in Figure 3 According to an embodiment, Figure 6 The process can be applied to multiple DSDs forming an integrated (single) data storage system, or Figure 6 The process may be applied to multiple DSDs constituting multiple data storage systems (eg, a multi-system deployment).
[0125] At block 602, a set of error counters for a plurality of associated data storage devices (DSDs) constituting a data storage system are periodically polled. For example, once a day, the log sense page 3 is polled from all DSDs in an "online" state, which will produce a unique sample of log sense page parameter data for each DSD in the storage system deployment. For example, the data storage system 200 ( Figure 2 and Figure 3 ) of the system controller 312 ( Figure 3 ) from a plurality of DSDs 304a-304n ( Figure 3 ) of one or more QoS modules 318 ( Figure 3 ) or in conjunction with the QoS module to poll, capture, query, retrieve SCSI log sense counter 319 ( Figure 3 As described, SCSI "log sense" counters (or SCSI log pages) may be polled from a SCSI target device (eg, DSD 304a-304n) using log sense commands, where these log sense counters are defined by industry standards such as T10 / BSRINCITS SPC (SCSI Master Commands).
[0126] At block 604, a value of a lifetime quality of service (QoS) metric is determined for each respective DSD in the plurality of DSDs based on the error counters, wherein each lifetime QoS (read) metric is based on an average percentage of bytes processed over the lifetime of the respective DSD without autonomous error correction by each respective DSD. For example, according to one embodiment, the lifetime QoS value is calculated based on the aforementioned QoS formula using log sensing parameters as described elsewhere herein.
[0127] At block 606, each lifetime QoS metric value is recorded for the polling period. For example, each lifetime QoS metric value (calculated at block 604) may be recorded in a database (e.g., with the drive serial number) along with the time / date of the polling. Figure 3 The data object storage structure is associated with, accessible to and / or managed by the reliability engine 314 and / or QoS module 318, and is constructed in a manner known to technicians).
[0128] Continuing further with embodiments of the process, a particular percentage / percentile subset of the plurality of DSDs that exhibited their lowest lifetime QoS values during the most recent polling cycle is identified at block 608. For example, once a day, once both the "current" and "week old" samples of QoS are available, the database is queried to identify the "worst subset" (perhaps 1% for a non-limiting example) of drives that exhibited the lowest lifetime QoS (read) metrics during the most recent polling cycle.
[0129] At block 610, for each DSD of the subset of DSDs whose most recent lifetime QoS value is more than one unit lower than the most recent lifetime QoS value of the DSD with the highest QoS value in the subset of DSDs, each such DSD is added to the candidate DSD list. For example, for each drive whose most recent lifetime QoS (read) score is more than one unit lower than the score of the highest scoring drive in the "worst subset" group, the drive is added to the candidate drive list for FRPH checking.
[0130] Additionally, at block 612, for each DSD of the subset of DSDs whose most recent lifetime QoS value has dropped by more than one unit since a particular previous lifetime QoS value was calculated, each such DSD is added to a candidate DSD list. For example, within the "worst subset" group, for each drive whose lifetime QoS (read) score has dropped by more than one unit since a metric sample captured, e.g., a week ago, that drive is added to a candidate drive list for FRPH checking.
[0131] At block 614, for each DSD from the list of candidate DSDs that are not configured to calculate a corresponding FRPH value, a determination is made as to whether to repair or retire each such DSD. For example, in a system (e.g., a set of SSDs) that lacks the ability to retrieve a FRPH metric, the host may repair or retire the drive if doing so does not unduly compromise system data integrity or security.
[0132] Continuing with an embodiment of the process, for each DSD from the candidate DSD list configured for calculating a corresponding FRPH value, any DSD that has passed the FRPH check within a predetermined time period that is less than the polling period is removed from the candidate DSD list at block 616. For example, the candidate list for FRPH checking is checked, and if any drive in the list has passed the FRPH check, e.g., within the last day, the drive is removed from the list.
[0133] At block 618, for each DSD retained on the candidate DSD list, the FRPH value of each corresponding read / write head of each such DSD is calculated. For example, for all drives retained on the list for FRPH checking, the E6 log is retrieved and the FRPH metric for each head is calculated according to the process described in more detail elsewhere herein. According to one embodiment, if the FRPH score of the worst head of any drive exceeds 1.0, the drive is repaired or retired, provided that doing so does not unduly compromise system data integrity or security.
[0134] Now generally speaking, what is described herein in the context of QoS metrics provides a non-intrusive method to identify drives that exhibit higher average latency than their peer drives, although other methods known within the storage industry focus on reducing excessive tail latency, aggregating measurements of unrelated latency sources, or relying on the drive itself to signal that it is no longer healthy (e.g., SMART). QoS metrics provide an alternative solution to having the storage system periodically obtain E6 logs from all drives to check whether any of them exhibit an unacceptable FRPH metric, which may consume non-trivial resources, including disk IO, bus bandwidth, CPU cores / cycles, and memory bandwidth, all of which are expensive and considered precious in data storage systems. Furthermore, the concepts behind QoS metrics are not unique to SCSI or rotating media disk drives. Instead, QoS is a simple measurement that reflects how hard any type of storage device strives to maintain the integrity of the data being processed during a host read, write, or verify operation.
[0135] Hard Drive Configuration
[0136] As discussed, embodiments may be used in the context of a data storage system that employs multiple data storage devices (DSDs), such as HDDs. Thus, according to one embodiment, Figure 1A A plan view of HDD 100 is shown in FIG. 1 to illustrate exemplary operating components.
[0137] Figure 1A A functional arrangement of components of an HDD 100 including a slider 110b is shown, the slider 110b including a magnetic read-write head 110a. The slider 110b and the head 110a may be collectively referred to as a head slider. The HDD 100 includes at least one head gimbal assembly (HGA) 110 having a head slider, a lead suspension 110c attached to the head slider, typically via a flexure, and a load beam 110d attached to the lead suspension 110c. The HDD 100 also includes at least one recording medium 120 rotatably mounted on a spindle 124 and a drive motor (not visible) attached to the spindle 124 for rotating the medium 120. The read-write head 110a (which may also be referred to as a transducer) includes a write element and a read element for writing and reading information stored on the medium 120 of the HDD 100, respectively. The medium 120 or multiple disk media may be attached to the spindle 124 using a disk clamp 128.
[0138] The HDD 100 also includes an arm 132 attached to the HGA 110, a carriage 134, a voice coil motor (VCM) including an armature 136 including a voice coil 140 attached to the carriage 134, and a stator 144 including a voice coil magnet (not visible). The armature 136 of the VCM is attached to the carriage 134 and is configured to move the arm 132 and the HGA 110 to access portions of the media 120, which are collectively mounted on a pivot 148 with an interposed pivot bearing assembly 152. In the case of an HDD with multiple disks, the carriage 134 may be referred to as an "E-block" or comb because the carriage is arranged to carry an array of linked arms, giving it the appearance of comb teeth.
[0139] The assembly including a head gimbal assembly (e.g., HGA 110) including a flexure to which a head slider is coupled, an actuator arm (e.g., arm 132) and / or a load beam to which the flexure is coupled, and an actuator (e.g., VCM) to which the actuator arm is coupled may be collectively referred to as a head stack assembly (HSA). However, an HSA may include more or fewer components than those described. For example, an HSA may refer to an assembly that also includes an electrical interconnect component. Generally speaking, an HSA is an assembly configured to move a head slider to access portions of a medium 120 for read and write operations.
[0140] With further reference to FIG. 1 , electrical signals (e.g., current to the voice coil 140 of the VCM) including write signals to the head 110a and read signals from the head 110a are transmitted by a flexible cable assembly (FCA) 156 (or "flex cable"). The interconnect between the flexible cable 156 and the head 110a may include an arm electronics (AE) module 160, which may have an onboard preamplifier for the read signal and other read channel and write channel electronic components. The AE module 160 may be attached to the carriage 134, as shown. The flexible cable 156 may be coupled to an electrical connector block 164, which in some configurations provides electrical connectivity through an electrical feed-through provided by the HDD housing 168. The HDD housing 168 (or "housing base" or "substrate" or simply "base") together with the HDD cover provides a semi-sealed (or hermetically sealed, in some configurations) protective housing for the information storage components of the HDD 100.
[0141] Other electronic components, including a disk controller and servo electronics including a digital signal processor (DSP), provide electrical signals to the drive motor, the voice coil 140 of the VCM, and the head 110a of the HGA 110. The electrical signal provided to the drive motor causes the drive motor to rotate, thereby providing torque to the spindle 124, which in turn is transmitted to the medium 120 attached to the spindle 124. As a result, the medium 120 rotates in the direction 172. The rotating medium 120 forms an air cushion that acts as an air bearing on which the air bearing surface (ABS) of the slider 110b rides, so that the slider 110b flies above the surface of the medium 120 without making contact with the thin magnetic recording layer that records information. Similarly, in an HDD that utilizes a lighter-than-air gas (such as helium for non-limiting example), the rotating medium 120 forms an air cushion that acts as a gas or fluid bearing on which the slider 110b rides.
[0142] The electrical signal provided to the voice coil 140 of the VCM enables the head 110a of the HGA 110 to access the track 176 on which the information is recorded. As a result, the armature 136 of the VCM swings through the arc 180, which enables the head 110a of the HGA 110 to access the individual tracks on the medium 120. The information is stored in a plurality of radially nested tracks on the medium 120, which are arranged in sectors (such as sector 184) on the medium 120. Accordingly, each track is composed of a plurality of sectorized track portions (or "track sectors") such as sectorized track portion 188. Each sectorized track portion 188 may include recorded information and a data header containing error correction code information and a servo burst signal pattern, such as an ABCD-servo burst signal pattern (which is information identifying the track 176). When accessing track 176, a read element of head 110a of HGA 110 reads a servo burst signal pattern which provides a position error signal (PES) to the servo electronics, which in turn controls an electrical signal provided to the voice coil 140 of the VCM, thereby enabling head 110a to follow track 176. Upon finding track 176 and identifying a particular sectorized track portion 188, head 110a either reads information from track 176 or writes information to track 176 in accordance with instructions received by the disk controller from an external agent, such as a microprocessor of a computer system.
[0143] The electronic architecture of the HDD includes multiple electronic components for performing their respective HDD operating functions, such as a hard disk controller ("HDC"), an interface controller, an arm electronic module, a data channel, a motor driver, a servo processor, a buffer memory, etc. Two or more such components may be combined on a single integrated circuit board called a "system on a chip" ("SOC"). Several, if not all, of such electronic components are typically arranged on a printed circuit board that is coupled to the bottom side of the HDD, such as to the HDD housing 168.
[0144] Reference herein to hard disk drives, such as HDD 100 shown and described with reference to FIG. 1 , may include information storage devices sometimes referred to as “hybrid drives.” A hybrid drive generally refers to a storage device that has the functionality of a conventional HDD (see, e.g., HDD 100) combined with a solid-state storage device (SSD) that uses non-volatile memory, such as flash memory or other solid-state (e.g., integrated circuit) memory, which is electrically erasable and programmable. Because the operation, management, and control of different types of storage media are generally different, the solid-state portion of the hybrid drive may include its own corresponding controller functionality, which may be integrated into a single controller along with the HDD functionality. The hybrid drive may be constructed and configured to operate and utilize the solid-state portion in a variety of ways, such as, as a non-limiting example, using the solid-state memory as a cache memory, for storing frequently accessed data, for storing I / O intensive data, and the like. Additionally, the hybrid drive may be constructed and configured to be essentially two storage devices, i.e., a conventional HDD and an SSD, in a single housing, with one or more interfaces for host connection.
[0145] Solid State Drive Configuration
[0146] As discussed, embodiments may be used in the context of a data storage system that employs multiple data storage devices (DSDs), such as SSDs. Figure 1B is a block diagram illustrating an exemplary operating context in which embodiments of the present invention may be implemented. Figure 1B A general SSD architecture 150 is shown, wherein an SSD 152 is communicatively coupled to a host 154 via a host communication interface 156. Embodiments are not limited to Figure 1B Instead of the depicted configuration, embodiments may utilize Figure 1B For example, embodiments may be implemented to operate in other environments that rely on non-volatile memory storage components for writing and reading data.
[0147] Host 154 broadly represents any type of computing hardware, software, or firmware (or any combination of the foregoing) that makes data I / O requests or calls to one or more memory devices, etc. For example, host 154 can be an operating system executed on a computer, tablet, mobile phone, or any type of computing device that generally contains or interacts with memory, such as host 350 ( Figure 3 The host interface 156 that couples the host 154 to the SSD 152 may be, for example, an internal bus of the storage system or a communication cable or a wireless communication link, etc.
[0148] Figure 1B The exemplary SSD 152 shown includes an interface 160, a controller 162 (eg, a controller having firmware logic therein), an addressing 164 functional block, a data buffer cache 166, and one or more non-volatile memory components 170a, 170b-170n.
[0149] Interface 160 is the point of interaction between components, namely SSD 152 and host 154 in this context, and is applicable at both the hardware and software levels. This allows the components to communicate with other components via input / output (IO) systems and associated protocols. Hardware interfaces are typically described by the mechanical, electrical, and logical signals at the interface and the protocols used to sequence them. Some non-limiting examples of common and standard interfaces include SCSI (Small Computer System Interface), SAS (Serial Attached SCSI), and SATA (Serial ATA).
[0150] SSD 152 includes controller 162, which incorporates electronics that bridge the nonvolatile memory components (e.g., NAND flash) to the host (such as nonvolatile memories 170a, 170b, 170n) to host 154. The controller is typically an embedded processor that executes firmware-level code and is an important factor in SSD performance.
[0151] The controller 162 interacts with the non-volatile memories 170a, 170b, 170n via an addressing 164 functional block. The addressing 164 functionality is used, for example, to manage the mapping between logical block addresses (LBAs) from the host 154 to corresponding physical block addresses on the SSD 152 (i.e., on the non-volatile memories 170a, 170b, 170n of the SSD 152). Because non-volatile memory pages and host sectors are different sizes, the SSD must build and maintain data structures that enable it to translate between the host writing data to or reading data from a sector and the physical non-volatile memory page where the data is actually placed. This table structure or "mapping" may be built and maintained for sessions in the volatile memory 172 of the SSD, such as DRAM or some other local volatile memory component accessible to the controller 162 and addressing 164. Alternatively, the table structure may be maintained more persistently across sessions in non-volatile storage of an SSD, such as non-volatile storage 170a, 170b-170n.
[0152] In addition to the non-volatile memory 170a, 170b-170n, the addressing 164 also interacts with a data buffer cache 166. The data buffer cache 166 of the SSD 152 typically uses DRAM as a cache, similar to the cache in a hard disk drive. The data buffer cache 166 serves as a buffer or staging area for transferring data to and from the non-volatile memory components, and as a cache to speed up future requests for cached data. The data buffer cache 166 is typically implemented with volatile memory, so data stored therein is not permanently stored in the cache, that is, the data is not persistent.
[0153] Finally, the SSD 152 includes one or more non-volatile memory 170a, 170b-170n components. For non-limiting example, the non-volatile memory components 170a, 170b-170n may be implemented as flash memory (e.g., NAND or NOR flash) or other types of solid-state memory available now or in the future. The non-volatile memory 170a, 170b-170n components are the actual memory electronic components on which data is persistently stored. The non-volatile memory 170a, 170b-170n components of the SSD 152 may be considered to be an emulation of a hard disk in a hard disk drive (HDD) storage device.
[0154] In addition, references herein to data storage devices may encompass multi-media storage devices (or "multi-media devices," which may sometimes be referred to as "multi-layer devices" or "hybrid drives"). A multi-media storage device generally refers to a storage device having the functionality of a conventional HDD (see, e.g., HDD 100) combined with an SSD (see, e.g., SSD 150) that uses non-volatile memory, such as flash memory or other solid-state (e.g., integrated circuit) memory, which is electrically erasable and programmable. Because the operation, management, and control of different types of storage media are typically different, the solid-state portion of the hybrid drive may include its own corresponding controller functionality, which may be integrated into a single controller along with the HDD functionality. The multi-media storage device may be constructed and configured to operate and utilize the solid-state portion in a variety of ways, such as, by way of non-limiting example, using the solid-state memory as a cache memory, for storing frequently accessed data, for storing I / O intensive data, for storing metadata corresponding to payload data (e.g., for assisting in decoding the payload data), and the like. Additionally, the multi-media storage device may be constructed and configured as essentially two storage devices in a single housing, a conventional HDD and an SSD, with one or more interfaces for host connection.
[0155] Expansion and alternatives
[0156] In the foregoing description, embodiments of the present invention have been described with reference to a large number of specific details, which may vary according to different specific implementations. Therefore, various modifications and changes may be made to the embodiments without departing from the broader essence and scope of the embodiments. Therefore, the present invention and the applicant's sole and exclusive indicator of the present invention are a set of claims issued by this patent application in the specific form in which such claims are issued, including any subsequent corrections. Any definition of the terms contained in these claims explicitly set forth herein should determine the meaning of these terms used in the claims. Thus, limitations, elements, characteristics, features, advantages or attributes that are not explicitly cited in the claims should not limit the scope of this claim in any way. Therefore, this specification and the drawings are considered to be exemplary rather than restrictive.
[0157] Additionally, in this description, certain process steps may be shown in a particular order, and letters and alphanumeric labels may be used to identify certain steps. Unless expressly indicated in the specification, the embodiments are not necessarily limited to any particular order of performing such steps. In particular, these labels are used only to facilitate identification of the steps and are not intended to specify or require a particular order of performing such steps.
Claims
1. A method for identifying a poorly performing data storage device (DSD), the method comprising: retrieving a corresponding set of error log pages from each of a plurality of data storage devices (DSDs); determining, based on each respective set of log pages, a value of a quality of service (QoS) metric for each respective DSD in the plurality of DSDs, wherein each QoS value represents a percentage of bytes processed without autonomous error correction by the respective DSD; determining whether each DSD QoS value reaches a predetermined QoS threshold; as well as In response to the specific DSD QoS value reaching the predetermined QoS threshold, it is determined whether to perform in-situ repair for the specific DSD or to add the specific DSD to a candidate DSD list for further examination.
2. The method according to claim 1, wherein: Retrieving the set of error log pages includes retrieving a set of SCSI (small computer system interface) log sense counters; and Determining the value of the QoS metric includes determining based on at least two parameters from a parameter group consisting of: (1) parameter 0001h: errors that may be delayed in correction, (2) parameter 0004h: total time for correction algorithm processing, and (3) parameter 0005h: total bytes processed.
3. The method of claim 2, wherein determining the value of the QoS metric comprises determining based on a domain from a group of domains consisting of a read domain, a write domain, and a verify operation domain.
4. The method of claim 1 , wherein retrieving the set of error log pages comprises retrieving a set of SMART (Self-Monitoring, Analysis, and Reporting Technology) parameters indicating (i) a total number of errors corrected, (ii) a number of correction algorithm calls, and (iii) a total number of bytes processed.
5. The method of claim 1, wherein determining the value of the QoS metric comprises determining the value of the QoS metric corresponding to a predetermined time period that is less than a lifetime of each respective DSD.
6. The method of claim 1, wherein determining whether a particular DSD QoS value reaches a predetermined QoS threshold comprises comparing the particular DSD QoS to a statistical measure of QoS values corresponding to the plurality of DSDs.
7. The method of claim 6, wherein the plurality of DSDs are associated in a RAID (Redundant Array of Independent Disks or Drives) grouping of DSDs.
8. The method of claim 6, wherein the plurality of DSDs are associated in an erasure coding paradigm applied to the plurality of DSDs.
9. The method of claim 1 , wherein determining whether to add the specific DSD to the list comprises determining whether to add the specific DSD to a candidate DSD list for further full recovery per hour (FRPH) inspection, comprising: retrieving a recovery log from a specific hard disk drive (HDD) that is a specific DSD; as well as Determining a value of a FRPH metric for each corresponding read / write head of the specific HDD based on the recovery log includes: summing the amount of time the head spends on all recovery steps performed by the head within a particular duration, including characterizing a full recovery as corresponding to a predetermined duration that the head spends on one or more recovery steps, determining an equal number of full recoveries within said specific duration, and Based on the number of full recoveries and the specific duration, the value of the FRPH metric of the head is determined.
10. The method according to claim 9, further comprising: In response to the value of the particular head FRPH metric reaching a predetermined FRPH threshold, an in-situ repair is determined for the particular HDD in which the particular head is operating.
11. A method for identifying a poorly performing data storage device (DSD) from among a plurality of associated DSDs constituting a data storage system, the method comprising: periodically polling a set of error counters of the plurality of DSDs; determining a value of a lifetime quality of service (QoS) metric for each respective DSD in a plurality of DSDs based on the error counter, wherein each lifetime QoS value is based on an average percentage of bytes processed over the lifetime of each respective DSD without performing autonomous error correction; and The value of each lifetime QoS metric is recorded for the polling period.
12. The method according to claim 11, further comprising: identifying a particular percentage subset of the plurality of DSDs that exhibited a lowest lifetime QoS value during a most recent polling period; for each DSD in the subset of DSDs whose most recent lifetime QoS value is more than one unit lower than the most recent lifetime QoS value of the DSD with the highest lifetime QoS value in the subset, adding each such DSD to the candidate DSD list; for each DSD in the subset of DSDs whose most recent lifetime QoS value has dropped by more than one unit since the particular previous lifetime QoS value was calculated, adding each such DSD to the candidate DSD list; as well as For each DSD on the candidate DSD list that is not configured for calculating a corresponding full restoration per hour (FRPH) value, a determination is made whether to repair or deactivate each such DSD.
13. The method according to claim 12, further comprising: for each DSD on the candidate DSD list configured for calculating the FRPH value, removing from the candidate DSD list any DSD that has passed the FRPH check within a predetermined time period less than the polling period; as well as For each DSD retained on the candidate DSD list, the FRPH value for each corresponding read-write head of each such DSD is calculated.
14. The method of claim 11, wherein the plurality of DSDs constitute a single data storage system.
15. The method of claim 11, wherein the plurality of DSDs constitute a plurality of data storage systems.
16. A data storage system comprising: A system controller circuit comprising a memory and one or more processors and implementing one or more sequences of instructions that, when executed by the one or more processors, cause the following operations to be performed: retrieving a corresponding set of error log pages from each of a plurality of data storage devices (DSDs); determining, based on each respective set of error log pages, a value of a quality of service (QoS) metric for each respective DSD of the plurality of DSDs, wherein each QoS value represents a percentage of bytes processed without autonomous error correction by the respective DSD; determining whether each DSD QoS value reaches a predetermined QoS threshold; as well as In response to a specific DSD QoS value reaching the predetermined QoS threshold, it is determined whether to perform in-place repair for the specific DSD or to add the specific DSD to a candidate DSD list for further full recovery per hour (FRPH) inspection.
17. The data storage system of claim 16, wherein: Retrieving the set of error log pages includes retrieving a set of SCSI (small computer system interface) log sense counters; and Determining the value of the QoS metric includes determining based on at least two parameters from a parameter group consisting of: (1) parameter 0001h: errors that may be delayed in correction, (2) parameter 0004h: total time for correction algorithm processing, and (3) parameter 0005h: total bytes processed.
18. The data storage system of claim 16, wherein determining whether a particular DSD QoS value reaches a predetermined QoS threshold comprises comparing the particular DSD QoS to a statistical measure of QoS values corresponding to the plurality of DSDs.
19. The data storage system of claim 16, wherein the one or more processors are not configured to directly process floating point arithmetic operations.
20. A data storage system comprising: multiple data storage devices (DSD); means for retrieving a corresponding set of SCSI (Small Computer System Interface) log pages from each of a plurality of data storage devices (DSDs); means for determining a value of a quality of service (QoS) metric for each respective DSD of the plurality of DSDs based on each respective set of SCSI log pages, wherein each QoS value represents a percentage of bytes processed without autonomous error correction by the respective DSD; means for determining whether each DSD QoS value reaches a predetermined QoS threshold; as well as Means for determining whether to perform in-place repair for a particular DSD or add the particular DSD to a candidate DSD list for further full recovery per hour (FRPH) inspection in response to the particular DSD QoS value reaching the predetermined QoS threshold.
