Data compression for mapping tables

By storing compressed mapping table entries in volatile memory and using non-volatile memory to store relatively small amounts of information, the problem of low storage efficiency of mapping tables in the memory system is solved, and data compression and storage of the memory system are realized. Improved efficiency.

CN118796111APending Publication Date: 2024-10-18MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410439593.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-03-19
Filing Date
2024-04-12
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

When existing memory systems store mapping tables, the capacity of volatile memory is small and the cost is high. It is difficult to effectively compress the entries of the mapping table to reduce the amount of information, which affects storage efficiency.

Method used

Reduce the gap between LBAs and PBAs by storing compressed mapping table entries with fewer logical block addresses (LBAs) in volatile memory and utilizing non-volatile memory to store relatively less physical block address (PBA) information. Mapping information volume to support storage of larger amounts of data.

Benefits of technology

It realizes data compression of mapping tables in the memory system, reduces the usage and cost of volatile memory, improves storage efficiency, and supports access to larger amounts of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796111A_ABST
    Figure CN118796111A_ABST
Patent Text Reader

Abstract

The application is directed to data compression for mapping tables. A memory system may store a table including a mapping between a logical block address set and a physical block address set. The table may be stored to volatile memory of the memory system and each entry may include a subset of physical block addresses and one or more logical block addresses corresponding to the subset of physical block addresses. In some implementations, a number of the entries each containing the subset of physical block addresses and the one or more logical block addresses may be determined based on dividing the set of physical block addresses by a factor. Similarly, a size of the entry may be determined based on dividing the physical block address set by the factor.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references

[0002] This patent application claims priority to U.S. patent application No. 18 / 610,028, filed by He et al. on March 19, 2024, entitled “DATA COMPRESSION FOR MAPPING TABLES,” and U.S. patent application No. 63 / 459,365, filed by He et al. on April 14, 2023, entitled “DATA COMPRESSION FORMAPPING TABLES,” both of which are assigned to the assignee of the present invention and are each expressly incorporated herein by reference in their entirety.

[0003] The technical field relates to data compression for mapping tables. Background Art

[0004] Memory devices are widely used to store information in various devices such as computers, user devices, wireless communication devices, cameras, digital displays, etc. Information is stored by programming memory cells within the memory device to various states. For example, a binary memory cell can be programmed to one of two supported states, often represented by a logical 1 or a logical 0. In some instances, a single memory cell can support more than two states, either of which can be stored. To access the stored information, the memory device can read (e.g., sense, detect, retrieve, determine) a state from the memory cell. To store information, the memory device can write (e.g., program, set, assign) a state to the memory cell.

[0005] There are various types of memory devices, including magnetic hard disks, random access memory (RAM), read-only memory (ROM), dynamic RAM (DRAM), synchronous dynamic RAM (SDRAM), static RAM (SRAM), ferroelectric RAM (FeRAM), magnetic RAM (MRAM), resistive RAM (RRAM), flash memory, phase change memory (PCM), self-select memory, chalcogenide memory technology, "NOR" and "NAND" memory devices, etc. Memory cells can be described in terms of volatile configurations or non-volatile configurations. Memory cells configured in a non-volatile configuration can maintain a stored logic state for a long period of time even in the absence of an external power source. Memory cells configured in a volatile configuration can lose the stored state when disconnected from the external power source. Summary of the invention

[0006] A device is described. The device may include: a memory system including a volatile memory and a non-volatile memory; and a controller coupled to the memory system, wherein the controller is configured to cause the device to perform the following operations: receiving a write command including data and a logical block address set associated with the data through the memory system; storing a first mapping between a first logical block address in the logical block address set and the first physical block address set and a second mapping between a second logical block address in the logical block address set and the second physical block address set in the volatile memory based at least in part on a first physical block address set and a second physical block address set of the non-volatile memory for writing the data; and writing the data to the first physical block address set and the second physical block address set based at least in part on storing the first mapping and the second mapping in the volatile memory.

[0007] A non-transitory computer-readable medium storing code including instructions is described. The instructions, when executed by a processor of an electronic device, cause the electronic device to perform the following operations: receiving a write command including data and a set of logical block addresses associated with the data through a memory system including a volatile memory and a non-volatile memory; based at least in part on a first set of physical block addresses and a second set of physical block addresses of the non-volatile memory for writing the data, storing a first mapping between a first logical block address in the set of logical block addresses and the first set of physical block addresses and a second mapping between a second logical block address in the set of logical block addresses and the second set of physical block addresses to the volatile memory; and based at least in part on storing the first mapping and the second mapping to the volatile memory, writing the data to the first set of physical block addresses and the second set of physical block addresses.

[0008] A method is described. The method may include: receiving, by a memory system including a volatile memory and a non-volatile memory, a write command including data and a set of logical block addresses associated with the data; based at least in part on a first set of physical block addresses and a second set of physical block addresses of the non-volatile memory for writing the data, storing a first mapping between a first logical block address in the set of logical block addresses and the first set of physical block addresses and a second mapping between a second logical block address in the set of logical block addresses and the second set of physical block addresses to the volatile memory; and based at least in part on storing the first mapping and the second mapping to the volatile memory, writing the data to the first set of physical block addresses and the second set of physical block addresses. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1An example of a system supporting data compression for a mapping table according to examples disclosed herein is described.

[0010] Figure 2 An example of a system supporting data compression for a mapping table according to examples disclosed herein is described.

[0011] Figure 3 An example of a process flow supporting data compression for a mapping table according to examples disclosed herein is described.

[0012] Figure 4 A block diagram illustrating a memory system supporting data compression for a mapping table according to examples disclosed herein.

[0013] Figure 5 Description A flow chart illustrating one or more methods of supporting data compression for a mapping table according to examples disclosed herein. DETAILED DESCRIPTION

[0014] In some cases, a memory system may include both non-volatile memory (e.g., NAND memory) and volatile memory (e.g., static random access memory (SRAM)), wherein the non-volatile memory may include a block of memory cells that can be addressed using a logical block address (LBA) and a physical block address (PBA). The memory system may include a mapping table that stores entries that include mappings between LBAs and corresponding PBAs, so that the memory system can access the entries of the mapping table to perform access operations on the blocks. In some examples, the mapping table may be stored at a volatile memory to provide a lower latency associated with accessing entries of the mapping table. However, many memory systems include fewer volatile storage devices than non-volatile storage devices (e.g., due to volatile memory being more expensive to implement or having a lower space efficiency than non-volatile memory). Therefore, it may be necessary to reduce the size of the entries stored to the mapping table to reduce the size of the volatile memory or to store a larger number of entries to the volatile memory.

[0015] According to examples as described herein, a memory system may store a mapping table (e.g., a compressed mapping table) having entries (e.g., compressed entries) that include fewer LBAs than PBAs in volatile memory. For example, each entry may be a set of one or more LBAs and PBAs. Compressing the entries of the mapping table in this manner may reduce the amount of information (e.g., bits) included in the mapping between LBAs and PBAs. In some cases, the mapping table may support relatively less information stored at volatile memory while maintaining the ability to access (e.g., via mapping) data stored to non-volatile memory. In other cases, the mapping table may support the ability to access a relatively larger amount of data (e.g., a larger number of entries) while maintaining the same amount of information stored at volatile memory, as well as other advantages.

[0016] First, in the reference Figure 1 The features of the present disclosure are described in the context of the described system. Figure 2 and 3 Features of the present disclosure are described in the context of the described systems and process flows. Figure 4 and 5 These and other features of the present disclosure are further illustrated and described in the context of device diagrams and flow charts related to data compression for mapping tables.

[0017] Figure 1 An example of a system 100 supporting data compression for a mapping table according to examples disclosed herein is illustrated. The system 100 includes a host system 105 coupled to a memory system 110.

[0018] The memory system 110 may be or include any device or set of devices, wherein the device or set of devices includes at least one memory array. For example, the memory system 110 may be or include a universal flash storage (UFS) device, an embedded multimedia controller (eMMC) device, a flash device, a universal serial bus (USB) flash device, a secure digital (SD) card, a solid-state drive (SSD), a hard disk drive (HDD), a dual in-line memory module (DIMM), a small outline DIMM (SO-DIMM), or a non-volatile DIMM (NVDIMM), among other possibilities.

