Data placement in a write-cache architecture that supports read-heat data splitting

By assigning write requests to queues based on read heat values and optimizing data placement in SSDs, the method addresses the increasing read latency challenge in NAND flash-based SSDs, enhancing system efficiency and reducing processing delays.

DE112020003290B4Active Publication Date: 2024-09-26INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
DE112020003290
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-07-10
Filing Date
2020-06-25
Publication Date
2024-09-26
Estimated Expiration
2040-06-25

AI Technical Summary

Technical Problem

Traditional flash-based SSDs face challenges with write amplification and increasing read latency due to the inherent properties of NAND flash memory, particularly as newer generations store more data but exhibit inferior latency characteristics, leading to significant processing delays in larger storage systems.

Method used

A method that involves receiving write requests, determining their read heat values, and assigning them to specific write queues based on page type, allowing data to be offloaded to page stripes with matching physical pages, thereby optimizing data placement and reducing read latency by leveraging the relationship between read latency and read heat.

Benefits of technology

This approach significantly reduces read latency across different types and generations of memory by efficiently utilizing the different latency characteristics of physical pages, improving overall system performance and reducing processing delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0001_ABST
    Figure 00000000_0001_ABST
  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

Computer-implemented method (650) which features: Receiving write requests (652); Collecting (664) the write requests in an offloading buffer; Determine (668) a current read heat value of each logical page that meets the write requirements; Assign (670) each of the write requests to a respective write queue according to the current read heat value of each logical page corresponding to the write requests, each of the write queues corresponding to a different page strip containing physical pages, the physical pages containing each of the respective page strips being of the same type; and Outsourcing (674) the data in the write requests from the write queues to their respective page strips.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL AREA

[0001] The present invention relates to data storage systems, and more particularly, this invention relates to selective data placement in a write cache architecture that supports read heat data partitioning. BACKGROUND

[0002] Using flash memory as an example, the performance characteristics of conventional flash-based NAND solid-state drives (SSDs) differ fundamentally from those of traditional hard disk drives (HDDs). Data in conventional SSDs is typically organized into pages of 4, 8, or 16 KB. Furthermore, page read operations on SSDs are typically an order of magnitude faster than write operations, and latency does not depend on the current or previous memory location of operations.

[0003] However, with flash-based SSDs, memory locations are erased in blocks before being written to. The size of an erase block unit is anywhere from 256 to 512, or even several thousand pages, and erase operations take about an order of magnitude longer than a page program operation. Due to the inherent properties of NAND flash, flash-based SSDs write data in a random fashion, so a mapping table maps the logical addresses of the written data to physical addresses. This mapping table is typically referred to as a logical-to-physical table (LPT).

[0004] After flash-based memory cells experience read errors and / or glitches due to wear or other reasons, additional redundancy can be used within memory pages as well as across memory chips (e.g., RAID-5 and RAID-6-type systems). Additional redundancy within memory pages can include error correction code (ECC), which can include, for example, BCH, LDPC, or other codes. While adding ECC to pages is relatively straightforward, organizing memory blocks in RAID-type stripes is more complex. For example, individual blocks are retired over time, requiring either reorganization of the stripes or a reduction in the stripe's capacity.Since the organization of the stripes together with the LPT determines the arrangement of data, SSDs typically use a log-structured array (LSA) architecture that combines these two techniques.

[0005] Read latency characteristics have continued to increase with the advancement of memory devices such as NAND flash. This is especially true as the number of bits stored per cell increases, as read latency increases proportionally to the number of read threshold voltages that must be applied when reading the page. Therefore, some conventional NAND flash architectures exhibit significant latency differences depending on the page type.

[0006] A publication already exists in this context. Document US 2019 0 065 058 A1 describes reduced write amplification in solid-state drives by separating the mappings between shift write activities and user-triggered write activities. This is achieved by a first open logical erase block for user-triggered write operations and a second open logical erase block for shift-triggered write operations.

[0007] It follows that, despite the progress already made, larger storage systems aimed at low latency face significant challenges due to this trend. Current generations of NAND flash with lower latencies, for example, will eventually be replaced by newer generations that can store more data but also have inferior latency characteristics. Conventional controllers used to manage data stored in such storage also face similar challenges. SUMMARY

[0008] A computer-implemented method according to one aspect of the invention comprises receiving write requests, accumulating the write requests in a paging buffer, and determining a current read heat value of each logical page corresponding to the write requests. Each of the write requests is assigned to a respective write queue according to the current read heat value of each logical page corresponding to the write requests. Furthermore, each of the write queues corresponds to a different page stripe comprising physical pages, wherein the physical pages comprising each of the respective page stripes are of a same type. Furthermore, data in the write requests is paging from the write queues to their respective page stripes.

[0009] Different types of physical pages exhibit different amounts of read latency due to their respective physical configuration and the resulting different processes involved in actually reading data from each of them. Accordingly, by establishing a relationship between each of the write queues and a respective one of the open page stripes, the system can improve functional efficiency by exploiting the relationship between the read latency and the read heat that has been detected. In other words, the read latency associated with pages of a given page type can be used to select the write queue assigned to them according to the corresponding read heat. In this regard, the approaches incorporated herein can desirably reduce the total amount of processing delays incurred by a system as a whole.

[0010] With respect to the process of paging data from the write queues to their respective page stripes, in some approaches, the computer-implemented method further comprises: determining whether a given write queue contains sufficient data in the respective write requests to fill a next page stripe corresponding to them. In response to determining that the given write queue does not contain sufficient data in the respective write requests to fill the next page stripe corresponding to them, determining whether an adjacent write queue contains sufficient data in the respective write requests to complete filling the next page stripe corresponding to the given write queue.The data in the write requests is paged out from the given write queue and the adjacent write queue to the next page stripe corresponding to the given write queue in response to determining that the adjacent write queue contains sufficient data in the respective write requests to complete filling the next page stripe corresponding to the given write queue.

[0011] Although write requests are preferentially swapped from their respective write queues to the page stripe to which they correspond, write requests can be used differently in certain situations. For example, write requests from adjacent write queues are used to supplement the process of filling a given page stripe, rather than partially filling a given page stripe. This ensures efficient memory utilization while maintaining acceptable data placement in memory.

[0012] Furthermore, in some approaches, the computer-implemented method comprises receiving a read request corresponding to data stored in one or more logical pages and incrementing a read heat value associated with each of the one or more logical pages. The read request is also satisfied.

[0013] Various approaches incorporated herein can implement selective data placement in a write cache architecture that supports read-heat data partitioning. This significantly reduces read latency across different types and generations of memory. These approaches can leverage the different latency characteristics of different types of physical pages in multi-bit-per-cell memories (such as TLC and QLC NAND flash) to significantly reduce the read latency exhibited by the overall data storage system as a whole. These improvements are achieved in some approaches, for example, by tracking the read heat of the data stored in memory and selectively organizing the data in memory according to the read heat, as described in more detail below.

[0014] A computer program product according to a further aspect of the invention comprises a computer-readable storage medium in which program instructions are implemented. The program instructions are readable and / or executable by a processor to cause the processor to execute the above method.

[0015] A system according to yet another aspect comprises: a plurality of NVRAM (non-volatile random access memory) blocks configured to store data. The system also includes a processor and logic integrated with and / or executable by the processor. Furthermore, the logic is configured to perform the above method.

[0016] A computer-implemented method according to another aspect of the invention comprises receiving write requests, accumulating the write requests in a swap buffer, and determining whether each of the write requests is a host write request. In response to determining that a write request is not a host write request, determining a current read heat value of each logical page corresponding to the write request. The write request is also assigned to a write queue according to the current read heat value of each logical page corresponding to the write request. Each of the write queues corresponds to a different page stripe comprising physical pages, and the physical pages comprising each of the respective page stripes are of a same type.However, in response to determining that a write request is a host write request, the write request is assigned to an additional write queue.

[0017] Again, different types of physical pages exhibit different amounts of read latency due to their respective physical construction and the resulting different processes involved in actually reading data from each of them. Accordingly, by establishing a relationship between each of the write queues and a respective one of the open page stripes, the system can improve functional efficiency by exploiting the relationship established between read latency and read heat. In other words, the read latency associated with pages of a given page type can be used to select the write queue assigned to them according to the corresponding read heat. Thus, the approaches incorporated herein can desirably reduce the total processing delays exhibited by a system as a whole.

[0018] The computer-implemented method also includes swapping data in the host write requests from the additional write queue into physical pages in a page stripe comprising physical pages implemented in single-level cell (SLC) memory. The data contained in host write requests is used, in some approaches, to fill any gaps that the other write queues may not have been able to fill. While write requests are preferably swapped from their respective write queues to the page stripe that corresponds to them, write requests may again be used differently in certain situations. This ensures efficient use of memory while maintaining acceptable data placement in memory.Accordingly, instead of in response to determining that the queue is sufficiently full, the data in the host write requests can be paged out of the additional write queue as desired.

[0019] A computer program product according to another aspect comprises a computer-readable storage medium in which program instructions are implemented. The program instructions are readable and / or executable by a processor to cause the processor to perform the above method.

[0020] Further aspects and embodiments of the present invention will become apparent from the following detailed description, which, when considered in conjunction with the drawings, illustrates by way of example the principles of the invention. BRIEF DESCRIPTION OF THE DRAWINGS Fig. Figure 1 is a diagram of a non-volatile memory card according to one approach. Fig. Figure 2 is a diagram of a data storage system architecture according to one approach. Fig. 3 is a system diagram according to one approach. Fig. 4 is a conceptual diagram including a block stripe and a side stripe according to one approach. Fig. 5A is a representative partial view of a data storage system according to one approach. Fig. 5B is a flow diagram of a method according to one approach. Fig. Figure 5C is a flow diagram of a method according to one approach. Fig. 6A is a representative partial view of a data storage system according to one approach. Fig. 6B is a flow diagram of a method according to one approach. Fig. Figure 7A is a representative partial view of a data storage system according to one approach. Fig. 7B is a flow diagram of a method according to one approach. Fig. 8 is a network architecture according to one approach. Fig. 9 is a representative hardware environment provided to the servers and / or clients according to Fig. 8 can be assigned according to one approach. Fig. 10 is a multi-tiered data storage system according to one approach. DETAILED DESCRIPTION

[0021] The following description is presented for the purpose of illustrating the general principles of the present invention and is not intended to limit the inventive concepts claimed herein. Furthermore, certain features described herein may be used in any of the various possible combinations and variations in combination with other described features.

[0022] Unless expressly defined otherwise herein, all terms shall be understood to have the broadest possible meaning, including meanings implied by the description and meanings known to those skilled in the art and / or defined in dictionaries, conventions, etc.

[0023] It should also be noted that the singular forms "a", "an" and "the", "the", "which" as used in the specification and the appended claims include plural referents unless otherwise indicated. Further, it is to be understood that the terms "comprises" and / or "comprising", when used in this specification, indicate the presence of the listed features, integer values, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integer values, steps, operations, elements, components and / or groups thereof.

