Memory controller for solid-state storage devices

By dynamically switching the hybrid mode and multi-bit mode of the memory array in the solid-state storage device, and adjusting the storage unit configuration according to the capacity usage and workload, the problems of insufficient durability and performance of the memory array in the existing technology are solved, and a more efficient Storage efficiency and device life extended.

CN114730285BActive Publication Date: 2024-10-01INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080080115.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-11-18
Filing Date
2020-10-26
Publication Date
2024-10-01
Estimated Expiration
2040-10-26

AI Technical Summary

Technical Problem

In existing solid-state storage devices, it is difficult for the memory controller to dynamically adjust the storage mode to optimize the durability and performance of the memory array, especially when capacity usage and workload change, resulting in insufficient performance and durability.

Method used

The memory controller dynamically switches the hybrid mode and multi-bit mode of the array, dynamically adjusts the configuration of the storage cells according to capacity usage and workload, and uses threshold levels to determine mode switching to ensure the durability and performance of the array.

Benefits of technology

Through dynamic mode switching, the durability and performance of the memory array are significantly improved, capacity usage and storage efficiency under workload are optimized, and device life is extended.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114730285B_ABST
    Figure CN114730285B_ABST
Patent Text Reader

Abstract

Aspects of the present invention disclose a method, computer program product, and system for controlling the operation of an array of non-volatile memory cells, the array of non-volatile memory cells including cells selectively configurable for single-bit storage and multi-bit storage. The method includes a memory controller selectively configuring the array for operation in a hybrid mode and a multi-bit mode, wherein the array includes both cells configured for single-bit storage and cells configured for multi-bit storage, and wherein all cells in the array are configured for multi-bit storage in the multi-bit mode. The method also includes the memory controller dynamically switching between hybrid and multi-bit mode configurations of the array corresponding to array capacity usage, the array capacity usage traversing defined threshold levels associated with enhancing the durability of the array.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates generally to memory controllers for solid-state storage devices, and more particularly to controllers for nonvolatile memory arrays including memory cells. Background Art

[0002] Solid-state storage is non-volatile memory that uses electronic circuit-based memory cells, typically in integrated circuits (ICs), to store data rather than traditional magnetic or optical media such as disks and tapes. Solid-state storage devices (SSDs), such as flash memory devices, are more rugged than conventional storage devices due to the lack of moving parts. SSDs offer outstanding bandwidth, significant savings in power consumption, and random I / O (input / output) performance that is orders of magnitude better than hard disk drives (HDDs).

[0003] In an SSD, the storage device includes an array of non-volatile memory cells organized into storage areas or "blocks," each of which contains a set of storage locations to which data can be written. For example, flash memory is organized into storage blocks containing data write locations called "pages." Each storage location includes a set of memory cells, each of which can store multiple bits of data, and the memory can be selectively configured to store different numbers of bits per cell. For example, most 3D NAND flash memory chips support selective configuration of blocks in more than one storage mode, typically a single bit or SLC (single level cell) storage mode in which each cell stores 1 bit, and a multi-bit storage mode in which each cell stores more than one bit. Current multi-bit flash memory modes include: MLC (multi-level cell) mode that stores 2 bits / cell; TLC (triple level cell) mode that stores 3 bits / cell; and QLC (quad level cell) mode that stores 4 bits / cell. SLC memory is the fastest and most durable, but has the lowest capacity and highest cost, while QLC memory is the cheapest, but also the slowest and least durable.

[0004] A memory controller provides a dedicated control device for controlling the operation of a non-volatile memory array. The memory controller controls memory configuration, data placement, address mapping, and various other operations required for the internal management of the memory array. In the case where the array supports different storage modes, a hybrid memory controller can split the available storage blocks into two pools that operate in different modes. For example, a hybrid SLC / QLC flash controller divides the physical flash blocks into two pools, one pool for SLC mode and the other pool for QLC mode. The benefits of a hybrid controller include improved endurance, lower read latency, and lower, more predictable write latency. Summary of the invention