[0019] System 100 may be included in a computing device such as a desktop computer, a laptop computer, a network server, a mobile device, a vehicle (e.g., an airplane, drone, train, car, or other transportation vehicle), an Internet of Things (IoT) enabled device, an embedded computer (e.g., an embedded computer included in a vehicle, industrial equipment, or a networked business device), or any other computing device that includes a memory and a processing device.

[0020] The system 100 may include a host system 105 that may be coupled to a memory system 110. In some instances, this coupling may include an interface with a host system controller 106, which may be an instance of a controller or control component configured to cause the host system 105 to perform various operations according to the examples described herein. The host system 105 may include one or more devices, and in some cases, may include a processor chipset and a software stack executed by the processor chipset. For example, the host system 105 may include an application configured to communicate with the memory system 110 or a device therein. The processor chipset may include one or more cores, one or more caches (e.g., memory local to the host system 105 or included in the host system 105), a memory controller (e.g., an NVDIMM controller), and a storage protocol controller (e.g., a peripheral component interconnect express (PCIe) controller, a serial advanced technology attachment (SATA) controller). The host system 105 may use the memory system 110, for example, to write data to the memory system 110 and read data from the memory system 110. Although Figure 1 One memory system 110 is shown in FIG. 1 , but the host system 105 may be coupled to any number of memory systems 110 .

[0021] The host system 105 may be coupled to the memory system 110 via at least one physical host interface. In some cases, the host system 105 and the memory system 110 may be configured to communicate via the physical host interface using an associated protocol (e.g., to exchange or otherwise communicate control, address, data, and other signals between the memory system 110 and the host system 105). Examples of physical host interfaces may include, but are not limited to, a SATA interface, a UFS interface, an eMMC interface, a PCIe interface, a USB interface, a Fibre Channel interface, a Small Computer System Interface (SCSI), a Serial Attached SCSI (SAS), a Double Data Rate (DDR) interface, a DIMM interface (e.g., a DIMM socket interface supporting DDR), an Open NAND Flash Interface (ONFI), and a Low Power Double Data Rate (LPDDR) interface. In some examples, one or more such interfaces may be included in or otherwise supported between a host system controller 106 of the host system 105 and a memory system controller 115 of the memory system 110. In some examples, the host system 105 may be coupled to the memory system 110 via a respective physical host interface for each memory device 130 included in the memory system 110 or via a respective physical host interface for each type of memory device 130 included in the memory system 110 (e.g., the host system controller 106 may be coupled to the memory system controller 115).

[0022] The memory system 110 may include a memory system controller 115 and one or more memory devices 130. The memory devices 130 may include one or more memory arrays of any type of memory cells (eg, non-volatile memory cells, volatile memory cells, or any combination thereof). Figure 1 Although two memory devices 130-a and 130-b are shown in the example of , the memory system 110 may include any number of memory devices 130. Furthermore, if the memory system 110 includes more than one memory device 130, different memory devices 130 within the memory system 110 may include the same or different types of memory cells.

[0023] The memory system controller 115 may be coupled and communicate with the host system 105 (e.g., via a physical host interface), and may be an example of a controller or control component configured to cause the memory system 110 to perform various operations according to examples as described herein. The memory system controller 115 may also be coupled and communicate with the memory devices 130 to perform operations that may generally be referred to as access operations at the memory devices 130, such as reading data, writing data, erasing data, or refreshing data, and other such operations. In some cases, the memory system controller 115 may receive commands from the host system 105 and communicate with one or more memory devices 130 to perform such commands (e.g., at a memory array within the one or more memory devices 130). For example, the memory system controller 115 may receive commands or operations from the host system 105 and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory devices 130. In some cases, the memory system controller 115 may exchange data with the host system 105 and one or more memory devices 130 (e.g., in response to or otherwise in conjunction with commands from the host system 105). For example, the memory system controller 115 may convert responses (eg, data packets or other signals) associated with the memory device 130 into corresponding signals for the host system 105 .

[0024] The memory system controller 115 may be configured for other operations associated with the memory device 130. For example, the memory system controller 115 may perform or manage operations such as wear leveling operations, garbage collection operations, error control operations such as error detection operations or error correction operations, encryption operations, cache operations, media management operations, background refreshes, health monitoring, and address translation between LBAs associated with commands from the host system 105 and PBAs associated with memory cells within the memory device 130.

[0025] The memory system controller 115 may include hardware, such as one or more integrated circuits or discrete components, buffer memory, or a combination thereof. The hardware may include circuitry having dedicated (e.g., hard-coded) logic to perform the operations attributed herein to the memory system controller 115. The memory system controller 115 may be or include a microcontroller, dedicated logic circuitry (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a digital signal processor (DSP)), or any other suitable processor or processing circuit.

[0026] The memory system controller 115 may also include local memory 120. In some cases, the local memory 120 may include read-only memory (ROM) or other memory that may store operating code (e.g., executable instructions) that may be executed by the memory system controller 115 to perform the functions attributed herein to the memory system controller 115. In some cases, the local memory 120 may additionally or alternatively include static random access memory (SRAM) or other memory that may be used by the memory system controller 115, for example, for internal storage or computations related to the functions attributed herein to the memory system controller 115.

[0027] The memory device 130 may include one or more arrays of non-volatile memory cells. For example, the memory device 130 may include NAND (e.g., NAND flash) memory, ROM, phase change memory (PCM), self-select memory, other chalcogenide-based memory, ferroelectric random access memory (RAM) (FeRAM), magnetic RAM (MRAM), NOR (e.g., NOR flash) memory, spin transfer torque (STT)-MRAM, conductive bridge RAM (CBRAM), resistive random access memory (RRAM), oxide-based RRAM (OxRAM), electrically erasable programmable ROM (EEPROM), or any combination thereof. Additionally or alternatively, the memory device 130 may include one or more arrays of volatile memory cells. For example, the memory device 130 may include RAM memory cells, such as dynamic RAM (DRAM) memory cells and synchronous DRAM (SDRAM) memory cells.

[0028] In some examples, the memory devices 130 may include a local controller 135 (e.g., on the same die or within the same package) that may perform operations on one or more memory cells of the respective memory devices 130. The local controller 135 may operate in conjunction with the memory system controller 115, or may perform one or more functions attributed herein to the memory system controller 115. For example, Figure 1As illustrated, memory device 130-a may include a local controller 135-a, and memory device 130-b may include a local controller 135-b.

[0029] In some cases, memory device 130 may be or include a NAND device (e.g., a NAND flash device). Memory device 130 may be or include a die 160 (e.g., a memory die). For example, in some cases, memory device 130 may be a package that includes one or more die 160. In some examples, die 160 may be a piece of electronic grade semiconductor cut from a wafer (e.g., a silicon die cut from a silicon wafer). Each die 160 may include one or more planes 165, and each plane 165 may include a corresponding set of blocks 170, wherein each block 170 may include a corresponding set of pages 175, and each page 175 may include a set of memory cells.

[0030] In some cases, the NAND memory device 130 may include memory cells configured to store one bit of information each, which may be referred to as a single-level cell (SLC). Additionally or alternatively, the NAND memory device 130 may include memory cells configured to store multiple bits of information each, which may be referred to as a multi-level cell (MLC) if configured to store two bits of information each, a triple-level cell (TLC) if configured to store three bits of information each, a quad-level cell (QLC) if configured to store four bits of information each, or more generally, a multi-level memory cell. A multi-level memory cell may provide greater storage density relative to an SLC memory cell, but in some cases may involve narrower read or write margins or greater complexity for supporting circuitry.