[0024] The following description discloses several preferred approaches to data storage systems, including their operation and / or components. It should be appreciated that different approaches herein may be implemented with a wide range of storage media, including, for example, NVRAM technologies such as NAND flash memory, NOR flash memory, phase-change memory (PCM), magnetoresistive RAM (MRAM), and resistive RAM (RRAM). To provide context and solely for the convenience of the reader, different approaches may be described with reference to a type of non-volatile memory. This is provided merely by way of example and should not be construed as limiting the invention defined in the claims.

[0025] In one general approach, a computer-implemented method comprises receiving write requests, accumulating the write requests in a paging buffer, and determining a current read heat value of each logical page corresponding to the write requests. Each of the write requests is assigned to a respective write queue according to the current read heat value of each logical page corresponding to the write requests. Furthermore, each of the write queues corresponds to a different page stripe comprising physical pages, wherein the physical pages comprised by each of the respective page stripes are of a same type. Furthermore, data in the write requests is paging from the write queues to their respective page stripes.

[0026] In another general approach, a computer program product comprises a computer-readable storage medium in which program instructions are implemented. The program instructions are readable and / or executable by a processor to cause the processor to perform the above method.

[0027] In yet another general approach, a system includes multiple NVRAM (non-volatile random access memory) blocks configured to store data. The system also includes a processor and logic integrated with and / or executable by the processor. Furthermore, the logic is configured to perform the above method.

[0028] In another general approach, a computer-implemented method comprises receiving write requests, accumulating the write requests in a swap buffer, and determining whether each of the write requests is a host write request. In response to determining that a write request is not a host write request, determining a current read heat value of each logical page corresponding to the write request. The write request is also assigned to a write queue according to the current read heat value of each logical page corresponding to the write request. Each of the write queues corresponds to a different page stripe comprising physical pages, and the physical pages comprising each of the respective page stripes are of a same type.However, in response to determining that a write request is a host write request, the write request is assigned to an additional write queue.

[0029] In yet another general approach, a computer program product comprises a computer-readable storage medium in which program instructions are implemented. The program instructions are readable and / or executable by a processor to cause the processor to perform the above method.

[0030] Fig. 1 illustrates a memory card 100 according to one approach. It should be noted that although the memory card 100 is illustrated as an exemplary non-volatile data storage card in the present approach, various other types of non-volatile data storage cards may be used in a data storage system according to alternative approaches. It follows that the architecture and / or components of the memory card 100 are not intended to limit the invention in any way, but rather are provided as a non-limiting example.

[0031] Furthermore, the present memory card 100 may optionally be implemented in conjunction with features of any other approach presented herein, such as those described with reference to the further figures. However, such a memory card 100 and others presented herein may be used in different applications and / or in variations that may or may not be specifically described in connection with the illustrative approaches presented herein. Furthermore, the memory card 100 presented herein may be used in any desired environment.

[0032] Further referring to Fig. 1, the memory card 100 includes a network interface module 102, a general-purpose processor (GPP) 112 (such as an ASIC, an FPGA, a CPU, etc.) connected to a GPP memory 114 (which may include RAM, ROM, battery-backed DRAM, phase-change memory, PC-RAM, MRAM, STT-MRAM, etc., or a combination thereof), and a series of memory controllers 108, which in this example include flash controllers. Each memory controller 108 is connected via channels 106 to a plurality of NVRAM memory modules 104 (which may include NAND flash or other non-volatile memory type(s) such as those listed above).

[0033] According to different approaches, one or more of the controllers 108 may be or include one or more processors and / or any logic for controlling any subsystem of the memory card 100. The controllers 108 typically control, for example, the functions of NVRAM memory modules 104 such as writing data, returning data, reading data, etc. The controllers 108 may, in different approaches, operate using logic known in the art, as well as any logic disclosed herein, and thus may be considered a processor with respect to any of the descriptions of non-volatile memory incorporated herein.

[0034] Furthermore, the controller 108 may be configured and / or programmable to execute or control part or all of the methodology presented herein. Thus, the controller 108 may be considered configured to perform various operations using logic programmed into one or more chips, modules, and / or blocks, etc., and combinations thereof; with software, firmware, and / or other instructions accessible to one or more processors.

[0035] Further referring to Fig. 1, each memory controller 108 is also connected to a controller memory 110, which preferably includes a cache replicating a non-volatile memory structure according to the various approaches described herein. However, depending on the desired approach, the controller memory 110 may be a battery-backed dynamic random access memory (DRAM), a phase-change memory, a PC-RAM, an MRAM, an STT-MRAM, etc., or a combination thereof.

[0036] As mentioned above, the memory card 100 can be implemented by different types of data storage systems depending on the desired approach. Fig. Figure 2 shows a data storage system architecture 200 according to an exemplary approach that is not intended to limit the invention in any way. Furthermore, it should be noted that the data storage system 220 according to Fig. 2 different components, which in the approach according to Fig. 1 can be found.

[0037] With a view to Fig. 2, the data storage system 220 includes a number of interface cards 202 configured to communicate with one or more processor systems 201 via I / O connections 204. The data storage system 220 may also include one or more RAID controllers 206 configured to control the storage of data on a plurality of non-volatile data storage cards 208. The non-volatile data storage cards 208 may include NVRAM, flash memory cards, RAM, ROM, and / or any other known type of non-volatile memory.

[0038] The I / O connections 204 may include any known communication protocol such as Fiber Channel (FC), FC over Ethernet (FCoE), Infiniband, Internet Small Computer System Interface (iSCSI), Transport Control Protocol / Internet Protocol (TCP / IP), Peripheral Component Interconnect Express (PCIe), etc. and / or any combination thereof.

[0039] The RAID controller(s) 206 in the data storage system 220 may implement a parity scheme similar to that used by RAID-5, RAID-6, RAID-10, or another suitable parity scheme, as will be apparent to those skilled in the art upon reading the present descriptions.

[0040] Each processor system 201 includes one or more processors 210 (such as CPUs, microprocessors, etc.), a local data memory 211 (such as the RAM 914 according to Fig. 9, the ROM 916 according to Fig. 9, etc.) and an I / O adapter 218 designed to communicate with the data storage system 220.