[0005] Aspects of the present invention disclose a method, computer program product, and system for controlling the operation of an array of non-volatile memory cells, the array of non-volatile memory cells including cells selectively configurable for single-bit storage and multi-bit storage. The method includes: a memory controller selectively configuring the array for operation in a hybrid mode and a multi-bit mode, wherein the array includes both cells configured for single-bit storage and cells configured for multi-bit storage, and wherein all cells in the array are configured for multi-bit storage in the multi-bit mode. The method also includes: the memory controller dynamically switching between the hybrid mode and multi-bit mode configurations of the array corresponding to array capacity usage, the array capacity usage traversing defined threshold levels associated with enhancing the durability of the array. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figure 1 is an example depiction of a schematic representation of a storage device according to an embodiment of the present invention.

[0007] Figure 2 is a diagram illustrating an embodiment of the present invention. Figure 1 A flow chart of example steps of a memory control method performed by a memory controller of a device.

[0008] Figure 3 According to an embodiment of the present invention Figure 1 An example illustration of a mixed mode configuration of a memory array in a device.

[0009] Figure 4 is an example illustration of endurance versus capacity usage characteristics of a memory array according to an embodiment of the present invention.

[0010] Figure 5a , Figure 5b , Figure 5c , Figure 5d and Figure 5e is an example illustration of the characteristics of a memory array with various system parameters and different workload types according to an embodiment of the present invention.

[0011] Figure 6 is a flow chart depicting example steps of a memory control method adapted to different workload types according to an embodiment of the present invention.

[0012] Figure 7 is a flow chart of example steps of a preferred memory control method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0013] The present invention may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions thereon for causing a processor to perform various aspects of the present invention.

[0014] Computer readable storage media can be a tangible device that can retain and store instructions used by an instruction execution device. Computer readable storage media can be, for example but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes the following items: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding devices such as punch cards or protruding structures in the grooves with instructions recorded thereon, and any suitable combination of the above. Computer readable storage media as used herein should not be interpreted as transient signals themselves, such as radio waves or other free propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (e.g., light pulses passing through fiber optic cables) or electrical signals emitted by wires.

[0015] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network), or downloaded to an external computer or external storage device. The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network, and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.

[0016] The computer-readable program instructions for performing the operation of the present invention can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​(such as, Smalltalk, C++, etc.) and conventional procedural programming languages ​​(such as, "C" programming language or similar programming languages). The computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any type of network (including local area network (LAN) or wide area network (WAN)), or can be connected to an external computer (for example, using an Internet service provider through the Internet). In certain embodiments, the electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) can perform computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit, so as to perform various aspects of the present invention.

[0017] The present invention will be described below with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present invention. It should be understood that each frame of the flowchart and / or block diagram and the combination of each frame in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0018] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create components for implementing the functions / actions specified in one or more boxes of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, which guides the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable storage medium in which the instructions are stored includes a manufactured product containing instructions for implementing aspects of the functions / actions specified in one or more boxes of the flowchart and / or block diagram.

[0019] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus, or other device to produce computer-implemented processing, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in or in multiple boxes in the flowchart and / or block diagram.

[0020] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to different embodiments of the present invention.To this end, each frame in the flow chart or block diagram can represent a module, segment or part of an instruction, which includes one or more executable instructions for realizing a specified (multiple) logical function.In some alternative implementations, the function marked in the frame may not occur in the order marked in the figure.For example, depending on the function involved, the two frames shown in succession can actually be performed substantially simultaneously, or these frames can sometimes be performed in reverse order.It should also be noted that each frame in the block diagram and / or flow chart, and the combination of frames in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system, which performs a specified function or action or implements a combination of dedicated hardware and computer instructions.

[0021] Figure 1 The block diagram depicts the general architecture of a storage device embodying the present invention. In this example, device 1 is a flash memory storage device having an array of flash memory cells (i.e., flash memory array 2) that is selectively configurable for single-bit storage and multi-bit storage. In an example embodiment, array 2 is a 3D NAND flash memory array. Device 1 includes a memory controller 3 for controlling the operation of memory array 2. Memory controller 3 includes control logic. In an example embodiment, memory controller 3 is implemented by a flash control processor (FCP) 4, a read / write (R / W) interface (I / F) 5 (for servicing data read and write requests to the device), and a flash link interface 6 (for transmitting data / control signals between FCP4 and flash memory 2). Device 1 also includes a volatile memory (e.g., DRAM 7) for transiently storing different metadata during the operation of memory controller 3.

[0022] Generally speaking, the flash memory array 2 may include one or more chips or chip packages, each of which may include one or more flash memory dies and may provide one or more memory channels, each of which may include one or more chips or packages. In some embodiments, the flash memory array 2 may also be part of a larger memory array, providing additional flash memory or other storage.