[0031] In some cases, a plane 165 may refer to a group of blocks 170, and in some cases, concurrent operations may be performed on different planes 165. For example, parallel operations may be performed on memory cells within different blocks 170, as long as the different blocks 170 are in different planes 165. In some cases, individual blocks 170 may be referred to as physical blocks, and a virtual block 180 may refer to a group of blocks 170 within which parallel operations may occur. For example, concurrent operations may be performed on blocks 170-a, 170-b, 170-c, and 170-d within planes 165-a, 165-b, 165-c, and 165-d, respectively, and blocks 170-a, 170-b, 170-c, and 170-d may be collectively referred to as a virtual block 180. In some cases, a virtual block may include blocks 170 from different memory devices 130 (e.g., blocks in one or more planes including memory device 130-a and memory device 130-b). In some cases, blocks 170 within a virtual block may have the same block address within their respective planes 165 (e.g., block 170-a may be "block 0" of plane 165-a, block 170-b may be "block 0" of plane 165-b, etc.). In some cases, parallel operations in different planes 165 may be subject to one or more restrictions, such as parallel operations on memory cells in different pages 175 that have the same page address within their respective planes 165 (e.g., related to command decoding, page address decoding circuitry, or other circuitry shared across planes 165).

[0032] In some cases, block 170 may include memory cells organized into rows (pages 175) and columns (e.g., strings, not shown). For example, memory cells in the same page 175 may share (e.g., be coupled to) a common word line, and memory cells in the same string may share (e.g., be coupled to) a common digit line (which may alternatively be referred to as a bit line).

[0033] For some NAND architectures, memory cells may be read and programmed (e.g., written) at a first level of granularity (e.g., at a page granularity level), but may be erased at a second level of granularity (e.g., at a block granularity level). That is, a page 175 may be the smallest unit of memory (e.g., a set of memory cells) that may be independently programmed or read (e.g., programmed or read simultaneously as part of a single programming or reading operation), and a block 170 may be the smallest unit of memory (e.g., a set of memory cells) that may be independently erased (e.g., erased simultaneously as part of a single erasing operation). Furthermore, in some cases, a NAND memory cell may be erased before it may be rewritten with new data. Thus, for example, in some cases, a used page 175 may not be updated until the entire block 170 containing the page 175 has been erased.

[0034] In some cases, to update some data within a block 170 while retaining other data within the block 170, the memory device 130 may copy the data to be retained to a new block 170 and write the updated data to one or more remaining pages of the new block 170. The memory device 130 (e.g., the local controller 135) or the memory system controller 115 may mark or otherwise designate the data retained in the old block 170 as invalid or obsolete, and may update a logical-to-physical (L2P) mapping table to associate the LBAs of the data with the new valid block 170 rather than the old invalid block 170. In some cases, such copying and remapping may be performed rather than erasing and rewriting the entire old block 170, for example due to latency or wear considerations. In some cases, one or more copies of the L2P mapping table may be stored within a memory unit of the memory device 130 (e.g., within one or more blocks 170 or planes 165) for use (e.g., reference and update) by the local controller 135 or the memory system controller 115.

[0035] In some cases, memory system 110 may utilize memory system controller 115 to provide a managed memory system, which may include, for example, one or more memory arrays and related circuitry in combination with a local (e.g., on-die or in-package) controller, such as local controller 135. An example of a managed memory system is a managed NAND (MNAND) system.

[0036] The system 100 may include any number of non-transitory computer-readable media that support data compression for the mapping table. For example, the host system 105 (e.g., the host system controller 106), the memory system 110 (e.g., the memory system controller 115), or the memory device 130 (e.g., the local controller 135) may include or otherwise have access to one or more non-transitory computer-readable media storing instructions (e.g., firmware, logic, code) for performing the functions attributed to the host system 105, the memory system 110, or the memory device 130 herein. For example, such instructions, when executed by the host system 105 (e.g., the host system controller 106), the memory system 110 (e.g., the memory system controller 115), or the memory device 130 (e.g., the local controller 135), may cause the host system 105, the memory system 110, or the memory device 130 to perform the associated functions described herein.

[0037] According to examples described herein, memory system 110 may store a mapping table (e.g., a compressed mapping table) having entries (e.g., compressed entries) that include fewer LBAs than PBAs in volatile memory (e.g., memory device 130-b). For example, each entry may be a set of one or more LBAs and PBAs. Compressing the entries of the mapping table in this manner may reduce the amount of information (e.g., bits) included in the mapping between LBAs and PBAs. In some cases, the mapping table may support relatively less information stored at volatile memory (e.g., memory device 130-a) while maintaining the ability to access (e.g., via mapping) data stored to non-volatile memory. In other cases, the mapping table may support the ability to access a relatively larger amount of data (e.g., a larger number of entries) while maintaining the same amount of information stored at volatile memory.

[0038] Figure 2 An example of a system 200 supporting data compression for a mapping table according to an example disclosed herein is described. The system 200 may implement reference Figure 1 For example, system 200 may include a host system 205 and a memory system 210, each of which may be as described in reference Figure 1 The system 200 may illustrate an example of a mapping table 235 that includes relatively fewer LBAs than PBAs, thereby supporting relatively less information to store the mapping table 235. In some cases, by storing relatively less information to convey the mapping between LBAs and PBAs, the system 200 may use a relatively smaller volatile memory 225 to store the mapping, or may be able to store a larger number of mappings to the volatile memory 225.

[0039] The system 200 may include a memory system 210 operable to communicate with a host system 205 via a memory system controller 215. For example, the memory system controller 215 may be operable to perform operations on the memory system 210 according to commands from the host system 205. The memory system 210 may also include a non-volatile memory 220 and a volatile memory 225, which may be as described in reference to FIG. Figure 11 and 1 . The nonvolatile memory 220 may include a memory array 230 that may include blocks of nonvolatile memory cells (e.g., NAND memory cells). For example, the memory array 230 may include a set of blocks, each of which may be addressed by an LBA and a PBA. The volatile memory 225 may include a memory array (not shown) of volatile memory cells that may be configured to store a mapping table 235. The mapping table 235 may be an example of an L2P mapping table, such that the mapping table 235 may include a mapping between LBAs and PBAs corresponding to a set of blocks in the memory array 230.

[0040] In previous embodiments, the mapping table may have included a direct mapping between a set of LBAs and a set of PBAs corresponding to a set of blocks in the memory array 230. For example, the mapping table may have included an entry that maps each LBA to each PBA. In some such instances, each entry may have included a direct mapping from one LBA to one PBA, or from a subset of LBAs to a subset of PBAs, where each subset (e.g., a subset of LBAs and a subset of PBAs) may have included an equal (e.g., the same) number of addresses. Such a mapping table may have included a number of bits corresponding to the number of LBAs and the number of PBAs in the mapping table. For example, storing a set of 16 LBAs and a set of 16 PBAs may have been associated with storing 32 or more bits of information (e.g., at least 16 bits for the set of LBAs and at least 16 bits for the set of PBAs) to the volatile memory 225. In some cases, storing information (eg, bits of information) to volatile memory 225 may be relatively disadvantageous due to volatile memory 225 being relatively expensive or due to a relatively large amount of volatile memory 225 being required to store mapping entries.

[0041] As described herein, mapping table 235 may include a compressed mapping between a set of LBAs and a set of PBAs corresponding to a set of blocks in memory array 230, which may reduce the number of bits involved in storing the set of LBAs and the set of PBAs. Mapping table 235 may include entries 250 (e.g., entries 250-a to 250-h), each of which maps a subset of PBAs to one or more LBAs (e.g., a single LBA) representing the subset of LBAs corresponding to the subset of PBAs. For example, entry 250-a may include PBAs 0-4 and LBA 0, which may represent LBAs 0-4 (e.g., LBAs 0-4 are mapped to PBAs 0-4). Relatively few bits corresponding to the number of LBAs and the number of PBAs may be stored in mapping table 235, where each entry 250 is compressed (e.g., such that each LBA is mapped to a subset of PBAs). For example, when each entry 250 includes 4 PBAs and one LBA representing 4 LBAs, storing 4 entries 250 for sets of 16 LBAs and sets of 16 PBAs may be associated with storing approximately 20 bits of information (e.g., 4 bits for the LBA set and 16 bits for the PBA set) to the volatile memory 225. In some cases, storing relatively few LBAs compared to PBAs may include discarding LBAs from the LBA subset that are not associated with representing the LBA subset.