[0041] Referring again to Fig. 1, the memory controllers 108, the GPP 112 and / or other controllers described herein (according to Fig. 2 (e.g., RAID controllers 206) may be adapted to perform different functions on stored data depending on the desired approach. More specifically, the storage controllers or GPP 112 may include logic configured to perform any one or more of the following functions, which are in no way intended to be an exclusive list. In other words, depending on the desired approach, the logic of a storage system may be configured to perform additional or alternative functions, as will be apparent to those skilled in the art upon reading this description. Garbage collection

[0042] Garbage collection, in the context of SSD storage controllers as described herein, may include the process of identifying blocks of data to be reclaimed for future use and relocating any pages still valid within them. Furthermore, depending on the specific controller and / or the respective garbage collection engine, logical erase blocks (LEBs) may be identified for reclaiming and / or relocation. Typically, an LEB corresponds to a block stripe, but alternative implementations may also consider a fixed number of block stripes or a single block forming an LEB.

[0043] A physical "block" represents a minimal unit that can be erased from non-volatile memory, such as NAND flash memory, and thus prepared for data writing. However, a typical garbage collection unit is often several times the physical blocks of non-volatile memory and is also referred to here as an LEB. This is due to the fact that RAID-style parity information is typically added to LEBs. Therefore, in the event of a page or block fault, data can only be recovered if all blocks in the LEB still contain data. Accordingly, the individual blocks can only be erased by the garbage collection unit, either individually or as a single unit, if all still valid data from all blocks in the LEB has been successfully moved to new storage locations.Therefore, the entire garbage collection units are garbage collected as a single unit. Furthermore, the size of the LEB directly influences the garbage collection-induced write factor. The larger the LEB, the more likely it is that disjointed data is stored together within the LEB, and therefore more of the LEB data may need to be moved during garbage collection selection.

[0044] Often, blocks from different chips and / or flash channels are grouped together so that blocks from the same group can be read or written in parallel, thereby increasing overall bandwidth. It is also possible to combine the two above methods and create RAID stripes using blocks from different flash channels that can be accessed in parallel.

[0045] It should also be noted that an LEB can comprise any multiple of the physical memory block, which is a unit of physical erasure. Furthermore, organizing memory blocks into LEBs not only allows for the addition of RAID-like parity protection schemes among memory blocks from different memory chips, memory tiers, and / or channels, but also significantly improves performance through increased parallelism. For example, multiple non-volatile memory blocks can be grouped together in a RAID stripe. As will be apparent to those skilled in the art upon reading this specification, RAID schemes generally improve reliability and reduce the likelihood of data loss.

[0046] According to an exemplary approach, which is not intended to limit the invention in any way, memory controllers (see e.g. 108 according to Fig. 1) and / or the GPP 112 perform garbage collection internally. As previously mentioned, garbage collection may involve selecting an LEB to be relocated, after which all still valid data residing in the selected LEB may be moved (e.g., relocated). After the still valid data has been moved, the LEB may be erased and then used to store new data. The amount of data moved from the garbage-collected LEB determines the write factor. Furthermore, an efficient method for reducing the write factor involves implementing write heat sharing. Writing heat distribution

[0047] In this context, the "write heat" of data refers to the rate (e.g., the frequency) at which the data is updated (e.g., overwritten with new data). Memory blocks considered "hot" tend to have a frequent update rate, whereas memory blocks considered "cold" have a slower update rate than hot blocks.

[0048] For example, tracking the write heat of a logical page may involve allocating a specific number of bits in the page's LPT map entry to track how many write operations the page has undergone within a specific time period or window. Typically, host write operations increase write heat, whereas internal shift writes decrease write heat. The actual increases and / or decreases in write heat may be deterministic or probabilistic.

[0049] Similarly, a read heat can be tracked with a certain number of additional bits for each logical page in the LPT. To reduce metadata, the read heat can also be tracked at a physical block level, where separate counters per block can be maintained for cross-block and non-cross-block reads, as described below with reference to the Fig. 5A-7B. However, it should be noted that in some approaches, the number of read requests to a memory block and / or the number of read operations performed on it may not be used to determine the write heat distribution for the memory block. For example, if data is frequently read from a particular memory block, the high read frequency does not necessarily mean that the memory block has a high update rate. Rather, a high frequency of read operations performed on a given memory block may indicate the significance, value, etc., of the data stored in the memory block.

[0050] By grouping memory blocks with the same and / or similar write heat values, write heat sharing can be achieved. In particular, heat sharing techniques allow hot memory pages to be grouped together in specific memory blocks, while cold memory pages are grouped together in separate memory blocks. As a result, a heat-shared LEB tends to be occupied by either hot or cold data.

[0051] The benefit of write heat sharing is twofold. First, performing a garbage collection process on a hot memory block prevents the triggering of cold data relocation. Without write heat sharing, frequently performed hot data updates also result in the unwanted relocation of any cold data residing in the same LEB when the hot data is relocated. Therefore, the write penalty caused by performing a garbage collection process is significantly lower in approaches that implement write heat sharing.

[0052] Second, the relative write heat of data can be used for wear leveling purposes. For example, hot data can be placed in healthier (e.g., newer) memory blocks, while cold data can be placed in less healthy (e.g., older) memory blocks relative to these healthier memory blocks. This effectively slows the rate at which relatively older blocks are subject to wear, thereby improving the overall durability of a given data storage system that implements write heat leveling. Write mapping

[0053] Write allocation involves placing data from write requests into free memory locations of open LEBs. Once all pages in an LEB have been written, the LEB is closed and placed in a pool that holds occupied LEBs. Typically, LEBs in the occupied pool become eligible for garbage collection. The number of open LEBs is usually limited, and each closed LEB can be replaced either immediately or after some delay by a fresh LEB being opened.

[0054] During operation, garbage collection may occur concurrently with user write operations. For example, when a user (e.g., a host) writes data to a device, the device controller may continuously perform garbage collection on LEBs containing invalid data to make room for the newly incoming data pages. As mentioned above, the LEBs on which garbage collection is performed often contain some pages that are still valid at the time of the garbage collection operation; thus, these pages are preferentially moved (e.g., written) to a new LEB.

[0055] Again, the above features are not intended to limit the functionality of any of the storage systems described and / or proposed herein. Rather, the features listed above are presented as examples, and the logic of a storage system may be configured to perform additional or alternative functions depending on the desired approach, as will be apparent to those skilled in the art upon reading this specification.

[0056] Will now be on Fig. 3, a system 300 according to one approach is illustrated. As an option, the present system 300 may be implemented in conjunction with features of any other approach presented herein, such as those described with reference to the further figures. However, such a system 300 and others presented herein may be used in different applications and / or in variations that may or may not be specifically described in the illustrative approaches presented herein. Furthermore, the system 300 presented herein may be used in any desired environment, e.g., in combination with a controller.

[0057] As illustrated, system 300 includes a write cache 302 coupled to several other components, including a garbage collector 304. As previously mentioned, garbage collector 304 can be used to flush LEB units by moving valid data and providing non-volatile memory blocks to be erased for later reuse. Thus, depending on the desired approach, garbage collector 304 can reclaim blocks of contiguous physical storage space. According to one example approach, block erase units can be used to track and / or complete the erasure of non-volatile memory blocks relinquished by garbage collector 304.

[0058] Write cache 302 is also coupled to a free block manager 306, which can track free non-volatile memory blocks after they have been erased. Furthermore, as will be apparent to those of ordinary skill in the art upon reading this description, free block manager 306 can assemble free stripes of non-volatile memory blocks from different tracks (e.g., block stripes) using the erased free non-volatile memory blocks.

[0059] Still referring to Fig. 3, the write cache 302 is coupled to an LPT manager 308 and a memory I / O unit 310. The LPT manager 308 maintains the logical-to-physical mappings of logical addresses to physical pages in memory. According to one example, which is not intended to limit the invention in any way, the LPT manager 308 may maintain the logical-to-physical mappings of logical addresses of 4 KB or 16 KB. The memory I / O unit 310 communicates with the memory chips to perform low-level operations such as reading one or more non-volatile memory pages, writing a non-volatile memory page, erasing a non-volatile memory block, etc.

[0060] For a better understanding of the distinction between block stripes and side stripes as used here, Fig. 4 shows a conceptual diagram 400 according to one approach. LEBs are constructed from block stripes, and typically, a single block stripe is used to construct an LEB. However, alternative approaches may use multiple block stripes to form an LEB. As an option, the present conceptual diagram 400 may be implemented in conjunction with features of any other approach listed herein, such as those described with reference to the further figures. However, such a conceptual diagram 400 and others presented herein may be used in different applications and / or in variations that may or may not be specifically described in the illustrative approaches listed herein. Furthermore, the control conceptual diagram 400 presented herein may be used in any desired environment. Thus, the exemplary conceptual diagram 400 may be used for a non-volatile memory controller according to Fig. 4 in a cache architecture. Depending on the desired approach, the conceptual diagram 400 can be Fig. 4, however, can be implemented to determine the organization of data stored in the non-volatile memory. Accordingly, both implementations are described sequentially below. Non-volatile memory

[0061] Will now Fig. 4, the conceptual diagram 400 includes a set of M+1 aggregated levels, labeled "Level 0" through "Level M." A aggregated level consists of all physical levels with the same level index on different channels. Note that aggregated levels are also referred to herein simply as levels.

[0062] In an implementation with data stored in non-volatile memory, each physical layer on a channel can comprise a large set of blocks, typically on the order of 1024, 2048, or more. In addition, one or more physical layers can also comprise several additional blocks that can be used as replacement blocks for faulty blocks (e.g., blocks with poor performance, blocks with undesirable properties, etc.).

[0063] At each level of non-volatile memory, a single block on each channel can form a respective block stripe. It follows that the number of block stripes supported by a given non-volatile memory approach can be determined by the number of blocks per level and the number of levels.

[0064] In the exploded view of Level 0, conceptual diagram 400 further depicts a single block stripe (Block Stripe 0) among the set of block stripes supported in the remaining levels. Level 0 Block Stripe 0 is depicted as including 11 blocks, one block from each channel labeled "Channel 0" through "Channel 10." It should be noted that the mapping of blocks to a block stripe may change over time, as block stripes are typically resolved after being garbage collected. Deleted blocks may be placed in free block pools, resulting in new block stripes being assembled from blocks in the free block pools when write mapping requests fresh block stripes. For example, viewing conceptual diagram 400, Block 10 from Channel 0 and Block 41 from Channel 4 are currently mapped to the depicted Level 0 Block Stripe 0.Furthermore, the block stripe shown holds 0 N + 1 page stripes, and therefore each block holds N + 1 pages labeled “Page 0” to “Page N”. Cache architecture

[0065] Further referring to Fig. 4, when implemented in a cache architecture, each block of pages represented in the exploded view of aggregated level 0 may constitute a unique block from a channel. Similarly, each channel contributes a single, discrete block, forming a block stripe. For example, considering conceptual diagram 400, block 10 from channel 0 encompasses all of the pages it contains (page 0 through page N), while block 41 from channel 4 corresponds to all of the pages it contains, and so on.

[0066] In the context of a storage controller, which may be suitable for implementing RAID at the channel level, for example, a block stripe is composed of several blocks that form a stripe of blocks. Further consideration of Fig. 4, the multiple blocks of aggregated level 0 form block stripe 0. While all blocks in a block stripe typically belong to the same aggregated level, in some approaches, one or more blocks of a block stripe may belong to different physical levels. It follows that each aggregated level may comprise one or more block stripes. Thus, according to an exemplary approach, blocks 0 through 10 from different physical levels may form a block stripe.

[0067] Regardless of whether the concept diagram 400 is in accordance with Fig. 4 is implemented using non-volatile memory and / or a cache architecture, the number of pages in each block and / or the number of channels at each level may vary depending on the desired approach. According to an exemplary approach, which is not intended to limit the invention in any way, a block may comprise 256 pages, but it could comprise more or fewer pages in different approaches. Similarly, the number of channels per level and / or the number of levels may vary depending on the desired approach.

[0068] Further referring to Fig. 4, all pages in a block stripe with the same page index constitute a page stripe. For example, page stripe 0 includes the first page (page 0) of each channel in block stripe 0 of level 0. Similarly, page stripe N includes the last page (page N) of each channel in block stripe 0 of level 0.

[0069] As mentioned above, read latency characteristics have continuously increased with the continued development of memory such as NAND flash. This is especially true with an increase in the number of bits stored per cell, as read latency increases proportionally to the number of read threshold voltages that must be applied when reading the page. Therefore, some conventional NAND flash architectures exhibit significant latency differences depending on the page type. For example, while two-dimensional (2D) multi-level cell (MLC) memories exhibit an average read latency in the range of 50 to 100 microseconds (µs), three-dimensional (3D) triple-level cell (TLC) memories exhibit an average read latency increase of approximately 1.4 times that of MLC memory.In addition, 3D QLC (quad-level cell, four bits per cell) memories exhibit an average increase in read latency of about 2.5 times that of MLC memory.

[0070] It follows that larger storage systems targeting low latency face significant challenges as a result of this trend. For example, current low-latency NAND flash generations will eventually be replaced by newer generations that can store more data but also have inferior latency characteristics. Conventional controllers used to manage data stored in such storage also face similar challenges.

[0071] In sharp contrast to these conventional deficiencies, several of the approaches incorporated herein can realize selective data placement in a write cache architecture that supports read-heat data partitioning. This significantly reduces read latency across different types and generations of memory. These improvements are achieved, at least in part, due to the recognition that real-world workloads are typically skewed. In other words, while some portion of the data stored in memory is read relatively frequently, other portions of the data are read infrequently. Write operations are similarly skewed. Furthermore, frequently updated portions of the data typically do not overlap with portions of data that are frequently read. In other words, a significant portion of the data is written to memory once and subsequently read frequently, while other portions of the data, such asLogs are frequently overwritten but rarely read.

[0072] Accordingly, various approaches incorporated herein can exploit the different latency characteristics of the different types of physical pages in a multi-bit-per-cell memory (such as TLC and QLC NAND flash) to significantly reduce the read latency exhibited by the overall data storage system as a whole. These improvements are achieved in some approaches, for example, by tracking the read heat of the data stored in the memory and selectively organizing the data in the memory according to the read heat, as described in more detail below.

[0073] These read latency improvements can be achieved through a variety of different memory configurations and / or control architectures that support read heat sharing. For example, some of the approaches described here are implemented in control architectures that manage memory configured only in multi-bit-per-cell mode. Still others of the approaches presented here are implemented in hybrid control architectures that manage memory configured in SLC mode and memory configured in multi-bit-per-cell mode. These two memory configurations are also implemented in the same memory device in some approaches.

[0074] According to such an approach, which is not intended to limit the invention in any way, Fig. 5A illustrates a data storage system 500 implementing a control architecture that manages a memory configured only in multi-bit-per-cell mode. Optionally, the present data storage system 500 may be used in conjunction with features of any other approaches listed herein, such as those described with reference to the other figures, such as Fig. 1-4. However, such a data storage system 500 and others presented herein may be used in different applications and / or in variations that may or may not be specifically described in the illustrative approaches listed here. Furthermore, the data storage system 500 presented here may be used in any desired environment. Thus, Fig. 5A (and the other figures) can be considered to include any possible implementation.

[0075] As shown, the data storage system 500 includes a read heat sharing unit 502 coupled to a read heat counter module 504 and a swap buffer 506. The read heat sharing unit 502 is also coupled to a series of write queues 508, 510, 512, 514 contained within a storage module 516. Furthermore, each of the write requests stored in the write queues 508, 510, 512, 514 corresponds to a shaded one of the entry locations in the swap buffer 506.

[0076] The above-listed components of data storage system 500 are illustrated as being implemented in a controller 518 according to the present approach. However, this is not intended to limit the invention in any way. In other approaches, for example, a controller may simply be coupled to read heat sharing unit 502, read heat counter module 504, swap buffer 506, and / or storage module 516 such that, for example, commands, requests, instructions, etc., can be transferred among them.

[0077] Over time, the read heat distribution unit 502 receives write requests from one or more hosts, running applications, other storage systems, etc. These write requests are typically either new write requests (also referred to herein as "host write requests") or shift write requests. New write requests are associated with writing new data to the memory for the first time, whereas shift write requests are associated with rewriting data that is already stored in the memory. These write requests are received and verified by the read heat distribution unit 502, preferably so that appropriate action can be taken according to the type of write request received (see, for example, the method 550 below according to Fig. 5B).

[0078] Further referring to Fig. 5A, each of the write queues 508, 510, 512, 514 is illustrated as corresponding to a respective opened block stripe 528 consisting of example page stripes 520, 522, 524, 526 in the physical memory 532. Each of these opened page stripes 520, 522, 524, 526 spans a number of blocks 530 of non-volatile memory (such as NAND flash), and the pages in a page stripe 520, 522, 524, 526 belong to the same page type. According to one example, which is not intended to limit the invention in any way, the memory 532 is a 3D QLC memory, which includes four different types of pages due to the physical structure of the memory cells contained therein. These page types include bottom pages, top pages, extra pages, and top pages, each with different performance features.The page type within blocks and their respective ordering arrangements are related to the device architecture of the non-volatile memory (e.g., NAND flash memory), which may vary across device generations and manufacturers. However, pages with the same page index within a block are typically of the same type. Different types of physical pages, due to their respective physical architecture, exhibit different amounts of read latency, for example, and the resulting different processes involved in actually reading data from each of them, as will be apparent to those skilled in the art after reading this description. However, according to another example, memory 532 is a 3D TLC memory, which includes three different types of pages due to the physical architecture of the memory cells contained therein.

[0079] By establishing a relationship between each of the write queues 508, 510, 512, 514 and a respective one of the opened page stripes 520, 522, 524, 526, the system 500 can improve functional efficiency by exploiting the relationship established between read latency and read heat. In other words, the read latency associated with pages of a given page type can be used to select the write queue associated with it according to the corresponding read heat. As a result, the approaches incorporated herein can desirably reduce the total processing delays exhibited by the system 500 as a whole. It follows that typically, the number of read heat-dependent write queues implemented preferably corresponds to the number of page types present in the NAND flash memory blocks.

[0080] According to one example, which is not intended to limit the invention in any way, an opened page stripe 520 extends across a series of blocks 530, wherein all of the pages contained in the opened page stripe 520 are bottom pages in the QLC memory. Since bottom pages are characterized by having the lowest average read latency compared to the other types of pages present in the QLC memory, the opened page stripe 520 is preferably assigned to a write queue dedicated to write requests associated with data with higher (e.g., hotter) read temperatures. Accordingly, the data written to the opened page stripe 520 is expected to be subjected to a high number of read operations, but the low average read latency corresponding to the type of pages in which the data is stored compensates for this high number of read operations.

[0081] In another example, which again is not intended to limit the invention in any way, the opened page stripe 524 extends across a number of blocks, where all of the pages included in the opened page stripe 524 are extra pages in the QLC memory. Since extra pages are characterized by having the second-highest average read latency compared to the other types of pages present in the QLC memory, the opened page stripe 524 is preferably associated with a write queue dedicated to write requests involving data with the second-lowest (e.g., second-coldest) read heats. Accordingly, the data written to the opened page stripe 524 is expected to be subjected to a relatively small number of read operations, thereby offsetting the relatively higher read latency associated with actually performing a read operation on such pages.

[0082] It follows that various approaches included herein can reduce the overall amount of read latency encountered. Again, this is achieved (at least partially) by correlating the selection types of physical memory pages with data associated with these selection read heats. As a result, this allows the system to compensate for physical memory pages with higher read latencies by storing data with lower read heats in them, as well as to benefit from physical memory pages with low read latencies by storing data with higher read heats in them.

[0083] In addition, will now Fig. Referring to Figure 5B, a flow diagram of a method 550 for storing data in a memory according to the data storage scheme outlined above is shown according to one approach. It should be noted that the processes included in the method 550 are related to the data storage system 500 according to Fig. 5A. In other words, the different processes included in the method 550 can be executed, for example, in response to receiving write requests from the controller 518 according to Fig. 5A, as will soon be apparent. However, the method 550 may be implemented in accordance with the present invention in different approaches, including, but not limited to, any of the Fig. 1 - 4. Of course, more or fewer operations than those shown in Fig. 5B may be incorporated into the method 550, as will be apparent to those skilled in the art upon reading the present descriptions.

[0084] Each of the steps of method 550 may be performed by any suitable component of the operating environment. For example, in different approaches, method 550 may be performed partially or entirely by a controller, a processor, a computer, etc., or another device having one or more processors. Thus, in some approaches, method 550 may be a computer-implemented method. In such approaches, the computer used to implement the method may include the non-volatile memory card itself or a portion thereof, such as the controller, the non-volatile memory, an external host, a server, etc. Furthermore, the terms computer, processor, and controller may be used interchangeably with respect to each of the approaches herein, as such components are considered equivalents in the numerous different implementations of the present invention.

[0085] Furthermore, in the approaches using a processor, the processor, e.g., a processing circuit(s), a chip(s), and / or a module(s) implemented as hardware and / or software, and preferably comprising at least one hardware component, may be used in any device for performing one or more steps of the method 550. Example processors include, but are not limited to, a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), etc., combinations of these, or any other suitable computing device known in the art.

