Dynamically adjusted waste collection workload
By recording the idle time of the memory device and dynamically dividing the scrap collection workload, the conflict problem of the memory device under continuous and burst workload is solved, reducing write amplification and extending the life of the memory array, improving the user experience.
Patent Information
- Application Number
- CN202010928134.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-09
- Filing Date
- 2020-09-07
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-09-07
AI Technical Summary
When existing memory devices perform scrap collection, they face conflicts between continuous workload and sudden workload, resulting in write amplification and impact on user experience. It is also difficult to effectively and dynamically adjust the scrap collection workload, affecting the life of the memory array and users. experience.
By recording the idle time of a memory device, derive metrics and split the current scrap collection workload into multiple parts, executing only part of the workload during the next idle time, maximizing idle cycles to reduce the total number of scrap collections and write amplification.
The impact of waste collection on user experience is effectively reduced, the service life of the memory device is extended, and the performance and user experience of the memory array are improved.
Smart Images

Figure CN112463648B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to memory devices, and in particular, to dynamically adjusting garbage collection workload. Background Art
[0002] Memory devices are typically provided as internal semiconductor integrated circuits in computers or other electronic devices. There are many different types of memory, including volatile and non-volatile memory.
[0003] Volatile memory requires power to maintain its data and includes random access memory (RAM), dynamic random access memory (DRAM), or synchronous dynamic random access memory (SDRAM), among others.
[0004] Non-volatile memory can retain stored data when no power is supplied, and includes flash memory, read-only memory (ROM), electrically erasable programmable ROM (EEPROM), static RAM (SRAM), erasable programmable ROM (EPROM), resistance variable memory (such as phase change random access memory (PCRAM)), resistive random access memory (RRAM) or magnetoresistive random access memory (MRAM), etc.
[0005] Garbage collection is a process in which invalid data segments are removed to free up the hardware holding the invalid data segments for new data. In a memory device having a NAND memory array, garbage collection typically involves copying valid (e.g., good) data in erase segments (units that can be erased, such as blocks) to new locations and erasing the erase segments. Once erased, the erase segments can be used for new data. Therefore, garbage collection plays an important role in maintaining free space on a NAND memory array. Summary of the invention
[0006] On the one hand, the present application provides a memory device for implementing a dynamically adjusted garbage collection workload, the memory device comprising: a processing circuit system; and a storage device, which contains instructions, which when executed by the processing circuit system configure the processing circuit system to: record an idle time of the memory device; derive a metric from the idle time; divide a current garbage collection workload into several parts based on the metric; and execute a first part of the parts at a next idle time.
[0007] On the other hand, the present application provides a method for dynamically adjusting garbage collection workload, the method comprising: recording idle time of a memory device; deriving a metric from the idle time; dividing a current garbage collection workload into several parts based on the metric; and executing a first part of the parts at the next idle time.
[0008] On the other hand, the present application provides a machine-readable medium comprising instructions for implementing a dynamically adjusted garbage collection workload, which, when executed by a processing circuit system, causes the processing circuit system to perform operations including: recording an idle time of a memory device; deriving a metric from the idle time; dividing a current garbage collection workload into several parts based on the metric; and executing a first part of the parts at a next idle time. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In the drawings, which are not necessarily drawn to scale, the same numerals may describe similar components in different views. The same numerals with different letter suffixes may represent different instances of similar components. The drawings generally illustrate various embodiments discussed in the present invention by way of example and not limitation.
[0010] Figure 1 An example of an environment including a memory device is described.
[0011] Figure 2 An example illustrating high steady-state device workload.
[0012] Figure 3 An example illustrating bursty device workload.
[0013] Figure 4 A flow chart illustrating an example of a method for dynamically adjusting garbage collection effort.
[0014] Figure 5 is a block diagram illustrating an example of a machine upon which one or more embodiments may be implemented. DETAILED DESCRIPTION
[0015] Garbage collection is not without cost. For example, because garbage collection involves reading valid data from one segment and writing it to another segment, garbage collection consumes memory device resources such as power, internal connection resources, and controller time. Therefore, if it is performed simultaneously with requests from the host, garbage collection will affect the user experience (for example, by increasing write time). In addition, the additional writes associated with garbage collection (called write amplification) will affect the life of the memory array. This is because NAND cells undergo physical changes with writing, with a typical NAND cell having a finite number of total writes before it is no longer effectively used. When write amplification is high, this wear on the NAND cell accelerates.
[0016] Some NAND-based memory devices use SLC cache to accelerate host writes. This can be beneficial due to the relatively fast throughput of SLC writes to MLC writes. For example, an SLC segment can support 500 megabits / second (MB / s) writes to a 150MB / s throughput of a TLC segment. Typically, host writes are first written to the SLC cache and then migrated to more densely coded cells in the NAND array. Garbage collection periodically releases SLC cache cells that have been migrated to enable additional fast host writes. Therefore, using an SLC cache generally provides a much better user experience, as long as the price of garbage collection can be paid. However, when the write workload often exceeds the SLC cache, there is no benefit at all and it may be a problem. Here, performance is lost due to the need to clear the cache (e.g., reducing the benefits of the cache), and the additional write amplification used to copy host data from the SLC cache to the more densely coded cells affects the life of the memory device.
[0017] Two different types of workloads may have conflicting optimization parameters in NAND devices, including NAND devices with SLC caches: sustained workloads and bursty workloads. Sustained workloads may include high workload queue depths where reads or writes that transfer large amounts of data (e.g., larger than the SLC cache if present) are being transferred. Sustained workloads are sometimes part of a host performance testing regime. Bursty workloads, commonly experienced in devices that frequently enter low power modes (e.g., mobile phones, IoT sensors, etc.), typically have a few short periods of heavy to moderate queue depths (when the device is awake and in use) followed by proportionally long periods of idle time.
[0018] In the context of garbage collection, these two different workload types present some challenges. For example, to reduce write amplification, waiting for garbage collection in a burst workload case can be beneficial because a long idle period can achieve a single copy of valid data instead of multiple copies of valid data. However, in a sustained workload, there may not be such a large idle period to complete garbage collection. In this case, the NAND array may run out of free blocks, or host writes may be paused to allow garbage collection to complete. Either of these results may adversely affect the user experience when using the memory device.
[0019] The above problems can be solved by dynamically adjusting the garbage collection workload. Here, the goal is to minimize the number of times garbage collection is run (e.g., to reduce write amplification) while trying to perform garbage collection only during idle periods (e.g., to reduce the impact of garbage collection on the user experience). Because there is typically no explicit signaling about whether a memory device is subjected to a sustained workload or a bursty workload, the size of the automatically executed portion of the garbage collection workload is dynamically adjusted based on observed idle cycles. Thus, a bursty workload with long idle periods results in a large garbage collection workload portion, while a sustained workload with typically small idle periods results in a small garbage collection portion. Once the garbage collection workload is allocated, its atomic fragments self-execute when idle time occurs.
[0020] Using this technique, any given portion of the garbage collection workload may be completed within the next idle time, which reduces the impact of the garbage collection operation on the user experience. In addition, by potentially consuming entire idle cycles, each execution of the garbage collection portion can maximize idle cycles to reduce the total number of garbage collection executions, thereby reducing write amplification. Additional examples and details are provided below.
[0021] To provide context for the memory device garbage collection systems and techniques described herein, the following elements may be useful. A memory device includes individual memory dies, which may, for example, include one or more memory cell arrays to implement a storage region of one (or more) selected storage technologies. Such a memory die will typically include support circuitry for operating the memory array. Other examples, sometimes often referred to as "managed memory devices," include an assembly of one or more memory dies associated with a controller functionality configured to control the operation of the one or more memory dies. Such controller functionality may simplify interoperability with external devices (as "hosts," as discussed later herein). In such managed memory devices, the controller functionality may be implemented on one or more dies that are also incorporated into the memory array, or on a separate die. In other examples, one or more memory devices may be combined with the controller functionality to form a solid-state drive (SSD) memory bank.
[0022] Embodiments of the present invention are described in the example of a managed memory device implementing NAND flash memory cells (referred to as a "managed NAND" device). However, these examples do not limit the scope of the present invention, which may be implemented in other forms of memory devices and / or using other forms of storage technology.
[0023] Each flash memory cell in a NOR or NAND architecture semiconductor memory array can be individually or collectively programmed to one or more programming states. For example, a single-layer cell (SLC) can represent one of two programming states (e.g., 1 or 0), representing one data bit. A flash memory cell can also represent more than two programming states, allowing higher density memory to be manufactured without increasing the number of memory cells, because each cell can represent more than one binary number (e.g., more than one bit). Such cells may be referred to as multi-state memory cells, multi-digit cells, or multi-layer cells (MLC). In a specific example, an MLC may refer to a memory cell that can store two data bits per cell (e.g., one of four programming states), a three-layer cell (TLC) may refer to a memory cell that can store three data bits per cell (e.g., one of eight programming states), and a quad-layer cell (QLC) may store four data bits per cell. MLC is used herein in its broader context to refer to any memory cell that can store more than one bit of data per cell (ie, can represent more than two programmed states).
[0024] The managed memory device may be configured and operated according to recognized industry standards. For example, the managed NAND device may be, as a non-limiting example, a Universal Flash Storage (UFS) TM ) device or embedded MMC device (eMMC TM ), etc. For example, in the case of the above example, the UFS device may be configured according to a Joint Electronic Device Engineering Council (JEDEC) standard (e.g., JEDEC standard JESD223D entitled JEDEC UFS Flash Storage 3.0, etc., and / or an update or subsequent version of this standard). Similarly, the identified eMMC device may also be configured according to JEDEC standard JESD84-A51 entitled "JEDEC eMMC standard 5.1", and / or an update or subsequent version of this standard.
[0025] SSDs are particularly useful as primary storage devices for computers that have advantages over traditional hard disks with moving parts in terms of, for example, performance, size, weight, durability, operating temperature range, and power consumption. For example, SSDs may have reduced seek times, latency, or other delays (e.g., electromechanical, etc.) associated with magnetic disk drives. SSDs use non-volatile memory cells (e.g., flash memory cells) to eliminate internal battery supply requirements, allowing the drive to be more functional and compact. Managed memory devices (e.g., managed NAND devices) may be used as primary or secondary memory in various forms of electronic devices, and are commonly used in mobile devices.
[0026] Both SSDs and managed memory devices may include several memory devices (including several dies or logical units (such as logical unit numbers or LUNs)), and may include one or more processors or other controllers that perform logical functions required to operate the memory devices or interface with external systems. Such SSDs and managed memory devices may include one or more flash memory dies, which include several memory arrays and peripheral circuitry thereon. The flash memory array may include several blocks of memory cells organized into several physical pages. In some examples, the SSD may also include DRAM or SRAM (or other forms of memory dies or other memory structures). Similarly, managed NAND devices may include one or more volatile and / or non-volatile memory arrays that are separate from the NAND storage arrays and within or separate from the controller. Both SSDs and managed NAND devices may receive commands associated with memory operations from a host, such as read or write operations to transfer data (such as user data and associated integrity data, such as error data and address data, etc.) between the memory device and the host, or erase operations to erase data from the memory device.
[0027] Figure 1 An example of an environment 100 including a host device 105 and a memory device 110 configured to communicate via a communication interface is described. The host device 105 or the memory device 110 may be included in various products 150, such as Internet of Things (IoT) devices (e.g., refrigerators or other appliances, sensors, motors or actuators, mobile communication devices, cars, drones, etc.) to support processing, communication, or control of the product 150. Figure 2 Provides more details on adjustable NAND write performance using SLC encoding.
[0028] Memory device 110 includes a memory controller 115 and a memory array 120, which includes, for example, several individual memory dies (e.g., a stack of three-dimensional (3D) NAND dies). In 3D architecture semiconductor memory technology, vertical structures are stacked to increase the number of layers, physical pages, and accordingly increase the density of memory devices (e.g., storage devices). In an example, memory device 110 may be a discrete memory or storage device component of host device 105. In other examples, memory device 110 may be a part of an integrated circuit (e.g., a single chip system (SOC) or the like) stacked or otherwise included with one or more other components of host device 105. In these examples, memory device 110 communicates with host device 105 components via interconnect 111 (e.g., a bus). Therefore, as described herein, the host or host device 105 operation is different from the operation of memory device 110, even if memory device 110 is integrated into host device 105.
[0029] One or more communication interfaces (e.g., interconnect 111) may be used to transfer data between memory device 110 and one or more other components of host device 105, such as a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a Universal Flash Storage (UFS) interface, an eMMC interface, or a SATA interface. TM interface or one or more other connectors or interfaces. Host device 105 may include a host system, an electronic device, a processor, a memory card reader, or one or more other electronic devices external to memory device 110. In some examples, host 105 may be a Figure 5 The machine 500 may include some or all of the components described herein.
[0030] The memory controller 115 may receive instructions from the host 105 and may communicate with the memory array 120 to, for example, transfer (e.g., write or erase) data to or from one or more of the memory cells, planes, sub-blocks, blocks, or pages of the memory array 120. The memory controller 115 may include, among other things, circuitry or firmware (including one or more components or integrated circuits). For example, the memory controller 115 may include one or more memory control units, circuits, or components configured to control access across the memory array 120 and provide a translation layer between the host 105 and the memory device 110. Although the memory controller 115 is illustrated herein as being part of the memory device 110 package, other configurations may be employed, such as the memory controller 115 being a component of the host 105 (e.g., as a discrete package on a system-on-a-chip of the host 105 that is separate from the memory service 110), or even being implemented via a central processing unit (CPU) of the host 105.
[0031] The memory manager 125 may include, among other things, circuitry or firmware, such as a number of components or integrated circuits associated with various memory management functions. For purposes of the present invention, example memory operations and management functions will be described in the context of NAND memory. Those skilled in the art will recognize that other forms of non-volatile memory may have similar memory operations or management functions. Such NAND management functions include wear leveling, garbage collection, waste recycling, error detection or correction, block retirement, or one or more other memory management functions. The memory manager 125 may parse or format host commands (such as commands received from a host) into device commands (such as commands associated with operation of the memory array 120, etc.), or generate device commands for the array controller 135 or one or more other components of the memory device 110 (e.g., to accomplish various memory management functions).
[0032] As mentioned above, the memory manager 125 may be responsible for garbage collection. In order to implement a dynamic garbage collection workload, the memory manager 125 is configured to record the idle time of the memory device 110. In an example, the idle time is any time exceeding a threshold where the command queue of the memory controller 115 is empty. In an example, the threshold is 10 milliseconds. Other idle triggers may include the command queue having less than a threshold number of commands or less than a threshold amount of data being read or written.
[0033] In an example, to record idle time, the memory manager 125 is configured to maintain a data structure (e.g., a log) in which entries include the duration of the idle time. In an example, the entry also includes the time or date in which the idle time is recorded. Recording the time or date can enable analysis to predict idle periods, which can help with garbage collection workload partitioning or sequencing, as mentioned below.
[0034] The memory manager 125 is configured to derive a metric from the recorded idle time. In an example, the metric is an idle duration average. In an example, the average is a weighted average weighted by the age of the entries. In an example, the weighted average is calculated as follows:
[0035]
[0036] Where n is the number of idle times considered and L is the length of the idle time. For example, if the idle record has 10 entries L1, L2, ..., L10, where L1 is the most recent entry, then by A weight is calculated. This weight can be used directly to partition the garbage collection workload by, for example, multiplying the weight by the available garbage collection work to do to select the amount of work to do during the next idle cycle.
[0037] In an example, a contiguous subset of all idle times including the last idle time is used to derive the metric. Here, the subset represents a sliding window in which older idle time entries are not considered. This can effectively manage changes in workload types (e.g., from continuous to bursty) by "forgetting" the characteristics of idle periods outside the window.
[0038] In an example, as part of deriving the metric, a ratio between the idle time and the occupied time of the memory device is calculated. This ratio can help determine whether the current workload is more similar to a burst type workload or a continuous type workload. When the ratio of idle time to occupied time is high, the memory device 110 may be experiencing a burst workload. When the ratio is low, it is more likely to be a continuous workload.
[0039] In an example, as part of deriving the metric, an idle rate is calculated. In an example, the idle rate is determined from an input-output event counter of the memory device. The idle rate is similar to the idle time ratio discussed above in that it is characterized by aspects of the idle pattern. Therefore, if the idle rate is higher, there is more opportunity to perform garbage collection work. However, as mentioned above, it is generally not desirable to run garbage collection every time an idle cycle occurs because this will increase write amplification.
[0040] The memory manager 125 is configured to partition the current garbage collection workload into several parts based on a metric. Here, the garbage collection workload is a measurement or estimate of operations used to free up space in the memory array 120. Partitioning the garbage collection workload involves partitioning these operations into several groups, where the operations in a group are performed at a time (e.g., serially or in parallel).
[0041] In an example, not all operations within the garbage collection workload are equally effective in balancing the reduction of write amplification, reducing the impact on the user experience, and freeing up space on the memory array 120. For example, operations that free up SLC cache can have a greater impact on improving host 105 write performance. Therefore, in an example, portions of the garbage collection workload are sorted such that garbage collection of write caches (e.g., SLC caches) is prioritized. Other sortings may also be used, such as to maximize free space, minimize write amplification, etc.
[0042] The memory manager 125 is configured to perform a first portion of the portion of the garbage collection workload at the next idle time. When the portions are ordered, the first portion represents the garbage collection operation with the highest value in the ordering used. In this way, the most efficient garbage collection operation is performed first. In an example, the portions are randomized and the first portion is the first randomly selected portion. Here, randomization can prevent arithmetic problems that may occur when there is no clear priority of garbage collection operations (e.g., this is unknown or they are all equal given known information).
[0043] In an example, the memory manager 125 is configured to verify that the first portion exceeds the threshold based on the metric before executing it. Thus, if the garbage collection portion does not exceed the threshold, the portion will not be executed. This solves a problem that may occur when the idle period is small. Here, the segmentation of the garbage collection workload may result in such small portions that the effect of running the workload is negligible relative to the freed space (e.g., it is equivalent to not running the workload at all) and consumes too much time or power to complete. By using this threshold, the memory manager 125 can determine whether to skip executing the workload portion to provide better overall performance of the memory device 110. The above determination of whether the memory device 110 is experiencing a burst or continuous workload can be used to establish a threshold. For example, if the memory device 110 is experiencing a continuous workload, a smaller portion can be tolerated because it may extend the amount of time that the continuous workload can be processed before interrupting the execution of necessary garbage collection. In contrast, during a burst workload, it may be close to extending the idle period, where the newly assigned garbage collection task will result in more efficient garbage collection execution. Both the ratio of idle to occupied time and the frequency of idle periods can be used to make this assessment and adjust the threshold.
[0044] The dynamic garbage collection workload technique described herein provides several advantages over other methods. For example, conventional garbage collection typically performs a fixed number of operations only during idle cycles or when free space drops below a threshold. The first method may not fully utilize long idle cycles and affect the user experience during short idle cycles. In addition, write amplification can be a problem if running on a schedule. Other methods (such as mapping activity frequencies to predict future idle cycles) may require a large amount of computation and still fail to properly address the actual workload that fits the idle cycle. Instead, the idle cycle averaging technique provides an efficient computational approach to maximize the workload that still fits the possible idle cycle.
[0045] The time window or weighting technique enables monitoring and garbage collection workload segmentation capabilities to dynamically adjust according to changing workloads, such as from continuous to burst workloads or back again. For example, if the idle time is short, the memory device 110 may be heavily used by benchmarks, recovery, streaming media, etc. (such as continuous workloads). Here, it is best to suppress garbage collection to limit its impact on device performance, thereby achieving a better user experience and reducing the impact on heavier workloads. The reason for achieving this is that the weighting function produces small values due to small idle periods, resulting in a small garbage collection workload portion. However, if the idle time is large, the memory device 110 will not be heavily used (such as burst workloads). In this case, a large amount of garbage collection work is appropriately performed during the idle period because it does not interfere with the user experience. In the case of an SLC cache architecture, a large garbage collection portion can clear most or all of the SLC cache to achieve the highest user performance in the next burst.
[0046] The memory manager 125 may include a set of management tables 130 configured to maintain various information associated with one or more components of the memory device 110, such as various information associated with a memory array or one or more memory cells coupled to the memory controller 115. For example, the management table 130 may include information about block age, block erase count, error history, or one or more error counts (e.g., write operation error count, read bit error count, read operation error count, erase error count, etc.) of one or more blocks of memory cells coupled to the memory controller 115. In a specific example, if the number of detected errors of one or more of the error counts is above a threshold, the bit error may be referred to as an uncorrectable bit error. The management table 130 may, among other things, maintain counts of correctable or uncorrectable bit errors. In an example, the management table 130 may include a translation table or a logical to physical (L2P) mapping.
[0047] The array controller 135 may include, among other things, circuitry or components configured to control memory operations associated with writing data to, reading data from, or erasing one or more memory cells of a memory device 110 coupled to the memory controller 115. The memory operations may be based on host commands (e.g., associated with wear leveling, error detection or correction, etc.) received from the host 105 or generated internally by the memory manager 125, for example.
[0048] The array controller 135 may include an error correction code (ECC) component 140, which may include, among other things, an ECC engine or other circuitry configured to detect or correct errors associated with writing data to or reading data from one or more memory cells of the memory device 110 coupled to the memory controller 115. The memory controller 115 may be configured to actively detect and recover from error occurrences (e.g., bit errors, operation errors, etc.) associated with various operations or storage of data based on ECC data maintained by the array controller 135. This enables the memory controller 115 to maintain the integrity of data transferred between the host 105 and the memory device 110 or to maintain the integrity of stored data. Part of this integrity maintenance may include removing (e.g., retiring) failed memory resources (e.g., memory cells, memory arrays, pages, blocks, etc.) to prevent future errors. RAIN is another technique that may be used by the memory device 110 to maintain data integrity. The array controller 135 may be arranged to implement RAIN parity data generation and storage in the array 120. The memory controller 115 may be involved in using the parity data to reconstruct the damaged data.
[0049] The memory array 120 may include a number of memory cells arranged into, for example, devices, planes, sub-blocks, blocks, or pages. As one example, a 48GB TLC NAND memory device may include 18,592 data bytes (B) per page (16,384+2208 bytes), 1536 pages per block, 548 blocks per plane, and 4 or more planes per device. As another example, a 32GB MLC memory device (storing two data bits per cell (i.e., 4 programmable states)) may include 18,592 data bytes (B) per page (16,384+2208 bytes), 1024 pages per block, 548 blocks per plane, and 4 planes per device, but with half the required write time and twice the program / erase (P / E) cycles of a corresponding TLC memory device. Other examples may include other numbers or arrangements. In some examples, a memory device or a portion thereof may be selectively operated in an SLC mode or in a desired MLC mode (eg, TLC, QLC, etc.).
[0050] In operation, data is typically written to or read from the NAND memory device 110 in pages and erased in blocks. However, one or more memory operations (e.g., read, write, erase, etc.) may be performed on larger or smaller groups of memory cells as desired. The data transfer size of the NAND memory device 110 is typically referred to as a page, while the data transfer size of the host is typically referred to as a sector.
[0051] Although a page of data may include several bytes of user data (e.g., a data payload including several sectors of data) and its corresponding metadata, the size of a page generally refers only to the number of bytes used to store the user data. As an example, a page of data having a page size of 4 KB may include 4 KB of user data (e.g., 8 sectors presenting a sector size of 512B) and metadata corresponding to several bytes of user data (e.g., 32B, 54B, 224B, etc.), such as integrity data (e.g., error detection or correction code data), address data (e.g., logical address data, etc.), or other metadata associated with the user data.
[0052] Different types of memory cells or memory arrays 120 may provide different page sizes or require different amounts of metadata associated therewith. For example, different memory device types may have different bit error rates, which may result in different amounts of metadata required to ensure the integrity of a page of data (e.g., a memory device with a higher bit error rate requires more error correction code data bytes than a memory device with a lower bit error rate). As an example, a multi-level cell (MLC) NAND flash device may have a higher bit error rate than a corresponding single-level cell (SLC) NAND flash device. Thus, an MLC device requires more metadata bytes for error data than a corresponding SLC device.
[0053] Figure 2 An example of a high steady-state device workload 200 is illustrated. As illustrated, a command queue depth 210 is shown over time 205. Here, the steady-state or persistent memory device workload is indicated by a small size (e.g., time 205) corresponding to an idle cycle 215. As mentioned above, in this case, the garbage collection workload will be divided into several similar small portions that may be completed during the idle cycle 215.
[0054] Figure 3 An example of a bursty device workload 300 is illustrated. Again, command queue depth 310 is plotted over time 305. Note that in the bursty workload 300, idle cycles 315 are more common than idle cycles 316. Figure 2 315. This will result in a relatively large portion of the garbage collection workload being run during the idle cycle 315. Also, it should be noted that the ratio of occupied cycles to idle cycles 215 and 315 is inverted between the sustained workload 200 and the burst workload 300. As mentioned above, this ratio can be used to determine what type of workload the memory device is experiencing, and can further affect how to split the garbage collection workload or whether to run a portion of the garbage collection workload smoothly during the next idle cycle 215 or 315.
[0055] Figure 4 A flow chart illustrating an example of a method 400 for dynamically adjusting garbage collection workload. The operations of the method 400 are performed by computing hardware. Examples of such computing hardware may include the Figure 1 The depicted memory controller 115 or other processing circuitry of the memory device 110 , other computer components, such as an external memory controller.
[0056] At operation 405, idle time of the memory device is recorded. In an example, the record includes an idle time log. In an example, the entry in the log includes the length of the idle time.
[0057] At operation 410, a metric is derived from the recorded idle times. In an example, a contiguous subset of all idle times including the last idle time is used to derive the metric. This is a sliding window format.
[0058] In an example, a ratio between idle time and occupied time of a memory device is calculated as part of deriving the metric.
[0059] In an example, the idle rate is calculated as part of the derived metric. In an example, the idle rate is determined from an input-output event counter of the memory device. In this example, the recording of operation 405 can be to update the event counter rather than maintain an idle event log.
[0060] In an example, an average of idle events may be calculated as part of the metric derivation. Here, averaging the idle time means averaging the length of the idle time. In an example, the average is a weighted average weighted by age. In an example, the weighted average is calculated as follows:
[0061]
[0062] Where n is the number of idle periods considered and L is the length of the idle period.
[0063] At operation 415, the current garbage collection workload may be divided into several parts based on the metric. In an example, the parts of the garbage collection workload are sorted so that garbage collection of the write cache is prioritized. In an example, the write cache is an SLC write cache.
[0064] At operation 420, a first portion of the portion of the garbage collection workload (from operation 415) is executed at the next idle time. In an example, executing the first portion of the portion at the next idle time includes verifying that the first portion exceeds a threshold based on the metric. In an example, if the garbage collection portion does not exceed the threshold, the portion is not executed.
[0065] Figure 5 A block diagram of an example machine 500 on which any one or more of the techniques (e.g., methodology) discussed herein can be executed is described. In alternative embodiments, the machine 500 may be operated as a standalone device or may be connected (e.g., networked) to other machines. In a networked deployment, the machine 500 may operate as a server machine or a client machine or both in a master-slave network environment. In an example, the machine 500 may act as a peer machine in a peer-to-peer (P2P) (or other distributed) network environment. The machine 500 may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a mobile phone, a network device, an IoT device, an automotive system, or any machine capable of (sequentially or otherwise) executing instructions specifying actions taken by the machine. In addition, although only a single machine is described, the term "machine" should also be deemed to include any collection of machines that individually or jointly execute one (or more) instruction sets to execute any one or more of the methodologies discussed herein (e.g., cloud computing, software as a service (SaaS), other computer cluster configurations).
[0066] As described herein, an example may include logic, components, devices, packages, or mechanisms, or may be operated by logic, components, devices, packages, or mechanisms. A circuit system is a collection of circuits (e.g., a group of circuits) implemented in a tangible entity that includes hardware (e.g., simple circuits, gates, logic, etc.). The membership of the circuit system can be flexibly adjusted over time and according to hardware variability. The circuit system includes members that can perform specific tasks individually or in combination when operating. In an example, the hardware of the circuit system can be constantly designed to implement specific operations (e.g., hard wiring). In an example, the hardware of the circuit system may include variably connected physical components (e.g., execution units, transistors, simple circuits, etc.), which include physically modified (e.g., magnetic, electrical, removable placement of constant mass particles, etc.) to encode computer-readable media of instructions for specific operations. In connecting physical components, the basic electrical properties of the hardware composition (e.g.,) change from an insulator to a conductor, or vice versa. The instructions enable participating hardware (e.g., execution units or load mechanisms) to generate members of the circuit system in the hardware via variable connections to implement parts of specific tasks when operating. Thus, when the device operates, the computer-readable medium is communicatively coupled to other components of the circuit system. In an example, any of the physical components can be used in more than one member of more than one circuit system. For example, under operation, an execution unit can be used in a first circuit of a first circuit system at one point in time and reused by a second circuit in the first circuit system or a third circuit in the second circuit system at a different time.
[0067] The machine (e.g., computer system) 500 (e.g., host device 105, memory device 110, etc.) may include a hardware processor 502 (e.g., a central processing unit (CPU), a graphics processing unit (GPU), a hardware processor core, or any combination thereof, such as memory controller 115, etc.), a main memory 504, and a static memory 506, some or all of which may communicate with each other via an interconnect (e.g., a bus) 530. The machine 500 may further include a display unit 510, an alphanumeric input device 512 (e.g., a keyboard), and a user interface (UI) navigation device 514 (e.g., a mouse). In an example, the display unit 510, the input device 512, and the UI navigation device 514 may be a touch screen display. The machine 500 may additionally include a storage device (e.g., a drive unit) 508, a signal generating device 518 (e.g., a speaker), a network interface device 520, and one or more sensors 516 (e.g., a global positioning system (GPS) sensor, a compass, an accelerometer, or other sensor). The machine 500 may include an output controller 528, such as a serial (e.g., Universal Serial Bus (USB)), parallel, or other wired or wireless (e.g., infrared (IR), near field communication (NFC), etc.) connection for communicating or controlling one or more peripheral devices (e.g., printer, card reader, etc.).
[0068] The storage device 508 may include a machine-readable medium 522 on which is stored one or more sets of data structures or instructions 524 (e.g., software) embodying or utilized by any one or more of the techniques or functions described herein. The instructions 524 may also reside, completely or at least partially, within the main memory 504, within the static memory 506, or within the hardware processor 502 during execution of the instructions by the machine 500. In an example, one or any combination of the hardware processor 502, the main memory 504, the static memory 506, or the storage device 508 may constitute the machine-readable medium 522.
[0069] Although machine-readable medium 522 is illustrated as a single medium, the term "machine-readable medium" may include a single medium or multiple media (such as a centralized or distributed database or associated caches and servers) configured to store one or more instructions 524.
[0070] The term "machine-readable medium" may include any medium capable of storing, encoding, or carrying instructions executed by the machine 500 and causing the machine 500 to perform any one or more of the techniques of the present invention or capable of storing, encoding, or carrying data structures used by or associated with such instructions. Non-limiting machine-readable medium examples may include solid-state memory and optical and magnetic media. In an example, a massed machine-readable medium includes a machine-readable medium having a plurality of particles with a constant (e.g., stationary) mass. Thus, a massed machine-readable medium is not a transient propagating signal. Specific examples of massed machine-readable media may include: non-volatile memory, such as semiconductor memory devices (e.g., electrically programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM)) and flash memory devices; magnetic disks, such as internal hard disks and removable magnetic disks; magneto-optical disks; and CD-ROM and DVD-ROM disks.
[0071] Instructions 524 (e.g., software, programs, operating systems (OS), etc.) or other data are stored on storage devices 508 and can be accessed by memory 504 for use by processor 502. Memory 504 (e.g., DRAM) is typically faster but volatile, and is therefore a different type of storage than storage devices 508 (e.g., SSDs), which are suitable for long-term storage (including in "off" conditions). Instructions 524 or data used by a user or machine 500 are typically loaded into memory 504 for use by processor 502. When memory 504 is full, virtual space from storage devices 508 can be allocated to supplement memory 504; however, because storage devices 508 are typically slower than memory 504 and write speeds are typically at most 1 / 2 the read speed, using virtual memory can significantly reduce the user experience (compared to memory 504 (e.g., DRAM)) due to storage device latency. In addition, using storage devices 508 for virtual memory can significantly shorten the usable life of storage devices 508.
[0072] Compared with virtual memory, virtual memory compression (e.g. The core feature "ZRAM") uses portions of memory as compressed block storage to avoid paging to storage 508. Paging occurs in compressed blocks until the data needs to be written to storage 508. Virtual memory compression increases the available size of memory 504 while reducing wear on storage 508.
[0073] Storage devices optimized for mobile electronic devices or mobile storage devices typically include MMC solid-state storage devices (such as micro Secure Digital (microSD TM ) card, etc.). MMC devices include several parallel interfaces (e.g., 8-bit parallel interfaces) with a host device and are typically components that can be removed and separated from the host device. In contrast, eMMC TM The device is attached to the circuit board and is considered a component of the host device, which has a comparable Serial ATA-based TM The read speed of SSD devices based on Serial AT (Advanced Technology) Attachment or SATA (Serial AT (Advanced Technology) Attachment). However, the demand for mobile device performance continues to increase to, for example, fully realize virtual or augmented reality devices, take advantage of increasing network speeds, etc. In response to this demand, storage devices have transitioned from parallel communication interfaces to serial communication interfaces. Universal Flash Storage (UFS) devices (including controllers and firmware) communicate with host devices using a low voltage differential signaling (LVDS) serial interface with dedicated read / write paths, further facilitating greater read / write speeds.
[0074] The instructions 524 may further be transmitted or received over a communication network 526 using a transmission medium via a network interface device 520 utilizing any of a number of transmission protocols, such as frame relay, Internet Protocol (IP), transmission control protocol (TCP), user datagram protocol (UDP), hypertext transfer protocol (HTTP), etc. Example communication networks may include a local area network (LAN), a wide area network (WAN), a packet data network such as the Internet, a mobile telephone network such as a cellular network such as that defined by the Third Generation Partnership Project (3GPP) family of standards such as 3G, 4G, 5G, Long Term Evolution (LTE), etc., a plain old telephone (POTS) network, and a wireless data network such as the Institute of Electrical and Electronics Engineers (IEEE) 802.11 family of standards (known as ), IEEE 802.15.4 family of standards, peer-to-peer (P2P) networks, etc.). In an example, the network interface device 520 may include one or more physical jacks (e.g., Ethernet, coaxial, or telephone jacks) or one or more antennas to connect to the communication network 526. In an example, the network interface device 520 may include multiple antennas to communicate wirelessly using at least one of single-input multiple-output (SIMO), multiple-input multiple-output (MIMO), or multiple-input single-output (MISO) technology. The term "transmission media" should be taken to include any intangible medium that can store, encode, or carry instructions executed by the machine 500, and includes digital or analog communication signals or other intangible media that facilitate such software communication.
[0075] Additional notes and examples:
[0076] Example 1 is a memory device for implementing a dynamically adjusted garbage collection workload, the memory device comprising: a processing circuit system; and a storage device, which contains instructions that, when executed by the processing circuit system, configure the processing circuit system to: record an idle time of the memory device; derive a metric from the idle time; split a current garbage collection workload into several parts based on the metric; and execute a first part of the parts at a next idle time.
[0077] In example 2, the subject matter of example 1, wherein to derive the metric from the idle times, the processing circuitry is configured by the instructions to use a contiguous subset of all idle times including a last idle time.
[0078] In example 3, the subject matter of any of examples 1-2, wherein to derive the metric from the idle time, the processing circuitry is configured by the instructions to calculate an average value of the idle time.
[0079] In Example 4, according to the subject matter of Example 3, the average value is a weighted average value weighted by age.
[0080] In Example 5, according to the subject matter of Example 4, the weighted average is calculated as follows: Where n is the number of idle periods considered and L is the length of the idle period.
[0081] In example 6, the subject matter of any of examples 1-5, wherein to derive the metric from the idle time, the processing circuitry is configured by the instructions to calculate an idle rate.
[0082] In example 7, the subject matter of example 6, wherein the idle rate is determined from an input-output event counter of the memory device.
[0083] In example 8, the subject matter of any of examples 1-7, wherein to derive the metric from the idle time, the processing circuitry is configured by the instructions to calculate a ratio between an idle time and an occupied time of the memory device.
[0084] In example 9, the subject matter of any of examples 1-8, wherein the portion of the garbage collection workload is ordered such that garbage collection of a write cache is prioritized.
[0085] In example 10, the subject matter of example 9, wherein the write cache is a single level cell (SLC) write cache.
[0086] In Example 11, the subject matter of any of Examples 1-10, wherein to execute a first portion of the portions at a next idle time, the processing circuitry is configured by the instructions to verify that the first portion exceeds a threshold based on the metric.
[0087] Example 12 is a method for dynamically adjusting garbage collection workload, the method comprising: recording idle time of a memory device; deriving a metric from the idle time; splitting a current garbage collection workload into several parts based on the metric; and executing a first part of the parts at a next idle time.
[0088] In example 13, according to the subject matter of example 12, wherein deriving the metric from the idle times includes using a contiguous subset of all idle times including a last idle time.
[0089] In example 14, the subject matter of any of examples 12-13, wherein deriving the metric from the idle time includes calculating an average of the idle time.
[0090] In Example 15, according to the subject matter of Example 14, the average value is a weighted average weighted by age.
[0091] In Example 16, according to the subject matter of Example 15, the weighted average is calculated as follows: Where n is the number of idle periods considered and L is the length of the idle period.
[0092] In example 17, the subject matter of any of examples 12-16, wherein deriving the metric from the idle time includes calculating an idle rate.
[0093] In example 18, the subject matter of example 17, wherein the idle rate is determined from an input-output event counter of the memory device.
[0094] In example 19, the subject matter of any of examples 12-18, wherein deriving the metric from the idle time includes calculating a ratio between an idle time and an occupied time of the memory device.
[0095] In Example 20, the subject matter of any of Examples 12-19, wherein the portion of the garbage collection workload is ordered such that garbage collection of a write cache is prioritized.
[0096] In example 21, the subject matter of example 20, wherein the write cache is a single-level cell (SLC) write cache.
[0097] In example 22, the subject matter of any of examples 12-21, wherein executing a first portion of the portion at a next idle time includes verifying that the first portion exceeds a threshold based on the metric.
[0098] Example 23 is a machine-readable medium comprising instructions for implementing a dynamically adjusted garbage collection workload, which instructions, when executed by a processing circuit system, cause the processing circuit system to perform operations including: recording an idle time of a memory device; deriving a metric from the idle time; splitting a current garbage collection workload into several parts based on the metric; and executing a first part of the parts at a next idle time.
[0099] In Example 24, according to the subject matter of Example 23, wherein deriving the metric from the idle times includes using a contiguous subset of all idle times including a last idle time.
[0100] In Example 25, the subject matter of any of Examples 23-24, wherein deriving the metric from the idle time includes calculating an average of the idle time.
[0101] In Example 26, according to the subject matter of Example 25, the average value is a weighted average value weighted by age.
[0102] In Example 27, according to the subject matter of Example 26, the weighted average is calculated as follows: Where n is the number of idle periods considered and L is the length of the idle period.
[0103] In Example 28, the subject matter of any of Examples 23-27, wherein deriving the metric from the idle time includes calculating an idle rate.
[0104] In Example 29, the subject matter of Example 28, wherein the idle rate is determined from an input-output event counter of the memory device.
[0105] In example 30, the subject matter of any of examples 23-29, wherein deriving the metric from the idle time includes calculating a ratio between an idle time and an occupied time of the memory device.
[0106] In Example 31, the subject matter of any of Examples 23-30, wherein the portion of the garbage collection workload is ordered such that garbage collection of a write cache is prioritized.
[0107] In example 32, the subject matter of example 31, wherein the write cache is a single level cell (SLC) write cache.
[0108] In Example 33, the subject matter of any of Examples 23-32, wherein executing a first portion of the portion at a next idle time includes verifying that the first portion exceeds a threshold based on the metric.
[0109] Example 34 is a system for implementing a dynamically adjusted garbage collection workload, the system comprising means for recording idle times of a memory device, means for deriving a metric from the idle times, means for splitting a current garbage collection workload into portions based on the metric, and means for executing a first portion of the portions at a next idle time.
[0110] In Example 35, according to the subject matter of Example 34, wherein the means for deriving the metric from the idle times includes means for using a contiguous subset of all idle times including a last idle time.
[0111] In Example 36, the subject matter of any of Examples 34-35, wherein the means for deriving the metric from the idle time includes means for calculating an average of the idle time.
[0112] In Example 37, according to the subject matter of Example 36, the average value is a weighted average weighted by age.
[0113] In Example 38, according to the subject matter of Example 37, the weighted average is calculated as follows: Where n is the number of idle periods considered and L is the length of the idle period.
[0114] In Example 39, the subject matter of any of Examples 34-38, wherein the means for deriving the metric from the idle time includes means for calculating an idle rate.
[0115] In example 40, the subject matter of example 39, wherein the idle rate is determined from an input-output event counter of the memory device.
[0116] In example 41, the subject matter of any of examples 34-40, wherein the means for deriving the metric from the idle time includes means for calculating a ratio between an idle time and an occupied time of the memory device.
[0117] In Example 42, the subject matter of any of Examples 34-41, wherein the portion of the garbage collection workload is ordered such that garbage collection of a write cache is prioritized.
[0118] In example 43, the subject matter of example 42, wherein the write cache is a single level cell (SLC) write cache.
[0119] In example 44, the subject matter of any of examples 34-43, wherein the means for executing a first portion of the portion at a next idle time includes means for verifying that the first portion exceeds a threshold based on the metric.
[0120] Example 45 is at least one machine-readable medium comprising instructions that, when executed by processing circuitry, cause the processing circuitry to perform operations for implementing any of Examples 1-44.
[0121] Example 46 is an apparatus comprising means for implementing any one of examples 1-44.
[0122] Example 47 is a system for implementing any one of examples 1 to 44.
[0123] Example 48 is a method for implementing any one of examples 1 to 44.
[0124] The above detailed description includes references to the drawings that form part of the specific embodiments. The drawings show by way of illustration specific embodiments in which the present invention can be practiced. These embodiments are also referred to herein as "examples". Such examples may include elements other than those shown or described. However, the inventors also contemplate examples in which only those shown or described elements are provided. In addition, the inventors also contemplate using examples (or one or more aspects thereof) of any combination or arrangement of those elements shown or described with respect to a specific example (or one or more aspects thereof) or with respect to other examples (or one or more aspects thereof) shown or described herein.
[0125] In the present invention, the term "a or an" is often used in patent documents to include one or more, which is independent of any other examples or uses of "at least one" or "one or more". In the present invention, the term "or" is used to refer to a non-exclusive "or", so that "A or B" includes "A but not B", "B but not A" and "A and B", unless otherwise indicated. In the appended claims, the terms "including" and "in which" are used as the common English equivalents of the corresponding terms "including" and "wherein". Moreover, in the claims, the terms "including" and "comprising" are open-ended, that is, a system, device, object or process that includes several elements in addition to those listed after this term in the claim is still considered to fall within the scope of the claim. In addition, in the claims, the terms "first", "second" and "third" are used only as labels, and it is not desired to impose numerical requirements on their objects.
[0126] In various examples, the components, controllers, processors, units, engines, or tables described herein may include, among other things, physical circuitry or firmware stored on a physical device. As used herein, "processor" means any type of computing circuit, such as, but not limited to, a microprocessor, a microcontroller, a graphics processor, a digital signal processor (DSP), or any other type of processor or processing circuit (including a group of processors or multi-core devices).
[0127] The terms "wafer" and "substrate" are generally used herein to refer to any structure on which an integrated circuit is formed, and also to such structures during the various stages of integrated circuit fabrication. The following detailed description should therefore not be taken in a limiting sense, and the scope of the various embodiments is defined solely by the appended claims, along with the full scope of equivalents to which such claims are entitled.
[0128] Various embodiments in accordance with the present invention and described herein include memories utilizing a vertical structure of memory cells (e.g., a string of NAND memory cells). As used herein, directional adjectives will be considered relative to the surface of the substrate on which the memory cell is formed (i.e., the vertical structure will be considered to extend away from the substrate surface, the bottom end of the vertical structure will be considered to be the end closest to the substrate surface, and the top end of the vertical structure will be considered to be the end farthest from the substrate surface).
[0129] As used herein, operating a memory cell includes reading from the memory cell, writing to the memory cell, or erasing the memory cell. The operation of placing a memory cell in a desired state is referred to herein as "programming" and may include both writing to the memory cell or erasing from the memory cell (e.g., a memory cell may be programmed to an erased state).
[0130] According to one or more embodiments of the present invention, a memory controller (e.g., a processor, controller, firmware, etc.) located inside or outside a memory device is capable of determining (e.g., selecting, setting, adjusting, calculating, changing, clearing, communicating, adapting, deriving, defining, utilizing, modifying, applying, etc.) a number of wear cycles or a wear state (e.g., recording wear cycles, counting operations of a memory device when they occur, tracking operations of a memory device from which they originate, evaluating memory device characteristics corresponding to a wear state, etc.).
[0131] According to one or more embodiments of the present invention, a memory access device may be configured to provide wear cycle information to a memory device with each memory operation. The memory device control circuitry (e.g., control logic) may be programmed to compensate for memory device performance variations corresponding to the wear cycle information. The memory device may receive the wear cycle information and determine one or more operating parameters (e.g., values, characteristics) in response to the wear cycle information.
[0132] The method examples described herein may be implemented at least in part by a machine or computer. Some examples may include a computer-readable medium or machine-readable medium encoded with instructions operable to configure an electronic device to perform the methods described in the examples above. The implementation of such methods may include code, such as microcode, assembly language code, high-level language code, or the like. This code may include computer-readable instructions for performing various methods. The code may form part of a computer program product. In addition, the code may be tangibly stored on one or more volatile or non-volatile tangible computer-readable media, such as during execution or at other times. Examples of these tangible computer-readable media may include, but are not limited to, hard disks, removable disks, removable optical disks (such as optical disks and digital video disks), cassettes, memory cards or sticks, random access memory (RAM), read-only memory (ROM), solid-state drives (SSDs), universal flash storage (UFS) devices, embedded MMC (eMMC) devices, and the like.
[0133] The above description is intended to be illustrative rather than restrictive. For example, the above examples (or one or more aspects thereof) may be used in combination with each other. For example, a person of ordinary skill in the art may use other embodiments after reviewing the above description. It is claimed that it is not intended to interpret or limit the scope or meaning of the claims. Moreover, in the above detailed description, various features may be combined together to simplify the present invention. This should not be interpreted as wishing that the disclosed features that are not claimed are the key to any claim. Specifically, the subject matter of the invention may be less than all the features of a specific disclosed embodiment. Therefore, the claims are hereby incorporated into the specific embodiments, wherein each claim is independent as a separate embodiment, and it is expected that such embodiments can be combined with each other in various combinations or arrangements. The scope of the embodiment should be determined with reference to the attached claims together with the full range of equivalents authorized by this claim.
Claims
1. A memory device for implementing a dynamically adjusted garbage collection workload, the memory device comprising: Processing circuit system; and a storage device comprising instructions that, when executed by the processing circuitry, configure the processing circuitry to: Recording idle time of the storage device; Deriving a metric from the idle time includes calculating a weighted average of the idle time, the weighted average calculated as follows: Where n is the number of idle periods considered and L is the length of the idle period; splitting the current garbage collection workload into portions based on the metric, wherein the portions are atomic; and A first portion of the portion is executed to completion at a next idle time, wherein the first portion exceeds a threshold size.
2. The memory device of claim 1, wherein to derive the metric from the idle times, the processing circuitry is configured by the instructions to use a contiguous subset of all idle times including a last idle time.
3. The memory device of claim 1, wherein to derive the metric from the idle time, the processing circuitry is configured by the instructions to calculate an average of the idle times as the metric. The memory device of claim 3 , wherein the average is the weighted average weighted by age.
5. The memory device of claim 1, wherein to derive the metric from the idle time, the processing circuitry is configured by the instructions to calculate an idle rate.
6. The memory device of claim 5, wherein the idle rate is determined from an input-output event counter of the memory device.
7. The memory device of claim 1, wherein the portion of the current garbage collection workload is ordered such that garbage collection of a write cache is prioritized.
8. A method for dynamically adjusting garbage collection workload, the method comprising: Recording idle time of the storage device; Deriving a metric from the idle time includes calculating a weighted average of the idle time, the weighted average calculated as follows: Where n is the number of idle periods considered and L is the length of the idle period; splitting the current garbage collection workload into portions based on the metric, wherein the portions are atomic; and A first portion of the portion is executed to completion at a next idle time, wherein the first portion exceeds a threshold size.
9. The method of claim 8, wherein deriving the metric from the idle times comprises using a contiguous subset of all idle times including a last idle time.
10. The method of claim 8, wherein deriving the metric from the idle time comprises calculating an average of the idle times as the metric. The method according to claim 10 , wherein the average value is the weighted average value weighted by age.
12. The method of claim 8, wherein deriving the metric from the idle time comprises calculating an idle rate.
13. The method of claim 12, wherein the idle rate is determined from an input-output event counter of the memory device.
14. The method of claim 8, wherein the portion of the current garbage collection workload is ordered such that garbage collection of a write cache is prioritized.
15. A non-transitory machine-readable medium comprising instructions for implementing a dynamically adjusted garbage collection workload, the instructions, when executed by processing circuitry, causing the processing circuitry to perform operations comprising: Recording idle time of the storage device; Deriving a metric from the idle time includes calculating a weighted average of the idle time, the weighted average calculated as follows: Where n is the number of idle periods considered and L is the length of the idle period; splitting the current garbage collection workload into portions based on the metric, wherein the portions are atomic; and A first portion of the portion is executed to completion at a next idle time, wherein the first portion exceeds a threshold size.
16. The non-transitory machine-readable medium of claim 15, wherein deriving the metric from the idle times comprises using a contiguous subset of all idle times including a last idle time.
17. The non-transitory machine-readable medium of claim 15, wherein deriving the metric from the idle times comprises calculating an average of the idle times as the metric.
18. The non-transitory machine-readable medium of claim 17, wherein the average is the weighted average weighted by age.
19. The non-transitory machine-readable medium of claim 15, wherein deriving the metric from the idle time comprises calculating an idle rate.
20. The non-transitory machine-readable medium of claim 19, wherein the idle rate is determined from an input-output event counter of the memory device.
21. The non-transitory machine-readable medium of claim 15, wherein the portion of the current garbage collection workload is ordered such that garbage collection of a write cache is prioritized.