[0042] In some cases, the mapping table 235 may include contiguous LBA entries 250 such that the LBAs associated with the respective entries 250 may be ordered sequentially (e.g., LBA 0, 4, 8, 12). In other cases, the mapping table 235 may include non-contiguous LBA entries 250 such that the LBAs associated with the respective entries 250 may be ordered non-sequentially (e.g., LBA 4, 0, 12, 8). In some cases, the mapping table 235 may include contiguous PBA entries 250 such that the PBAs associated with the respective entries 250 may be ordered sequentially from entry 250-a to entry 250-b. For example, the last PBA of a first entry 250 (e.g., entry 250-a) may be contiguous with the first PBA of a second contiguous subsequent entry 250 (e.g., entry 250-b).

[0043] In other cases, mapping table 235 may include non-contiguous PBA entries 250 such that the PBAs associated with respective entries 250 may not be ordered sequentially from entry 250-a to entry 250-b. For example, entry 250-a may include LBA 0, which may represent LBAs 0-4 having values ​​that directly correspond to the values ​​of PBAs 0-4 (e.g., 0-4=0-4). However, in other cases, mapping table 235 may include entries 250 in which subsets do not directly correspond, such that each entry 250 may include one or more LBAs representing a subset of LBAs that is different from a subset of PBAs. For example, entry 250-a may include LBA 0, which may represent LBAs 0-4, but may include PBAs 4-7.

[0044] In some cases, the LBAs associated with each entry 250 may be contiguous, such that LBA 0 may represent LBAs 0-4, ordered as follows: 0, 1, 2, 3. In other cases, the LBAs associated with each entry 250 may be non-contiguous, such that LBA 0 may represent LBAs 0-4, ordered as follows: 0, 3, 1, 2. In some cases, the PBAs associated with each entry 250 may be contiguous, such that entry 250-a may include PBAs ordered as follows: 0, 1, 2, 3. In other cases, the PBAs associated with each entry 250 may be non-contiguous, such that entry 250-a may include PBAs ordered as follows: 0, 2, 1, 3.

[0045] In some cases, the memory system 210 may receive a write command (e.g., a random write command) from the host system 205 that includes data and a set of LBAs corresponding to a set of blocks of the memory array 230. The memory system 210 may identify a mapping scheme (e.g., mapping scheme 240, mapping scheme 245) between a set of PBAs corresponding to the set of blocks and a set of LBAs (e.g., from the write command). In some cases, the memory system 210 may identify the mapping scheme based on the size of the write command (e.g., the number of LBAs associated with the set of LBAs). For example, the number of LBAs in the write command (e.g., 16 LBAs) may indicate that the write command is a 16K random write, and the memory system 210 may determine to use mapping scheme 240. Alternatively, a different number of LBAs in the write command (e.g., 512 LBAs) may indicate that the write command is a 512K random write, and the memory system 210 may determine to use mapping scheme 245.

[0046] The memory system 210 may divide the LBA set or PBA set by a factor in each mapping scheme to produce a number of entries 250 and a size of the entries 250. In some cases, the mapping may include 4 entries 250 such that the factor is based on the generation of 4 entries 250. For example, when a write command includes a set of 16 LBAs, the memory system 210 may divide the set of 16 LBAs by a factor of 4 for the mapping scheme 240 to produce 4 entries 250, each entry 250 including 4 PBAs (e.g., entries 250-a, 250-b, 250-c, 250-d). Alternatively, when the write command includes a set of 512 LBAs, the memory system 210 may divide the set of 512 LBAs by a factor of 128 for the mapping scheme 245 to produce four entries 250, each entry 250 including 128 PBAs (e.g., entries 250-e, 250-f, 250-g, 250-h). In other cases, the mapping may include a different number of entries 250 so that the factor may be used to produce a different number of entries 250.

[0047] In some cases, the memory system 210 may determine that the size of the write command does not meet a threshold associated with generating the compressed entry 250. For example, the memory system 210 may recognize that the number of LBAs in the write command (e.g., 4 LBAs, 8 LBAs) may indicate that the write command is a 4K random write or an 8K random write, and the threshold associated with generating the compressed entry 250 may be associated with a 16K random write. In such cases, the memory system 210 may refrain from generating the compressed entry 250 and may instead generate an entry that includes a direct mapping (e.g., a 1:1 mapping) between the LBAs and the PBAs.

[0048] After identifying the mapping scheme, the memory system 210 may store the mapping scheme (e.g., mapping scheme 240 or 245) in a mapping table 235 in the volatile memory 225. In response to storing the mapping scheme, the memory system 210 may write data to a set of blocks of the memory array 230 using the mapping scheme to identify the PBA corresponding to the LBA of the write command.

[0049] In some cases, the memory system 210 may receive a read command including a request for data and an indication of one or more LBAs from the host system 205. In response, the memory system 210 may determine whether the LBA is within one of the entries 250 stored in the mapping table 235. In some examples, the memory system 210 may determine that the LBA is not within one of the entries 250 stored in the mapping table 235, and the memory system 210 may select an appropriate entry 250 (e.g., including a mapping between one or more LBAs and one or more corresponding PBAs) from the master L2P table and store the appropriate entry 250 to the volatile memory 225.

[0050] In some examples, the memory system 210 may determine that the LBA is associated with (e.g., is within) one of the entries 250 stored in the mapping table 235. In some such examples, the memory system 210 may identify an entry 250 from the mapping table 235 that stores a representative LBA in a subset of LBAs, wherein the subset of LBAs includes the LBA indicated by the read command. The memory system 210 may identify the PBA corresponding to the LBA based on determining an offset between a location of the LBA within the subset of LBAs and the representative LBA of the identified entry 250 and applying the offset to the location of the first PBA in the subset of PBAs of the identified entry 250. For example, the memory system 210 may identify that LBA3 indicated by the read command is within the entry 250-a and determine an offset (e.g., 3 subsequent locations) between LBA 3 and LBA 0 (e.g., the representative LBA), wherein the offset may be applied to PBA 0 (e.g., corresponding to LBA 0) to index PBA 3 (e.g., corresponding to LBA 3). In some implementations, the LBA indicated by the read command may be a representative LBA of entry 250, where indexing the PBA corresponding to the LBA includes identifying the first PBA of entry 250. After indexing the PBA from mapping table 235, memory system 210 may read data from the PBA and transmit the data to host system 205.

[0051] In some cases, storing the mapping table 235 to the volatile memory 225 may be relatively cheaper (e.g., when compared to previous implementations) due to the decreasing amount of information (e.g., bits) used to store the same mapping between the set of LBAs and the PBAs. For example, the mapping table 235 may support storing 20 bits of information for a set of 16 LBAs and a set of 16 PBAs (e.g., 16K random writes), whereas previous implementations of the mapping table may support storing at least 32 bits of information for the set. Thus, the memory system 210 may benefit from a 1.6 compression ratio (e.g., 32 bits / 20 bits) by storing relatively fewer bits to convey the same mapping between the set of LBAs and the PBAs.

[0052] In another example, mapping table 235 may support storing 516 bits of information (e.g., 4 bits for LBAs and 512 bits for PBAs) for a set of 512 LBAs and a set of 512 PBAs (e.g., 512K random writes), whereas the previous implementation of the mapping table may support storing 1024 bits of information for the set (e.g., 512 bits for LBAs and 512 bits for PBAs). Thus, memory system 210 may benefit from a 1.98 compression ratio (e.g., 1024 bits / 516 bits) by storing relatively fewer bits to convey the same mapping between the set of LBAs and PBAs. Thus, mapping table 235 may support storing relatively less information while maintaining access (e.g., via mapping) to the same number of blocks (e.g., as originally associated with the previous implementation).