[0086] As in Fig. 5B, step 552 of method 550 includes receiving write requests. In some approaches, new write requests and shift write requests are received from a read heat sharing unit (see, e.g., 502 of Fig. 5A). Furthermore, depending on the approach, the write requests may be received from one or more hosts, running applications, other data storage systems over a network, etc. Furthermore, the write requests received are typically either new write requests (also referred to herein as "host write requests") or internal relocation write requests. As mentioned above, new write requests involve writing new data to memory for the first time, whereas relocation write requests involve rewriting data already stored in memory.

[0087] According to an example in the context of the data storage system according to Fig. 5A, a move write request is associated with moving data stored in one or more physical pages of QLC memory 532 to one or more different physical pages of QLC memory 532. However, in another example (see, e.g., method 750 below), the move write request is associated with moving data stored in one or more physical pages of SLC memory to one or more different physical pages of SLC memory, or in yet another example (see, e.g., method 750 below), the move write request is associated with moving data between one or more physical pages of SLC memory and one or more physical pages of QLC memory.

[0088] Referring again to method 550, the flowchart continues with method step 554, which includes storing the received write requests in a swap buffer. Depending on the approach, the swap buffer may be implemented using MRAM, battery-backed DRAM, etc., or any other desired type of memory. Furthermore, each of the write requests is acknowledged in method step 556. Depending on the approach, a write request may be acknowledged by returning a message indicating that the write request has been added to the swap buffer to a source of the write request, updating an LPT, etc.

[0089] Method step 558 further includes determining a current read heat value of each logical page corresponding to the data reference by the write requests. In other words, each of the write requests includes and / or corresponds to specific portions of data. In approaches that include shift write requests, the data specified in the write requests corresponds to data already stored in the memory. Furthermore, read heats are associated with the logical pages in which the data specified in the write requests is stored (see, e.g., the read heat counter module 504 of Fig. 5A). Accordingly, method step 558 includes determining a current read heat value associated with the data specified in the write requests.

[0090] Further referring to the procedure 550 according to Fig. 5B, method step 560 includes associating each of the write requests with a respective write queue corresponding to the current read heat value of each logical page corresponding to the write requests. As described above, each of the write queues corresponds to a different page type including physical pages, and the physical pages included in each of the respective page stripes are of a same type. Accordingly, each of the write queues is coupled to a respective type of physical page in memory. This correlation is preferably established according to a relationship between the read heat and the read latency. Again, the read latency associated with the type of physical pages in a given page stripe can be used to select the write queue associated with it according to the corresponding read heat.Some of the approaches included herein can compensate for physical memory pages with higher read latencies by storing data with low read heats in them, as well as benefit from physical memory pages with low read latencies by storing data with higher read heats in them. As a result, the approaches can desirably reduce the total processing delays incurred.

[0091] Additionally, decision 562 includes determining whether any of the write queues contain a sufficient number of write requests to fill a respective page stripe in the memory corresponding to them. When writing to memory, it is desirable to fill the entire page stripe so that memory capacity is used efficiently. However, the process of filling a given page stripe may vary depending on the particular approach. In some approaches, decision 562 may include determining whether any of the write queues contain a sufficient number of write requests so that the data contained therein can fill a predetermined portion of a corresponding page stripe in the memory.

[0092] For example, decision 562 may include determining whether one of the write queues contains a sufficient number of write requests such that the data contained therein would utilize 95% of the storage capacity of a corresponding page stripe in memory if stored therein. Although it is preferable for each page stripe to be completely filled as it is written to, write requests from one or more other write queues may be used to fill a remaining portion of the given page stripe. Following the above example, the remaining 5% of the corresponding page stripe in memory may be filled with write requests stored in an adjacent write queue, thereby increasing the efficiency with which the storage capacity is utilized.

[0093] It follows that the specific determination made in decision 562 may vary depending on the particular approach. For example, write queues 508, 510, 512, 514 may be filled at different rates. However, within a block, pages should be programmed in a specific order without skipping pages to achieve efficient performance and reliability. Furthermore, for a given open block stripe, the number of pages of each page type is dictated by the physical architecture of the storage device. Accordingly, instead of waiting for new write requests to be stored in a given write queue, other options for paging the data are available. For example, method step 560 may include placing write requests in suboptimal write queues to better balance the write request queues.

[0094] In another example, method step 564 may include reallocating write requests from a neighboring write queue if an insufficient number of write requests remain in the directly allocated write queue. According to some approaches, in response to determining that a given write queue does not contain sufficient data in the respective write requests to fill the next page stripe corresponding to them, a determination is made as to whether a neighboring write queue contains sufficient data in the respective write requests to complete filling the next page stripe corresponding to the given write queue.Furthermore, in response to determining that the adjacent write queue contains sufficient data in the respective write requests to complete filling the next page stripe corresponding to the given write queue, the data in the write requests from the given write queue as well as the adjacent write queue are paged out to the next page stripe corresponding to the given write queue.

[0095] Further referring to Fig. 5B, in response to determining that a write queue does not contain a sufficient amount of data in the write requests from the write queues to fill the next page stripe in memory, method 550 returns to step 552 to allow additional write requests to be received and processed as described herein. However, in response to determining that a write queue contains a sufficient amount of data in the write requests to fill the next page stripe in memory, method 550 continues to step 564, which includes swapping the data in the write requests from the write queue to the respective page stripe.

[0096] Temporarily referring again to Fig. 5A, in some approaches, for a given open block stripe 528, the number of pages of each page type is determined by the physical architecture of the non-volatile memory device. It is therefore possible that at a certain point, the number of remaining write requests in one of the write queues 508, 510, 512, 514 is insufficient to write the next page stripe assigned to it, but there is a sufficient total number of write requests to write a single page stripe. In this case, method step 564 may be performed according to Fig. 5B remove write requests from an adjacent write queue or any other write queue if no write requests remain to fill the respective page stripe in the directly associated write queue. To further reduce the risk of this situation occurring, method step 560 may even place write requests suboptimally to better balance the queue levels (e.g., by placing the write request in an adjacent write queue or any other write queue if the current write queue exceeds a threshold). It should also be noted that the process of paging the data in the write requests out of the write queue is associated with the actual execution of a write operation. In other words, the process of paging the data in the write requests out of the write queue, for example, isB. is associated with (or at least triggers) the actual writing of the data into the physical pages in the memory, as will be apparent to those skilled in the art after reading this description.

