The present disclosure relates to storage systems. More particularly, the present disclosure relates to utilizing machine learning methods within storage devices to generate inferences based on multiple types of data.
Current hard disk drive (“HDD”) and solid state drive (“SSD”) storage devices often utilize embedded software that is executed within a System on a Chip (“SoC”). Traditional methods of software execution within storage systems are getting increasingly difficult to improve. As drive sizes and complexity grows, the number of variables and associated resources that need to be managed, searched, and optimized to improve on the state-of-the-art increases in complexity.
Certain algorithms may attempt to improve various operations within storage devices but often are limited by the internal processing power provided. Some methods of processing improvement may attempt to offload processing to an external host system either in direct communication with the storage device or via a remote processing device. However, these methods add complexity to the storage device system and can be rendered useless when communication fails with the external processing devices.
Improving internal processing power within the storage device can also be problematic. Adding additional processors or specialized components to handle various processing tasks often require an entire reworking of the circuits, circuit-boards and/or other hardware. These changes are not trivial and can add millions of dollars in capital investment costs to the manufacturing process. These hardware-based solutions may also be limited to address a particular problem whose solution may not warrant the costs needed to produce a change in hardware design.
The above, and other, aspects, features, and advantages of several embodiments of the present disclosure will be more apparent from the following description as presented in conjunction with the following figures.
Corresponding reference characters indicate corresponding components throughout the several figures of the drawings. Elements in the several figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale. For example, the dimensions of some of the elements in the figures might be emphasized relative to other elements for facilitating understanding of the various presently disclosed embodiments. In addition, common, but well-understood, elements that are useful or necessary in a commercially feasible embodiment are often not depicted in order to facilitate a less obstructed view of these various embodiments of the present disclosure.
In response to the problems described above, various embodiments of the instant disclosure provide for tactical deployment of machine learning within existing storage device designs without additional capital investment. In many embodiments machine learning operations can be processed within a SoC of a storage device as embedded software. By utilizing prior historical data, operations, and/or results, statistically driven decisions (i.e. inferences) can be generated.
Machine learning methods can be utilized by generating one or more models that receive a series of input data and produces a desired output. Often, these machine learning models are produced by using one or more neural network designs. Challenges often occur operating machine learning models within typical storage device firmware as the input and output scope can vary greatly and may not be known prior to firmware development.
However, various embodiments of the instant application can provide methods of dynamically generating and implementing machine learning models of different attributes such as parameters, features, and/or scopes as needed. For example, adjustments of the models can be designed to adjust for model complexity and/or projected processing time. It is contemplated that models of various complexities can be generated, selected, converted, and otherwise processed as needed to be run as code within the embedded software of the storage device.
Data can be processed between a variety of different attributes within a data set. Attributes can include various features within the storage device itself, attributes that vary in scope which may or may not be related, and/or can be formatted as parameterized data that may be suitable for input into a parametric search. For example, in some embodiments, data necessary for the calculation of one type of attribute may not be available but may be generated via a machine learning model that accepts input data comprised of a second type of attribute data. In further embodiments, the first and second attribute data types may be related and/or could be different in scope. In general, a scope of attribute data may be understood as a grouping of similar attributes within the same level of a hierarchy. For example, as shown in more detail within the discussion of
Machine learning based techniques can allow for an arbitrary amount of calculation complexity to be encapsulated in an information dense and efficient way. The accuracy of a model can be configured to be tuned to trade off the calculation time versus accuracy without the need for a firmware engineer to make an excessive amount of manual adjustments. These machine learning models can be designed to, for example, improve the accuracy of performance, reliability, manufacturing margins, yield increases, and/or manufacturing cost reduction. In further embodiments, an analyst or data scientist can define more appropriate or efficient function for a particular model which may then be updated via a firmware update without the need for further changes to the remaining software code.
Aspects of the present disclosure may be embodied as an apparatus, system, method, or computer program product. Accordingly, aspects of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, or the like) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “function,” “module,” “apparatus,” or “system.” Furthermore, aspects of the present disclosure may take the form of a computer program product embodied in one or more non-transitory computer-readable storage media storing computer-readable and/or executable program code. Many of the functional units described in this specification have been labeled as functions, in order to emphasize their implementation independence more particularly. For example, a function may be implemented as a hardware circuit comprising custom VLSI circuits or gate arrays, off-the-shelf semiconductors such as logic chips, transistors, or other discrete components. A function may also be implemented in programmable hardware devices such as via field programmable gate arrays, programmable array logic, programmable logic devices, or the like.
Functions may also be implemented at least partially in software for execution by various types of processors. An identified function of executable code may, for instance, comprise one or more physical or logical blocks of computer instructions that may, for instance, be organized as an object, procedure, or function. Nevertheless, the executables of an identified function need not be physically located together but may comprise disparate instructions stored in different locations which, when joined logically together, comprise the function and achieve the stated purpose for the function.
Indeed, a function of executable code may include a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs, across several storage devices, or the like. Where a function or portions of a function are implemented in software, the software portions may be stored on one or more computer-readable and/or executable storage media. Any combination of one or more computer-readable storage media may be utilized. A computer-readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing, but would not include propagating signals. In the context of this document, a computer readable and/or executable storage medium may be any tangible and/or non-transitory medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, processor, or device.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object-oriented programming language such as Python, Java, Smalltalk, C++, C#, Objective C, or the like, conventional procedural programming languages, such as the “C” programming language, scripting programming languages, and/or other similar programming languages. The program code may execute partly or entirely on one or more of a user's computer and/or on a remote computer or server over a data network or the like.
A component, as used herein, comprises a tangible, physical, non-transitory device. For example, a component may be implemented as a hardware logic circuit comprising custom VLSI circuits, gate arrays, or other integrated circuits; off-the-shelf semiconductors such as logic chips, transistors, or other discrete devices; and/or other mechanical or electrical devices. A component may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices, or the like. A component may comprise one or more silicon integrated circuit devices (e.g., chips, die, die planes, packages) or other discrete electrical devices, in electrical communication with one or more other components through electrical lines of a printed circuit board (PCB) or the like. Each of the functions and/or modules described herein, in certain embodiments, may alternatively be embodied by or implemented as a component.
A circuit, as used herein, comprises a set of one or more electrical and/or electronic components providing one or more pathways for electrical current. In certain embodiments, a circuit may include a return pathway for electrical current, so that the circuit is a closed loop. In another embodiment, however, a set of components that does not include a return pathway for electrical current may be referred to as a circuit (e.g., an open loop). For example, an integrated circuit may be referred to as a circuit regardless of whether the integrated circuit is coupled to ground (as a return pathway for electrical current) or not. In various embodiments, a circuit may include a portion of an integrated circuit, an integrated circuit, a set of integrated circuits, a set of non-integrated electrical and/or electrical components with or without integrated circuit devices, or the like. In one embodiment, a circuit may include custom VLSI circuits, gate arrays, logic circuits, or other integrated circuits; off-the-shelf semiconductors such as logic chips, transistors, or other discrete devices; and/or other mechanical or electrical devices. A circuit may also be implemented as a synthesized circuit in a programmable hardware device such as field programmable gate array, programmable array logic, programmable logic device, or the like (e.g., as firmware, a netlist, or the like). A circuit may comprise one or more silicon integrated circuit devices (e.g., chips, die, die planes, packages) or other discrete electrical devices, in electrical communication with one or more other components through electrical lines of a printed circuit board (PCB) or the like. Each of the functions and/or modules described herein, in certain embodiments, may be embodied by or implemented as a circuit.
Reference throughout this specification to “one embodiment,” “an embodiment,” or similar language means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Thus, appearances of the phrases “in one embodiment,” “in an embodiment,” and similar language throughout this specification may, but do not necessarily, all refer to the same embodiment, but mean “one or more but not all embodiments” unless expressly specified otherwise. The terms “including,” “comprising,” “having,” and variations thereof mean “including but not limited to”, unless expressly specified otherwise. An enumerated listing of items does not imply that any or all of the items are mutually exclusive and/or mutually inclusive, unless expressly specified otherwise. The terms “a,” “an,” and “the” also refer to “one or more” unless expressly specified otherwise.
Further, as used herein, reference to reading, writing, storing, buffering, and/or transferring data can include the entirety of the data, a portion of the data, a set of the data, and/or a subset of the data. Likewise, reference to reading, writing, storing, buffering, and/or transferring non-host data can include the entirety of the non-host data, a portion of the non-host data, a set of the non-host data, and/or a subset of the non-host data.
Lastly, the terms “or” and “and/or” as used herein are to be interpreted as inclusive or meaning any one or any combination. Therefore, “A, B or C” or “A, B and/or C” mean “any of the following: A; B; C; A and B; A and C; B and C; A, B and C.” An exception to this definition will occur only when a combination of elements, functions, steps, or acts are in some way inherently mutually exclusive.
Aspects of the present disclosure are described below with reference to schematic flowchart diagrams and/or schematic block diagrams of methods, apparatuses, systems, and computer program products according to embodiments of the disclosure. It will be understood that each block of the schematic flowchart diagrams and/or schematic block diagrams, and combinations of blocks in the schematic flowchart diagrams and/or schematic block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a computer or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor or other programmable data processing apparatus, create means for implementing the functions and/or acts specified in the schematic flowchart diagrams and/or schematic block diagrams block or blocks.
It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. Other steps and methods may be conceived that are equivalent in function, logic, or effect to one or more blocks, or portions thereof, of the illustrated figures. Although various arrow types and line types may be employed in the flowchart and/or block diagrams, they are understood not to limit the scope of the corresponding embodiments. For instance, an arrow may indicate a waiting or monitoring period of unspecified duration between enumerated steps of the depicted embodiment.
In the following detailed description, reference is made to the accompanying drawings, which form a part thereof. The foregoing summary is illustrative only and is not intended to be in any way limiting. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features will become apparent by reference to the drawings and the following detailed description. The description of elements in each figure may refer to elements of proceeding figures. Like numbers may refer to like elements in the figures, including alternate embodiments of like elements.
Referring to
In the embodiment depicted in
The embodiment of
A network interface 126 is configured to connect the storage device 106 with a network 102 using, for example, an Ethernet connection or a Wi-Fi wireless connection. Network interface 126 allows storage device 106 to interface with other devices on network 102 (e.g., host 101 or storage device 107) using a protocol such as TCP/IP. As will be appreciated by those skilled in the art, network interface 126 can be included as part of the SoC 120. In other embodiments, the network interface 126 may be replaced with an interface for communicating on a data bus according to a standard such as Serial Advanced Technology Attachment (“SATA”), PCI express (“PCIe”), Small Computer System Interface (“SCSI”), or Serial Attached SCSI (“SAS”).
The storage device 106 can also include a sensor 122 for obtaining environmental information about an environmental condition of the storage device 106. The sensor 122 can include one or more environmental sensors such as, by way of non-limiting disclosure, a mechanical shock sensor, a vibration sensor, an accelerometer (e.g., XYZ or YPR accelerometer), a temperature sensor, a humidity sensor, or an air pressure sensor. In addition, one type of sensor can be used to indicate multiple environmental conditions. For example, an accelerometer can be used to indicate both vibration and mechanical shock conditions or an air pressure sensor can be used to indicate changes in altitude and changes in air pressure. In other embodiments, storage device 106 may obtain data from an external sensor such as a camera, a radio frequency sensor, or radar.
The disk 150 can be rotated by a Spindle Motor (“SM”) 154. The storage device 106 may also include a head 136 connected to the distal end of an actuator 130 which is rotated by Voice Coil Motor (“VCM”) 132 to a position head 136 in relation to the disk 150. The SoC 120 can control the position of the head 136 and the rotation of the disk 150 using a VCM control signal 134 and a SM control signal 138, respectively.
As appreciated by those of ordinary skill in the art, the disk 150 may form part of a disk pack with additional disks radially aligned below disk 150. In addition, the head 136 may form part of a head stack assembly including additional heads with each head arranged to read data from and write data to a corresponding surface of a disk in a disk pack.
The disk 150 includes a number of radial spaced, concentric tracks 152 for storing data on a surface of disk 150. Tracks 152 can be grouped together into zones of tracks with each track divided into a number of sectors that are spaced circumferentially along the tracks. In some embodiments, some or all of tracks 152 can be written by a write element of head 136 using Shingled Magnetic Recording (“SMR”) so as to overlap adjacent tracks. SMR provides a way of increasing the amount of data that can be stored in a given area on disk 150 by overlapping tracks like roof shingles. The non-overlapping portion then serves as a narrow track that can be read by a read element of head 136. In other implementations, all of tracks 152 may be written such that they do not overlap by using Conventional Magnetic Recording (“CMR”).
In addition to, or in lieu of the disk 150, the NVM media of the storage device 106 may also include solid-state memory 128 for storing data. While the description herein refers to solid-state memory generally, it is understood that solid state memory may comprise one or more of various types of memory devices such as flash integrated circuits, Chalcogenide RAM (“C-RAM”), Phase Change Memory (“PC-RAM” or “PRAM”), Programmable Metallization Cell RAM (“PMC RAM” or “PMCm”), Ovonic Unified Memory (“OUM”), Resistance RAM (“RRAM”), NAND memory (e.g., Single-Level Cell (“SLC”) memory, Multi-Level Cell (“MLC”) memory, or any combination thereof), NOR memory, EEPROM, Ferro electric Memory (“FeRAM”), Magnetoresistive RAM (“MRAM”), other discrete NVM chips, or any combination thereof.
Memory 140 can represent a volatile memory of storage device 106, such as Dynamic Random Access Memory (“DRAM”), for temporarily storing data used by SoC 120. In other embodiments, memory 140 can be an NVM such as MRAM. In addition, memory 140 can be included as part of SoC 120 in other embodiments. Those of ordinary skill in the art will also appreciate that other embodiments may include less than all of the items depicted as being stored in memory 140.
In operation, a processor of SoC 120 (e.g., processor 210 shown in
Application OS 12 can be an embedded OS or firmware of the storage device 106 in the sense that application OS 12 is executed on storage device 106 and not executed on a host such as host 101. Hardware resources managed by application OS 12 can include, for example, the network interface 126, solid-state memory 128, disk 150, memory 140, and one or more processors in SoC 120 (e.g., processor 210 shown in
File system(s) 14 can include one or more file systems for accessing or organizing files stored in NVM of storage device 106. By executing a file system on storage device 106, it is ordinarily possible to tailor the file system to a particular storage media used by storage device 106 to store data. In one example, file system(s) 14 can include a file system that may be well suited to sequentially writing data on SMR media, such as Linear Tape File System (“LTFS”) or a log-structured file system like New Implementation of a Log-structured File System (“NILFS”). Other file systems of file system(s) 14 can include, for example, B-tree file system (“BTFS”), ext2, ext3, ext4, or XFS.
Driver(s) 21 can include software for interfacing with a firmware or other software of the storage device 106 (e.g., controller firmware 11 or servo firmware 10 as shown in
Application(s) 22 can include applications developed by a manufacturer of the storage device 106 and/or independently developed applications that have been downloaded from network 102. For example, the storage device 106 may receive computer executable instructions from a host 101 via the network interface 126 and then execute the computer-executable instructions to create an application 22. In some implementations, a Software Development Kit (SDK) could be made available to allow customer and/or vendors on network 102 to develop their own applications to run on storage device 106.
Application(s) 22 or driver(s) 21 can include data storage related applications such as a user interface for operating storage device 106, storage device health monitoring for monitoring a reliability of storage device 106 and/or migrating data to another storage device or NVM within storage device 106 before losing data, data encryption, data compression, era sure coding or error correction, directing data for storage on disk 150 or solid-state memory 128 based on attributes of the data (e.g., tiered storage), deduplication of data stored in storage device 106, or mirroring data (e.g., data backup).
In addition, application(s) 22 or driver(s) 21 can customize the storage device 106 for specific uses such as working with sensor data, streaming certain types of media over network 102, configuring storage device 106 to operate as a DVR or media server, managing the synching or backup of computing devices, providing a Bluetooth connection, a Wi-Fi hotspot, or configuring the storage device 106 to operate as a Network-Attached Storage (NAS). In one embodiment, an application 22 can allow a processor of the storage device 106 (e.g., processor 210 of SoC 120 shown in
In another implementation, an application 22 can cause a processor of the storage device 106 to receive an input from the sensor 122 indicating an environmental condition of storage device 106 such as a vibration condition, an air pressure condition, a humidity condition, or a temperature condition. The processor can then determine whether the input exceeds an unsafe or undesirable threshold. If the input exceeds the threshold, the processor can redirect at least one command to store data in NVM of storage device 106 to another storage device on network 102 (e.g., storage device 107). The processor may also request environmental condition information from other storage devices on network 102 to identify another storage device to receive one or more redirected commands. In addition, the processor may stop redirecting commands if a subsequent input from sensor 122 indicates that the subsequent input has fallen below a threshold, thereby indicating that it is safe to store data in an NVM of storage device 106.
Data included in mapping 24, write pointers 26, command queue 28, buffer 30, or data to be stored in or retrieved from NVM can also be stored in memory 140 so that the data can be accessed by a processor of storage device 106 (e.g., processor 210 shown in
In various embodiments, mapping 24 can map logical addresses (e.g., Logical Block Addresses (“LBAs”)) for data to physical addresses (e.g., block addresses) corresponding to locations in NVM of storage device 106 that store the data. This can allow for a processor executing application OS 12 to direct data to a particular NVM (e.g., disk 150 or solid-state memory 128) or particular zones within an NVM based on attributes of the data. Mapping 24 may also be stored in an NVM of storage device 106 such as disk 150 or solid-state memory 128 so that mapping 24 is available after storage device 106 has been powered off. Alternatively, memory 140 may be an NVM such as MRAM.
Write pointers 26 can be used by a processor executing application OS 12 to keep track of a location for performing a next write in a sequentially written zone such as an SMR zone on disk 150. Write pointers 26 may also be stored in an NVM of storage device 106 such as disk 150 or solid-state memory 128 so that write pointers 26 are available after storage device 106 has been powered off.
Buffer 30 may be used by a processor executing application OS 12 in performing various operations including, but not limited to, Read-Modify-Write (“RMW”) operations on the disk 150, such as garbage collection to reclaim portions of disk 150 storing invalid or obsolete data. In these operations, the processor may read a zone of tracks and store the valid data from the zone in buffer 30 before rewriting the valid data on disk 150. In addition, the processor may identify or prioritize a particular zone for garbage collection by determining a level of invalid or obsolete data stored in the zone and/or a frequency of use of the zone.
Training data 32 may be used by a logics and/or other software in order to facilitate generation of one or more machine learning models. Training data 32 may include, but is not limited to weights, connection data, historical results of previous machine learning model outputs. In some embodiments, training data 32 may be generated and installed on the storage device during the manufacturing process and remain static. In additional embodiments, training data 32 can be dynamically generated and utilized in the updating of existing or creation of new machine learning models.
Threshold(s) 34 can include values, ranges, or other data that can be used in a verification process. As shown in more detail below with respect to the discussion of
Model(s) 36 refer to one or more machine learning-based model(s) 36 that can generate inference data in response to receiving an input vector(s) 40 to process. As discussed in more detail below, machine learning model(s) 36 may be installed during manufacture of the storage device or be included within a software or firmware update process. In certain embodiments, new model(s) 36 may be dynamically generated and/or adjusted based on newly processed or received data. For example, a model 36 may be generated to evaluate a property on each head within the hard-disk memory. However, the number of sectors or heads to evaluate within the model 36 may decrease due to bad sectors accumulating over time. In these cases, each model(s) 36 may need to be adjusted to account for these changes in items to evaluate with the model(s) 36.
Log(s) 38 are data stores that are comprised of data pieces that reflect how one or more operations within the storage device have occurred. As those skilled in the art will recognize, virtually any type or variety of log (s) 38 may be stored within a memory of the storage device. Log(s) 38 may be stored as a text-based file format, but there is no direct limitation to the type of data format may incorporate log(s) 38 for the purposes of generating inference(s) 42 based on that data.
Input Vector(s) 40 are data structures that are specifically formatted to deliver data into one or more input nodes within a machine learning model(s) 36. As discussed in more detail below, each model 36 may vary in size, complexity, and types of input desired and output produced. The storage device may often evaluate a machine learning based model 36 and determine a suitable way to pass data into it in order to facilitate a productive output (i.e. inference 42). Input vector(s) 40 are often generated from and associated with contract data which tracks not just the input vector(s) 40, but also the output format as well.
Inference(s) 42 are a term for the generalized output of a machine learning model 36. As highlighted within the discussions of
Attribute(s) 44 are data or characteristics which are related to the type of data that is being processed. In a variety of embodiments, data to be processed within the machine learning model(s) 36 may be associated with one or more physical attributes of the storage device. As explained in more detail within the discussion of
Referring now to
In a number of embodiments, each of processors 210, 141, and 142 is a processor core such as, but not limited to, an ARM M3 processor. In additional embodiments, the processor 210 can include an ARM A5 or A6 processor while processors 141 and 142 can be ARM M3 processors. In yet further embodiments, different types of processors such as those based on a RISC-V ISA can be used.
As shown in the embodiment depicted in
In many embodiments, the processor 210 may additionally operate and/or execute a plurality of logics that are utilized to facilitate machine learning within the SoC 120. As shown in the embodiment of
As discussed above, having an application OS 12 embedded or running on the storage device 106 can provide several advantages over conventional storage devices that do not locally execute an embedded application OS. Such advantages include the ability to support TCP/IP over Ethernet or Wi-Fi interfaces (e.g., via the network interface 126), the ability to embed a file system (e.g., file system(s) 14) that may be better adapted to a particular storage media of storage device 106, and to allow for new applications and/or logics (e.g., application(s) 22) to be developed for different uses of storage device 106. As will be appreciated by those of ordinary skill in the art, one or both of processors 141 and 142 may run a Real-Time Operating System (“RTOS”) that is intended to perform real-time processes for components such as, but not limited to, servo firmware 10 and/or controller firmware 11. In contrast, processor 210 can run application OS 12 which allows for the execution of software as discussed in more detail below.
In storing or retrieving data from the NVM of a storage device 106, the processor 210 can execute application OS 12 to interface with processor 141, which executes controller firmware 11. Controller firmware 11 can then control operation of the NVM of storage device 106 and may be stored in a dedicated memory of the SoC 120 (e.g., a flash memory not shown) or may be stored on another NVM of the storage device 106 such as the disk or solid-state memory 128.
As noted above, the use of an application OS at processor 210 can allow for a simplified firmware of the storage device 106. In more detail, many of the tasks conventionally performed by executing storage device firmware may be shifted to software executed by the processor 210. As a result, controller firmware 11 in some implementations may primarily serve only to store or retrieve data in NVM with many of the maintenance operations for the NVM being performed by the file system(s) 14, driver(s) 21, and/or application (s) 22. Tasks that may be shifted to processor 210 can include, for example, data encryption, data compression, erasure coding or other error correction, data deduplication, data mirroring, the direction of data for storage on disk or solid-state memory 128 based on attributes of the data, the direction of data for storage in a CMR zone (i.e., a zone of non-overlapping tracks) or an SMR zone (i.e., a zone of over lapping tracks) of a disk based on attributes of the data, address mapping, maintenance of write pointers, ordering of command queues, garbage collection, and/or other storage device optimizations.
In many embodiments, the processor 210 can execute an application OS 12 to interface with a processor 141 and send a command to processor 141 to retrieve data from or store data in the disk or solid-state memory 128. The interface between the processor 210 and processor 141 can be object based, use a standard such as SAS or SATA, or be a custom interface. In the case of using a standard such as SAS or SATA, the processor 210 can use a file system 14, or a driver 21 to send read, write, or trim commands for particular LBAs associated with the data. In the case of a custom interface, a manufacturer may provide a customized file system 14 or a driver 21 to send commands to processor 141.
If access to the disk is needed, processor 141 can communicate with processor 142, which may execute servo firmware 10. In this regard, processor 142 controls SM 154 via a SM control signal 138 to rotate the disk. Processor 142 can also control VCM 132 via a VCM control signal 134 to position a head over the disk.
Measurement logic 212 can be a series of circuits, software, and/or operations that can gather one or more measurements within the storage device. Measurements can include properties of the storage device, a memory within the storage device, and/or any external properties such as environmental factors. In many embodiments, measurement logic can gather and process these measurements via non-machine learning-based methods. However, as discussed in more detail above, the determination of measurements via the measurement logic may be too computationally intensive, take too much time, and/or would be requesting resources that are not available.
In certain embodiments, source selection logic 214, can evaluate a request for measurements or other data and determine if generating one or more inferences via machine learning models is suitable. In this way, source selection logic 214 can change the destination paths of data requests which may allow for the potential increase in efficiency by incorporating one or more machine learning models. Source selection logic 214 can be configured to utilize historical data and/or projected computational costs when determining if utilizing machine learning models is appropriate.
Contract logic 216 can be configured to determine and generate proper data inputs and outputs of a machine learning model. As discussed in more detail below, each machine learning model can be uniquely configured to receive a particular type of input data and associated output format. For example, a machine learning model may be constructed to receive two numerical inputs and two alpha-numeric inputs which are then processed to receive a single numerical value. In many embodiments, contract logic 216 can facilitate the steps necessary for the storage device to acquire the two numeric inputs from a first location within a log while retrieving the two alphanumeric inputs from a second location within the log. The same contract logic 216 can provide facilitate processing and/or passing the generated inference output data to a proper location within the storage device. In this way, contract logic 216 can generate a specific contract associated with, and often paired with, each individual machine learning model.
In a number of embodiments, machine learning logic 218 can encompass all operations necessary to facilitate machine learning with a storage device. In certain embodiments, the nature of machine learning logic 218 scope may be limited to simply providing and administering machine learning models that interact with other, separate logics. Machine learning logic 218, can in some embodiments, facilitate the communication between the various logics within the storage device.
For example, in one embodiment, machine learning logic 218 may access one or machine learning models stored within memory, summarize or otherwise provide these model(s) to the source selection logic 214 which may determine if one or more of the model(s) would be suitable for execution instead of traditional measurements or processing. Upon selection, machine learning logic 218 can then facilitate contract logic 216 to facilitate assembly of an input vector which can then be passed into the machine learning model for processing. Upon completion of processing, the generated inference output data can then be passed back to the requesting application.
Prior to execution within the storage device, the various machine learning models, associated contracts and other related data must be converted from their various formats into machine-executable source code. In various embodiments, this conversion can be facilitated by code conversion logic 220. A storage device may be configured to accept a plurality of different file formats that represent machine learning models which may be subsequently converted into embedded source code. The code conversion logic 220 can, in some embodiments, be a compiler that generates one or more source code files from various input file formats.
Although many embodiments discussed herein utilize machine learning models to increase overall storage device processing efficiently, novel instances and input variables can potentially provide undesirable or otherwise unusable inference output data. Recognizing this, some embodiments can utilize verification logic 222 which may evaluate the generated inference output data before it is utilized by the storage device. Verification processing is discussed in more detail in
Verification logic 222 can access on or more thresholds stored in memory and then compare the generated inference output data against these thresholds. The comparisons may be a simple numerical difference analysis, but may involve more complex, multi-dimensional analysis depending on the type of inference data generated by the machine learning model. The thresholds used for comparison can be static values stored in memory which were added during the manufacturing process. In further embodiments, thresholds may be dynamically generated, such as for example, in response to gathered historical data or other previously verified results.
When inference data fails to be verified (such as when the value exceeds a threshold), the verification logic 222 may send a signal to the measurement logic 212 to perform a non-machine learning-based measurement or other traditional data generation/retrieval. The results of the verification failure (including the rejected value(s)) may then be stored within one or more logs within the storage device. In this way, the storage device can avoid utilizing faulty values generated by machine learning models.
Referring to
In a typical embodiment, the signal at a connection between artificial neurons is a real number, and the output of each artificial neuron is computed by some non-linear function (called an activation function) of the sum of the artificial neuron's inputs. The connections between artificial neurons are often called “edges” or axons. As mentioned above, artificial neurons and edges typically have a weight that adjusts as learning proceeds. The weight can increase or decrease the strength of the signal at a connection. Artificial neurons may have a threshold (trigger threshold) such that the signal is only sent if the aggregate signal crosses that threshold. Typically, artificial neurons are aggregated into layers as shown in
The inputs 312, 314, 319 to a neural network may vary depending on the problem being addressed. In the embodiment depicted in
In certain embodiments, the neural network 300 is trained prior to deployment into the field. However, some embodiments may utilize ongoing training of the neural network 300 especially when operational resource constraints are less critical. As will be discussed in more detail below, the neural networks in many embodiments can be generated as one or more models that can be converted into embedded code which may be executed to generate various inferences within the storage device. An overview of this process is described in more detail in
Referring to
As discussed above, the classification and/or value output data 440 can be understood as an inference relating to a particular measurement, generalization, or other aspect of the storage device. By way of example and not limitation, the SoC 120 may run software that is organized and compiled based on the received data 410, 420, 430 in response to receiving or generating a request for a particular drive-related measurement. In certain embodiments, the computational resources and/or time needed to generate, compile, and process machine learning models to respond with an estimated value or inference can be less than the computational resources and/or time needed to perform the actual measurement. In these instances, the ability to generate machine learning-based inferences is a more efficient response for the storage device.
In a number of embodiments, the classification and/or value output data 440 can be verified through one or more verification processes 450. Verification 450 can occur for each generated inference or during an initial set up or weighting process when a new machine learning model is being utilized. In certain embodiments, the verification 450 can access one or more preconfigured thresholds associated with a range of values that may be expected from the machine learning-based classification and/or value output data 440. When the generated inference exceeds a preconfigured threshold, the verification 450 can prevent the use of the inference and request that a non-machine learning method be used to make the requested measurement and/or data generation. Verification 450 is described in more detail in the discussion of
Referring to
As conceptually shown in the embodiment of
As those skilled in the art will appreciate, the specific structure and number of steps within a process can vary depending on the complexity of the process. Additionally, the number of steps utilized as input for the machine learning model can vary based on the intricacy of the inference to be generated. It is also contemplated that the representation of the process 500 depicted in
Referring to
During normal operation, application(s) 22 can send a request for a measurement. In many embodiments, the storage device can be configured with a source selection logic 214 that can intercept or otherwise read the measurement request data and/or signal. In response to known measurements requests, the source selection logic 214 can direct the storage device to select between taking a traditional measurement (via a measurement logic 212) or generating a machine learning-based inference to simulate a traditional measurement (via a machine learning logic 218).
When the source selection logic 214 determines that generating a machine learning-based inference, an activation signal can be transmitted to the machine learning logic 218. As discussed in more detail above, in response to receiving the activation signal, the machine learning logic 218 can determine a specific machine learning model that can be utilized, generate a contract associated with that model, process the model with the contract and generate an inference that can be passed back to the application(s) 22. In a number of embodiments, the inference generated by the machine learning logic 218 can be verified for corresponding to a certain range before being returned to the application(s) 22. In response to the generated inference being outside of an acceptable range or otherwise failing a verification process, the source selection logic 214 can send the initial measurement request to the measurement logic 212 to initiate a traditional measurement.
Although the embodiment depicted in
Referring to
A selected machine learning model may comprise a plurality of inputs and transformations that can be arranged in a particular layout. Typically, the machine learning model is trained from historical data which can include previously generated inferences or other measurements and/or data. In additional embodiments, the training of the model can be configured during the manufacturing process for continual retraining of the model during use. In further embodiments, the weights of a model may be set prior to the manufacturing process and remain static. In alternative embodiments, model weights may be configured shortly after manufacture of the storage device and correspond to device-specific characteristics of each individual storage device.
The process 700 can be configured to capture this layout of inputs and associated transformations (block 720). This capture can be further stored as a machine learning model description (block 730). In a number of embodiments, the machine learning model description can be a computational graph of the model. However, it is contemplated that any compatible representation of the machine learning model may be utilized prior to conversion of embedded source code. The process 700 may also pair machine learning models with the associated transforms (block 740). Transforms can be processed separately from the machine learning models in various embodiments as multiple models may utilize the same transforms. Thus, by utilizing associations between the machine learning models and transforms, required storage space can be reduced, and transforms and/or models can be updated independently as needed in response to more efficient or accurate models and/or transforms.
Upon pairing, a machine learning model and transforms can be converted to embedded source code that can be executed within the SoC of the storage device at runtime (block 750). In various embodiments, the conversion will generate at least one C++ and header file format pair. However, it is contemplated that any machine-readable format may be generated during the conversion process.
Each machine learning model will have at least a plurality of inputs and outputs. The number, types, and configurations of the inputs and outputs can vary based on the type of processing done and inference generated by the machine learning model. Therefore, the storage device typically requires a configuration in order to properly deliver the necessary input data to generate an inference within the model. Likewise, the size, type, and format of the generated inference output should be stored within a configuration in order to facilitate proper delivery and processing of the output.
This configuration of input and output formats can be understood as a “contract.” The contract can be a file or other data structure that can indicate which data should be captured, read, or otherwise acquired as input within the storage device and fed into the input of the machine learning model as well as the specification of the output of the model that can be utilized as an inference within the storage device. The process 700 can examine the machine learning model to be utilized and determine the input and output specification as contract data (block 760). In response to receiving contract data, a conversion can occur to generate additional embedded source code associated with the contact data (block 770). Once the embedded source code has been generated, a storage device can utilize the source code to generate an utilize output data from the machine learning model, generally as an inference. This process is described in more detail below.
Referring to
During the subsequent operation of the storage device, a measurement or other data set may be requested by an application or other software (block 815). Once the measurement is requested, a decision can be made to determine if a machine-learning based inference is preferred over a traditional measurement (block 825). This determination can be made in a number of ways, including the use of a source selection logic such as the source selection logic 214 as described in
When it is determined that a machine learning based inference is needed, the contract source code can be accessed (block 830). Once accessed, the process 800 can assemble an input vector from the logged data (block 840). An input vector can be described as a description of the various types, locations, and sizes of data to be obtained from a log that is needed to generate an input to a machine learning model. A completed input vector can be understood as a plurality of data that has been assembled and is formatted to directly interface with the input of a machine learning model. Each machine learning model may require a unique input vector. In many embodiments, the input vector can be generated from contract data. It is contemplated that certain embodiments may assemble an input vector from data available outside of the internal logs (block 845). In these embodiments, the process 800 may access other data within the storage device memory or may attempt to acquire data external to the storage device.
Once assembled, the input vector can be presented to the machine learning model for processing (block 850). Presentation of the input vector can occur in a number of ways including, but not limited to, passing in the input vector as a variable of a function call. The presented input vector can then be processed within the machine learning model (block 860). The processing of the data will generate output data, typically in the form of an inference. The storage device can then utilize the machine learning model output data within the system (block 870). However, in many embodiments, the output data can be processed through a verification step prior to utilization within the storage device. Discussion of this process is outlined in more detail below.
Referring to
A process 900 for verifying model output data can initially receive machine learning model output data for evaluation (block 910). As discussed above, the format and type of data that may be generated from machine learning models can vary greatly and can be modified based on the desired application. Thus, the process 900 will attempt to determine the associated output type of the generated inference (block 920).
By way of example and not limitation, the output type of a generated inference may be a truth value between 0 and 1, and in other embodiments may be configured as a plurality of configuration values associated with each head of a hard-disk based memory. Each type of output data structure and value can yield unique boundaries for what is classified as a valid output and a non-valid output. Thus, the process 900 may access one or more pre-configured thresholds for the associated output type of the machine learning model (block 930).
When the process 900 has obtained suitable threshold values for the received output data, a comparison can occur between the model output data and the pre-configured thresholds (block 940). Upon comparison, a determination can be made to evaluate if the model output data exceeds one or more of the pre-configured thresholds (block 945). Pre-configured thresholds may include, but are not limited to, error margins, median/mean values, standard deviation values, minimum and/or maximum values. In certain embodiments, the generated model output data (i.e. inference) may be associated with a plurality of constraints, dimensions, or other factors. In these embodiments, determination of exceeding thresholds may include determining if a particular number or range of values within the pre-configured thresholds have been exceeded. In some embodiments, the examination of output data may be looking for a change in data value between measurements. Finally, in additional embodiments, pre-configured thresholds may be combined between various types of output data to generate a determination.
If no thresholds have been exceeded, the process 900 may then pass the machine learning model output data to the logic or other software that originated the request (block 960). In the event that one or more of the pre-configured thresholds have been exceeded, the process 900 can subsequently issue a request for a traditional, non-machine learning model-based measurement to occur (block 950). In various embodiments, the process 900 can direct the request to the non-machine learning-based method such that any output is directly passed to the requesting logic and/or software.
Referring to
A track 1040 may be read by the head 1020 via a displacement 1029 of the arm 1028 toward the track 1040 from a resting position. While the tracks depicted in
Each track within the platter may be grouped together as one or more zones 1030-1032. For example, the embodiment depicted in
Each track 1040 can be comprised of a plurality of sectors 1060. Typically, HDDs are figuratively divided into a plurality of small arcs, like a piece of pie. The plurality of sectors 1050 along an HDD can be seen to vary in size based on their distance from the center of the platter 1010. However, sectors 1060 along the same track are typically divided in equal units of data storage size. In some embodiments, the number of sectors 1060 available per track may be limited within the Basic Input/Output System (“BIOS”) of the storage device. Attribute data that may be associated with HDD sectors may include the overall sector size, whether the sector is corrupted, whether data is stored
Referring to
As discussed above, most embodiments of HDDs store data in circular paths on the surface of each platter side called tracks. The plurality of tracks of similar circumference within the series of platters 1010-1012 can be called a cylinder 1070. Therefore, within the plurality of HDD platters 1010-1012, a plurality of different sized cylinders may exist. The cylinder 1070 depicted in
Referring to
For example, a determination about an average feature of a sector within an HDD may require the actual reading of every sector on each platter. This requirement of measuring each sector may lead to inefficient storage device usage and/or the inability to deliver an accurate result within the desired time window. Therefore, embodiments of the disclosure can utilize one or more machine learning models that can provide inference data in lieu of conducting an actual measurement. As described in more detail above, the machine learning model may be provided an input vector that utilizes various types of data including historical data such that a previously measured value for that feature (e.g. sector) may approximate the current value depending on the required accuracy of the output.
Thus, the process 1100 depicted in
When the process 1100 determines that an inference should be made, one or more machine learning models can be utilized by generating and providing an input vector for processing (block 1120). The resulting output will be the generation of inferred feature data (block 1130). The inferred feature data may then be added to the feature data set that has been previously generated (block 1160). Conversely, when the process 1100 determines that the taken instead of an inference generated, the feature can be measured (block 1140). Once measured, feature data will be generated that correlates to that specific feature (block 1150). And like the generated inferred feature data, generated measured feature data can be added to the feature data set (block 1160). Therefore, it is contemplated that a feature data set may comprise multiple data types including measured and inferred feature data.
After adding data to the feature data set, the process 1100 can evaluate if all features have been measured (block 1165). For example, when all track features are to be tracked for processing, each track within the HDD should be evaluated. When more features are left to be analyzed, the process can then return and select the next feature for measurement (block 1110). When all features have been measured, the process 1100 may optionally sort the evaluated features within the feature data set (block 1170). This sorting process may allow for the evaluation of particular well- or poor-running components within the storage device for example. Sorting can be utilized when each feature is to be evaluated against other features instead of generating a value that is associated with an. average across the evaluated features.
Although the flowchart shown in
Referring to
Prior to generating an assessment, embodiments of the process 1200 may attempt to first determine if any historical data is currently available (block 1225). For example, in a number of embodiments, when recent historical (i.e., previously measured) data is available, there may not be a direct need to generate an inference and the historical data may simply be utilized in place of the desired measurement. Thus, in these embodiments, the historical data is utilized, and the process is terminated (block 1230). However, based on the specific input vector and desired application, the available historical data may simply be utilized as data within the input vector of the one or more machine learning models.
When insufficient historical data is available, the process 1200 can subsequently determine if sufficient input vector data related to the first scope data type is available (block 1235). For example, an input vector may require a particular number of inputs related to a first scope date type such as tracks within an HDD. When available, the process 1200 can utilize the first scope data type data to generate an inference (block 1240). In certain embodiments, the input vector may only require a single scope of data which may be satisfied at this step and thus ending the process. However, in a number of embodiments, input vectors may require multiple levels of scope or otherwise different attributes to properly generate the input vector.
As depicted in the embodiment of
When assessing the second or subsequent scope data types, the process 1200 can further determine if the newly assessed scope data type sufficient for generating an input vector to process an inference related to the original, first scope data type (block 1255). If there is still insufficient data available to generate a proper input vector, the process 1200 can determine if any further scope types are available for evaluation (block 1265). If there are additional scope data types that have not yet been evaluated, then the process 1200 can return and assess a subsequent scope data type from the remaining scope data types (block 1250). If there are no more scope data types to evaluate, then the process 1200 can end and a message or other signal transmitted that an actual measurement should occur due to insufficient data being available to generate an inference. In further embodiments however, the process 1200 may simply attempt to select a new machine learning model with a different set of scope data types associated with the input vector and repeat the process 1200 from the beginning with the newly selected machine learning model and input vector.
If there is sufficient input vector data related to the subsequent scope data type, the process 1200 can utilize that scope data to generate an inference (block 1260). As described in more detail above, the input vector can be comprised of any number of scope data types and when particular attributes or instances of the scope data type is not available, additional scopes of data may be evaluated and utilized in place of the first scope data type. For example, an inference that requires measurements on a zone may require data associated with each track within that zone. However, if a particular track doesn't have available data within the logs of the storage device, the missing input data may be generated by analyzing the properties of the neighboring tracks (physically similar attribute) or by analyzing the sectors that make up that track (different scope of attribute).
It is contemplated that numerous techniques to approximate data through machine learning processes in lieu of performing an actual measurement may be accomplished. As described above, the only limits on generating such inferences are related to the available computations power and the time constraints of receiving the desired results. For example, many data approximations of a first feature can be made by utilizing additional features that are physically associated with the desired first feature. For example, when evaluating attribute data related to a physical property of an HDD (head, platter, zone, track, sector, etc.), there are typically multiple similar attributes that have similar data, actions, or physical proximity. In a number of embodiments, one or more machine learning models may attempt to physically emulate the storage device being evaluated. For example, an HDD machine learning model may be configured with one or more nodes associated with each sector, the sector nodes being connected as a track layer (or sub-network), etc. In further embodiments, processing can be done on an image or video data file that may have compression or pixel data that is similar between one or more frames wherein proximity data may be utilized to in place of missing data.
Applications of the use of multiple attribute types of data within machine learning-based inference generation can further include supplementing the process of format selection within HDDs, storage device calibration tasks, manufacturing back-end process for HDDs (detection, mapping, etc.), and general field usage. When utilized in the field, further machine learning-based models may be deployed to detect workload patterns, optimize error recoveries, administering cache policies, optimizing rotational positions, operating command queues, and/or optimizing maintenance policies. Finally, during both the manufacturing and field usage cases, machine learning-based models can be configured to help analyze failures, predict potential failures, monitor present and past health, and manage health policies and rules.
Information as herein shown and described in detail is fully capable of attaining the above-described object of the present disclosure, the presently preferred embodiment of the present disclosure, and is, thus, representative of the subject matter that is broadly contemplated by the present disclosure. The scope of the present disclosure fully encompasses other embodiments that might become obvious to those skilled in the art, and is to be limited, accordingly, by nothing other than the appended claims. Any reference to an element being made in the singular is not intended to mean “one and only one” unless explicitly so stated, but rather “one or more.” All structural and functional equivalents to the elements of the above-described preferred embodiment and additional embodiments as regarded by those of ordinary skill in the art are hereby expressly incorporated by reference and are intended to be encompassed by the present claims.
Moreover, no requirement exists for a system or method to address each and every problem sought to be resolved by the present disclosure, for solutions to such problems to be encompassed by the present claims. Furthermore, no element, component, or method step in the present disclosure is intended to be dedicated to the public regardless of whether the element, component, or method step is explicitly recited in the claims. Various changes and modifications in form, material, work-piece, and fabrication material detail can be made, without departing from the spirit and scope of the present disclosure, as set forth in the appended claims, as might be apparent to those of ordinary skill in the art, are also encompassed by the present disclosure.
This application claims the benefit of and priority to U.S. Provisional Application No. 63/094,067, filed Oct. 20, 2020, which is incorporated in its entirety herein.
Number | Date | Country | |
---|---|---|---|
63094067 | Oct 2020 | US |