[0053] In other cases, storing the mapping table 235 to the volatile memory 225 may be relatively more cost-effective (e.g., when compared to the previous implementation) due to storing the same amount of information for a larger number of mappings between LBAs and PBAs. For example, the mapping table 235 may support mappings between 28 LBAs and 28 PBAs due to each entry 250 including a subset of 7 PBAs and a representative LBA, whereas the previous implementation of the mapping table may support storing mappings between 16 LBAs and 16 PBAs due to each entry including a direct mapping between an LBA and a PBA. Thus, storing either mapping table may be associated with storing 32 bits of information, however the mapping table 235 provides a 1.75 compression ratio (e.g., 28 PBAs / 16 PBAs) compared to the previous implementation. Thus, the mapping table 235 may support the ability to access a relatively large number of blocks while maintaining the same amount of information (e.g., originally associated with the previous implementation) in the volatile memory 225.

[0054] Figure 3 An example of a process flow 300 for supporting data compression for a mapping table according to an example disclosed herein is illustrated. The process flow 300 may illustrate a reference Figure 2 For example, process flow 300 may depict operations at host system 305 and memory system 310, which may be referenced as Figure 2 Examples of host system 205 and memory system 210 are depicted.

[0055] In the following description of process flow 300, methods, techniques, processes, and operations may be performed in a different order or at a different time. Additionally, certain operations may also be omitted from process flow 300, or other operations may be added to process flow 300. According to the operations as described herein, memory system 310 may implement a mapping table with relatively fewer LBAs than PBAs, thereby storing less information to convey the same number of mappings (e.g., when compared to previous implementations). Operation 301 may include steps associated with performing a write operation with the mapping table, while operation 302 may include steps associated with performing a read operation using the mapping table. In some cases, operation 302 may be performed before operation 301 is performed.

[0056] At 330, the host system 305 may transmit a write command to the memory system 310. The memory system 310 may receive the write command at the memory system controller 315, which may be a reference Figure 2 310. In some cases, the memory system controller 315 may be associated with performing operations on the memory system 310 in accordance with commands from the host system 305. The write command may include data and a set of LBAs corresponding to a set of blocks within the non-volatile memory 320 of the memory system 310, which may be a reference Figure 2 Examples of non-volatile memory 220 are described.

[0057] At 332, the memory system controller 315 may determine the size of the write command. For example, the memory system controller 315 may determine the number of LBAs in the LBA set indicated by the write command.

[0058] At 334, the memory system controller 315 may generate a mapping between the set of LBAs corresponding to the set of blocks and the set of PBAs. The memory system controller 315 may generate the mapping by identifying entries of a mapping table, each entry mapping one or more LBAs representing the LBA subset with the PBA subset corresponding to the LBA subset. In some cases, the number of entries may be determined by dividing the LBA set by a factor, wherein the factor may also determine the size of each entry.

[0059] At 336, the memory system controller 315 may transmit the mapping to the volatile memory 325, which may be a reference Figure 2 An example of volatile memory 225 is depicted. For example, the memory system controller 315 may transmit entries associated with LBA sets and PBA sets to the volatile memory 325 for storage in a mapping table.

[0060] At 338 , the volatile memory 325 may store the mapping to a mapping table.

[0061] At 340 , the memory system controller 315 may access a map stored in the volatile memory 325 as part of writing the data to the set of blocks associated with the set of LBAs.

[0062] At 342, the memory system controller 315 may transmit the data to the non-volatile memory 320. For example, the memory system controller 315 may transmit the data to the set of blocks corresponding to the set of LBAs indicated by the write command.

[0063] At 344, the data may be written to the nonvolatile memory 320 according to the mapping. In some cases, as part of transmitting the data to the nonvolatile memory 320, the memory system controller 315 may write the data to a set of blocks of the nonvolatile memory 320. For example, the memory system controller 315 may write the data to the set of blocks by using the mapping to identify a set of PBAs corresponding to a set of blocks associated with a set of LBAs indicated from a write command.

[0064] At 346, the host system 305 may transmit a read command to the memory system 310. The memory system 310 may receive the read command at the memory system controller 315. The read command may include a request for data and an indication of the LBA associated with the data.

[0065] At 348, the memory system controller 315 may access a mapping stored in the volatile memory 325. For example, the memory system controller 315 may access a mapping table in the volatile memory 325 as part of performing a read operation.

[0066] At 350, the memory system controller 315 may determine whether the LBA is included in an entry of the mapping table. In the case where the LBA is not included in the entry of the mapping table, the memory system controller 315 may identify a new entry that includes the LBA and store the entry to the mapping table at the volatile memory 325. After storing the entry, the memory system controller 315 may identify a PBA corresponding to the LBA from the entry. In the case where the LBA is included in the entry of the mapping table, the memory system controller 315 may identify a PBA corresponding to the LBA from the identified entry based on the positions of the LBA and the PBA within the entry. For example, the memory system controller 315 may determine an offset between the position of the LBA and a representative LBA of the entry and apply the offset to the position of the first PBA of the entry to index the PBA corresponding to the LBA.

[0067] At 352, data can be read from non-volatile memory 320 according to the map. For example, memory system controller 315 can read data from non-volatile memory 320 based on using the map to identify a block corresponding to a PBA associated with an LBA indicated by the read command.

[0068] At 354, the read data may be transmitted from the non-volatile memory 320 to the host system 305. In some cases, the memory system controller 315 may transfer the read data from the non-volatile memory 320 to the host system 305.

[0069] Implementing a mapping table as described herein can reduce the amount of information (e.g., bits) used to store mappings between LBA sets and PBA sets. In some cases, the mapping table can support the storage of relatively less information at volatile memory 325 while maintaining the ability to access (e.g., via mapping) the same number of blocks (e.g., originally associated with previous implementations). In other cases, the mapping table can support the ability to access a relatively larger number of blocks while maintaining the same amount of information stored at volatile memory 325 (e.g., originally associated with previous implementations).

[0070] Figure 4 A block diagram 400 illustrates a memory system 420 that supports data compression for a mapping table according to examples disclosed herein. The memory system 420 may be a memory system such as the one described in the referenced Figures 1 to 3 Memory system 420 or its various components may be examples of devices for performing various aspects of data compression for mapping tables as described herein. For example, memory device 420 may include receiving component 425, mapping component 430, writing component 435, determining component 440, reading component 445, or any combination thereof. Each of these components may communicate with each other directly or indirectly (e.g., via one or more buses).

[0071] The receiving component 425 may be configured as or otherwise support means for receiving a write command including data and a set of logical block addresses associated with the data through a memory system including a volatile memory and a non-volatile memory. The mapping component 430 may be configured as or otherwise support means for storing, to the volatile memory, a first mapping between a first logical block address in the set of logical block addresses and the first set of physical block addresses and a second mapping between a second logical block address in the set of logical block addresses and the second set of physical block addresses, based at least in part on a first set of physical block addresses and a second set of physical block addresses for writing the data to the non-volatile memory. The writing component 435 may be configured as or otherwise support means for writing the data to the first set of physical block addresses and the second set of physical block addresses based at least in part on storing the first and second mappings to the volatile memory.

[0072] In some examples, receiving component 425 may be configured or otherwise support means for receiving, by the memory system, a read command for a request including data associated with a third logical block address. In some examples, determining component 440 may be configured or otherwise support means for determining, based at least in part on receiving the read command, that the third logical block address is associated with the first mapping. In some examples, reading component 445 may be configured or otherwise support means for reading a physical block address corresponding to the third logical block address based at least in part on determining that the third logical block address is associated with the first mapping.

[0073] In some examples, to support determining that a third logical block address is associated with the first mapping, determining component 440 may be configured as or otherwise support means for determining that the third logical block address is within a threshold number of logical block addresses of the first logical block address.

[0074] In some examples, the determining component 440 may be configured as or otherwise support means for determining an offset between the first logical block address and the third logical block address. In some examples, the determining component 440 may be configured as or otherwise support means for determining that the physical block address corresponds to the third logical block address using the offset.

[0075] In some instances, the mapping component 430 may be configured as or otherwise support a device for generating the first mapping between the first logical block address in the logical block address set and the first physical block address set and the second mapping between the second logical block address in the logical block address set and the second physical block address set.