[0097] From method step 564, method 550 also returns to method step 552 to allow additional write requests to be received and processed as described herein. It follows that subsequent requests to execute write requests, which are preferably received and processed according to method 550, for example, may be received before a current swap operation has been successfully implemented.

[0098] Similarly, read operation requests can be received at any time, e.g., while a write request is being processed and / or a write operation itself is being executed. Fig. 5C illustrates a method 570 for evaluating a received read request according to one approach. It should be noted that the method 570 is also applicable to the data storage system 500 according to Fig. 5A. In other words, the different processes included in the method 570 can be executed by the controller 518 according to Fig. 5A, for example, in response to receiving read requests, as will soon become apparent. However, the method 570 may be executed according to the present invention in different approaches, including in any of the Fig. 1 - 4. Of course, more or fewer process steps than those shown in Fig. 5C may be incorporated into the method 570, as will be apparent to those skilled in the art upon reading the present descriptions.

[0099] Each of the steps of method 570 may be performed by any suitable component of the operating environment. In different approaches, method 570 may, for example, be performed partially or entirely by a controller, a processor, etc., or another device having one or more processors. The processor, e.g., a processing circuit(s), a chip(s), and / or a module(s) implemented as hardware and / or software and preferably comprising at least one hardware component, may be used in any device for performing one or more steps of method 570. Example processors include a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), etc., combinations thereof, or any other suitable computing device known in the art, but are not limited thereto.

[0100] As in Fig. 5C, method step 572 of method 570 includes receiving a read request corresponding to data stored in one or more logical pages. A read request may be received from a host (e.g., a user), a running application, another storage system, etc., depending on the approach. Furthermore, method step 574 includes incrementing a read heat value associated with each of the one or more logical pages corresponding to the received read request. As mentioned above, each of the logical pages preferably has a read heat value corresponding to it. Referring again temporarily to Fig. 5A, in some approaches, the read heat counter module 504 is responsible for maintaining a current read heat value for each logical page in the memory. In alternative approaches, the counter module 504 may maintain a single counter for a contiguous range of logical pages.

[0101] Depending on the approach, read heat values ​​can be managed at the logical level and / or at the physical level. For example, an LPT may include one or more bits for each logical page listed therein, where the bits hold the current read heat value of the respective logical page. According to one example, which is not intended to limit the invention in any way, a 2-bit counter is implemented for each logical block address. Each of the 2-bit counters is incremented from a value of 0 to a value of 1 in response to receiving a read request corresponding to the data stored therein. Furthermore, each of the 2-bit counters is incremented from a value of 1 to a value of 2 according to a predetermined probability.For example, for a given 2-bit counter, there is a 1 / 10 (10%) probability that it will be incremented from a value of 1 to a value of 2 in response to receiving a read request corresponding to the data stored therein. Similarly, each of the 2-bit counters will be incremented from a value of 2 to a value of 3 according to a further predetermined probability. For example, for a given 2-bit counter, there is a 1 / 100 (1%) probability that it will be incremented from a value of 2 to a value of 3 in response to receiving a read request corresponding to the data stored therein. Thus, each 2-bit counter can maintain a correct read heat for the data corresponding to it without significantly increasing the amount of metadata stored by the system.

[0102] It also follows that, in some approaches, the read heat counter module 504 has access to an LPT to maintain the read heat values ​​for the logical pages corresponding to the data actually contained in the physical pages that correspond to them. A range of adjacent logical block addresses may even be aggregated in some approaches to increase counter resolution. However, it should be noted that in such situations, the value of each counter should not be reset upon an overwrite of the respective page. Rather, the counter values ​​may, for example, be decremented periodically in the background according to a predetermined counter management scheme. Other factors may also be considered when determining whether the read heat values ​​should be reset upon executing a host write request. These additional factors include detected workload priorities, the storage system architecture (e.g.,the knowledge that a protocol-structured arrangement is implemented), whether periodic aging of the read heat information is a viable option, etc., but are in no way limited to this.

[0103] Regarding approaches that implement read heat values ​​managed at the physical layer, counters can be applied in different ways. For example, a high-resolution counter can be maintained for each page type and block in the physical memory. In other words, four counters are implemented for each QLC memory block. In other situations, a high-resolution counter is maintained for each page type, level, and block. In still other situations, a low-resolution counter can be implemented for each fine-grained page group of each block. It follows that read heat values ​​managed by counters at the physical layer could be used to improve data misplacement detection. Data misplacement detection can be used in process step 560, where write requests are mapped to write queues, or by a garbage collector (see, for example,304 according to . Fig. 3) be used to move such misplaced data.

[0104] In still further approaches, each of the counters used to maintain the current read heat values ​​can be any desired type of saturation counter. The read heat counters can also be used, for example, to filter sequential scans (such as internal boundary reads, array-level cleanup, etc.) and / or calibration reads, as will be apparent to those skilled in the art after reading this description. By filtering sequential scans and / or calibration reads, the read heat counters can prevent an unwanted increase in read counter values. Furthermore, in some approaches, counters can be implemented on both the logical and physical levels, and they can even be combined, for example, as desired.

[0105] Referring again to Fig. 5C, method 570 also includes satisfying the read request by reading the data and making it available in response to the originally received read request. See method step 576. For example, the original read request may have been received from a host, making the data read from memory available (e.g., sending it) to the host that issued the read request.

[0106] It follows that the various processes included in methods 550 and 570 can exploit the different latency characteristics of the different types of physical pages in the multi-bit-per-cell memory (such as MLC, TLC, and QLC NAND flash) to significantly reduce the read latency experienced by the overall data storage system as a whole. These improvements are achieved in some approaches by tracking the read heat of the data stored in the memory and, for example, selectively organizing the data in the memory according to the read heat according to one of the preceding approaches.

[0107] Will now Fig. 6A, a data storage system 600 is shown according to one approach that implements a control architecture similar to the one shown in Fig. 5A. More specifically, Fig. 6A Variants of the approach according to Fig. 5A, which illustrate several exemplary configurations within the data storage system 600. Accordingly, different components according to Fig. 6A a common numbering with those according to Fig. 5A.

[0108] As an option, the present data storage system 600 may be used in conjunction with features of any other approaches listed herein, such as those described with reference to the further figures, such as Fig. 1-5A. However, such a data storage system 600 and others presented herein may be used in different applications and / or in variations that may or may not be specifically described in the illustrative approaches presented herein. Furthermore, the data storage system 600 presented herein may be used in any desired environment. Thus, Fig. 6A (and the other figures) can be considered to include any possible implementation.

[0109] As shown, host write requests received by the data storage system 600 are forwarded directly to the swap buffer 506 instead of being received by the read heat sharing unit 502 as in Fig. 5A. This difference in the way host write requests are handled by controller 604 in this approach arises from the fact that host write requests are associated with data that does not yet exist in memory (e.g., new data or overwritten data) and therefore does not have a read heat associated with it. Although a read heat counter may be established in read heat counter module 504 for each received host write request, the read heat does not play a role in determining where the data in the host write requests is ultimately stored in memory. Rather, host write requests are stored in an additional write queue 602.It follows that the additional write queue 602 is intended only to store host write requests, which are then used to fill gaps in the block stripes that could not be filled by the other write queues, such as in . Fig. 6A is shown by the arrows and will soon be seen.

[0110] Will now Fig. Referring to Figure 6B, a flow diagram of a method 650 for storing data in memory according to the data storage scheme outlined above is shown, according to one approach. It should be noted that the processes included in the method 650 are related to the data storage system 600 according to Fig. 6A. In other words, the different processes included in the method 650 can be executed by the controller 604 according to Fig. 6A, for example, in response to receiving write requests, as will soon become apparent. However, the method 650 may be implemented according to the present invention in different approaches, including in any of the Fig. 1 - 5A. Of course, more or fewer operations than those shown in Fig. 6B may be incorporated into the method 650, as will be apparent to those skilled in the art upon reading the present descriptions.

[0111] Each of the steps of method 650 may be performed by any suitable component of the operating environment. For example, in different approaches, method 650 may be performed partially or entirely by a controller, a processor, a computer, etc., or another device having one or more processors. Thus, in some approaches, method 650 may be a computer-implemented method. In such approaches, the computer used to implement the method may include the non-volatile storage drive itself or a portion thereof, such as the controller, the non-volatile memory, an external host, a server, etc. Furthermore, the terms computer, processor, and controller may be used interchangeably with respect to each of the approaches herein, as such components are considered equivalents in the numerous different implementations of the present invention.

[0112] Furthermore, in the approaches using a processor, the processor, e.g., a processing circuit(s), a chip(s), and / or a module(s) implemented as hardware and / or software, and preferably comprising at least one hardware component, may be utilized in any device for performing one or more steps of the method 650. Example processors include, but are not limited to, a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), etc., combinations of these, or any other suitable computing device known in the art.

[0113] As in Fig. As shown in Figure 6B, step 652 of method 650 includes receiving write requests. In some approaches, new write requests and shift write requests are received. Accordingly, decision 654 includes determining whether each write request is a host write request or a shift write request. As mentioned above, new write requests involve writing new data to memory for the first time, whereas shift write requests involve rewriting data already stored in memory.

[0114] In response to determining that a given write request is a host write request, method 650 continues with method step 656, which includes storing the host write request in the swap buffer, e.g., according to one of the approaches described above. Furthermore, method step 658 includes associating the host write request in the swap buffer with an additional write queue. As stated above, the additional write queue (see, e.g., 602 in Fig. 6A) is used in preferred approaches only to store host write requests.

[0115] Furthermore, method step 660 includes swapping the data in the host write requests from the additional write queue into physical pages in any of the block stripes. As stated above, the data contained in host write requests is preferably used to fill gaps that the other write queues could not fill. Accordingly, for example, the data in the host write requests may be swapped from the additional write queue as desired, rather than in response to determining that the queue is sufficiently full.

[0116] Furthermore, the method 650 includes resetting the current read heat values ​​of logical pages associated with the physical pages to which the data in the host write requests is swapped out. See method step 662. As stated above, host write requests contain data that is not yet stored in memory and therefore has no read heat associated with it. It follows that when the data in a host write request is stored in one or more pages of memory, any previous read heat value associated with the one or more pages that were overwritten no longer correctly represents the read heat of the data now stored therein. By resetting the current read heat value of the logical pages associated with the physical pages to which the data in the host write requests is swapped out, the host write requests can, for example,begin tracking a correct read heat value, as will be apparent to those skilled in the art after reading this description. This is typically the case when, for example, read-hot and write-hot records are substantially different (there is little overlap between them) and / or a log-structured arrangement is implemented, as will be apparent to those skilled in the art after reading this description. However, it should be noted that if the read-hot and write-hot records have a significant amount of overlap, the read heat values ​​do not need to be reset in response to a host write operation being performed. Rather, the read heat values ​​may be decremented over time, for example, according to any type of predetermined scheme.

[0117] From step 662, method 650 continues with step 663, where it is determined when the additional write queue is sufficiently full. If it is determined that the additional write queue is sufficiently full, method 650 jumps to step 674; otherwise, method 650 returns to step 652 so that additional write requests can be received and processed as described herein. It follows that subsequent requests to execute write requests, preferably received and processed according to method 650, may be received before a current swap operation has been successfully implemented.