[0023] In various embodiments of the present invention, read and write operations are performed on a page basis in the flash memory 2, while erase operations are performed on a block basis. Data can be written to a flash block only after the flash block has been successfully erased, which can improve write throughput and latency using a "write-out-of-place" scheme. Using the "write-out-of-place" scheme, the stored data pages are not updated in situ in the flash storage. Instead, the updated page is written to another free flash page, and the associated old flash page is marked as invalid.

[0024] Therefore, the "write-in-place" scheme and other flash memory features utilize certain "houskeeping" operations to be performed for the internal management of flash memory storage. For example, when a page is updated and the old page is invalidated, a "garbage collection" process can occur to eliminate invalid data and free up storage locations for new incoming data. The garbage collection process recovers still valid data from the occupied flash memory block before erasure, copying the valid page to another flash memory block.

[0025] Garbage collection and block erase may also be performed as part of other internal management processes that actually involve moving data within the flash memory. For example, wear leveling addresses the wear characteristics of flash memory. Flash memory has a limited number of program-erase (P / E) cycles before storage integrity begins to deteriorate. The purpose of the wear leveling process is to evenly distribute write-erase cycles among all available flash memory blocks based on the program-erase cycle count to avoid uneven wear.

[0026] In various embodiments, the memory controller 3 may communicate directly with the host to service read / write requests to the device 1. In an example embodiment, the memory controller 3 may be managed by a higher level controller that services host requests for multiple devices in the storage system. The FCP 4 may generally control the operation of the device 1, managing data read and write operations in the flash memory array 2 in response to requests received via the R / W interface 5. The FCP 4 runs a FTL (Flash Translation Layer) software layer that maintains address metadata in DRAM 7 for data stored in the flash array. The address metadata maps the logical block address associated with the input data block from the host / higher level controller to a physical address (flash page number) on the flash memory. In an example embodiment, the FCP 4 may control all internal management processes in the array 2, thereby maintaining all associated metadata in DRAM 7.

[0027] In some embodiments, the internal management functions may be controlled in whole or in part by a local controller on the flash chip, with the FCP 4 providing high-level control. Specifically, the FCP 4 includes functions for controlling the configuration of the flash memory array 2 (as described in detail below). The FCP 4 may also implement various other processes typical in flash storage, such as error correction encoding / decoding, and thermal sensing functions to identify "hot" and "cold" data and adapt storage policies accordingly.

[0028] In this example, the control functions of the memory controller 3 are implemented via program instructions (e.g., program modules executed by the FCP 4). In general, a program module may include routines, programs, objects, components, logic, data structures, etc. that perform specific tasks or implement specific abstract data types. According to an embodiment of the present invention, the FCP 4 may be implemented by a processing device including one or more processors, and may include a processor memory (including ROM, RAM, cache memory, etc.) that stores program instructions that can be executed by the processing device to perform the described operations. For example, the FCP 4 may include an FPGA with an embedded CPU for executing program instructions. In other embodiments, the control logic of the memory controller 3 may be implemented by a hard-wired logic circuit. However, in general, the control logic may be implemented by hardware or software or a combination thereof, and different implementations will be obvious to those skilled in the art based on the description herein.

[0029] In operation of the storage device 1, the FCP 4 can selectively configure the flash memory array 2 to operate in a hybrid mode and a multi-bit mode, in which the array includes both cells configured for single-bit storage and cells configured for multi-bit storage, and in multi-bit mode, all cells in the array are configured for multi-bit storage. In this example, the FCP configures the flash memory array 2 to operate in a hybrid SLC / QLC mode or a QLC-only mode. In the hybrid mode, the array includes an SLC block pool in which memory cells are configured as SLC cells for single-bit storage and a QLC block pool in which cells are configured as QLC cells for 4-bit storage. In the QLC-only mode, all blocks in the array are configured for QLC storage.

[0030] Figure 2 is a flow chart describing example steps of a configuration control process. In various embodiments, FCP4 performs various embodiments of the present invention. Figure 2 The processing steps are depicted in the flowchart.