[0076] In some instances, to support the generation of the first mapping and the second mapping, the determination component 440 may be configured as or otherwise support means for determining a correspondence between a first subset of the set of logical block addresses and the first set of physical block addresses, the first subset of the set of logical block addresses including the first logical block addresses. In some instances, to support the generation of the first mapping and the second mapping, the determination component 440 may be configured as or otherwise support means for determining a correspondence between a second subset of the set of logical block addresses and the second set of physical block addresses, the second subset of the set of logical block addresses including the second logical block addresses. In some instances, to support the generation of the first mapping and the second mapping, the mapping component 430 may be configured as or otherwise support means for discarding one or more logical block addresses from each of the first subset of the set of logical block addresses and the second subset of the set of logical block addresses.

[0077] In some examples, the determining component 440 may be configured as or otherwise support means for determining a size of the write command based at least in part on receiving the write command. In some examples, the determining component 440 may be configured as or otherwise support means for determining whether the size of the write command satisfies a first threshold, wherein storing the first mapping and the second mapping to the volatile memory is based at least in part on the size of the write command satisfying the first threshold.

[0078] In some examples, the first set of physical block addresses and the second set of physical block addresses each include a first number of physical block addresses that satisfy the first threshold based at least in part on the size of the write command.

[0079] In some examples, the determining component 440 may be configured as or otherwise support means for determining a size of the write command based at least in part on receiving the write command. In some examples, the determining component 440 may be configured as or otherwise support means for determining whether the size of the write command satisfies a second threshold, wherein storing the first mapping and the second mapping to the volatile memory is based at least in part on the size of the write command satisfying the second threshold.

[0080] In some examples, the first set of physical block addresses and the second set of physical block addresses each include a second number of physical block addresses that satisfy the second threshold based at least in part on the size of the write command.

[0081] In some instances, receiving component 425 may be configured as or otherwise support means for receiving a second write command including second data and a second set of logical block addresses associated with the data. In some instances, determining component 440 may be configured as or otherwise support means for determining that the size of the second write command fails to satisfy a third threshold based at least in part on receiving the second write command. In some instances, mapping component 430 may be configured as or otherwise support means for storing a third mapping between the second set of logical block addresses and a third set of physical block addresses of the non-volatile memory to the volatile memory. In some instances, writing component 435 may be configured as or otherwise support means for writing the second data to the third set of physical block addresses of the non-volatile memory based at least in part on storing the third mapping to the volatile memory.

[0082] In some instances, the physical block addresses in the first set of physical block addresses are contiguous physical block addresses. In some instances, the physical block addresses in the second set of physical block addresses are contiguous physical block addresses.

[0083] In some examples, the physical block addresses in the first set of physical block addresses are not contiguous with the physical block addresses in the second set of physical block addresses.

[0084] In some examples, the write command includes a random write command.

[0085] Figure 5 The description is a flow chart showing a method 500 for supporting data compression for a mapping table according to examples disclosed herein. The operations of the method 500 may be implemented by a memory system or components thereof as described herein. For example, the operations of the method 500 may be implemented by reference to Figures 1 to 4 The memory system described herein performs. In some examples, the memory system may execute instruction sets to control functional elements of the device to perform the functions described below. Additionally or alternatively, the memory system may use dedicated hardware to perform aspects of the functions described below.

[0086] At 505, the method may include receiving, by a memory system including volatile memory and non-volatile memory, a write command including data and a set of logical block addresses associated with the data. The operations of 505 may be performed according to examples disclosed herein. In some examples, the write command may be performed by reference to Figure 4 Aspects of the operations of receiving component 425 performing 505 are described.

[0087] At 510, the method may include storing, in the volatile memory, a first mapping between a first logical block address in the logical block address set and the first set of physical block addresses and a second mapping between a second logical block address in the logical block address set and the second set of physical block addresses based at least in part on a first set of physical block addresses and a second set of physical block addresses of the non-volatile memory for writing the data. The operation of 510 may be performed according to examples disclosed herein. In some examples, the operation may be performed by reference to Figure 4 The described mapping component 430 performs aspects of the operations of 510 .

[0088] At 515, the method may include writing the data to the first set of physical block addresses and the second set of physical block addresses based at least in part on storing the first mapping and the second mapping in the volatile memory. The operation of 515 may be performed according to examples disclosed herein. In some examples, the operation may be performed by reference to Figure 4 The write component 435 is described to perform aspects of the operations of 515 .

[0089] In some examples, an apparatus as described herein may perform one or more methods, such as method 500. The apparatus may include features, circuitry, logic, means, or instructions (e.g., a non-transitory computer-readable medium storing instructions executable by a processor) for performing the following aspects of the present disclosure, or any combination thereof:

[0090] Aspect 1: A method, an apparatus or a non-transitory computer-readable medium includes operations, features, circuit systems, logic, means or instructions or any combination thereof for the following operations: receiving a write command including data and a logical block address set associated with the data through the memory system; receiving a write command including data and a logical block address set associated with the data through the memory system including a volatile memory and a non-volatile memory; storing a first mapping between a first logical block address in the logical block address set and the first physical block address set and a second mapping between a second logical block address in the logical block address set and the second physical block address set in the volatile memory at least partially based on a first physical block address set and a second physical block address set of the non-volatile memory for writing the data; and writing the data to the first physical block address set and the second physical block address set based at least partially on storing the first mapping and the second mapping in the volatile memory.

[0091] Aspect 2: A method, apparatus, or non-transitory computer-readable medium according to Aspect 1, further comprising operations, features, circuit systems, logic, devices, or instructions, or any combination thereof, for the following operations: receiving, by the memory system, a read command for a request including data associated with a third logical block address; determining, based at least in part on receiving the read command, that the third logical block address is associated with the first mapping; and reading, based at least in part on determining that the third logical block address is associated with the first mapping, a physical block address corresponding to the third logical block address.

[0092] Aspect 3: A method, apparatus, or non-transitory computer-readable medium according to Aspect 2, wherein determining that a third logical block address is associated with the first mapping includes operations, features, circuit systems, logic, devices, or instructions, or any combination thereof, for the following operations: determining that the third logical block address is within a threshold number of logical block addresses of the first logical block address.

[0093] Aspect 4: A method, apparatus, or non-transitory computer-readable medium according to any one of Aspects 2 to 3, further comprising operations, features, circuit systems, logic, devices, or instructions, or any combination thereof, for the following operations: determining an offset between the first logical block address and the third logical block address; and using the offset to determine that the physical block address corresponds to the third logical block address.

[0094] Aspect 5: A method, apparatus or non-transitory computer-readable medium according to any one of Aspects 1 to 4, further comprising operations, features, circuit systems, logic, devices or instructions or any combination thereof for the following operations: generating the first mapping between the first logical block address in the logical block address set and the first physical block address set and the second mapping between the second logical block address in the logical block address set and the second physical block address set.

[0095] Aspect 6: A method, apparatus or non-transitory computer-readable medium according to Aspect 5, wherein generating the first mapping and the second mapping comprises operations, features, circuit systems, logic, devices or instructions or any combination thereof for the following operations: determining a correspondence between a first subset of the logical block address set and the first physical block address set, the first subset of the logical block address set including the first logical block address; determining a correspondence between a second subset of the logical block address set and the second physical block address set, the second subset of the logical block address set including the second logical block address; and discarding one or more logical block addresses from each of the first subset of the logical block address set and the second subset of the logical block address set.

[0096] Aspect 7: A method, apparatus, or non-transitory computer-readable medium according to any one of Aspects 1 to 6, further comprising operations, features, circuit systems, logic, devices, or instructions, or any combination thereof, for the following operations: determining a size of the write command based at least in part on receiving the write command; and determining whether the size of the write command satisfies a first threshold, wherein storing the first mapping and the second mapping to the volatile memory is based at least in part on the size of the write command satisfying the first threshold.

[0097] Aspect 8: A method, apparatus, or non-transitory computer-readable medium according to Aspect 7, wherein the first set of physical block addresses and the second set of physical block addresses each include a first number of physical block addresses that satisfy the first threshold based at least in part on the size of the write command.