[0118] Returning to decision 654, method 650 proceeds to step 664 in response to determining that a given write request is a shift write request. There, step 664 includes storing the shift write request in a swap buffer. In other words, the shift write request is allocated to the swap buffer. As discussed above, depending on the approach, the swap buffer may be implemented using MRAM, battery-backed DRAM, etc., or any other desired type of memory. Furthermore, each of the write requests is acknowledged in step 666. Depending on the approach, a write request may be acknowledged by returning a message indicating that the write request has been added to the swap buffer to a source of the write request, updating an LPT, etc.

[0119] Method step 668 includes determining a current read heat value of each logical page corresponding to the data reference by the write requests. Furthermore, method step 670 includes assigning each of the write requests to a respective write queue corresponding to the current read heat value of each logical page corresponding to the write requests. This may be achieved according to any of the approaches described above with respect to method step 560 of method 550. Read heat values ​​may be managed, for example, at the logical level (e.g., in an LPT) and / or at the physical level.

[0120] Further referring to Fig. 6B, decision 672 includes determining whether any of the write queues contains a sufficient amount of data in the write requests to fill a respective page stripe in the memory to which they correspond. When writing to memory, it is desirable that the entire page stripe be filled so that memory capacity is used efficiently. Although it is preferable that each page stripe be completely filled when written, in some approaches, decision 672 may include determining whether any of the write queues contains a sufficient amount of data in the write requests to fill a predetermined portion of a corresponding page stripe in the memory.Decision 672 may, for example, be associated with determining whether one of the write queues contains a sufficient number of write requests so that the data contained therein can utilize 95% of the storage capacity of a corresponding block stripe in memory. In this example, the data in the host write requests stored in an additional write queue may be used to fill the remaining 5% of the corresponding block stripe in memory, thereby increasing the efficiency with which storage capacity is utilized. Alternatively, write requests from an adjacent write queue or any other write queue may also be used to fill the remaining storage, as described above.

[0121] In response to determining that a write queue does not contain a sufficient amount of data in the write requests from the write queues to fill the next page stripe in memory, the method 650 may decide to populate write requests from an adjacent write queue or any other write queue if there are no write requests remaining in the directly associated write queue to fill the respective page stripe, but there are still enough write requests to fill a page stripe, before returning to the method step 652 so that additional write requests can be received and processed as described herein.However, in response to determining that a write queue contains a sufficient amount of data in the write requests to fill a respective page stripe in memory, method 650 continues with step 674, which includes swapping the data in the write requests from the write queue to the respective page stripe. From step 674, method 650 also returns to step 652 to allow additional write requests to be received and processed as described herein. It follows that subsequent requests to execute write requests, preferably received and processed in accordance with method 650, for example, may be received before a current swap operation has been successfully implemented.

[0122] It follows that the various processes included in method 650 can exploit the different latency characteristics of the different types of physical pages in a multi-bit-per-cell memory (such as TLC and QLC NAND flash) to significantly reduce the read latency exhibited by the higher-level data storage system as a whole. These improvements are achieved in some approaches by tracking the read heat of the data stored in the memory and selectively organizing the data in the memory according to the read heat, e.g., according to one of the preceding approaches.

[0123] Will now Fig. Referring to Figure 7A, a data storage system 700 according to another approach is shown, implementing a control architecture similar to the one described above in Fig. 5A and Fig. 6A. More specifically, Fig. 7A Variants of the approaches according to the Fig. 5A and Fig. 6A, which illustrate exemplary configurations within the data storage system 700. Accordingly, different components according to Fig. 7A a common numbering with those according to the Fig. 5A and Fig. 6A.

[0124] As an option, the present data storage system 700 may be used in conjunction with features of any other approaches listed herein, such as those described with reference to the other figures, such as Fig. 1-4. However, such a data storage system 700 and others presented herein may be used in different applications and / or in variations that may or may not be specifically described in the illustrative approaches listed here. Furthermore, the data storage system 700 presented here may be used in any desired environment. Thus, Fig. 7A (and the other figures) can be considered to include every possible implementation.

[0125] As shown, host write requests received by data storage system 700 are forwarded directly to the swap buffer 506 rather than being received by the read heat sharing unit 502. This difference in how host write requests are handled by a hybrid control architecture 704 in this approach is due to the fact that host write requests are associated with data that does not yet exist in memory and therefore does not have any read heat associated with it. Although a read heat counter may be set up in the read heat counter module 504 for each received host write request, the read heat does not play a role in determining where the data in the host write requests is ultimately stored in memory. Rather, host write requests are stored in an additional write queue 702.It follows that the additional write queue 702 is intended only to store host write requests, which are then used to fill page stripes 706 in the opened block stripe 710 spanning memory blocks 708 in the SLC memory 712, as indicated by the arrows in FIG. Fig. 7A and will soon become apparent. It should also be noted that read operations requesting data stored in the SLC memory 712 have the lowest latency compared to read operations performed on a multi-bit-per-cell memory 528, such as a QLC memory.

[0126] Will now Fig. Referring to Figure 7B, a flow diagram of a method 750 for storing data in a memory according to the data storage scheme outlined above is shown, according to one approach. It should be noted that the processes included in the method 750 are related to the data storage system 700 according to Fig. 7A. In other words, the different processes included in the method 750 can be executed by the controller 704 according to Fig. 7A, for example, in response to receiving write requests, as will soon become apparent. However, the method 750 may be implemented according to the present invention in different approaches, including in any of the Fig. 1 - 5A. Of course, more or fewer operations than those shown in Fig. 7B may be incorporated into the method 750, as will be apparent to those skilled in the art upon reading the present descriptions.

[0127] Each of the steps of method 750 may be performed by any suitable component of the operating environment. For example, in different approaches, method 750 may be performed partially or entirely by a controller, a processor, a computer, etc., or another device having one or more processors. Thus, in some approaches, method 750 may be a computer-implemented method. In such approaches, the computer used to implement the method may include the tape drive itself or a portion thereof, such as the controller, the tape, an external host, a server, etc. Moreover, the terms computer, processor, and controller may be used interchangeably with respect to each of the approaches herein, as such components are considered equivalents in the numerous different implementations of the present invention.

[0128] Furthermore, in the approaches using a processor, the processor, e.g., a processing circuit(s), a chip(s), and / or a module(s) implemented as hardware and / or software, and preferably comprising at least one hardware component, may be used in any device for performing one or more steps of the method 750. Example processors include, but are not limited to, a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), etc., combinations of these, or any other suitable computing device known in the art.

[0129] As in Fig. 7B, step 752 of method 750 includes receiving write requests, whereas step 754 includes storing the write requests in a swap buffer. It should also be noted that storing the write requests in the swap buffer may include any of the same or similar approaches as those described above with respect to storing write requests in a swap buffer, as the terms "collecting" and "storing" are not intended to limit the invention in any way.

[0130] Depending on the approach, new write requests and / or shift write requests may be received. Furthermore, the shift write requests may involve moving data between blocks in SLC memory, between blocks in multi-bit-per-cell memory, and / or between SLC and multi-bit-per-cell memory. Accordingly, decision 756 includes determining which type each of the write requests belongs to.

[0131] In response to determining that a given write request is a host write request or a move write request associated with moving data between different blocks in an SLC memory, the method 750 continues with step 758, which includes associating the write request in the swap buffer with an additional write queue. As stated above, the additional write queue (see, e.g., 702 in Fig. 7A) in preferred approaches, is used only to store host write requests and move write requests associated with moving data between blocks in the SLC memory.

[0132] Decision 760 includes determining whether the additional write queue contains a sufficient amount of data in the write requests to fill at least one open page stripe in the SLC memory. When writing to memory, it is desirable that the entire page stripe be filled so that memory capacity is used efficiently. Although it is preferable that each page stripe be completely filled when written, in some approaches, decision 760 may include determining whether the additional write queue contains a sufficient amount of data in the write requests to fill a predetermined portion of an open page stripe in the SLC memory, for example, as described for the preceding approaches.

[0133] In response to determining that the additional write queue does not contain a sufficient amount of data in the write requests to fill an open page stripe in the SLC memory, the method 750 is reset to step 752 to allow additional write requests to be received and processed as described herein. However, in response to determining that the additional write queue does not contain a sufficient amount of data in the write requests to fill an open page stripe in the SLC memory, the method 750 continues to step 762. There, step 762 includes swapping the data in the write requests from the additional write queue into physical pages in an open block stripe in the SLC memory.Furthermore, the current read heat values ​​of logical pages associated with the physical pages to which the data is paged in the host write requests are preferably reset, as described above.

[0134] From method step 762, method 750 is returned to method step 752 to allow additional write requests to be received and processed as described herein. It follows that subsequent requests to execute write requests, preferably received and processed according to method 750, may be received before a current swap operation has been successfully implemented.

[0135] Returning to decision 756, method 750 continues with step 766 in response to determining that a given write request is a shift write request associated with moving data between blocks in a multi-bit-per-cell memory and / or moving data from blocks in an SLC to blocks in a multi-bit-per-cell memory. Although the multi-bit-per-cell memory may be a 3D QLC memory in some approaches, any type of multi-bit-per-cell memory may be implemented in any of the approaches described herein. As shown, method step 766 includes acknowledging each of the write requests. Depending on the approach, a write request may be acknowledged by returning a message indicating that the write request has been added to the swap buffer to a source of the write request, updating an LPT, etc.

[0136] Method step 768 further comprises determining a current read heat value of each logical page corresponding to the data reference of the write requests. Furthermore, method step 770 comprises assigning each of the write requests to a respective write queue corresponding to the current read heat value of each logical page corresponding to the write requests. This may be achieved according to any of the approaches described above with respect to method step 560 of method 550. Read heat values ​​may be managed, for example, at the logical level (e.g., in an LPT) and / or the physical level. Optionally, method step 770 may further adjust the queue levels of the write queues (see, e.g., 508, 510, 512, 514 according to Fig. 7A). For example, step 770 may include placing the write requests in an adjacent write queue or any other write queue if the current write queue exceeds a predetermined threshold.

[0137] Further referring to Fig. 7B, decision 772 includes determining whether the write queues contain a sufficient amount of data in the write requests to fill the next page stripe in the memory that corresponds to them. When writing to memory, it is desirable that the entire page stripe be filled so that memory capacity is used efficiently. Although it is preferable that each page stripe be completely filled when written to, in some approaches, decision 772 may include determining whether any of the write queues contain a sufficient amount of data in the write requests to fill a predetermined portion of a corresponding page stripe in the memory. For example, decision 772 may include determining whether any of the write queues contain a sufficient amount of data in the write requests to utilize 95% of the storage capacity of a corresponding block stripe in the memory.In this example, data in host write requests stored in an additional write queue can be used to fill the remaining 5% of the corresponding page stripe in memory, thereby increasing the efficiency with which memory capacity is utilized. Alternatively, write requests from an adjacent write queue or any other write queue can be used to fill the remaining memory.