[0031] During runtime of device 1, FCP 4 determines current capacity usage for flash memory array 2 (step 10). FCP 4 may determine capacity usage using any convenient metric, such as by the number or proportion of occupied (or free) flash blocks in the array, or by the number or proportion of valid data (e.g., valid flash pages) in the array. In the present embodiment, FCP 4 measures capacity usage of valid data as a percentage of total array capacity (i.e., maximum possible array capacity) in QLC-only mode. Further, FCP 4 may determine current capacity usage from metadata (e.g., stored in flash memory array 2 at the end of each runtime), which metadata is loaded by FCP 4 into DRAM 7 at power-up.

[0032] In decision step 11, FCP 4 determines whether array capacity usage is less than a threshold level TH, which is defined for the array in FCP 4. In response to determining that array capacity usage is less than threshold level TH (e.g., at the first use of device 1) (decision step 11, Y branch), FCP 4 configures hybrid mode (step 12).

[0033] In step 12, FCP 4 controls the configuration of array 2 via control signals on link I / F 6 to operate in hybrid SLC / QLC mode. Figure 3 is an example depiction of a hybrid operating mode. Thus, in hybrid mode, FCP 4 configures flash array 2 into a pool 20 of SLC flash blocks and a pool 21 of QLC flash blocks. In the example embodiment, the ratio of SLC and QLC blocks is fixed.

[0034] During hybrid mode operation, the FCP4 preferentially writes data to single-bit cells in the SLC pool 20, and then moves data from the SLC pool to the QLC cells in the pool 21 when storage capacity in the SLC pool needs to be freed up. The SLC pool 20 thus provides an initial storage layer to which data is preferably written first. In addition, as blocks in the SLC layer are exhausted, a garbage collection (GC) process "cleans" the blocks in the conventional manner. Valid data can be relocated here in the SLC layer, or if necessary can be evicted and de-staged ("de-stage") to the QLC layer. In the event of a high write load to the array 2, the FCP4 can also place data directly to the QLC pool 21. Within the QLC layer, the garbage collection process relocates data within the layer (i.e., no data is promoted to the SLC layer).

[0035] During operation in hybrid mode, FCP 4 monitors capacity usage in flash memory array 2 (step 13). In an example embodiment, FCP 4 may monitor capacity usage based on validity flags maintained as metadata for flash pages. In decision step 14, FCP 4 determines whether capacity usage has traversed a threshold level TH.

[0036] In response to determining that capacity usage has not traversed threshold level TH (decision step 14, N branch), operation of FCP 4 returns to step 13 to continue monitoring mixed mode operation. In response to determining that capacity usage does traverse threshold level TH (decision step 14, Y branch), operation of FCP 4 proceeds to step 15 to configure multi-bit mode.

[0037] In step 15, the FCP 4 controls the configuration of the flash memory array 2 to operate in QLC-only mode via control signals on the link I / F 6. Further, returning to step 11, in response to determining that the current usage exceeds the threshold TH, at the beginning of any operation cycle (decision step 11, N branch), the operation of the FCP 4 is performed in QLC mode in step 13. In various embodiments, the FCP 4 dynamically reconfigures the array. For example, the FCP 4 reconfigures all flash blocks in the SLC pool 20 for QLC storage. In an example embodiment, the FCP 4 first moves valid pages in the SLC blocks to the QLC blocks, and then reconfigures the released SLC blocks for QLC storage. The FCP 4 can utilize a process of commands / operations (usually for the flash chips specified by the supplier) to convert the operating mode of the flash blocks from one mode to another.

[0038] In QLC-only mode, FCP 4 monitors capacity usage (in step 16). Further, in step 17, FCP 4 determines whether capacity usage has fallen below threshold TH. In response to determining that capacity usage has fallen below threshold TH, operation of FCP 4 returns to step 12, and FCP 4 dynamically reconfigures the array for mixed mode operation. Thus, FCP 4 configures pool 20 of SLC blocks from free QLC blocks in array 2, and then continues mixed mode operation (as previously described).

[0039] According to an embodiment of the present invention, the above operations continue for runtime of the device 1, with the FCP 4 dynamically switching between the hybrid and multi-bit mode configurations of the array each time the array capacity usage traverses a threshold level TH. As further explained below, the threshold TH is defined so that the endurance of the array is enhanced by the aforementioned dynamic switching between operating modes. At the end of runtime, the FCP 4 stores the basic metadata contained in the DRAM 7 in the non-volatile memory of the device (e.g., in the flash array 2) for retrieval at the next power-up. The stored metadata may include the current capacity usage of the array for loading into the FCP 4 (from step 10).

