Device for supervised learning using closed-loop feedback from solid-state drives
Through the closed-loop feedback mechanism and supervised learning, it detects the workload and calculates the delay amplification coefficient, adjusts the solid-state drive operation, solves the problem of garbage collection affecting throughput, and achieves efficient IO consistency and performance maintenance of the solid-state drive.
Patent Information
- Application Number
- CN202110191359.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-04-06
- Filing Date
- 2018-05-03
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2038-05-03
AI Technical Summary
Existing solid-state drives may affect overall throughput and performance during garbage collection, resulting in poor IO consistency and difficulty in effectively limiting performance losses.
A closed-loop feedback mechanism is used for supervised learning. By detecting the workload and calculating the minimum system-imposed read and write latency, the expected latency and amplification factor are calculated based on the model, and the operation of the solid-state drive is adjusted to ensure IO consistency.
Effectively maintains the performance of solid-state drives, avoids the negative impact of garbage collection on throughput, and ensures IO consistency and extended device life.
Smart Images

Figure CN112748886B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is a division of Chinese patent application No. 201810413139.7 filed on May 3, 2018 entitled "Supervised learning for improving IO consistency of solid-state drives with closed-loop feedback". This application claims priority to U.S. Provisional Patent Application No. 62 / 505,491 filed on May 12, 2017, the entire contents of which are incorporated herein by reference. Background of the Invention
[0004] field
[0005] As computer systems increase in efficiency and power, the need to store and retrieve information becomes more and more important. Correspondingly, the cost per gigabyte of SSDs has dropped. These system buyers expect faster access to these types of drives compared to traditional hard disk drives (HDDs).
[0006] SSDs use different systems and methods to store data. Of particular importance is the maintenance of low latency and constant throughput of SSDs. SSDs are used because of their superior low latency compared to HDDs. During operation, garbage collection plays an important role in determining the constant throughput of an SSD. Garbage collection allows the system to collect unused or rarely used data for disposal. Although garbage collection activity is invisible to the average user, it can impair the overall throughput of the SSD and lead to performance limitations if it occurs at inappropriate times.
[0007] Slowing down the operation of an SSD defeats the purpose of the SSD providing superior performance parameters to the user. Therefore, slowing down the SSD to perform garbage collection and other ministerial functions provides a less than optimal solution for providing IO consistency. To ensure that garbage collection continues and does not affect overall throughput, the SSD can be operated at a level lower than the maximum throughput. Therefore, the user will not experience reduced throughput while garbage collection is occurring.
[0008] Therefore, there is a need to provide a solid state drive with a level of IO consistency that does not severely impact the overall performance of the solid state drive.
[0009] There is also a need to provide methods that will limit the performance penalty that may be experienced by garbage collection and other functions based on various factors such as computer usage.
[0010] There is also a need to provide a method for automatically limiting performance loss as described above, which can limit the overall change in performance capabilities based on machine learning techniques.
[0011] There is also a need to provide methods that do not change the endurance of the SSD and can increase the overall lifespan based on optimal use of the SSD. Summary of the invention
[0012] In order that the features of the present disclosure can be understood in detail in the manner described above, a more specific description of the above brief summary of the present disclosure can be made with reference to embodiments (some of which are shown in the accompanying drawings). However, it will be noted that, because the present disclosure may allow for other equivalent embodiments, the accompanying drawings illustrate only typical embodiments of the present disclosure and are therefore not to be considered as limiting the scope thereof.
[0013] In one non-limiting embodiment, a device for performing supervised learning with closed-loop feedback of a solid-state drive is disclosed, the device comprising: a workload detection engine configured to receive input commands from a host; a command dispatcher configured to receive input commands from the host; a flash memory having a connector for receiving and sending data; a command processor connected to the command dispatcher, the command processor configured to execute commands provided by the command dispatcher, the command processor being connected to the flash memory via the connector; an engine configured to receive a set of data from the workload detection engine, the engine configured to calculate a throttling latency of the solid-state drive; and a host responder connected to the command dispatcher and the engine, the host responder configured to respond to the host with a completed command.
[0014] In another non-limiting embodiment, a method for improving the input and output consistency of a solid-state drive is disclosed, the method comprising: calculating the minimum system-imposed read and write latency of the solid-state drive; calculating the expected read latency and the expected write latency of the solid-state drive based on the minimum system-imposed read and write latency; calculating a magnification factor for write operations and a magnification factor for read operations based on a model; calculating a final read latency and a final write latency of the solid-state drive based on the calculated expected read latency and the calculated expected write latency and the amplification factor for write operations and the amplification factor for read operations; and operating the solid-state drive according to the final read latency and the write latency.
[0015] In another non-limiting embodiment, a device for calculating a final write latency and a final read latency of a solid-state drive is disclosed, the device comprising: a component for calculating the minimum system-imposed read and write latency of the solid-state drive; a component for calculating the expected read latency and the expected write latency of the solid-state drive based on the calculated minimum system-imposed read and write latency; a component for calculating a magnification factor for a write operation and a magnification factor for a read operation; and a component for calculating the final read latency and the write latency of the solid-state drive based on the calculated expected read latency and the expected write latency and the amplification factor for the write operation and the amplification factor for the read operation; and a component for operating the solid-state drive to perform a read operation and a write operation based on the final read latency and the final write latency.
[0016] In another non-limiting embodiment, a method for operating a solid-state drive is disclosed, the method comprising: calculating at least one of minimum system-imposed read and write latencies of the solid-state drive; calculating at least one of an expected read latency and an expected write latency of the solid-state drive based on the minimum system-imposed read and write latencies of the solid-state drive; calculating at least one of a magnification factor for a write operation and a magnification factor for a read operation; calculating at least one of a final read latency and a write latency of the solid-state drive based on the calculated expected read latency and expected write latency and at least one of the amplification factor for the write operation and the amplification factor for the read operation; and operating the solid-state drive so that operation of the solid-state drive does not exceed at least one final read latency and write latency of the solid-state drive.
[0017] In another non-limiting embodiment, a method for operating a solid-state drive is disclosed, the method comprising: calculating one of minimum system-imposed read and write delays of the solid-state drive; calculating one of an expected read delay and an expected write delay of the solid-state drive based on one of the minimum system-imposed read and write delays of the solid-state drive; calculating one of a magnification factor for a write operation and a magnification factor for a read operation; calculating one of a final read delay and a final write delay of the solid-state drive based on the calculated expected read delay and the calculated write delay and the calculated amplification factor for the write operation and the amplification factor for the read operation; and operating the solid-state drive according to the final read latency and the write latency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order that the features of the present disclosure may be understood in detail in the manner described above, a more specific description of the above brief summary of the present disclosure may be made with reference to embodiments (some of which are shown in the accompanying drawings). However, it will be noted that, since the present disclosure may allow for other equally effective embodiments, the accompanying drawings illustrate only typical embodiments of the present disclosure and are therefore not to be considered as limiting the scope thereof.
[0019] Figure 1 are graphs of two models used in determining whether certain criteria are dominant.
[0020] Figure 2 is a schematic diagram of a throttle engine.
[0021] Figure 3 It is a graph of random R / W IOPS versus time.
[0022] Figure 4 is a graph of random R / W IOPS versus time implementing the algorithm of the present disclosure.
[0023] Figure 5 is a graph of random R / W relative time with 30% read IOPS.
[0024] Figure 6 is a graph of random R / W with 30% read IOPS versus time to implement the algorithm of the present disclosure.
[0025] Figure 7 is a graph of random R / W relative time with 50% read IOPS.
[0026] Figure 8 is a graph of random R / W with 50% read IOPS versus time to implement the algorithm of the present disclosure.
[0027] To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. It is contemplated that elements disclosed in one embodiment may be beneficially utilized on other embodiments without specific recitation. DETAILED DESCRIPTION
[0028] Some embodiments will now be described with reference to the accompanying drawings. For consistency, similar elements in the various accompanying drawings will be referenced with the same numerals. In the following description, many details are proposed to provide an understanding of various embodiments and / or features. However, it will be appreciated by those skilled in the art that some embodiments can be put into practice without many of these details, and it is possible to make many changes or modifications from the described embodiments. As used herein, the terms "above ... and "below ...", "on ... and "below ...", "upper" and "lower", "upwards" and "downwards", and other similar terms representing the relative position above or below a given point or element are used in this specification to more clearly describe certain embodiments.
[0029] Aspects of the present disclosure relate to computer operation and computer storage, and in particular, supervised learning with closed-loop feedback to improve the IO consistency of solid-state drives. In the described embodiment, a data storage device is connected to a host system. The function of the data storage device is to accept data and store the data until it is needed again by a user or a host. Depending on the computer process being performed, the data storage device can be configured to accept a burst of data, so the data storage device is configured with a plurality of memory cells that provide various states of use. Certain sections of the data storage device are configured to provide a memory system that provides fast behavior (low latency) so that the computer process can be implemented quickly. This low latency performance can be achieved by a single-level cell (SLC) memory configuration. If a large amount of data needs to be stored, there can also be a multi-level cell memory configuration, such as a triple-level cell (TLC) memory configuration. The data storage device may have an interface that allows the data storage device to be connected to a host. As a non-limiting embodiment, the interface may be a statistical analysis system (SAS) interface or a serial ATA (SATA) compatible interface. The memory storage device may have a configuration that allows plug-and-play capabilities. Although described as having a SATA compatible interface, the memory storage device may be provided with a configuration that allows access via wireless technology. In a non-limiting embodiment, 802.11ac technology may be used to provide fast performance for smooth streaming. Wireless technology may use frequencies, such as between 2.5Ghz and 5GHz, for connection. In some embodiments, the data storage device may allow a user to select the frequency of the wireless connection. Although described as SATA compatible, other types of interfaces may be used.
[0030] Auxiliary connectors may be provided to the data storage device to allow for an additional option for inputting data directly to the data storage device without interfacing with the host. Such direct input of data may be provided by placing an integrated secure digital card to offload or copy data. Other auxiliary connectors may be provided for additional IO operations. Such connectors may be USB 2.0, USB 3.0, FireWire or other hardwired configurations. Gigabit Ethernet interfaces and connectors may also be used.
[0031] The data storage device may be configured with a separate power supply, or may be operated by other power supply components such as from a computer motherboard. In some embodiments, an internal battery may be provided to power the data storage device as an independent entity. Such a configuration may be provided so that the data storage device is a portable unit. In such a data storage device configuration, the power supply component may be sufficient to power a host and / or charge a host such as a mobile cellular phone, a personal computer, a tablet computer, a camera or other configurations. The data storage device may also have a battery indicator to allow a user to understand the amount of power in the data storage device from a visual inspection. An example battery indicator may be a light emitting diode technology with low power consumption. In a particular embodiment, the data storage device may be provided with a circuit that allows charging and prevents the system from overcharging if the data storage device is connected to an external power supply for an extended period of time. In some embodiments, a circuit may be used to determine whether the storage system has reached an inactive threshold, so that the system enters a low power consumption mode and saves battery power.
[0032] In one non-limiting embodiment, a controller is provided to control the behavior of the data storage device as required by the host. The controller may also be configured to perform maintenance activities on the data storage device to allow efficient use.
[0033] Internal software may be provided on the data storage device to allow for efficient storage and read capabilities of data on the system. Such internal software may be used so that the data storage device may be used as a portable media server to wirelessly stream media to a host or output device. Such output devices may include, but are not limited to, smart televisions, smart phones, stereo audio systems. Internal software may also be provided so that data may be accessed by a cloud application designed to interface with the data storage device.
[0034] The internal software of the data storage device may also be configured to provide security for the data storage device. Security protection of the material provided on the data storage device prevents unauthorized access to sensitive information contained on the system. Such security may take the form of password protection such as Wi-Fi password protection. In some embodiments, the data storage device may be configured with software that allows the data storage device to create a hardware lock. Such a hardware lock may prevent access through a USB connector.
[0035] The internal software may also be able to provide diagnostic support to the user. In such a configuration, two different modes may be provided. A quick test software program may be provided with the ability to check the data storage device for major performance issues. A full test mode may also be provided to provide detailed status information to the user. For example, such status information may be the total amount of memory of the data storage device, the number of memory storage devices used, the storage partitions provided on the data storage device, the firmware version of the internal software, memory block errors, and similar data. The internal software may also have the ability to accept data to update the firmware of the internal software.
[0036] The internal software may also function as a server system, with in certain embodiments incorporating software that enables the Digital Living Network Alliance (DLNA). Such software allows for fast file transfer and error checking operations as with a server. In some embodiments, the internal software may be provided with the ability to use the File Transfer Protocol (FTP) to enable content to be transferred to and from the memory storage device in a publicly accessible folder. The data storage device may also provide secure login or anonymous login capabilities.
[0037] In certain embodiments, the data storage device may be configured to allow the system to interact with a cloud storage system. In the event that the data storage device approaches the storage capacity limit, the data storage device may allow some of the data to be stored on a cloud-based system. The selection of data to be stored on such an external storage system may be managed by a controller configured to determine which segment of the data may be appropriately stored in a cloud-based system to minimize latency for the user. The storage system may have a unique identifier media access control (MAC) address and device name to allow the system to operate on an independent basis. The storage system may also be operable to allow the system to clone the configuration of the MAC address of the computer to which it is attached.
[0038] The overall capacity of the data storage device can vary according to the different embodiments provided. As a non-limiting embodiment, a capacity of 1TB, 2TB, and up to 64TB can be provided. Different form factors can also be provided. In some embodiments, a 2.5-inch form factor is provided. Other form factors such as 1.8 inches or 3.5 inches can also be used. As a non-limiting embodiment, compatibility of the data storage device can be provided for Windows operating systems, Windows servers, Linux, and Mac OS. Example Windows operating systems that can use this system can be Windows 10, Windows 8, and Windows 7. As a non-limiting embodiment, example Mac OS systems can be Lion (Mac OSA 10.7), Mountain Lion (Mac OS10.8), Yosemite (Mac OS10.10), El Capitan (Mac OS10.11), Sierra, and Mavericks. In a non-limiting embodiment, the supported browsers for the storage system can be Internet Explorer, Safari, Firefox, and Google Chrome.
[0039] In an example embodiment, as an industry change from HDDs to SSDs occurred in computer operations, the speed of operation increased. Advantageously, SSDs do not use moving parts for data access and therefore provide superior operation compared to HDDs. However, SSDs require garbage collection of old data to avoid data loss. A process known as write amplification is an undesirable phenomenon associated with flash memory in which the actual amount of physical information that has been written is a multiple of the logical amount that will be written. As more writes occur due to the write amplification process, the drive experiences a reduction in lifespan since the drive has a fixed program and erase (PE) count.
[0040] Garbage collection presents a considerable challenge to the quality of service (QoS) of an SSD because the SSD must ensure that non-host data is recycled. In some industries, SSDs place a premium on performance, so low latency is of paramount importance. In other industries, the quality of data retention is more important, so speed is less of a concern than data quality. For most users, a compromise is typically made between quality of service and performance. Aspects of the present disclosure provide methods that allow for adaptable performance of an SSD, for example, to ensure that quality of service is maintained, as well as maintaining adequate performance.
[0041] Value Limitation
[0042] For definition purposes, the page size Ω is defined as the atomic unit of data transfer within the drive. The page size is measured in multiples or 4096 or 4k.
[0043] The write amplification α of a solid-state drive is the ratio of the total number of flash writes to the total number of host-issued writes.
[0044] SSDs allocate a certain amount of internal memory as a write cache Ξ to enhance write performance. The cache contains writes that have not yet been written to the flash memory but are guaranteed to complete in the event of an unexpected event such as a power failure.
[0045] The queue depth ψ of a workload is defined as the maximum number of commands that the host program can send to the drive at any given moment.
[0046] The R / W mix of the workload is defined as the ratio of the total number of reads to writes that the host program always maintains. For example, if the ratio is 75 / 25 and the host program has sent 12 commands to the drive, 9 of them will be read and the other 3 will be written.
[0047] The workload block size is the transfer unit that the host program uses to operate on the drive. The read and write block sizes are denoted as B and B, respectively. r and B w , where subscript r is read and w is write. The host program can send different block sizes over any constant interval t. The block size of the workload is interpreted as the average of all different block sizes over t. B r and B w Used to represent the average read and write block size over interval t. The value of can be limited to the block size for read or write operations.
[0048]
[0049]
[0050] In terms of logical pages that the host program uses to operate on the drive, the block is aligned to B A is a measure of the address. In general, if B A =B rw , then the workload is said to be aligned and is denoted as B AΞ , while for other values, the workload is considered to be misaligned and is expressed as
[0051] The address mode is the range of logical block addresses (LBAs) that the host program issues to the drive. These ranges can be classified as random and sequential.
[0052] Latency is measured as the total interval between the time a single IO command is first submitted by the host to the operating system or drive and the time it is completed. r and L w Represents the latency of reading and writing respectively.
[0053] The IOPS of a drive is defined as the total number of IOs completed per time unit. Similarly, the bandwidth BW of a drive is the total amount of data transferred per unit time. Typically, time is measured in seconds.
[0054]
[0055] BW RW =IOPS RW XB RW EQ.3
[0056] Linear regression is defined as a method for modeling the relationship between a single output variable y and several different input variables x. The output of linear regression is a model of the following form:
[0057] y=θ0+θ1x0 a x1 b …x n z +…+θ N x0 a x1 b …x n z EQ4
[0058] Aspects of the present disclosure use supervised learning based throttling mechanisms to provide a scalable approach to providing IO consistency. The described aspects work in a continuous domain and are scalable across several workloads. For complex workloads (e.g., workloads with mixed block sizes), performance requirements are maintained without leveraging IO consistency.
[0059] Let element S be any SSD. Let R max and W max For The maximum possible IOPS of S at B r =B w =Ω. For any given workload, latency increases linearly above any queue depth ψ, where R max and / or W max The delay and This queue depth is denoted as the workload’s saturation queue depth or ψ sat . is lower than ψ satThere can be a nonlinear relationship between queue depth and latency.
[0060] For a given block size R′ max and W′ max , B′ rw >Ω and We also define an effective queue for the workload. Let ψ r =ψ x P r and ψ w =ψ x P w are the effective read and write queue depths for the workload. Based on the assumption that the host program honors the remix of the workload, these numbers represent the approximate number of reads and writes active in the drive at any particular moment.
[0061] Minimum system-imposed delay μ rw is the minimum delay in S under the assumption of infinite write cache and infinite fast memory. The base delay of S is the delay experienced by the system at the value of ψ=1.
[0062]
[0063]
[0064] Note that the above equation ignores the fact that for any ψ = ψ sat Finally, the second-order linear regression model is defined as:
[0065] y=θ0x 2 +θ1x+θ2 EQ.7
[0066] Two (2) models were defined with EQ.8 (Model 1) and EQ.9 (Model 2):
[0067]
[0068]
[0069] where φ rw [x] is defined as the amplification factor used to amplify the calculated latency. This factor [x] allows the second-order model to be expressed as a high-order equation that retains simplicity. As a non-limiting example, one of two different models can be selected based on whether reads dominate the workload. For this non-limiting example, the rule can be that if reads are less than 50%, then use model 1 (Equation 8). In other instances, use model 2 (Equation 9).
[0070] For any workload, the expected read and write latency L′ is calculated as follows rw :
[0071]
[0072]
[0073] These are the expected latencies that the system will experience given the workload, assuming the system behaves in an ideal manner. These latencies do not guarantee IO consistency. Figure 1 , two models (Model 1 and Model 2) are shown in the representation of the figure.
[0074] The amplification factor φ is calculated by using a linear regression model rw Then the final delay is calculated as follows:
[0075] L″ r =L′ r xφ r [x] EQ.12
[0076] L″ w =L′ w xφ w [x] EQ.13
[0077] These latencies are then fed to the firmware as completion latencies. Any commands that complete before these will wait in the firmware and will not be completed to the host. This helps other firmware activities like garbage collection to catch up and frees up time for the CPU to help with IO consistency.
[0078] Next, calculate the coefficient θ n The value σ is the maximum deviation of the IOPS from the mean. This value defines the IO consistency. Next, let x be the maximum performance degradation that may occur due to a drive without throttling. Performance values from several workloads in the absence of throttling are calculated and tabulated. Gradient descent is used to adjust θ based on a cost function in terms of x and σ. Once the value of θ is established, a test workload is run to check whether the model remains compliant and provides a good fit to the data. Once the learning process has been deemed complete, the code used to learn the model can be disabled or removed. Therefore, by this behavior, overhead is minimized.
[0079] If requirements change with different installations, the learning process can be reactivated. Since this method does not interfere with the drive architecture, this method does not change the endurance of the drive. As the drive ages, depending on the NAND characteristics, the learning may or may not need to be reactivated.
[0080] Another consideration for the described systems and methods is to adapt the system to unusual events. In some embodiments, the firmware may enter an undesirable state. A dynamic throttling mechanism can handle this scenario by having closed-loop feedback determine whether this balance is activated. Depending on this, the delay can be adjusted in a short amount of time (in possibly discrete steps).
[0081] refer to Figure 3 , shows a graph of random R / W, 4KiB with 0% reads per input-output operations per second per time unit (multiple seconds). As provided, the values of input and output operations per second vary along the entire time (x) axis without using the algorithm. Reference Figure 4 , with the algorithm enabled, the value of input-output operations per time unit per second is relatively constant along the entire time (x) axis.
[0082] refer to Figure 5 , for the 30% read IOPS parameter, the graph along the time (x) axis indicates the variability along the time (x) axis without using the algorithm. Figure 6 , when the algorithm is enabled (for Figure 5 The value of input and output operations per time unit per second is relatively constant along the entire time (x) axis.
[0083] refer to Figure 7 , without using the algorithm, for 50% read per second input and output operations, the plot along the entire time (x) axis shows considerable variability. Figure 8 , in (for Figure 7 In the case of an algorithm enabled with the data in ( ), after a first period of variability, the variability decreases over time toward the end of the time (x) axis.
[0084] refer to Figure 2 , shows an apparatus 200 configured to implement the described method. A host 202 is provided in a connection arrangement to a firmware 204, which in turn is connected to a flash memory 216. Commands are obtained from the host 202 and sent to a workload detection engine 206 and a command distributor 208. The command distributor 208 is connected to a host responder 210, which responds to the host 202 with the completed command. The workload detection engine 206 is connected to a throttling engine 212, which provides a calculated throttling latency to the host responder 210. In one embodiment, the workload detection engine 206 can be a component for calculating read and write latencies. The command distributor 208 is connected to a command processor 214. In one embodiment, the command processor 214 can be a component for calculating an amplification factor. In another embodiment, Figure 2The other components of the command processor 214 can be combined into a command processor 214 to calculate the expected read latency and write latency. In other embodiments, the processor 214 can be used to calculate the final read and write latency. The connection between the command distributor 208 and the command processor 214 allows two (2) way communication. The command processor 214 is connected to a flash memory 216 with input and output capabilities.
[0085] In one non-limiting embodiment, an apparatus for supervised learning with closed-loop feedback of a solid-state drive is disclosed, the apparatus comprising a workload detection engine configured to receive input commands from a host; a command distributor configured to receive input commands from a host; a flash memory having a connector for receiving and sending data; a command processor connected to the command distributor, the command processor configured to execute commands provided by the command distributor, the command processor being connected to the flash memory via a connector; an engine configured to receive a set of data from the workload detection engine, the engine configured to calculate a throttling latency of the solid-state drive; and a host responder connected to the command distributor and the engine, the host responder configured to respond to the host with a completed command.
[0086] In another non-limiting embodiment, the apparatus may be configured wherein the engine is a throttled engine.
[0087] In another non-limiting embodiment, the apparatus may be configured wherein the set of data from the workload detection engine is the current workload.
[0088] In another non-limiting embodiment, the apparatus may be configured wherein the flash memory is a NAND flash memory.
[0089] In another non-limiting embodiment, the apparatus may be configured wherein the throttling engine is coupled to the command processor.
[0090] In another non-limiting embodiment, the apparatus may be configured wherein the throttling engine provides a throttling delay to the command processor.
[0091] In another non-limiting embodiment, the apparatus may be configured wherein the flash memory is a NOR flash memory.
[0092] In another non-limiting embodiment, the apparatus may be configured wherein the flash memory is a vertical NAND flash memory.
[0093] In another non-limiting embodiment, a method for improving the input and output consistency of a solid-state drive is disclosed, the method comprising: calculating the minimum system-imposed read and write latency of the solid-state drive; calculating the expected read latency and the expected write latency of the solid-state drive based on the minimum system-imposed read and write latency; calculating a magnification factor of a write operation and a magnification factor of a read operation based on a model; calculating a final read latency and a final write latency of the solid-state drive based on the calculated expected read latency and the calculated expected write latency and the amplification factor of the write operation and the amplification factor of the read operation; and operating the solid-state drive according to the final read latency and the write latency.
[0094] In another non-limiting embodiment, the method may be accomplished wherein the amplification factor for the write operation and the amplification factor for the read operation are calculated from a linear regression model.
[0095] In another non-limiting embodiment, the method may be performed wherein the linear regression model is a second order linear regression model.
[0096] In another non-limiting embodiment, the method may be performed where the minimum system-imposed read latency is calculated as:
[0097]
[0098] Where R′ max It is the maximum possible input / output read operations per second of the solid-state drive.
[0099] In another non-limiting embodiment, the method may be performed where the minimum system-imposed read latency is calculated as:
[0100]
[0101] Where W m ' ax It is the maximum possible input / output read operations per second of the solid-state drive.
[0102] In another non-limiting embodiment, the method may be implemented wherein calculating the expected read latency and the expected write latency of the solid state drive is based on the workload and the solid state drive operating under ideal conditions.
[0103] In another non-limiting embodiment, the method may be implemented wherein the second order linear regression model for the read operation has the following form:
[0104]
[0105] where φ r [x] is the read amplification factor, P r is the reading percentage and θn
[0106] The values are the supervised learning coefficients.
[0107] In another non-limiting embodiment, the method may be performed where the second order linear regression model for write operations has the following form:
[0108]
[0109] where φ w [x] is the write amplification factor, Pw is the write percentage, and θ n The values are the supervised learning coefficients.
[0110] In another non-limiting embodiment, the method may be performed where θ is calculated from the training data n value.
[0111] In another non-limiting embodiment, the method may be performed where θ is calculated from the training data n value.
[0112] In another non-limiting embodiment, a device for calculating a final write latency and a final read latency of a solid-state drive is disclosed, the device including a component for calculating a minimum system-imposed read and write latency of the solid-state drive; a component for calculating an expected read latency and an expected write latency of the solid-state drive based on the calculated minimum system-imposed read and write latency; a component for calculating an amplification factor of a write operation and an amplification factor of a read operation and a component for calculating a final read latency and a final write latency of the solid-state drive based on the calculated expected read latency and expected write latency and the amplification factor of the write operation and the amplification factor of the read operation; and a component for operating the solid-state drive to perform a read operation and a write operation based on the final read latency and the final write latency.
[0113] In another non-limiting embodiment, the apparatus may be configured wherein the means for calculating the amplification factor uses a regression model.
[0114] In another non-limiting embodiment, the device may be configured wherein the regression model is a linear regression model.
[0115] In another non-limiting embodiment, the device may be configured wherein the linear regression model is a second order linear regression model.
[0116] In another non-limiting embodiment, a method for operating a solid-state drive is disclosed, the method comprising: calculating at least one of minimum system-imposed read and write latencies of the solid-state drive; calculating at least one of an expected read latency and an expected write latency of the solid-state drive based on the minimum system-imposed read and write latencies of the solid-state drive; calculating at least one of a magnification factor for a write operation and a magnification factor for a read operation; calculating at least one of a final read latency and a write latency of the solid-state drive based on the calculated expected read latency and expected write latency and at least one of the amplification factor for the write operation and the amplification factor for the read operation; and operating the solid-state drive so that operation of the solid-state drive does not exceed at least one final read latency and write latency of the solid-state drive.
[0117] In another non-limiting embodiment, the method may be performed wherein the amplification factor is calculated from a linear regression model.
[0118] In another non-limiting embodiment, the method may be performed wherein the linear regression model is a second order linear regression model.
[0119] In another non-limiting embodiment, a method for operating a solid-state drive is disclosed, the method comprising: calculating one of minimum system-imposed read and write delays of the solid-state drive; calculating one of an expected read delay and an expected write delay of the solid-state drive based on one of the minimum system-imposed read and write delays of the solid-state drive; calculating one of a magnification factor for a write operation and a magnification factor for a read operation; calculating one of a final read delay and a final write delay of the solid-state drive based on the calculated expected read latency and the calculated write latency and the calculated amplification factor for the write operation and the amplification factor for the read operation; and operating the solid-state drive according to the final read latency and the write latency.
[0120] In another non-limiting embodiment, the method may be performed wherein the magnification factor is based on a linear regression model.
[0121] Although embodiments have been described herein, those skilled in the art who have benefited from this disclosure will appreciate that other embodiments that do not depart from the inventive scope of the present application are conceivable. Accordingly, the scope of this claim or any subsequent related claims should not be overly limited by the description of the embodiments described herein.
Claims
1. A device for supervised learning using closed-loop feedback of a solid-state drive, the device include: a workload detection engine configured to receive input commands from a host; a command distributor configured to receive the input command from the host; a flash memory having connections for receiving and sending data; a command processor connected to the command distributor, the command processor being configured to carry out commands provided by the command distributor, the command processor being connected to the flash memory through the connection; an engine configured to receive a set of data from the workload detection engine, the engine configured to calculate a throttling latency of the solid-state drive; as well as a host responder connected to the command distributor and the engine, the host responder configured to respond to the host with the completed command, wherein the workload detection engine is configured to: calculating minimum system-imposed read and write latencies for the solid-state drive; calculating an expected read latency for the solid-state drive based on the minimum system-imposed read latency; calculating an expected write latency for the solid-state drive based on the minimum system-imposed write latency; Calculating an amplification factor of a write operation and an amplification factor of a read operation based on the model; calculating a final read latency of the solid-state drive based on the calculated expected read latency and a magnification factor of the read operation; and A final write latency of the solid-state drive is calculated based on the calculated expected write latency and a magnification factor of the write operation.
2. The apparatus of claim 1, wherein the engine is a throttled engine.
3. The apparatus of claim 1, wherein the set of data from the workload detection engine is a current workload. The device of claim 1 , wherein the flash memory is a NAND flash memory.
5. The apparatus of claim 2, wherein the throttling engine is connected to the command processor.
6. The apparatus of claim 5, wherein the throttling engine provides a throttling delay to the command processor.
7. The device of claim 1, wherein the flash memory is a NOR flash memory.
8. The apparatus of claim 1, wherein the flash memory is a vertical NAND flash memory. 9 . The apparatus according to claim 1 , wherein a model for calculating the amplification factor of the write operation and the amplification factor of the read operation is a linear regression model.
10. The apparatus of claim 9, wherein the linear regression model is a second-order linear regression model.
11. The apparatus of claim 10, wherein the second-order linear regression model of the read operation has the following form: f r [x]=θ 0 P r 2 +θ 1 P r 2 +θ 2 where φ r [x] is the read amplification factor, P r is the reading percentage, and θ n The values are the supervised learning coefficients, where n is 0, 1, or 2.
12. The apparatus according to claim 11, wherein the θ is calculated from training data n value.
13. The apparatus according to claim 10, wherein the second-order linear regression model of the write operation has the following form: f w [x]=θ 0 P w 2 +θ 1 P w 2 +θ 2 where φ w [x] is the write amplification factor, P w is the write percentage, and θ n The values are the supervised learning coefficients, where n is 0, 1, or 2.
14. The apparatus of claim 13, wherein the θ is calculated from training data n value.
15. The apparatus of claim 1, wherein the minimum system-imposed read latency is calculated as follows: Where R' max is the maximum possible input-output read operations per second of the solid-state drive.
16. The apparatus of claim 1, wherein the minimum system-imposed write latency is calculated as follows: Where W' max is the maximum possible input-output write operations per second of the solid-state drive.
17. The apparatus of claim 1, wherein calculating the expected read latency and the expected write latency of the solid state drive is based on workload.
18. The apparatus of claim 1, wherein the host responder is configured to throttle sending of one or more completed commands to the host.
19. The apparatus of claim 18, wherein the host responder throttles operations based on not exceeding the final read latency and the final write latency.