[0138] In response to determining that a write queue does not contain a sufficient amount of data in the write requests to fill the next page stripe in memory, method 750 is reset to step 752 to allow additional write requests to be received and processed, as described herein. However, in response to determining that a write queue contains a sufficient amount of data in the write requests to fill a respective page stripe in memory, method 750 continues to step 774, which includes swapping the data in the write requests from the write queue to the respective page stripe. From step 774, method 750 is also reset to step 752 to allow additional write requests to be received and processed, as described herein.It follows that subsequent requests to execute write requests, which are preferably received and processed, for example, according to method 750, may be received before a current swap operation has been successfully implemented.

[0139] It follows that the various processes included in method 750 may also exploit the different latency characteristics of the different types of physical pages in a multi-bit-per-cell memory (such as TLC and QLC NAND flash) to significantly reduce the read latency exhibited by the higher-level data storage system as a whole. These improvements are achieved in some approaches by tracking the read heat of the data stored in the memory and selectively organizing the data in the memory according to the read heat, e.g., according to one of the preceding approaches.

[0140] Furthermore, various of the approaches incorporated herein can exploit the different latency characteristics of the different types of physical pages in a multi-bit-per-cell memory (such as TLC and QLC NAND flash) to significantly reduce the read latency exhibited by the higher-level data storage system as a whole. These improvements are achieved in some approaches by tracking the read heat of the data stored in the memory and selectively organizing the data in memory according to the read heat, e.g., according to one of the preceding approaches. For example, data that is read frequently is selectively stored in physical pages that inherently have low read latency, whereas data that is read infrequently is selectively stored in physical pages with inherently higher read latency.This significantly reduces the overall read latency experienced by the data storage system, thereby increasing efficiency.

[0141] Furthermore, systems implementing a hybrid control architecture with memory blocks operating in SLC and multi-bit-per-cell modes in the same device can achieve improved read latencies from the start of operation. This is because memory blocks operating in SLC mode are associated with significantly lower read latency and are used to service host write requests and other types of write requests for which no read heat information is available. Furthermore, data that has been misplaced into the memory system can be detected in the different approaches described here. In response to the occurrence of such a detection, the data can be proactively relocated (e.g., with or without resetting the corresponding read heat value) by relocating the misplaced pages themselves or, in some situations, even the entire block or LEB.

[0142] It should also be noted that while various approaches incorporated herein can significantly reduce the read latency exhibited by a given memory system, additional steps can be taken to further reduce read latency. For example, in any manner apparent to those skilled in the art after reading this description, any of the approaches herein can implement orthogonal techniques such as data compression, horizontal track spanning, snap reads (e.g., reading partial physical pages), etc. to further reduce read latency.

[0143] Furthermore, although various approaches are described herein as correlating each page stripe to a specific write queue, this is not intended to limit the invention in any way. For example, a write queue containing write requests corresponding to data with a given read heat may be used to fill a page stripe correlated with a write queue containing write requests corresponding to data with a similar read heat. According to one example, a write queue containing write requests corresponding to data with a hot read heat may be used to fill a page stripe correlated with a write queue containing write requests corresponding to data with a warm read heat.This functional scheme can be implemented to free space in the swap buffer, to flush a write queue that is close to becoming full, etc.

[0144] The present invention may be a system, a method, and / or a computer program product at any technically feasible level of integration. The computer program product may comprise a computer-readable storage medium (or media) having computer-readable program instructions embodied therein for causing a processor to carry out aspects of the present invention.

[0145] The computer-readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. The computer-readable storage medium may be, for example, but is 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 of the foregoing.A non-exhaustive list of more specific examples of the computer-readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (a RAM), a read-only memory (a ROM), an erasable programmable read-only memory (an EPROM or a flash memory), a static random access memory (a SRAM), a portable compact disc read-only memory (a CD-ROM), a digital versatile disk (a DVD), a memory stick, a floppy disk, a mechanically encoded device such as punched cards or raised structures in a groove with instructions recorded thereon, and any suitable combination of the foregoing.A computer-readable storage medium as used herein shall not be understood as comprising transient signals per se such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating via a waveguide or other transmission media (e.g., light pulses traveling through a fiber optic cable), or electrical signals sent via a cable.

[0146] The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to respective computing / processing devices or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, network switching computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage on a computer-readable storage medium in the respective computing / processing device.

[0147] Computer-readable program instructions for performing operations according to the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state-setting data, integrated circuit configuration data, or any source code or object code written in any combination of one or more programming languages, including an object-oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages ​​such as the "C" programming language or similar programming languages.The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer over any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, over the Internet using an Internet service provider).In some embodiments, electronic circuits, including, for example, programmable logic circuits, field programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), may execute the computer-readable program instructions by utilizing state information of the computer-readable program instructions to personalize the electronic circuits to carry out aspects of the present invention.

[0148] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should 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, may be implemented by computer-readable program instructions.

[0149] These computer-readable program instructions may be made accessible to a processor of a computer or other programmable data processing apparatus to produce a machine, such that the instructions, executing via the processor of the computer or other programmable data processing apparatus, provide a means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, a programmable data processing apparatus, and / or other devices to operate in a particular manner, such that the computer-readable storage medium having instructions stored therein comprises an article of manufacture that includes instructions that implement aspects of the function / act specified orspecified in the flowchart and / or block diagram block or blocks.

[0150] The computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a sequence of method steps to be performed on the computer, other programmable device, or other device to produce a computer-implemented process, such that the instructions executing on the computer, other programmable device, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0151] The flowchart 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 flowchart or block diagrams may represent a module, segment, or portion of instructions that includes one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions listed in the blocks may appear out of the order noted in the figures.For example, depending on the functionality involved, two blocks shown as sequential may actually be performed as a single step, executed concurrently, substantially concurrently, in partial or complete temporal overlay, or the blocks may occasionally be executed in reverse order. It will also be appreciated that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks of the block diagrams and / or flowchart illustrations, may be implemented by special-purpose hardware-based systems that perform the specified functions or operations, or by combinations of special-purpose hardware and computer instructions.

[0152] Furthermore, according to various embodiments, a system may comprise a processor and logic integrated into and / or executable by the processor, wherein the logic is configured to perform one or more of the process steps listed herein. Integrated means that the processor has logic embedded therein as hardware logic such as an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), etc. Processor-executable means that the logic is hardware logic; software logic such as firmware, part of an operating system, part of an application program; etc., or a combination of hardware and software logic that can be accessed by the processor and that is configured to cause the processor to perform a function when executed by the processor.Software logic may be stored in local and / or remote memory of any memory type known in the art. Any processor known in the art, such as a software processor module and / or a hardware processor such as an ASIC, an FPGA, a central processing unit (CPU), an integrated circuit (IC), a graphics processing unit (GPU), etc., may be used.

[0153] It is clear that the different features of the above systems and / or methodologies can be combined in any way, resulting in several combinations from the descriptions presented above.

[0154] The descriptions of the various embodiments of the present invention have been presented for illustrative purposes, but are 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 of the described embodiments. The terminology used herein has been chosen to best explain the principles of the embodiments, practical application, or technical improvement over current technologies, or to enable others of ordinary skill in the art to understand the disclosed embodiments.

[0155] Fig. 8 shows a network architecture 800 according to one approach. As in Fig. 8, a plurality of remote networks 802 are provided, including a first remote network 804 and a second remote network 806. A network switch 801 may be coupled between the remote networks 802 and a proximal network 808. In the context of the present network architecture 800, the networks 804, 806 may each take any form, including, but not limited to, a LAN, a WAN such as the Internet, the public switched telephone network (PSTN), an internal telephone network, etc.

[0156] In use, the network coupler 801 serves as an access point to the near network 808 from the remote networks 802. As such, the network coupler 801 can act as a router capable of forwarding a given packet of data arriving at the network coupler 801 and a switch that provides the actual path into and out of the network coupler 801 for a given packet.

[0157] Further included is at least one data server 814 coupled to the nearby network 808, which can be accessed from the remote networks 802 via the network switch 801. It should be noted that the data server(s) 814 may comprise any type of computing device / groupware. Coupled to each data server 814 are multiple user devices 816. Such user devices 816 may include a desktop computer, a laptop computer, a handheld computer, a printer, and / or any other type of logic-containing device. It should be noted that in some approaches, a user device 811 may also be directly coupled to one of the networks.

[0158] A peripheral device 820 or a series of peripheral devices 820, e.g., fax machines, printers, scanners, hard disk drives, network and / or local data storage devices or systems, etc., may be coupled to one or more of the networks 804, 806, 808. It should be noted that databases and / or additional components may be utilized by or integrated into any type of network element coupled to the networks 804, 806, 808. In the context of this description, a network element may refer to any component of a network.

[0159] According to some approaches, the method and systems described herein may be implemented with and / or on virtual systems and / or systems that emulate one or more other systems, such as a UNIX system virtually hosting a MICROSOFT WINDOWS environment, etc. This virtualization and / or emulation may be enhanced in some approaches through the use of VMWARE software.

[0160] In further approaches, one or more networks 804, 806, 808 may represent a cluster of systems commonly referred to as a "cloud." In cloud computing, shared resources such as processing power, peripherals, software, data, servers, etc., are made available to each system in the cloud in an on-demand relationship, enabling access to and distribution of services across many computing systems. Cloud computing typically involves an internet connection between the systems operating in the cloud, but other techniques known in the art may also be used to connect the systems.

[0161] Fig. 9 shows a user device 816 and / or a server 814 according to Fig. 8 associated representative hardware environment according to one approach. Fig. 9 illustrates a typical hardware configuration of a processor system 900 having a central processing unit 910 such as a microprocessor and a number of other units interconnected via a system bus 912 according to one approach. In some approaches, the central processing unit 910 may implement any of the components described above with reference to the one or more processors 210 according to Fig. 2 described approaches.

[0162] The Fig. 9 includes a random access memory (RAM) 914, a read-only memory (ROM) 916, and an I / O adapter 918. According to some approaches, which are not intended to limit the invention in any way, the I / O adapter 918 may implement any of the embodiments described above with reference to the I / O adapter 218 according to Fig. 2 described approaches. Further referring to the processor system 900 according to Fig. 9, the above-listed components 914, 916, 918 may be used to connect peripheral devices such as a storage subsystem 920 to the bus 912. In some approaches, a storage subsystem 920 may have a similar and / or the same configuration as the data storage system 220 according to Fig. 2. According to an example, which is not intended to limit the invention in any way, the storage subsystem 920 may, in addition to the Fig. 2 may include non-volatile data storage cards including, for example, NVRAM memory cards, a RAM, a ROM, and / or another known type of non-volatile memory.

[0163] Further referring to Fig. 9 a user interface adapter 922 for connecting a keyboard 924, a mouse 926, a speaker 928, a microphone 932 and / or other user interface devices such as a touch-sensitive screen, a digital camera (not shown), etc. to the bus 912.

[0164] The processor system 900 further includes a communication adapter 934 that connects the processor system 900 to a communication network 935 (e.g., a data processing network), and a display adapter 936 that connects the bus 912 to a display device 938.

[0165] An operating system such as the Microsoft Windows operating system (OS), a Mac OS, a UNIX OS, etc., may be installed on the processor system 900. It is understood that a preferred approach may also be implemented on platforms and operating systems other than those listed. A preferred approach may be written in addition to an object-oriented programming methodology using the languages ​​Java, XML, C and / or C++, or other programming languages. Object-oriented programming (OOP), which is increasingly used to develop complex applications, may be employed.