[0040] Embodiments of the present invention recognize that an appropriate value for the switching threshold TH depends on system parameters related to the specific design and operation of the flash memory array 2 in the storage device 1. In particular, the choice of the threshold depends on a set of system parameters, which may include: the original cell endurance in single-bit mode and multi-bit mode; the size of the array; the type of workload on the array; whether the hybrid mode is static or dynamic (as explained below); and whether write thermal isolation is enabled for operation of the array in the hybrid mode.

[0041] Raw cell endurance depends on the memory cell design (e.g., the specific 3D NAND technology used) and can be specified in terms of raw P / E cycle count (i.e., the number of P / E cycles that a cell can support before degradation or failure occurs). Raw cell endurance can be defined on a block basis (e.g., for a flash block that includes a specified number of pages / cells). The size of the array can be indicated by the number of chips, packages, etc. of a specific type / capacity used in the array (e.g., each chip / package has a specified number of flash blocks) and the amount of capacity used for over-provisioning. The array size parameter can also indicate the number of SLC / multi-bit blocks used for mixed mode operation.

[0042] The workload type may be defined according to different standard definitions (e.g., defined as random or Zipfian X / Y (for different values ​​of X / Y, where the skew factor of the Zipf distribution is selected so that X% of the write workload reaches Y% of the address space), etc.). For mixed mode operation of the array, the device may be specified to have one of a static mixed mode (where the ratio of single-bit cells to multi-bit cells is static) and a dynamic mixed mode (where the ratio is dynamically determined). Activation / deactivation of a write thermal isolation feature may also be specified. The above functionality allows the memory controller to identify "hot" and "cold" data, and preferentially write / maintain hot data in the SLC pool for faster access, using the multi-bit pool primarily for cold data.

[0043] In an example embodiment, all relevant system parameters may be predetermined for the storage device 1. Then, an appropriate switching threshold TH may be defined for the device based on an analysis of array endurance versus capacity usage in hybrid and multi-bit modes. Figure 4 is an example illustration of endurance versus capacity usage characteristics of an example device (eg, storage device 1) in a hybrid SLC / QLC mode and a QLC-only mode. Figure 4 The depicted examples are based on a random write workload and a raw block endurance (P / E cycles (pec)) of 100k for SLC blocks and 8.5k for QLC blocks in an example NAND flash memory device.

[0044] Figure 4 The array endurance in terms of device write cycles before failure occurs (eg, array degradation exceeds specified limits) is plotted against capacity usage (as defined previously). Figure 4 A unique transition point is depicted, just above 20% capacity usage for QLC-only mode versus hybrid SLC / QLC mode, beyond which QLC-only mode is beneficial. Thus, switching between hybrid mode and multi-bit mode can enhance the durability of the array overall. Embodiments of the present invention can provide significant performance improvements over previous hybrid devices, where device durability was determined by the pool that wore out first. In practice, wear-out imbalance of the pools is possible, and when the durability of one pool is exhausted, the remaining durability of the other pools cannot be utilized.

[0045] In the above exemplary embodiment, the switching threshold TH is defined as Figure 4 The optimal value indicated in (ie, the capacity-usage level at which the mode providing better array-endurance conversion between the hybrid mode and the multi-bit mode is located) is thus optimized by embodiments of the present invention through dynamic mode switching operations to optimize the endurance of the flash array 2.

[0046] Various embodiments of the present invention may define the threshold TH as a fixed value based on known system parameters for the device. Figure 5a to Figure 5e Illustrative examples of how the endurance / capacity-usage characteristics vary with different system parameters according to various embodiments of the invention are depicted.

[0047] Figure 5a Including how to use different mixing mode parameters to change the Figure 4 An example depiction of the characteristics of Figure 5a middle, Figure 4The hybrid mode curve is labeled "Static Hybrid (Baseline)" corresponding to operation utilizing the static hybrid mode. An alternative hybrid mode is a dynamic or adaptive hybrid mode, in which the size of the SLC pool is dynamically adjusted during the initial operation phase to adapt the SLC / QLC ratio based on current utilization, workload attributes, the current footprint of each of the SLC and QLC pools, and / or characteristics of the NAND flash memory cells (e.g., the ratio of average endurance of blocks in SLC-only and QLC-only modes). Once the SLC / QLC ratio has been set, blocks remain statically assigned to their current pool until reevaluated. In one embodiment, blocks then remain statically assigned to their current pool, while in other embodiments, blocks may be switched between pools for wear leveling.