[0098] Aspect 9: A method, apparatus, or non-transitory computer-readable medium according to any one of Aspects 1 to 8, further comprising operations, features, circuit systems, logic, devices, or instructions, or any combination thereof, for the following operations: determining a size of the write command based at least in part on receiving the write command; and determining whether the size of the write command satisfies a second threshold, wherein storing the first mapping and the second mapping to the volatile memory is based at least in part on the size of the write command satisfying the second threshold.

[0099] Aspect 10: A method, apparatus, or non-transitory computer-readable medium according to Aspect 9, wherein the first set of physical block addresses and the second set of physical block addresses each include a second number of physical block addresses that satisfy the second threshold based at least in part on the size of the write command.

[0100] Aspect 11: A method, apparatus, or non-transitory computer-readable medium according to any one of Aspects 1 to 10, further comprising operations, features, circuit systems, logic, devices, or instructions, or any combination thereof, for the following operations: receiving a second write command comprising second data and a second logical block address set associated with the data; determining, based at least in part on receiving the second write command, that a size of the second write command fails to satisfy a third threshold; storing a third mapping between the second logical block address set and a third physical block address set of the non-volatile memory in the volatile memory; and writing the second data to the third physical block address set of the non-volatile memory based at least in part on storing the third mapping in the volatile memory.

[0101] Aspect 12: A method, apparatus, or non-transitory computer-readable medium according to any one of Aspects 1 to 11, wherein the physical block addresses in the first physical block address set are contiguous physical block addresses, and the physical block addresses in the second physical block address set are contiguous physical block addresses.

[0102] Aspect 13: The method, apparatus, or non-transitory computer-readable medium of any one of aspects 1 to 12, wherein the physical block addresses in the first set of physical block addresses are not contiguous with the physical block addresses in the second set of physical block addresses.

[0103] Aspect 14: The method, apparatus, or non-transitory computer-readable medium of any of aspects 1-13, wherein the write command comprises a random write command.

[0104] It should be noted that the described techniques include possible implementations, and that operations and steps may be rearranged or otherwise modified, and that other implementations are possible. Additionally, portions from two or more of the described methods may be combined.

[0105] The information and signals described herein may be represented using any of a variety of different technologies and techniques. For example, data, instructions, commands, information, signals, bits, or symbols of the signaling that may be referenced throughout the above description may be represented by voltage, current, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof. Some figures may illustrate signaling as a single signal; however, a signal may represent a bus of signals, where the bus may have a variety of bit widths.

[0106] The terms "electronic communication," "conductive contact," "connection," and "coupling" may refer to a relationship between components that supports the flow of electrons between the components. Components are considered to be in electronic communication with each other (or in conductive contact with each other, or connected to each other, or coupled to each other) if there is any conductive path between the components that can support the flow of signals between the components at any time. At any given time, based on the operation of the device containing the connected components, the conductive path between the components that are electronically connected (or in conductive contact or connected or coupled) to each other may be an open circuit or a closed circuit. The conductive path between the connected components may be a direct conductive path between the components, or the conductive path between the connected components may be an indirect conductive path that may include an intermediate component such as a switch, transistor, or other component. In some instances, the signal flow between the connected components may be interrupted for a period of time, for example, using one or more intermediate components such as a switch or transistor.

[0107] The term "coupled" may refer to a condition of moving from an open circuit relationship between components, in which signals are currently unable to be transmitted between components via conductive paths, to a closed circuit relationship between components, in which signals are able to be transmitted between components via conductive paths. If a component such as a controller couples other components together, then the component initiates a change that allows signals to flow between the other components via conductive paths that previously did not permit signal flow.

[0108] The term "isolation" refers to a relationship between components where a signal cannot currently flow between the components. Components are isolated from one another if an open circuit exists between the components. For example, components separated by a switch positioned between two components are isolated from one another when the switch is open. If a controller isolates two components, the controller implements a change that blocks a signal from flowing between the components using a conductive path that previously permitted the signal to flow.

[0109] The terms "if", "when", "based on", or "based at least in part on" are used interchangeably. In some instances, the terms "if", "when", "based on", or "based at least in part on" are interchangeable if they are used to describe a conditional action, a conditional process, or a connection between parts of a process.

[0110] The term "responsive to" may refer to a condition or action that occurs at least in part (if not completely) as a result of a prior condition or action. For example, a first condition or action may be performed, and a second condition or action may occur at least in part as a result of the prior condition or action occurring (whether directly after the first condition or action or after one or more other intermediate conditions or actions occur after the first condition or action).

[0111] In addition, the term "directly in response to" or "directly in response to" may refer to a condition or action occurring as a direct result of a previous condition or action. In some instances, a first condition or action may be performed, and a second condition or action may occur directly as a result of a previous condition or action occurring that is independent of whether other conditions or actions occur. In some instances, a first condition or action may be performed, and a second condition or action may occur directly as a result of a previous condition or action occurring, so that no other intermediate conditions or actions occur between an earlier condition or action and a second condition or action, or a limited number of one or more intermediate steps or actions occur between an earlier condition or action and a second condition or action. Unless otherwise specified, any condition or action described herein as "based on", "at least partially based on" or "in response to" some other step, action, event or condition may be performed in addition or alternatively (e.g., in an alternative instance) "directly in response to" or "directly in response to" such other condition or action.

[0112] The devices discussed herein, including memory arrays, may be formed on semiconductor substrates such as silicon, germanium, silicon-germanium alloys, gallium arsenide, gallium nitride, and the like. In some instances, the substrate is a semiconductor wafer. In some other instances, the substrate may be a silicon-on-insulator (SOI) substrate, such as silicon-on-glass (SOG) or silicon-on-sapphire (SOP), or an epitaxial layer of semiconductor material on another substrate. The conductivity of the substrate or a sub-region of the substrate may be controlled by doping using various chemical species including, but not limited to, phosphorus, boron, or arsenic. Doping may be performed during the initial formation or growth of the substrate, by ion implantation, or by any other doping method.

[0113] The switch assembly or transistor discussed herein may represent a field effect transistor (FET) and include a three-terminal device including a source, a drain, and a gate. The terminals may be connected to other electronic components by a conductive material (e.g., a metal). The source and drain may be conductive and may include a heavily doped (e.g., degenerate) semiconductor region. The source and drain may be separated by a lightly doped semiconductor region or channel. If the channel is n-type (i.e., most of the carriers are electrons), then the FET may be referred to as an n-type FET. If the channel is p-type (i.e., most of the carriers are holes), then the FET may be referred to as a p-type FET. The channel may be terminated by an insulating gate oxide. Channel conductivity may be controlled by applying a voltage to the gate. For example, applying a positive voltage or a negative voltage to an n-type FET or a p-type FET, respectively, may cause the channel to become conductive. When a voltage greater than or equal to the threshold voltage of the transistor is applied to the transistor gate, the transistor may be "turned on" or "activated". If a voltage less than the threshold voltage of the transistor is applied to the transistor gate, the transistor may be "turned off" or "deactivated".

[0114] The description set forth herein in conjunction with the accompanying drawings describes example configurations and does not represent all examples that may be implemented or within the scope of the claims. The term "exemplary" as used herein means "serving as an example, instance, or illustration" and is not "preferred to" or "superior to" other examples. The specific implementation includes specific details that provide an understanding of the described technology. However, these technologies may be practiced without these specific details. In some cases, well-known structures and devices are shown in block diagram form to avoid confusing the concepts of the described examples.

[0115] In the drawings, similar components or features may have the same reference label. In addition, various components of the same type may be distinguished by following the reference label with a dash and a second label that distinguishes between the similar components. If only the first reference label is used in the specification, the description applies to any of the similar components having the same first reference label, regardless of the second reference label.

[0116] The functions described herein may be implemented in hardware, software executed by a processor, firmware, or any combination thereof. If implemented in software executed by a processor, the functions may be stored as one or more instructions or codes on a computer-readable medium or transmitted via a computer-readable medium. Other examples and implementations are within the scope of the present disclosure and the appended claims. For example, due to the nature of software, the functions described herein may be implemented using software executed by a processor, hardware, firmware, hardwiring, or any combination of these. Features implementing the functions may also be physically located at various locations, including being distributed so that portions of the functions are implemented at different physical locations.