[0166] In addition, Fig. 10 illustrates a storage system 1000 according to an approach that implements high-level storage categories (e.g., SSD) in combination with lower-level storage categories (e.g., magnetic tape). It is noted that some of the Fig. 10 can be implemented as hardware and / or software according to different approaches. The storage system 1000 can include a storage system manager 1012 for communicating with multiple media on at least one higher storage category 1002 and at least one lower storage category 1006. However, in other approaches, a storage system manager 1012 can communicate with multiple media on at least one higher storage category 1002, but not with any lower storage category. The higher storage category(ies) 1002 can preferably include one or more random and / or direct access media 1004 such as hard disks, non-volatile memory (NVM, NVRAM), solid-state storage in SSDs, flash memory, SSD arrays, flash memory arrays, etc., and / or others listed herein or known in the art. According to illustrative examples, the Fig. 3 - 4 example architectures of SSD systems that can be used as a higher storage category depending on the desired approach 1002.

[0167] Further referring to Fig. 10, the lower storage category(s) 1006 preferably comprise one or more lower performance storage media 1008, including sequential access media such as magnetic tape in tape drives and / or optical media, slower access HDDs, slower access SSDs, etc., and / or others listed herein or known in the art. One or more additional storage categories 1016 may comprise any combination of storage media as desired by a designer of the system 1000. Thus, in some approaches, the one or more additional storage categories 1016 may comprise a storage medium similar to that described in the Fig. 1-2. Likewise, each of the higher storage categories 1002 and / or the lower storage categories 1006 may include any combination of storage devices and / or storage media.

[0168] The storage system manager 1012 may be connected to a network 1010 such as a storage area network (SAN), as shown in Fig.10, or another suitable network type with the storage media 1004, 1008 of the higher storage category(s) 1002 and the lower storage category(s) 1006. The storage system manager 1012 may also communicate with one or more host systems (not shown) via a host interface 1014, which may or may not be part of the storage system manager 1012. The storage system manager 1012 and / or any other component of the storage system 1000 may be implemented in hardware and / or software and may utilize a processor (not shown) of a type known in the art, such as a central processing unit (CPU), a field-programmable gate array (FPGA), an application-specific integrated circuit (ASIC), etc., to execute instructions. Of course, any arrangement of a storage system may be used, as will be apparent to those skilled in the art upon reading this description.

[0169] In further approaches, storage system 1000 may include any number of data storage categories, and within each storage category, the same or different storage media. For example, each data storage category may include the same type of storage media, such as HDDs, SSDs, sequential access media (tapes in tape drives, optical disks in optical disk drives, etc.), random access media (CD-ROM, DVD-ROM, etc.), or any combination of storage media types. In such a configuration, a higher storage category 1002 may include a plurality of SSD storage media for storing data in a higher-performance storage environment, and the remaining storage categories, including lower storage category 1006 and additional storage categories 1016, may include any combination of SSDs, HDDs, tape drives, etc. for storing data in a lower-performance storage environment.In this way, more frequently accessed data, higher priority data, data that needs to be accessed more quickly, etc., may be stored in the higher storage category 1002, whereas data that does not have any of these attributes may be stored in the additional storage categories 1016, including the lower storage category 1006. Of course, those skilled in the art, upon reading the present descriptions, may devise many other combinations of storage media types to implement different storage schemes according to the approaches presented herein.

[0170] According to some approaches, the storage system (such as 1000) may include logic configured to receive a request to open a data set, logic configured to determine whether the requested data set is stored in multiple related pieces in a lower storage category 1006 of a multi-tiered data storage system 1000, logic configured to move each related piece of the requested data set to a higher storage category 1002 of the multi-tiered data storage system 1000, and logic configured to assemble the requested data set from the related pieces in the higher storage category 1002 of the multi-tiered data storage system 1000.

[0171] Of course, this logic may be implemented as a method on any device and / or system or as a computer program product according to different embodiments.

Claims

[1] A computer-implemented method (650) comprising: Receiving write requests (652); collecting (664) the write requests in a swap buffer; determining (668) a current read heat value of each logical page that meets the write requirements; Assigning (670) each of the write requests to a respective write queue corresponding to the current read heat value of each logical page corresponding to the write requests, wherein each of the write queues corresponds to a different page stripe having physical pages, wherein the physical pages comprising each of the respective page stripes are of a same type; and Paging (674) the data in the write requests from the write queues into their respective page stripes. [2] The computer-implemented method (650) of claim 1, comprising: determining (672) whether a given write queue contains sufficient data in the respective write requests to fill a next page stripe corresponding thereto; Determining whether an adjacent write queue contains sufficient data in the respective write requests to complete filling the next page stripe corresponding to the given write queue in response to determining that the given write queue does not contain sufficient data in the respective write requests to fill the next page stripe corresponding thereto; and Paging the data in the write requests from the given write queue and the adjacent write queue to the next page stripe corresponding to the given write queue in response to determining that the adjacent write queue contains sufficient data in the respective write requests to complete filling the next page stripe corresponding to the given write queue. [3] A computer-implemented method according to claim 1, comprising: Receiving a read request (572) corresponding to data stored in one or more logical pages; Incrementing (574) a read heat value associated with each of the one or more logical pages; and Fulfill (576) the read requirement. [4] A computer-implemented method according to claim 1, comprising: receiving (652) host write requests; Storing (656) the host write requests in the swap buffer; Assigning (658) each of the host write requests in the swap buffer to an additional write queue; swapping (660) data in the host write requests from the additional write queue into physical pages in any of the page stripes; and Resetting (662) the current read heat values ​​of logical pages associated with the physical pages to which the data is paged in the host write requests. [5] The computer-implemented method of claim 1, wherein the physical pages are implemented in a quad-level cell (QLC) memory (523), the types of physical pages comprising: bottom pages, top pages, extra pages, and top pages. [6] The computer-implemented method of claim 1, wherein each of the current read heat values ​​is maintained using a 2-bit saturation counter. [7] A computer program product comprising a computer-readable storage medium in which program instructions are implemented, wherein the program instructions are readable and / or executable by a processor (210) for causing the processor (210) to execute the method according to any one of claims 1 to 6. [8] System (220) which comprises: multiple NVRAM (non-volatile random access memory) blocks designed to store data; and a processor (210) and logic integrated into and / or executable by the processor (210), the logic being configured to: receiving (652) write requests by the processor (210); storing (664) the write requests in a swap buffer by the processor (210); determining (668) by the processor (210) a current read heat value of each logical page that meets the write requests; the processor (210) allocating (670) each of the write requests to a respective write queue (508, 510, 512, 514) according to the current read heat value of each logical page corresponding to the write requests, wherein each of the write queues (508, 510, 512, 514) corresponds to a different page stripe having physical pages, the physical pages comprising each of the respective page stripes being of a same type; and the paging (674) of data in the write requests from the write queues (508, 510, 512, 514) into their respective page stripes (520, 522, 524, 526) by the processor (210). [9] The system (200) of claim 8, wherein the logic is configured to: determining, by the processor (210), whether a given write queue contains sufficient data in the respective write requests to fill a next page stripe (520, 522, 524, 526) corresponding thereto; determining, by the processor (210), whether an adjacent write queue (508, 510, 512, 514) contains sufficient data in the respective write requests to complete filling the next page stripe corresponding to the given write queue (508, 510, 512, 514) in response to determining that the given write queue (508, 510, 512, 514) does not contain sufficient data in the respective write requests to fill the next page stripe corresponding thereto; and swapping the data in the write requests from the given write queue and the adjacent write queue (508, 510, 512, 514) to the next page stripe (520, 522, 524, 526) corresponding to the given write queue (508, 510, 512, 514) by the processor (210) in response to determining that the adjacent write queue (508, 510, 512, 514) contains sufficient data in the respective write requests to complete filling the next page stripe (520, 522, 524, 526) corresponding to the given write queue (508, 510, 512, 514). [10] The system (200) of claim 8, wherein the logic is configured to: receiving, by the processor (210), a read request corresponding to data stored in one or more logical pages; incrementing, by the processor (210), a read heat value associated with each of the one or more logical pages; and the fulfillment of the read request by the processor (210). [11] The system (200) of claim 8, wherein the logic is configured to: receiving host write requests by the processor (210); storing the host write requests in the swap buffer by the processor (210); the processor (210) allocating each of the host write requests in the swap buffer to an additional write queue; swapping data in the host write requests from the additional write queue into physical pages in any of the page stripes (508, 510, 512, 514) by the processor (210); and resetting, by the processor (210), the current read heat values ​​of logical pages associated with the physical pages to which the data is paged in the host write requests. [12] The system (200) of claim 8, wherein the physical pages are implemented in a quad-level cell (QLC) memory, the types of physical pages comprising: bottom pages, top pages, extra pages, and top pages. [13] The system (200) of claim 8, wherein each of the current read heat values ​​is maintained using a 2-bit saturation counter. [14] A computer-implemented method (750) comprising: Receiving (752) write requests; collecting (754) the write requests in a swap buffer; determining (756) whether each of the write requests is a host write request; in response to determining (756) that a write request is not a host write request: Determining a current read heat value of each logical page corresponding to the write request, and Assigning (758) the write request to a write queue corresponding to the current read heat value of each logical page corresponding to the write request, each of the write queues corresponding to a different page stripe having physical pages, the physical pages having each of the respective page stripes being of a same type; and In response to determining that a write request is a host write request, allocating the write request to an additional write queue. [15] A computer-implemented method according to claim 14, comprising: Swap data in the host write requests from the additional write queue into physical pages in a page stripe that has physical pages implemented in single-level cell (SLC) memory. [16] A computer-implemented method according to claim 14, comprising: Paging data in the write requests from the write queues to their respective page stripes by: determining (772) whether a given write queue contains sufficient data in the respective write requests to fill a next page stripe corresponding thereto; Determining whether an adjacent write queue contains sufficient data in the respective write requests to complete filling the next page stripe corresponding to the given write queue in response to determining that the given write queue does not contain sufficient data in the respective write requests to fill the next page stripe corresponding thereto; and Paging (774) the data in the write requests from the given write queue and the adjacent write queue to the next page stripe corresponding to the given write queue in response to determining that the adjacent write queue contains sufficient data in the respective write requests to complete filling the next page stripe corresponding to the given write queue. [17] The computer-implemented method of claim 16, wherein the multi-bit-per-cell memory is a quad-level cell (QLC) memory, wherein the types of physical pages include: bottom pages, top pages, extra pages, and top pages. [18] A computer-implemented method according to claim 14, comprising: Receiving (572) a read request corresponding to data stored in one or more logical pages; Incrementing (574) a read heat value associated with each of the one or more logical pages; and Fulfill (576) the read requirement. [19] The computer-implemented method of claim 14, wherein each of the current read heat values ​​is maintained using a 2-bit saturation counter. [20] A computer program product comprising a computer-readable storage medium in which program instructions are implemented, the program instructions being readable and / or executable by a processor (210) for causing the processor (210) to execute the method according to any one of claims 14 to 19.

Citation Information

Patent Citations

  • Reducing write amplification in solid-state drives by separating allocation of relocate writes from user writes

    US20190065058A1