[0048] Figure 5a The additional curves in describe the characteristics of the following items: dynamic mixing mode ("Dynamic Mixing (Baseline)"); static mixing mode with active write-thermal isolation ("Static Mixing (Thermal Aware)"); and dynamic mixing mode with active write-thermal isolation ("Dynamic Mixing (Thermal Aware)"). In each case, Figure 5a Including the only point where QLC mode alone is beneficial compared to hybrid SLC / QLC mode. Figure 5a The optimum switching threshold is indicated by the corresponding arrow.

[0049] Figure 5b and Figure 5c Plotting equivalence curves for different workload types. Figure 5b corresponds to Zipf 95 / 20 and Figure 5c Corresponds to Zipf 80 / 20. Figure 5d and Figure 5e Additional curves are plotted for different modes of raw block endurance 40k for SLC blocks and 4.5k for QLC blocks in an example NAND flash device. The optimal threshold for switching from hybrid mode to QLC-only mode is indicated as before. Note that for some of the hybrid modes here, hybrid mode endurance exceeds QLC-only endurance at all capacity usages.

[0050] In some storage devices, one or more system parameters may change over the lifetime of the device. The workload type, in particular, often changes during device operation, and this may have a significant impact on the optimal switching threshold, such as Figure 5a to Figure 5c Thus, in an example embodiment, the control logic of the memory controller 3 is adapted to monitor the workload type during operation of the array and to dynamically define the switching threshold level according to the workload type.

[0051] Figure 6 is a diagram showing a method for Figure 1In step 30, the FCP 4 loads the current capacity usage of the flash memory array 2 at runtime.

[0052] In step 31, FCP 4 determines the current workload type. In various embodiments, FCP 4 may determine the workload type in a generally known manner based on measurements of read / write traffic by maintaining and utilizing one or more metrics that are sensitive to the user I / O workload. Examples include: so-called write amplification for the SLC and QLC tiers; the number of newly written invalid pages in the SLC and QLC tiers; the average number of pages found valid per block at garbage collection in the SLC and QLC tiers; and the number of pages assigned a particular thermal grade when thermally aware tiering is employed. FCP 4 may determine the current workload type from metadata (e.g., stored in the flash memory array 2 at the end of each runtime). Further, FCP 4 may load the current workload type into DRAM 7 at power-up. If the workload is unknown (e.g., at the first use of device 1), FCP 4 may assume a random write workload.

[0053] In step 32, the FCP 4 defines a workload dependent switching threshold THW based on the current workload type and other known system parameters. In various embodiments, the FCP 4 may define the threshold in step 32) using predefined tables or other data structures indicating current device parameters and optimal thresholds for different workload types. These tables / structures may be stored in persistent memory of the FCP 4, or may be stored in DRAM 7 during runtime and loaded into persistent storage (e.g., array 2) when power is removed.

[0054] In step 33, FCP 4 configures flash memory array 2 for operation in either hybrid mode or QLC-only mode based on a comparison of current capacity usage to threshold THW (generally as described above). FCP 4 may then continue array operation in the configured mode, with capacity usage monitored (in step 34) and compared to threshold THW (in decision step 35). In response to determining that the threshold has been traversed (decision step 35, Y branch), operation of FCP 4 returns to step 33, and FCP 4 reconfigures the array for operation in the other mode. Further, in response to determining that the threshold has not been traversed (decision step 35, N branch), operation of FCP 4 continues to monitor workload type (step 36).

[0055] In either mode, FCP 4 continues to monitor workload type (in step 36). In response to detecting a change in workload type (decision step 37, Y branch), operation of FCP 4 returns to step 32, and FCP 4 redefines threshold THW for the new workload type. Operation then continues as before, wherein, if necessary, the array is reconfigured in another mode based on the threshold comparison of step 32. Further, in response to detecting no change in workload type (decision step 37, N branch), operation of FCP 4 may then continue array operation in the configured mode, wherein capacity usage is monitored (in step 34).