[0117] For example, the various illustrative blocks and components described in conjunction with the disclosure herein may be implemented or executed as a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices (e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration).

[0118] As used herein, "or", as used in a list of items (e.g., a list of items followed by a phrase such as "at least one of" or "one or more of"), included in the claims, indicates an inclusive list, such that, for example, a list of at least one of A, B, or C means A or B or C or AB or AC or BC or ABC (i.e., A and B and C). In addition, as used herein, the phrase "based on" should not be construed as referring to a closed set of conditions. For example, an exemplary step described as "based on condition A" may be based on both condition A and condition B without departing from the scope of the present disclosure. In other words, as used herein, the phrase "based on" should be interpreted similarly to the phrase "based at least in part on".

[0119] Computer-readable media include both non-transitory computer storage media and communication media including any media that facilitates the transfer of computer programs from one place to another. Non-transitory storage media may be any available media that can be accessed by a general or special-purpose computer. By way of example and not limitation, non-transitory computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), compact disk (CD) ROM or other optical disk storage device, magnetic disk storage device or other magnetic storage device, or any other non-transitory media that can be used to carry or store the desired program code device in the form of an instruction or data structure and can be accessed by a general or special-purpose computer or a general or special-purpose processor. And, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwaves are used to transmit software from a website, server or other remote source, then the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwaves are included in the definition of media. As used herein, disk and disc include CD, laser disc, optical disc, digital video disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of these are also included within the scope of computer-readable media.

[0120] The description herein is provided to enable a person skilled in the art to make or use the present disclosure. Various modifications to the present disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the scope of the present disclosure. Therefore, the present disclosure is not limited to the examples and designs described herein, but is given the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A device comprising: A memory system including volatile memory and non-volatile memory; and A controller coupled to the memory system, wherein the controller is configured to cause the device to perform the following operations: receiving, by the memory system, a write command including data and a set of logical block addresses associated with the data; storing, in the volatile memory, a first mapping between a first logical block address in the logical block address set and the first set of physical block addresses and a second mapping between a second logical block address in the logical block address set and the second set of physical block addresses based at least in part on a first set of physical block addresses and a second set of physical block addresses of the non-volatile memory for writing the data; and Based at least in part on storing the first mapping and the second mapping to the volatile memory, the data is written to the first set of physical block addresses and the second set of physical block addresses.

2. The device according to claim 1, wherein the controller is further configured to cause the device to perform the following operations: receiving, by the memory system, a read command for a request including data associated with a third logical block address; Based at least in part on receiving the read command, determining that the third logical block address is associated with the first mapping; and Based at least in part on determining that the third logical block address is associated with the first mapping, a physical block address corresponding to the third logical block address is read.

3. The device of claim 2, wherein determining that the third logical block address is associated with the first mapping is configured to cause the device to: A determination is made as to whether the third logical block address is within a threshold number of logical block addresses of the first logical block address.

4. The device according to claim 2, wherein the controller is further configured to cause the device to perform the following operations: determining an offset between the first logical block address and the third logical block address; and The offset is used to determine that the physical block address corresponds to the third logical block address.

5. The device of claim 1, wherein the controller is further configured to cause the device to: The first mapping between the first logical block addresses in the logical block address set and the first physical block address set and the second mapping between the second logical block addresses in the logical block address set and the second physical block address set are generated.

6. The device of claim 5, wherein generating the first mapping and the second mapping is configured to cause the device to perform the following operations: Determine a correspondence between a first subset of the logical block address set and the first physical block address set, the first subset of the logical block address set including the first logical block address; Determine a correspondence between a second subset of the logical block address set and the second physical block address set, the second subset of the logical block address set including the second logical block address; and One or more logical block addresses are discarded from each of the first subset of the set of logical block addresses and the second subset of the set of logical block addresses.

7. The device of claim 1, wherein the controller is further configured to cause the device to: determining a size of the write command based at least in part on receiving the write command; and A determination is made as to whether the size of the write command satisfies a first threshold, wherein storing the first mapping and the second mapping to the volatile memory is based at least in part on the size of the write command satisfying the first threshold.

8. The apparatus of claim 7, wherein the first set of physical block addresses and the second set of physical block addresses each include a first number of physical block addresses that satisfy the first threshold based at least in part on the size of the write command.

9. The device of claim 1, wherein the controller is further configured to cause the device to: determining a size of the write command based at least in part on receiving the write command; and A determination is made as to whether the size of the write command satisfies a second threshold, wherein storing the first mapping and the second mapping to the volatile memory is based at least in part on the size of the write command satisfying the second threshold.

10. The apparatus of claim 9, wherein the first set of physical block addresses and the second set of physical block addresses each include a second number of physical block addresses that satisfy the second threshold based at least in part on the size of the write command.

11. The device of claim 1 , wherein the controller is further configured to cause the device to: receiving a second write command including second data and a second set of logical block addresses associated with the data; determining, based at least in part on receiving the second write command, that a size of the second write command fails to satisfy a third threshold; storing a third mapping between the second set of logical block addresses and a third set of physical block addresses of the non-volatile memory in the volatile memory; and Based at least in part on storing the third mapping to the volatile memory, the second data is written to the third set of physical block addresses of the non-volatile memory.

12. The apparatus of claim 1, wherein: The physical block addresses in the first physical block address set are contiguous physical block addresses; and The physical block addresses in the second physical block address set are contiguous physical block addresses.

13. The apparatus of claim 1, wherein the physical block addresses in the first physical block address set are not contiguous with the physical block addresses in the second physical block address set.

14. The apparatus of claim 1, wherein the write command comprises a random write command.

15. A non-transitory computer-readable medium storing code including instructions that, when executed by a processor of an electronic device, cause the electronic device to: receiving, by a memory system including volatile memory and non-volatile memory, a write command including data and a set of logical block addresses associated with the data; storing, in the volatile memory, a first mapping between a first logical block address in the logical block address set and the first set of physical block addresses and a second mapping between a second logical block address in the logical block address set and the second set of physical block addresses based at least in part on a first set of physical block addresses and a second set of physical block addresses of the non-volatile memory for writing the data; and Based at least in part on storing the first mapping and the second mapping to the volatile memory, the data is written to the first set of physical block addresses and the second set of physical block addresses.

16. The non-transitory computer-readable medium of claim 15, wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to: receiving, by the memory system, a read command for a request including data associated with a third logical block address; Based at least in part on receiving the read command, determining that the third logical block address is associated with the first mapping; and Based at least in part on determining that the third logical block address is associated with the first mapping, a physical block address corresponding to the third logical block address is read.

17. The non-transitory computer-readable medium of claim 16, wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to: determining an offset between the first logical block address and the third logical block address; and The offset is used to determine that the physical block address corresponds to the third logical block address.

18. The non-transitory computer-readable medium of claim 15, wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to: determining a size of the write command based at least in part on receiving the write command; and A determination is made as to whether the size of the write command satisfies a first threshold, wherein storing the first mapping and the second mapping to the volatile memory is based at least in part on the size of the write command satisfying the first threshold.

19. The non-transitory computer-readable medium of claim 18, wherein the first set of physical block addresses and the second set of physical block addresses each include a first number of physical block addresses that satisfy the first threshold based at least in part on the size of the write command.

20. A method comprising: receiving, by a memory system including volatile memory and non-volatile memory, a write command including data and a set of logical block addresses associated with the data; storing, in the volatile memory, a first mapping between a first logical block address in the logical block address set and the first set of physical block addresses and a second mapping between a second logical block address in the logical block address set and the second set of physical block addresses based at least in part on a first set of physical block addresses and a second set of physical block addresses of the non-volatile memory for writing the data; and Based at least in part on storing the first mapping and the second mapping to the volatile memory, the data is written to the first set of physical block addresses and the second set of physical block addresses.