Memory Controllers for Solid State Storage Devices
A hybrid memory controller dynamically switches between single-bit and multi-bit storage modes based on capacity and workload, optimizing endurance and durability in solid-state storage devices.
Patent Information
- Application Number
- JP2022526259
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-11-18
- Filing Date
- 2020-10-26
- Publication Date
- 2024-09-11
- Estimated Expiration
- 2040-10-26
AI Technical Summary
Existing memory controllers for solid-state storage devices fail to dynamically adapt to varying capacity utilization and workload types, leading to uneven wear and reduced durability of non-volatile memory arrays.
A hybrid memory controller that dynamically configures non-volatile memory arrays between single-bit and multi-bit storage modes based on capacity utilization and workload types, using a threshold-based switching mechanism to optimize endurance and durability.
Enhances the durability and performance of solid-state storage devices by evenly distributing write-erase cycles across different storage modes, improving overall array endurance and reducing wear imbalance.
Smart Images

Figure 0007549424000003 
Figure 0007549424000008 
Figure 0007549424000009
Abstract
Description
[Technical field]
[0001] The present invention relates generally to memory controllers for solid-state storage devices, and more particularly to controllers for non-volatile memory arrays that include memory cells. [Background technology]
[0002] Solid-state storage is a non-volatile memory that uses memory cells based on electronic circuits, typically in integrated circuits (ICs), to store data, as opposed to traditional magnetic or optical media such as disks and tapes. Solid-state storage devices (SSDs), such as flash memory devices, are more robust than traditional storage devices because they have no moving parts. SSDs exhibit extremely high bandwidth, significant power savings, and random I / O (input / output) performance that is several orders of magnitude better than hard disk drives (HDDs).
[0003] In SSDs, the storage 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. Flash memory, for example, is organized into storage blocks that contain data write locations called "pages." Each storage location contains a set of memory cells, each of which can store several bits of data, and the storage can be selectively configurable to store different numbers of bits per cell. For example, most 3D NAND flash chips support selective configuration of blocks in multiple storage modes, typically a single-bit or SLC (single-level cell) storage mode, where each cell stores one bit, and a multi-bit storage mode, where each cell stores multiple bits. Current multi-bit flash modes include MLC (multi-level cell) mode, which stores 2 bits / cell, TLC (triple-level cell) mode, which stores 3 bits / cell, and QLC (quad-level cell) mode, which stores 4 bits / cell. SLC memory is the fastest and most durable, but has the smallest capacity and is the most expensive, while QLC memory is the cheapest, but is the slowest and least durable.
[0004] A memory controller provides dedicated control for controlling the operation of a non-volatile memory array. The memory controller controls memory organization, data placement, address mapping, and various other operations required for the internal management of the memory array. If the array supports different storage modes, a hybrid memory controller can divide 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 used in SLC mode and the other in QLC mode. The benefits of a hybrid controller include increased endurance, lower read latency, and lower and more predictable write latency. Summary of the Invention
[0005] Aspects of the present invention disclose methods, computer program products and systems for controlling operation of an array of non-volatile memory cells including cells selectively configurable for single-bit and multi-bit storage. The method includes 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. The method further includes the memory controller dynamically switching the array between the hybrid mode and the multi-bit mode configurations in response to an array capacity utilization exceeding a predefined threshold level associated with improved endurance of the array. [Brief description of the drawings]
[0006] [Figure 1] FIG. 2 is an exemplary diagram showing a simplified diagram of a storage device, according to one embodiment of the present invention. [Diagram 2] 2 is a flowchart illustrating exemplary steps of a memory control method performed by a memory controller of the device of FIG. 1 in accordance with one embodiment of the present invention. [Diagram 3] FIG. 2 is an exemplary diagram illustrating a hybrid mode configuration of a memory array in the device of FIG. 1 in accordance with one embodiment of the present invention. [Figure 4] FIG. 2 is an exemplary diagram illustrating endurance versus capacity utilization characteristics of a memory array in accordance with one embodiment of the present invention. [Figure 5A] 1 is an exemplary diagram illustrating characteristics of a memory array with various system parameters and different workload types, in accordance with one embodiment of the present invention. [Figure 5B] 1 is an exemplary diagram illustrating characteristics of a memory array with various system parameters and different workload types, in accordance with one embodiment of the present invention. [Figure 5C] 1 is an exemplary diagram illustrating characteristics of a memory array with various system parameters and different workload types, in accordance with one embodiment of the present invention. [Figure 5D] 1 is an exemplary diagram illustrating characteristics of a memory array with various system parameters and different workload types, in accordance with one embodiment of the present invention. [Figure 5E] 1 is an exemplary diagram illustrating characteristics of a memory array with various system parameters and different workload types, in accordance with one embodiment of the present invention. [Figure 6] 4 is a flow chart illustrating exemplary steps of a memory control method for accommodating different workload types, according to one embodiment of the present invention. [Figure 7] 4 is a flow chart illustrating exemplary steps of a preferred memory control method, in accordance with one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] The present invention may be a system, method, and / or computer program product, which may include a computer-readable storage medium (or media) having computer-readable program instructions stored thereon for causing a processor to implement aspects of the present invention.
[0008] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, 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 sticks, floppy disks, mechanically encoded devices such as punch cards or ridge structures in grooves with instructions recorded thereon, and any suitable combination thereof. As used herein, a computer-readable storage medium should not be construed as a transitory signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or electrical signals transmitted over wires.
[0009] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to the respective computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A 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 a computer readable storage medium within the respective computing / processing device for storage.
[0010] The computer readable program instructions for carrying out the operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk, C++, and conventional procedural programming languages such as the "C" programming language, or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer as a stand-alone software package, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer readable program instructions to carry out aspects of the invention by personalizing the electronic circuitry using state information of the computer readable program instructions.
[0011] Aspects of the present invention are described with reference to flowchart illustrations and / or block diagrams that illustrate methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0012] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing device to effect a machine such that the instructions, executed by the processor of the computer or other programmable data processing device, form means for implementing the functions / operations specified in the blocks of the flowcharts and / or block diagrams. These computer readable program instructions may be stored in a computer readable storage medium capable of instructing a computer, programmable data processing device, or other device, or combination thereof, to function in a particular manner, such that the computer readable storage medium on which the instructions are stored comprises an article of manufacture containing instructions that implement aspects of the functions / operations specified in the blocks of the flowcharts and / or block diagrams.
[0013] The computer readable program instructions may be loaded into 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 achieve a computer-implemented process, such that the instructions, which execute on the computer, other programmable apparatus, or other device, implement the functions / acts specified in the flowchart and / or block diagram blocks.
[0014] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the figures. For example, two blocks shown in succession may in fact be executed substantially in parallel, depending on the functionality involved, or the blocks may be executed in reverse order, as the case may be. It should also be understood that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may embody a combination of dedicated hardware and computer instructions.
[0015] The block diagram of FIG. 1 illustrates the overall architecture of a storage device embodying the present invention. In this example, device 1 is a flash storage device having an array of flash memory cells (i.e., flash memory array 2) that is selectively configurable for single-bit and multi-bit storage. In an exemplary embodiment, array 2 is a 3D NAND flash array. Device 1 includes a memory controller 3 for controlling the operation of memory array 2. Memory controller 3 includes control logic. In an exemplary embodiment, memory controller 3 implements the control logic with 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 communicating data / control signals between FCP 4 and flash memory 2). Device 1 further includes a volatile memory (e.g., DRAM 7) for temporary storage of various metadata during operation of memory controller 3.
[0016] Generally, flash memory array 2 includes one or more chips or packages of chips, each of which may include one or more flash storage dies and provide one or more storage channels, each of which may include one or more chips or packages. In some embodiments, flash memory array 2 may be part of a larger storage array, providing additional flash or other storage.
[0017] In various embodiments of the present invention, read and write operations are performed page by page in the flash memory 2, while erase operations are performed block by block. Data can be written to a flash block only after it has been successfully erased, which may use a "write-out-of-place" method to improve write throughput and latency. In the "write-out-of-place" method, stored data pages are not updated in-place in the flash storage. Instead, the updated page is written to another free flash page and its associated old flash page is marked as invalid.
[0018] Therefore, the "write-out-of-place" method and other flash storage characteristics use certain "housekeeping" operations that are performed for the internal management of the flash storage. For example, when a page is updated and the old page is invalidated, a "garbage collection" process can be performed to remove the invalidated data and free the memory location for new input data. The garbage collection process recovers data that is still valid from the occupied flash block before it is erased, thereby copying the valid page to another flash block.
[0019] Garbage collection and block erasure can also be done as part of other internal management processes that involve substantially moving data around within the flash memory. For example, wear leveling addresses the wear characteristics of flash. Flash memory has a finite number of program-erase (P / E) cycles before memory integrity begins to degrade. The wear leveling procedure aims to distribute the write-erase cycles evenly across all available flash blocks based on the number of program-erase cycles to avoid uneven wear.
[0020] In various embodiments, the memory controller 3 may communicate directly with the host to service read / write requests to the device 1. In an exemplary embodiment, the memory controller 3 may be managed by a higher level controller that services host requests to multiple devices in the storage system. The FCP 4 may control the operation of the device 1 in general, 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 operates an FTL (Flash Translation Layer) software layer that maintains address metadata in the DRAM 7 for data stored in the flash array. The address metadata maps logical block addresses associated with incoming data blocks from the host / higher level controller to physical addresses on the flash (flash page numbers). In an exemplary embodiment, the FCP 4 may control all internal management processes in the array 2, thereby maintaining all associated data in the DRAM 7.
[0021] 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 FCP4 providing higher level control. In particular, the FCP4 includes functions for controlling the configuration of the flash memory array 2 (as described in more detail below). The FCP4 may also implement various other processes typical of flash storage, such as error correction coding / decoding and heat awareness functions that distinguish between "hot" and "cold" data and adjust storage policy accordingly.
[0022] In this example, the control functions of the memory controller 3 are implemented by program instructions (e.g., program modules executed by the FCP4). In general, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The FCP4 may be implemented by a processing device including one or more processors, and may include processor memory (including ROM, RAM, cache memory, etc.) that stores program instructions executable by the processing device to perform the described operations, according to embodiments of the present invention. The FCP4 may include, for example, 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 hardwired logic circuitry. In general, however, the control logic may be implemented by hardware or software or a combination thereof, and various implementations will be apparent to one of ordinary skill in the art from the description herein.
[0023] During operation of the storage device 1, the FCP 4 can selectively configure the flash memory array 2 for operation in a hybrid mode, where the array includes both cells configured for single-bit storage and cells configured for multi-bit storage, and a multi-bit mode, where all cells in the array are configured for multi-bit storage. In this embodiment, the FCP configures the flash memory array 2 for operation in a hybrid SLC / QLC mode or a QLC-only mode. In the hybrid mode, the array includes a pool of SLC blocks whose memory cells are configured as SLC cells for single-bit storage and a pool of QLC blocks whose 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.
[0024] 2 is a flow chart illustrating exemplary steps of a configuration control process. In various embodiments, FCP 4 performs the processing steps of the flow chart illustrated in FIG. 2 in accordance with various embodiments of the present invention.
[0025] During run-time for device 1, FCP4 determines the current capacity utilization of flash memory array 2 (step 10). FCP4 may determine the capacity utilization using any convenient measure, such as by the number or percentage of occupied (or free) flash blocks in the array, or by the amount or percentage of valid data (e.g., valid flash pages) in the array. In this embodiment, FCP4 measures the capacity utilization, the amount of valid data, as a percentage of the total array capacity (i.e., maximum possible array capacity) in QLC-only mode. FCP4 may also determine the current capacity utilization from metadata that is loaded by FCP4 into DRAM 7 at power-up (e.g., stored in flash memory array 2 at the end of each run-time).
[0026] In decision step 11, FCP4 determines whether the array capacity utilization is less than a threshold level TH defined in FCP4 for the array. In response to determining that the array capacity utilization is less than the threshold level TH (e.g., upon first use of device 1) (Y branch of decision step 11), FCP4 configures hybrid mode (step 12).
[0027] In step 12, the FCP 4 controls the configuration of the array 2 by control signals via the link I / F 6 for operation in a hybrid SLC / QLC mode. Figure 3 is an example diagram illustrating the hybrid mode of operation. Thus, in the hybrid mode, the FCP 4 configures the flash memory 2 into a pool 20 of SLC flash blocks and a pool 21 of QLC flash blocks. In an example embodiment, the ratio of SLC blocks to QLC blocks is fixed.
[0028] During hybrid mode operation, FCP4 preferentially writes data to single-bit cells in SLC pool 20, and then moves data from the SLC pool to QLC cells in pool 21 when storage capacity in the SLC pool needs to be freed. Thus, SLC pool 20 provides an initial storage tier to which data is preferably written first. Furthermore, as blocks in the SLC tier are exhausted, a garbage collection (GC) process "cleans" the blocks in the normal fashion. Now, valid data can be relocated to the SLC tier, if necessary, or evicted and destaged to the QLC tier. In the event of a high write load to array 2, FCP4 may put data directly into QLC pool 21, where the garbage collection process relocates data within the tier (i.e., data is not migrated to the SLC tier).
[0029] While operating in the hybrid mode, FCP 4 monitors (step 13) the capacity utilization of flash memory array 2. In an exemplary embodiment, FCP 4 may monitor the capacity utilization based on a valid flag maintained as metadata for the flash page. In decision step 14, FCP 4 determines whether the capacity utilization has exceeded a threshold level TH.
[0030] In response to a determination that the capacity utilization does not exceed the threshold level TH (N branch of decision step 14), operation of FCP4 returns to step 13 for continued monitoring of hybrid mode operation. In response to a determination that the capacity utilization exceeds the threshold level TH (Y branch of decision step 14), operation of FCP4 proceeds to step 15 to configure multi-bit mode.
[0031] At step 15, FCP4 controls the configuration of flash memory array 2 for operation in QLC-only mode by control signals via link I / F 6. Also returning to step 11, in response to determining that the current utilization exceeds threshold TH at the beginning of any operation period (N branch of decision step 11), operation of FCP4 proceeds in QLC mode at step 13. In various embodiments, FCP4 dynamically configures the array. For example, FCP4 reconfigures all flash blocks in SLC pool 20 for QLC storage. In an exemplary embodiment, FCP4 first moves valid pages in the SLC blocks to QLC blocks and then reconfigures the freed SLC blocks for QLC mode storage. FCP4 can use a command / operation sequence, typically vendor-specified for flash chips, to convert the operation mode of the flash blocks from one mode to another.
[0032] In QLC-only mode, FCP4 monitors (at step 16) capacity utilization, and at step 17, FCP4 determines whether capacity utilization has fallen below threshold TH. In response to determining that capacity utilization has fallen below threshold TH, operation of FCP4 returns to step 12, where FCP4 dynamically reconfigures the array for hybrid mode operation. Thus, FCP4 configures a pool 20 of SLC blocks from free QLC blocks in array 2, and hybrid mode operation, and then proceeds (as described above).
[0033] In accordance with an embodiment of the present invention, the above operations continue for the run-time of device 1 with FCP4 dynamically switching the array between hybrid and multi-bit mode configurations whenever the array capacity utilization exceeds a threshold level TH. As described further below, threshold TH is defined such that the aforementioned dynamic switching of operating modes increases the endurance of the array. At the end of the run-time, FCP4 stores the necessary metadata stored in DRAM 7 in the non-volatile memory of the device (e.g., flash array 2) for retrieval at the next power-up. The stored metadata may include the current capacity utilization of the array for loading into FCP4 (from step 10).
[0034] Embodiments of the present invention recognize that the appropriate value of the switching threshold TH depends on system parameters related to the particular design and operation of the flash memory array 2 in the storage device 1. In particular, the selection of the threshold depends on a set of system parameters, which may include the inherent cell endurance in single-bit and multi-bit modes, the size of the array, the workload type of the array, whether the hybrid mode is static or dynamic (as described below), and whether write heat discrimination is enabled for operation of the array in the hybrid mode.
[0035] The inherent cell endurance depends on the memory cell design (e.g., the particular 3D NAND technology used) and may be specified in terms of the inherent number of P / E cycles (i.e., the number of P / E cycles a cell can support before degradation or failure occurs). The inherent cell endurance may be defined per block (e.g., of flash blocks containing a specified number of pages / cells). The size of the array may be indicated by the number of chips of a particular type / capacity, number of packages (e.g., a specified number of flash blocks per chip / package), etc. used in the array, and the capacity used for over-provisioning. The array size parameter may further indicate the number of SLC / multi-bit blocks used for hybrid mode operation.
[0036] The workload type can be defined according to various standard definitions (e.g. random or Zipfian distribution such as Zipfian X / Y (for various values of X / Y where the skew factor of the Zipfian distribution is chosen such that X percent of the write workload is Y percent of the address space). For hybrid mode operation of the array, one of static hybrid mode (where the ratio of single-bit cells to multi-bit cells is static) and dynamic hybrid mode (where the ratio is dynamically determined) can be specified for the device. The write heat discrimination feature can also be enabled / disabled. This feature allows the memory controller to distinguish between "hot" and "cold" data and to use the multi-bit pool primarily for cold data, with hot data being preferentially written / kept in the SLC pool for faster access.
[0037] In an exemplary embodiment, all relevant system parameters may be predetermined for storage device 1. Then, an appropriate switching threshold TH may be defined for the device based on an analysis of the relationship between array endurance and capacity utilization in hybrid and multi-bit modes. FIG. 4 is an exemplary diagram illustrating the endurance vs. capacity utilization characteristics of an exemplary device (e.g., storage device 1) in hybrid SLC / QLC and QLC-only modes. The example illustrated in FIG. 4 is based on a random write workload and inherent block endurance (P / E cycles (pec)) of 100k for SLC blocks and 8.5k for QLC blocks in an exemplary NAND flash device.
[0038] FIG. 4 plots the array endurance in terms of device write cycles before failure occurs (e.g., array degradation exceeds a specified limit) versus capacity utilization (as defined above). Thus, FIG. 4 shows a unique transition point just beyond 20% capacity utilization above which QLC-only mode becomes favorable compared to hybrid SLC / QLC mode. Thus, switching between hybrid and multi-bit modes can improve the overall endurance of the array. Embodiments of the present invention can provide a significant performance improvement over conventional hybrid devices, where device endurance is dictated by the pool that wears out first. Pool wear imbalances are a real possibility, and when one pool's endurance expires, the remaining remaining endurance of the other pools cannot be utilized.
[0039] In the above exemplary embodiment, the switching threshold TH is defined as the optimum value (i.e., the capacity utilization level at which the mode results in better array endurance transition between the hybrid mode and the multi-bit mode) shown in Figure 4. Thus, embodiments of the present invention can optimize the endurance of the flash memory array 2 through dynamic mode switching operations.
[0040] Various embodiments of the present invention may define the threshold TH as a fixed value based on known system parameters of the device. Figures 5A-5E show examples of how the endurance / capacity utilization characteristics change with different system parameters according to various embodiments of the present invention.
[0041] FIG. 5A includes an example diagram showing how the characteristics of FIG. 4 are modified by different hybrid mode parameters, according to various embodiments of the present invention. In FIG. 5A, the hybrid mode curve of FIG. 4 is labeled as “Static Hybrid (Baseline)” corresponding to operation in a static hybrid mode. Another 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 according to the current utilization, workload characteristics, the current occupancy of the SLC pool and the QLC pool, respectively, or the characteristics of the NAND flash memory cells (e.g., the ratio of the average endurance of blocks in SLC-only mode and QLC-only mode), or a combination thereof. After the SLC / QLC ratio is set, the blocks remain statically assigned to their current pool until the time of reevaluation. In one embodiment, the blocks remain statically assigned to their current pool thereafter, while in other embodiments, the blocks may be switched between pools for wear leveling.
[0042] The other curves in FIG. 5A show the characteristics of the dynamic hybrid mode ("Dynamic Hybrid Mode (Baseline)"), the static hybrid mode with active-write heat discrimination ("Static Hybrid (Heat-Aware)"), and the dynamic hybrid mode with active-write heat discrimination ("Dynamic Hybrid (Heat-Aware)"). In each case, FIG. 5A includes singularities where the QLC-only mode is favored compared to the hybrid SLC / QLC mode. Additionally, FIG. 5A shows the optimal switching thresholds with corresponding arrows.
[0043] Figures 5B and 5C show equivalent curves for different workload types. Figure 5B corresponds to Zipfian 95 / 20 and Figure 5C corresponds to Zipfian 80 / 20. Figures 5D and 5E show further curves for different modes with native block endurance of 40k for SLC blocks and 4.5k for QLC blocks for an example NAND flash device. The optimal threshold for switching from hybrid to QLC-only mode is shown above. It is noted here that for some hybrid modes, the hybrid mode endurance exceeds the QLC-only endurance at all capacity utilizations.
[0044] In some storage devices, one or more system parameters may vary over the life of the device. In particular, the workload type typically varies during device operation, which significantly impacts the optimal switching thresholds, as demonstrated by Figures 5A-5C. Thus, in one exemplary embodiment, the control logic of the memory controller 3 is adapted to monitor the workload type during operation of the array and dynamically define the switching threshold levels based on the workload type.
[0045] Figure 6 is a flow chart illustrating the basic operation of the device of Figure 1, according to an embodiment of the present invention. At step 30, the FCP 4 loads the current capacity utilization of the flash memory array 2 at run time.
[0046] In step 31, FCP4 determines the current workload type. In various embodiments, FCP4 can determine the workload type in a commonly known manner based on measurements of read / write traffic by maintaining and utilizing one or more measures sensitive to user I / O workload. Examples include so-called write amplification for SLC and QLC tiers, the number of pages invalidated by new writes for SLC and QLC tiers, the average number of pages per block found valid in garbage collection for SLC and QLC tiers, and the number of pages assigned a particular heat level when employing heat-aware tiering. FCP4 can determine the current workload type from metadata (e.g., stored in flash memory array 2 at the end of each execution time). FCP4 can also load the current workload type into DRAM 7 at power-on. If the workload is unknown (e.g., on first use of device 1), FCP4 can adopt a random write workload.
[0047] In step 32, FCP4 defines a workload-dependent switching threshold, THW, based on the current workload type and other known system parameters. In various embodiments, FCP4 may define the threshold in step 32 using a predefined table or other data structure indicating the current device parameters and optimal thresholds for different workload types. Such a table / structure may be stored in persistent memory of FCP4, or may be stored in DRAM 7 during execution and loaded into persistent storage (e.g., array 2) at power-on.
[0048] At step 33, FCP4 configures flash memory array 2 for operation in either hybrid or QLC-only mode based on a comparison of the current capacity utilization to the threshold THW (as outlined above). FCP4 may then proceed to operate the array in the configured mode while monitoring (at step 34) the capacity utilization and comparing (at decision step 35) to the threshold THW. In response to a determination that the threshold has been exceeded (Y branch of decision step 35), FCP4 operation returns to step 33 where FCP4 reconfigures the array for operation in the other mode. In response to a determination that the threshold has not been exceeded (N branch of decision step 35), FCP4 operation proceeds to monitor the workload type (step 36).
[0049] In either mode, FCP4 continues to monitor (at step 36) the workload type. In response to detecting a change in workload type (Y branch of decision step 37), operation of FCP4 returns to step 32 where FCP4 redefines the threshold THW for the new workload type. Operation then continues as described above, with the array reconfigured to the other mode, if necessary, based on the threshold comparison of step 32. Alternatively, in response to not detecting a change in workload type (N branch of decision step 37), operation of FCP4 may then transition to array operation in the mode configured with capacity utilization monitoring (at step 34).
[0050] Depending on device parameters, hybrid mode endurance may exceed multi-bit mode endurance at all capacity utilizations for certain workload types (e.g., Figures 5B and 5C). If FCP4 detects such a workload type in step 37, it may define (in step 32) a threshold THW as 100% capacity utilization, whereby operation will revert to hybrid mode (if necessary) and remain in that mode until the workload type changes.
[0051] The embodiment depicted in and described with respect to Figure 6 allows FCP4 to adapt to changing workloads on a given device. In an exemplary embodiment, FCP4 can appropriately define switch thresholds to accommodate changes in one or more system parameters. In further embodiments, FCP4 can accommodate multiple different parameter sets that encompass all normal ranges of storage device arrays and different parameter combinations.
[0052] A pre-stored table / data structure may indicate appropriate values of the switching thresholds for different sets of parameters, including various workload types, based on predetermined characteristics. The FCP 4 may then provide a generic memory controller that is adaptable to a given array design and operating parameters. In various embodiments, the FCP 4 is adapted to receive a set of system parameters for the array prior to operation of the array 2 and define switching thresholds based on these parameters.
[0053] Also, in accordance with embodiments of the present invention, the FCP4 may load system parameters and select switch thresholds accordingly at initial power-up of a given device, or at the beginning of each run time, or when the parameters change during operation, or any combination thereof. Specifically, in some devices, parameters other than workload may vary during device operation. For example, the hybrid mode may be selectable as dynamic or static for different periods of operation. Write heat discrimination may also be selectively enabled / disabled. In some cases, the size of the active flash memory array 2 may also be selectable (e.g., from the maximum number of NAND packages available in the device).
[0054] 7 is a flow chart illustrating the basic operational steps of an embodiment of an FCP4 in accordance with various aspects of the present invention. At step 40, the FCP4 loads system parameters for the current operating period. This parameter set may indicate the current state of variable parameters (as described above), including current capacity utilization and workload type, along with "fixed" parameters (e.g., native pec values for array cell types) if not previously loaded into the FCP4.
[0055] In step 41, FCP4 defines a workload-dependent switchover threshold THWP for the current parameter set. In step 42, FCP4 selects either a hybrid mode or a QLC-only array configuration based on a comparison of the current capacity utilization to the threshold THWP.
[0056] In step 43, FCP4 configures the array for operation in the selected mode with the specified operating parameters (e.g., dynamic or static hybrid mode, write heat tiering active / inactive, etc.). System configuration may include data and read path configuration (e.g., queue management in flash I / F6), size of SLC / QLC pool configuration (e.g., based on active array size), and general flash management or other functions (e.g., garbage collection, calibration, etc.) that depend on the SLC / QLC pool configuration. Device operation then proceeds with FCP4 controlling the operation of the array according to the specified parameters for this configuration. The remaining steps 44 to 47 of FIG. 7 correspond to steps 34 to 37 of FIG. 6, described in detail above.
[0057] It should be understood that various changes and modifications can be made to the exemplary embodiments described above. For example, the 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.).
[0058] Generally, where features are described in this specification in relation to an apparatus embodying the invention, the corresponding features may also be provided in a method / computer program product embodying the invention, and vice versa.
[0059] The description of various embodiments of the present invention is provided for illustrative purposes and is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terms used in this specification are selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology found in the market, or to enable those skilled in the art to understand the embodiments disclosed herein.
Claims
1. 1. A computer system for controlling operation of an array of non-volatile memory cells including cells selectively configurable for single-bit and multi-bit storage, comprising: a memory controller including one or more computer processors; one or more computer readable storage media; and program instructions stored on the computer-readable storage medium, the program instructions causing 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; comparing an array capacity utilization to a predefined threshold level associated with an endurance of the array; and configuring in the hybrid mode if the array capacity utilization is below the predefined threshold level and configuring in the multi-bit mode if the array capacity utilization is equal to or greater than the predefined threshold level; monitoring the array capacity utilization during the hybrid mode operation or the multi-bit mode operation, and dynamically switching between the hybrid mode and the multi-bit mode by comparing the array capacity utilization with the predefined threshold level; receiving a set of system parameters for the array prior to operation of the array, the set of system parameters indicating a size of the array, and defining the predefined threshold level based on the set of system parameters; wherein the set of system parameters indicates one of a static hybrid mode for operation of the array in the hybrid mode, in which a ratio of single-bit cells to multi-bit cells is static, and a dynamic hybrid mode, in which the ratio is dynamically determined. A computer system executable by a processing device of a memory controller.
2. monitoring a workload type during operation of said array; dynamically defining the predefined threshold level based on the workload type; 2. The computer system of claim 1, further comprising program instructions stored on said computer readable storage medium for execution using said memory controller.
3. 2. The computer system of claim 1, wherein the set of system parameters indicates an inherent cell endurance in the single-bit mode for the single-bit storage and in the multi-bit mode, the number of P / E cycles a cell can support before degradation or failure occurs.
4. 2. The computer system of claim 1, wherein the set of system parameters indicates whether write heat discrimination is enabled for operation of the array in the hybrid mode.
5. The computer system of claim 1, further comprising program instructions stored in the computer-readable storage medium for execution using the memory controller to control operation of the array in accordance with the set of system parameters.
6. writing data preferentially to single-bit cells of the array during operation of the array in the hybrid mode; moving data from a single-bit cell to a multi-bit cell, thereby freeing up storage capacity in said single-bit cell; 2. The computer system of claim 1, further comprising program instructions stored on said computer readable storage medium for execution using said memory controller.
7. a storage device; 2. The computer system of claim 1, wherein the storage device comprises an array of non-volatile memory cells including cells selectively configurable for single-bit and multi-bit storage.
8. 8. The computer system of claim 7, wherein the array comprises flash memory cells.
9. 9. The computer system of claim 8, wherein said flash memory cells are selectively configurable for single-bit and four-bit storage.
10. 1. A method for controlling operation of an array of non-volatile memory cells including cells selectively configurable for single-bit and multi-bit storage, comprising: a memory controller, including one or more computer processors, 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, by comparing an array capacity utilization to a predefined threshold level associated with an endurance of the array, and configuring in the hybrid mode if the array capacity utilization is below the predefined threshold level, and configuring in the multi-bit mode if the array capacity utilization is equal to or greater than the predefined threshold level; monitoring the array capacity utilization during the hybrid mode operation or during the multi-bit mode operation, and dynamically switching between the hybrid mode and the multi-bit mode by comparing the array capacity utilization with the predefined threshold level; receiving a set of system parameters for the array prior to operation of the array, the set of system parameters indicating a size of the array, and defining the predefined threshold level based on the set of system parameters; wherein the set of system parameters indicates one of a static hybrid mode for operation of the array in the hybrid mode, in which a ratio of single-bit cells to multi-bit cells is static, and a dynamic hybrid mode in which the ratio is dynamically determined; A method comprising:
11. said memory controller monitoring a workload type during operation of said array; 11. The method of claim 10, further comprising the memory controller dynamically defining the predefined threshold level based on the workload type.
12. A computer program product configured to cause a memory controller to perform the method according to any one of claims 10 to 11.
Citation Information
Patent Citations
Data recording method for semiconductor integrated circuit device
JP2007242163A
Nonvolatile semiconductor memory device
JP2009048750A
Memory management device and method
JP2011186555A
Semiconductor device
JP2014142986A
SLC-MLC consumption balancing
JP2015503798A