[0056] Depending on the parameters of the device, hybrid mode endurance can exceed multi-bit mode endurance for all capacity usage for certain workload types (e.g. Figure 5b and Figure 5c If the FCP 4 detects this workload type at step 37, the FCP 4 may define the threshold THW to 100% capacity usage (at step 32), whereby operation will revert to hybrid mode (if necessary) and remain in that mode until the workload type changes.

[0057] about Figure 6 The depicted and discussed embodiments allow FCP 4 to adapt to varying workloads in a given installation. In an example embodiment, FCP 4 may appropriately define switching thresholds to adapt to changes in one or more system parameters. In further embodiments, FCP 4 may adapt to multiple different parameter sets covering all common ranges and combinations of different parameters for storage device arrays.

[0058] Pre-stored tables / data structures may indicate appropriate values ​​for switching thresholds for different sets of parameters (including various workload types) based on predetermined characteristics. FCP 4 may then provide a general purpose memory controller that may be adapted to any given array design and operating parameters. In various embodiments, FCP 4 is adapted to receive a set of system parameters for array 2 prior to operation of the array and to define switching thresholds based on those parameters.

[0059] Further, according to embodiments of the present invention, the FCP 4 may load system parameters when a given device is first powered on, at the start of each runtime, and / or whenever a parameter changes during operation, and select a switching threshold accordingly. Specifically, in some devices, parameters other than workload may vary during device operation. For example, a hybrid mode may be selected for dynamic or static use for different operating cycles. Write thermal isolation may also be selectively activated / deactivated. In some cases, the size of the activated flash memory array 2 may also be selectable (e.g., from the maximum number of NAND packages available in the device).

[0060] Figure 7 is a flow chart of the basic operating steps of FCP 4 according to an embodiment of the present invention. At step 40, FCP 4 loads system parameters for the current operating cycle. The parameter set may indicate the current state of any variable parameters (as described above), including current capacity usage and workload type, as well as any "fixed" parameters (e.g., raw pec values ​​for array unit types) if not previously loaded into FCP 4.

[0061] In step 41, the FCP 4 defines a workload dependent switching threshold THWP for the current parameter set. In step 42, the FCP 4 selects a hybrid mode or a QLC-only array configuration based on a comparison of the current capacity usage with the threshold THWP.

[0062] In step 43, FCP 4 configures the array to operate in the selected mode and using the specified operating parameters (e.g., dynamic or static hybrid mode, active / inactive write thermal tiering, etc.). The system configuration may include data and read path configuration (e.g., queue management in Flash I / F 6) depending on the SLC / QLC pool configuration, the size of the SLC / QLC pool configuration (e.g., based on the active array size), and general flash management or other functions (e.g., garbage collection, calibration, etc.). Device operation then continues for that configuration, with FCP 4 controlling the operation of the array according to the specified parameters. Figure 7 The remaining steps 44 to 47 correspond to Figure 6 Steps 34 to 37 were previously discussed in more detail above.

[0063] It should be understood that various changes and modifications may be made to the exemplary embodiments described above. For example, a hybrid / multi-bit mode may use multi-bit storage other than QLC storage (e.g., TLC or MLC storage). A memory controller embodying the present invention may be used with non-volatile memory arrays based on cells other than NAND flash cells (e.g., NOR flash cells, PCM (phase change memory) cells, RRAM (resistive RAM) cells, NVRAM (non-volatile RAM) cells, etc.).

[0064] In general, where features are described herein with reference to an apparatus embodying the invention, corresponding features may be provided in a method / computer program product embodying the invention, and vice versa.

[0065] The description of various embodiments of the present invention has been presented for the purpose of illustration, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements to technologies found in the marketplace, or to enable those of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A computer system for controlling the operation of an array of non-volatile memory cells, the array of non-volatile memory cells comprising cells selectively configurable for single-bit storage and multi-bit storage, the computer system comprising: one or more computer processors; Memory controller; one or more computer-readable storage media; as well as program instructions stored on the computer-readable storage medium, the program instructions being executable by a processing device of a memory controller to cause the memory controller to: selectively configuring the array for operation in a hybrid mode, in which the array includes both cells configured for single-bit storage and cells configured for multi-bit storage, and a multi-bit mode, in which all cells in the array are configured for multi-bit storage; as well as Dynamically switching between the mixed mode configuration and the multi-bit mode configuration of the array corresponding to array capacity usage traversing defined threshold levels associated with enhancing endurance of the array.

2. The computer system according to claim 1, wherein: The threshold level is defined as a capacity usage level for switching between the hybrid mode and the multi-bit mode based on array endurance.

3. The computer system according to claim 1, further comprising: program instructions stored on the computer-readable storage medium for execution with the memory controller to: monitoring workload types during operation of the array; as well as The threshold level is dynamically defined depending on the workload type.

4. The computer system of claim 1 , further comprising program instructions stored on the computer readable storage medium for execution by the memory controller to: Prior to operation of the array, receiving a set of system parameters for the array; and The threshold level is defined depending on the parameter.

5. The computer system of claim 4, further comprising program instructions stored on the computer-readable storage medium for execution by the memory controller to: monitoring workload types during operation of the array; and The threshold level is dynamically defined depending on the workload type.

6. The computer system of claim 4, wherein the system parameter set indicates raw cell endurance in the single-bit mode and the multi-bit mode.

7. The computer system of claim 4, wherein the system parameter set indicates a size of the array.

8. The computer system according to claim 7, wherein: The system parameter set indicates one of a static-hybrid mode and a dynamic-hybrid mode, wherein the ratio of single-bit cells to multi-bit cells is static, and wherein the ratio is dynamically determined for operation of the array in the hybrid mode.

9. The computer system according to claim 4, wherein: The set of system parameters indicates whether write-thermal isolation is enabled for operation of the array in the hybrid mode.

10. The computer system of claim 4, further comprising program instructions stored on the computer-readable storage medium for execution by the memory controller to: Operation of the array is controlled according to the set of parameters.

11. The computer system of claim 1 , further comprising program instructions stored on the computer readable storage medium for execution by the memory controller to: During operation of the array in the hybrid mode, preferentially writing data to single-bit cells of the array; and Moving data from single-bit cells to multi-bit cells frees up storage capacity in the single-bit cells.

12. The computer system of claim 1, further comprising: Storage devices; as well as The memory device includes an array of non-volatile memory cells including cells selectively configurable for single-bit storage and multi-bit storage.

13. The computer system of claim 12, wherein the array comprises flash memory cells.

14. The computer system of claim 13, wherein the flash memory cells are selectively configurable for single-bit storage and 4-bit storage.

15. A method for controlling operation of an array of non-volatile memory cells, the array of non-volatile memory cells comprising cells selectively configurable for single-bit storage and multi-bit storage, the method comprising: a memory controller selectively configuring the array for operation in a hybrid mode in which the array includes both cells configured for single-bit storage and cells configured for multi-bit storage, and a multi-bit mode in which all cells in the array are configured for multi-bit storage; as well as The memory controller dynamically switches between the hybrid mode configuration and the multi-bit mode configuration of the array corresponding to the array capacity usage traversing a defined threshold level associated with enhancing endurance of the array.

16. The method according to claim 15, wherein: The threshold level is defined as a capacity usage level for switching between the hybrid mode and the multi-bit mode based on array endurance.

17. The method according to claim 15, further comprising: the memory controller monitoring workload type during operation of the array; as well as The memory controller dynamically defines the threshold level according to the workload type.

18. The method according to claim 15, further comprising: Prior to operation of the array, the memory controller defines the threshold level dependent upon a set of system parameters for the array, the parameters indicating information selected from the group consisting of: raw cell endurance in said single-bit mode and multi-bit mode; the size of the array; the type of workload used for the array; one of a static-hybrid mode in which the ratio of single-bit cells to multi-bit cells is static and a dynamic-hybrid mode in which the ratio is dynamically determined for operation of the array in the hybrid mode; and Whether write-thermal isolation is enabled for operation of the array in the hybrid mode.

19. The method according to claim 18, further comprising: the memory controller monitoring workload type during operation of the array; as well as The memory controller dynamically defines the threshold level depending on the workload type.

20. A computer program product for controlling the operation of an array of non-volatile memory cells, the array of non-volatile memory cells comprising cells selectively configurable for single-bit storage and multi-bit storage, the computer program product comprising a computer readable storage medium having program instructions embodied therein, the program instructions being executable by a processing device of a memory controller to cause the memory controller to: selectively configuring the array for operation in a hybrid mode, in which the array includes both cells configured for single-bit storage and cells configured for multi-bit storage, and a multi-bit mode, in which all cells in the array are configured for multi-bit storage; and Dynamically switching between the hybrid mode configuration and a multi-bit mode configuration of the array corresponding to array capacity usage traversing defined threshold levels associated with enhancing endurance of the array.