Ordering entries of input command queue

By configuring the controller in the memory system and sorting the commands in the input command queue to make the logical block address range continuous, the problem of low efficiency in processing continuous commands in the traditional memory system is solved and the overall performance is improved.

CN118535485APending Publication Date: 2024-08-23MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410195688.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-02-15
Filing Date
2024-02-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When traditional memory systems process input command queues, due to lack of time and processing resources, it is difficult to search and sort commands associated with consecutive logical block addresses together, resulting in inefficiency and more operation requirements, affecting overall performance.

Method used

Improvement is achieved by configuring the controller in the host interface of the memory system to receive and sequence commands in the input command queue so that the corresponding logical block address ranges are contiguous, thereby sequencing the third command in the queue to immediately follow the first command. The efficiency of command processing.

Benefits of technology

More efficient command processing is achieved, improving the overall performance of the memory system and reducing the number of inefficient reallocations of physical addresses and operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535485A_ABST
    Figure CN118535485A_ABST
Patent Text Reader

Abstract

The subject matter relates to ordering entries of an input command queue. A memory system may include an interface (e.g., a host interface) that includes a queue (e.g., an input command queue). The host interface may receive commands from a host system, and the commands may be inserted into the input command queue in the order in which they are received. In some examples, the memory system may determine a logical block address (LBA) range associated with one or more entries in the input command queue. The memory system may sort (e.g., re-sort) the commands such that the respective LBA ranges are contiguous.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross Reference

[0002] This patent application claims priority to U.S. Provisional Patent Application No. 63 / 447,823, filed by Parry et al. on February 23, 2023, entitled “ORDERING ENTRIES OF AN INPUT COMMAND QUEUE,” and U.S. Patent Application No. 18 / 442,936, filed by Parry et al. on February 15, 2024, entitled “ORDERING ENTRIES OF AN INPUT COMMAND QUEUE,” each of which is assigned to its assignee and each of which is expressly incorporated herein by reference in its entirety.

[0003] The technical field relates to ordering entries of an input command queue. Background Art

[0004] Memory devices are widely used to store information in devices such as computers, user devices, wireless communication devices, cameras, digital displays, and others. 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, typically represented by a logic 1 or a logic 0. In some examples, a single memory cell can support more than two states, either of which can be stored. To access 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 DRAM (SDRAM), static RAM (SRAM), ferroelectric RAM (FeRAM), magnetic RAM (MRAM), resistive RAM (RRAM), flash memory, phase change memory (PCM), self-selecting memory, chalcogenide memory technology, NOR and NAND memory devices, and others. Memory cells can be described according to either a volatile configuration or a nonvolatile configuration. A memory cell configured in a nonvolatile configuration can maintain a stored logic state for an extended period of time even in the absence of an external power source. A memory cell configured in a volatile configuration can lose its stored state when disconnected from the external power source. Summary of the Invention

[0006] An apparatus is described. The apparatus may include: a memory system including an input command queue; and a controller associated with the memory system, wherein the controller is configured to cause the apparatus to: receive a first command including a first logical block address range, a second command including a second logical block address range, and a third command including a third logical block address range, wherein the first command is received before the second command and the second command is received before the third command; determine, based at least in part on receiving the first, second, and third commands, that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range; and sort the first, second, and third commands in the input command queue, wherein the third command is sorted in the input command queue to immediately follow the first command based at least in part on determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range.

[0007] A non-transitory computer-readable medium storing code is described. The code may include instructions that, when executed by a processor of an electronic device, cause the electronic device to: receive, at an input command queue of a memory system, a first command comprising a first logical block address range, a second command comprising a second logical block address range, and a third command comprising a third logical block address range, wherein the first command is received before the second command and the second command is received before the third command; determine, based at least in part on receiving the first, second, and third commands, that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range; and sort the first, second, and third commands in the input command queue, wherein the third command is sorted in the input command queue to immediately follow the first command based at least in part on determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range.

[0008] A method is described. The method may include: receiving, at an input command queue of a memory system, a first command including a first logical block address range, a second command including a second logical block address range, and a third command including a third logical block address range, wherein the first command is received before the second command and the second command is received before the third command; determining, based at least in part on receiving the first, second, and third commands, that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range; and ordering the first, second, and third commands in the input command queue, wherein the third command is ordered after the first command in the input command queue based at least in part on determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 An example of a system supporting ordering entries of an input command queue according to examples disclosed herein is described.

[0010] Figure 2 An example of a system supporting ordering entries of an input command queue according to examples disclosed herein is described.

[0011] Figure 3 An example of a process flow supporting ordering entries of an input command queue according to examples disclosed herein is illustrated.

[0012] Figure 4 A block diagram illustrating a memory system that supports sorting entries of an input command queue according to examples disclosed herein.

[0013] Figure 5 Flowchart illustrating a method or methods of supporting ordering entries of an input command queue according to examples disclosed herein. DETAILED DESCRIPTION

[0014] Some memory systems may include one or more queues for receiving commands from a host system. For example, a memory system may include a host interface (HIF) that includes a queue (e.g., an input command queue) for receiving commands from the host system. Commands received from the host system may include a starting logical block address (LBA) and a length. Commands may be sorted in the input command queue in the order in which they are received, and therefore some sequential commands may be associated with non-contiguous LBAs.

[0015] Conventional memory systems may not have the time or processing resources to search (e.g., scan) an input command queue to sort commands associated with consecutive LBAs together. Instead, the memory system may process commands sequentially, which may result in a larger number of operations being performed, operations being performed on various regions of the memory system in parallel, or both. Reordering commands in a memory system controller as the memory system controller executes the commands may be inefficient because the controller may need to query the input command queue to determine the commands and associated LBAs, and physical address allocation may have already been initiated before reordering is determined, which may result in inefficient reallocation of physical addresses.

[0016] This document describes a memory system configured to sort entries in an input command queue. For example, the memory system described herein may be configured to receive one or more commands at an input command queue of a HIF. Each command may be associated with a starting LBA and a length. The commands may initially be sorted in the order in which they were received from the host system. The memory system may be configured to determine the LBA ranges of one or more commands in the input command queue and may sort (e.g., reorder) the commands so that the corresponding LBA ranges are contiguous. As a result, commands may be processed more efficiently, which may improve the overall performance of the memory system.

[0017] First, in the reference Figure 1 and 2 The features of the present disclosure are described in the context of a system. Figure 3 The features of the present disclosure are described in the context of a process flow. Figure 4 and 5 These and other features of the present disclosure are further illustrated and described in the context of a device diagram and process flow related to sorting entries of an input command queue.

[0018] Figure 1 An example of a system 100 that supports ordering entries of an input command queue according to examples disclosed herein is illustrated. The system 100 includes a host system 105 coupled to a memory system 110.

[0019] The memory system 110 may be or include any device or set of devices that 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 memory device, a universal serial bus (USB) flash memory 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.

[0020] 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 (such as an airplane, drone, train, car, or other transportation vehicle), a device with Internet of Things (IoT) capabilities, an embedded computer (e.g., an embedded computer included in a vehicle, industrial equipment, or a networked commercial device), or any other computing device that includes a memory and a processing device.

[0021] The system 100 may include a host system 105, which may be coupled to a memory system 110. In some examples, this coupling may include an interface with a host system controller 106, which may be an example 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 the devices therein. The processor chipset may include one or more cores, one or more caches (e.g., memory local to 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 subsystem 110, for example, to write data to 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 .

[0022] The host system 105 can 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 can 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 can include, but are not limited to, a SATA interface, a USF 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 DDR-capable DIMM slot interface), an Open NAND Flash Interface (ONFI), and a Low Power Double Data Rate (LPDDR) interface. In some examples, one or more such interfaces can be included in the host system controller 106 of the host system 105 and the memory system controller 115 of the memory system 110, or otherwise supported between the host system controller 106 and the memory system controller 115. 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).

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

[0024] The memory system controller 115 can be coupled to and communicate with the host system 105 (e.g., via a physical host interface) and can be an example of a controller or control component configured to cause the memory system 110 to perform various operations according to the examples described herein. The memory system controller 115 can also be coupled to and communicate with the memory devices 130 to perform operations, such as reading data, writing data, erasing data, or refreshing data at the memory devices 130, as well as other such operations—which can generally be referred to as access operations. In some cases, the memory system controller 115 can receive commands from the host system 105 and communicate with one or more memory devices 130 to execute such commands (e.g., at a memory array within the one or more memory devices 130). For example, the memory system controller 115 can receive commands or operations from the host system 105 and can 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 associated with commands from the host system 105). For example, the memory system controller 115 may convert responses associated with the memory devices 130 (e.g., data packets or other signals) into corresponding signals for the host system 105.

[0025] 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 flushing, health monitoring, and address translation between logical addresses (e.g., logical block addresses (LBAs)) associated with commands from the host system 105 and physical addresses (e.g., physical block addresses) associated with memory cells within the memory device 130.

[0026] 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 for performing 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 circuitry.

[0027] 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. Additionally or alternatively, the local memory 120 may serve as a cache for the memory system controller 115. For example, if data is read from or written to the memory device 130, the data may be stored in the local memory 120, and the data may be available in the local memory 120 for subsequent retrieval or manipulation (e.g., updating) by the host system 105 according to a cache policy (e.g., with reduced latency relative to the memory device 130).

[0028] although Figure 1 The example of the memory system 110 in FIG. 1 has been described as including a memory system controller 115, but in some cases, the memory system 110 may not include a memory system controller 115. For example, the memory system 110 may additionally or alternatively rely on an external controller (e.g., implemented by the host system 105) or one or more local controllers 135 (which may each be located within the memory device 130) to perform the functions attributed herein to the memory system controller 115. Generally, in some cases, one or more functions attributed herein to the memory system controller 115 may alternatively be performed by the host system 105, the local controller 135, or any combination thereof. In some cases, a memory device 130 that is at least partially managed by the memory system controller 115 may be referred to as a managed memory device. An example of a managed memory device is a managed NAND (MNAND) device.

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

[0030] 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 1 As illustrated in FIG, memory device 130 - a may include a local controller 135 - a, and memory device 130 - b may include a local controller 135 - b.

[0031] In some cases, memory device 130 may be or include a NAND device (e.g., a NAND flash memory 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 an electronics-grade semiconductor die 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 set of corresponding blocks 170, wherein each block 170 may include a set of corresponding pages 175, and each page 175 may include a set of memory cells.

[0032] 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 single-level cells (SLCs). 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 multi-level cells (MLCs) if the memory cells are configured to store two bits of information each, three-level cells (TLCs) if the memory cells are configured to store three bits of information each, quad-level cells (QLCs) if the memory cells are configured to store four bits of information each, or more generally, multi-level memory cells. Multi-level memory cells may provide greater storage density relative to SLC memory cells, but in some cases may involve narrower read or write margins or greater complexity in supporting circuitry.

[0033] 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, concurrent 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 concurrent operations may occur. For example, concurrent operations may be performed on blocks 170-a, 170-b, 170-c, and 170-d located in 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., including blocks in one or more planes of 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, performing concurrent operations in different planes 165 may be subject to one or more restrictions, such as performing concurrent operations on memory cells in different pages 175 that have the same page address in their respective planes 165 (e.g., related to command decode, page address decode circuitry, or other circuitry shared across planes 165).

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

[0035] For some NAND architectures, memory cells can be read and programmed (e.g., written) at a first level of granularity (e.g., at a page granularity), but can be erased at a second level of granularity (e.g., at a block granularity). That is, a page 175 can be the smallest unit of memory (e.g., a group of memory cells) that can be independently programmed or read (e.g., concurrently programmed or read as part of a single program or read operation), and a block 170 can be the smallest unit of memory (e.g., a group of memory cells) that can be independently erased (e.g., concurrently erased as part of a single erase operation). Furthermore, in some cases, a NAND memory cell can be erased before it can 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.

[0036] 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 remaining in the old block 170 as invalid or obsolete and may update a logical-to-physical (L2P) mapping table to associate the logical address (e.g., LBA) of the data with the new valid block 170 rather than the old invalid block 170. In some cases, such as due to latency or wear considerations, this copying and remapping may be performed rather than erasing and rewriting the entire old block 170. In some cases, one or more copies of the L2P mapping table may be stored within memory cells 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.

[0037] In some cases, an L2P mapping table may be maintained, and data may be marked as valid or invalid at a page granularity level, and a page 175 may contain valid data, invalid data, or no data. Invalid data may be data that is outdated due to a more recent or updated version of the data being stored in a different page 175 of the memory device 130. Invalid data may have been previously programmed to an invalid page 175, but may no longer be associated with a valid logical address, such as a logical address referenced by the host system 105. Valid data may be the latest version of such data stored on the memory device 130. A page 175 that does not contain data may be a page 175 that has never been written to or has been erased.

[0038] In some cases, the memory system controller 115 or the local controller 135 may perform operations on the memory device 130 (e.g., as part of one or more media management algorithms), such as wear leveling, background flushing, garbage collection, erasure, block scanning, health monitoring, or other, or any combination thereof. For example, within the memory device 130, a block 170 may have some pages 175 containing valid data and some pages 175 containing invalid data. To avoid waiting for all pages 175 in a block 170 to have invalid data in order to erase and reuse the block 170, an algorithm known as "garbage collection" may be invoked to allow the block 170 to be erased and released as a free block for subsequent write operations. Garbage collection may refer to a set of media management operations that include, for example: selecting a block 170 containing valid and invalid data; selecting a page 175 in the block containing valid data; copying the valid data from the selected page 175 to a new location (e.g., a free page 175 in another block 170); marking 175 the data in the previously selected page 175 as invalid; and erasing the selected block 170. Thus, the number of erased blocks 170 may increase so that more blocks 170 are available for storing subsequent data (e.g., data subsequently received from the host system 105).

[0039] In some cases, the memory system 110 may utilize a 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 the local controller 135. An example of a managed memory system is a managed NAND (MNAND) system.

[0040] The system 100 may include any number of non-transitory computer-readable media that support sorting entries of an input command queue. 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 herein to the host system 105, the memory system 110, or the memory device 130. For example, such instructions, when executed by the host system 105 (e.g., by the host system controller 106), the memory system 110 (e.g., by the memory system controller 115), or the memory device 130 (e.g., by the local controller 135), may cause the host system 105, the memory system 110, or the memory device 130 to perform the associated functions as described herein.

[0041] Memory system 110 may include a HIF 107, which includes an input command queue 109. In some examples, HIF 107 may receive commands from host system 105, and the commands may be added to input command queue 109. Each command may be associated with a starting LBA and a length. Commands may initially be sorted in the order they were received from host system 105. The HIF may include a controller or processor (not shown) configured to determine the range of LBAs for one or more commands in input command queue 109 and to sort (e.g., reorder) the commands so that the respective LBA ranges are contiguous. As a result, commands may be processed more efficiently, which may improve overall performance of memory system 110.

[0042] Figure 2 An example of a system 200 that supports sorting entries of an input command queue according to examples disclosed herein is described. The system 200 may be a reference Figure 1 The system 200 may include a memory system 210 configured to store data received from the host system 205 and send data to the host system 205 when requested by the host system 205 using an access command (such as a read command or a write command). The system 200 may implement the reference Figure 1 1. For example, memory system 210 and host system 205 may be instances of memory system 110 and host system 105, respectively. In some examples, system 200 may sort (e.g., reorder) commands in input command queue 260 so that the LBA ranges of the corresponding commands are contiguous. As a result, commands may be processed more efficiently, which may improve the overall performance of system 200.

[0043] Memory system 210 may include an interface 220 (e.g., a HIF) for communicating with host system 205 and a buffer 225 for temporarily storing data transferred between host system 205 and memory device 240. Interface 220, buffer 225, and memory controller 230 may support translating data between host system 205 and memory device 240 (e.g., as shown by data path 250) and may be collectively referred to as data path components. In some examples, interface 220 may include an input command queue 260 that receives commands (e.g., read commands, write commands) from host system 205. As described, commands may be sequenced within interface 220 (e.g., by controller circuitry 262) to improve overall performance of memory system 210.

[0044] The memory system controller 215 may process commands received from the host system 205 according to a sequence (e.g., first-in, first-out sequence, sequence according to the input command queue 260, or a list sorted according to consecutive LBA addresses). The memory system controller 215 may be coupled to the interface 220, the buffer 225, or the storage controller 230 via the bus 235. For example, the bus 235 may be used to pass commands from the input command queue 260 to the memory system controller 215, and to pass commands for transferring data between the buffer 225 and the memory device 240 from the memory system controller 215 to the storage queue 270 for execution by the storage controller 230. To improve device performance and efficiency, the commands within the input command queue 260 may be classified by the controller circuit 262, such as Figure 2 Controller circuit 262 may be a dedicated circuit for handling (e.g., parsing, classifying) commands stored in input command queue 260 and may be generally referred to as a controller. For example, input command queue 260 may receive commands from host system 205, and the commands may be stored in input command queue 260 in the order in which they are received.

[0045] The memory system controller 215 may process commands according to the order in which they appear in the input command queue 260. For example, each command may include an indication of the location within the buffer 225 where the associated data is located. The memory system controller 215 may transmit commands along the data path according to the order in which they are received from the host system 205. However, processing commands in this manner may result in inefficiencies in the system 200 when commands with consecutive LBA addresses exist in the queue. Sorting the commands within the input command queue 260 before they are processed (e.g., for transmission along the data path to other components of the memory system 210) may allow the memory system controller 215 to consolidate individually received commands into larger groups or sequences of commands, which may improve the overall performance of the system 200.

[0046] As an illustrative example, input command queue 260-a illustrates command table 295, which includes commands 295-a through 295-d. Column 275 depicts an indicator of queue depth (QD), which may indicate the initial sequential order in which commands 295 are received. Column 280 identifies the operation thread of which command 295 is a part (e.g., command 295-a is associated with thread 1, and command 295-d is associated with thread 4). The threads identified in column 280 may be associated with different types of operations (e.g., read, write operations) performed by host system 205 or different host system 205 applications or processes associated with a given command.

[0047] For example, thread 1 may be associated with a write operation for a first application, and thus command 295-a may be part of a write command. Column 285-a may indicate the starting LBA associated with command 295, and column 285-b may indicate the ending LBA associated with command 295. Columns 285-a and 285-b together may indicate the complete LBA range associated with command 295. For example, column 285-a indicates that the starting LBA for command 295-a is 0, and column 285-b indicates that the ending LBA for command 295-a is 5, thus indicating an LBA range of 0 to 5. Column 290 may indicate the length of the LBA range. Thus, for LBA addresses 0 to 5, column 290 indicates a range of 6 associated with command 295-a.

[0048] In input command queue 260-a, column 275 may illustrate that commands 295 are sorted in the queue according to the order in which they were received from host system 205. Columns 285-a and 285-b may illustrate that some of the LBA ranges associated with command 295 are consecutive to one another. For example, command 295-a has an LBA range of 0 to 5, and command 295-b has an associated LBA range of 6 to 12, so commands 295-a and 295-b may be consecutive commands (e.g., commands associated with consecutive LBAs).

[0049] The memory controller circuitry 262 may parse the input command queue 260 to determine whether any commands 295 within the command queue have consecutive LBA addresses and may reorder the commands within the input command queue 260. Reordering one or more commands so that the corresponding LBA ranges are consecutive may allow the system 200 to access (e.g., read from, write to) the associated LBAs with fewer commands or in another more efficient manner. Thus, input command queue 260-b illustrates the command table within the input command queue 260 after the controller circuitry 262 determines that some commands 295 have consecutive LBA addresses and reorders the consecutive commands within the input command queue 260.

[0050] Input command queue 260-b illustrates that commands 295-a and 295-b have been reordered by controller circuit 262. In some examples, the associated QD for each command may be updated based on the reordering. Input command queue 260-b further illustrates that additional commands 295 having a contiguous LBA range have been reordered by controller circuit 262.

[0051] In some additional or alternative examples, some commands with consecutive LBA addresses may not be reordered by controller circuitry 262 within input command queue 260. That is, commands 295 associated with different operations or different types of operations may not be reordered. Thus, a command with a starting LBA that is consecutive to the ending LBA of another command in the queue may be identified by controller circuitry 262 (or memory system controller 215), and one command may be a read command while the other may be a write command. Such commands may not be reordered.

[0052] For example, in input command queue 260-a, columns 285-a and 285-b may illustrate that the ending LBA associated with command 295-d is consecutive to the starting LBA of command 295-c. However, column 280 indicates that command 295-c is associated with thread 3, while command 295-d is associated with thread 4. As shown in input command queue 260-b, command 295-d may not be reordered before command 295-c. Therefore, commands 295 associated with consecutive LBA addresses and the same type of operation (e.g., read operations) may be reordered by controller circuitry 262.

[0053] For example, as illustrated in input command queue 260-b, although command 295-d may be associated with a contiguous LBA range as command 295-c, ​​the two commands may be associated with different types of operations and, therefore, may not be reordered. Therefore, command 295-d may remain in input command queue 260 while controller circuitry 262 reorders other commands 295 in input command queue 260. If the threshold metric for command 295-d is met, the memory system controller 215 may process command 295-d and remove it from input command queue 260.

[0054] Furthermore, although command 295-d may not be reordered by the memory system controller based on its associated LBA range, command 295-d may be positioned at a different position in the queue, as shown by input command queue 260-b. Command 295-d may be positioned at a different position in the queue due to other commands 295 being reordered (e.g., before command 295-d).

[0055] Additionally or alternatively, the memory system controller 215 may maintain a pointer for tracking which command 295 (or commands 295) is being processed. For example, the pointer may indicate (e.g., point to) the command 295 being processed. Thus, subsequently received commands may be sorted according to the ending LBA of the command 295 being processed. For example, if the command 295 being processed is associated with an ending LBA of 10, then a subsequently received command 295 with a starting LBA of 2 may not be reordered, while a subsequently received command 295 with a starting LBA of 11 may be reordered to be contiguous with the ending LBA of 10.

[0056] Additionally or alternatively, the memory system controller 215 may process commands stored to the controller circuitry 262. For example, the memory system controller 215 may determine one or more physical block addresses of the memory device 240 to read data from or write data to. The physical block addresses may be determined based on a range of LBAs associated with a given command stored to the input command queue 260 (e.g., using an L2P table). In some examples, when the memory system controller 215 processes one (or more) commands stored to the input command queue 260, the memory system controller may indicate completion of the command and may remove the command from the input command queue 260.

[0057] In some additional or alternative examples, command 295 may be received from host system 205 and may be associated with an LBA range that is not contiguous with any other commands in input command queue 260. Command 295 may remain in the queue until processed by memory system controller 215 after a threshold is met. For example, command 295 may remain in input command queue 260 until it is processed. In some examples, a delay may occur before the command is processed (e.g., due to other commands being reordered), so the command may remain in input command queue 260 until a threshold time has been met, until a threshold number of commands have been executed, or until another threshold has been met.

[0058] In some additional or alternative examples, after sorting commands 295 with consecutive LBA ranges, the memory system controller 215 may compress the commands into fewer commands (or a single command). As an illustrative example, the memory system controller 215 may process commands 295 within a command group 295-a-1 that includes three commands with consecutive LBA ranges, all associated with the same operation type (e.g., read commands). After processing the commands of command group 295-a-1, the memory system controller 215 may execute a single command to read the associated data based on data previously stored to consecutive physical addresses (e.g., as opposed to executing three separate commands). In other examples, if command group 295-a-1 contains three commands 295 with consecutive LBA addresses, each command including data associated with a portion of a write command, the memory system controller 215 may execute a single write command to write the associated data to the range of LBAs.

[0059] In some additional or alternative examples, the memory system controller may write data associated with commands having a contiguous LBA range to contiguous physical block addresses within the memory system. For example, if command group 295-a-1 contains commands 295 having a contiguous LBA range associated with write operations, the memory system controller 215 may write the data associated with command group 295-a-1 to a contiguous range of physical addresses. Each logical-to-physical address mapping assigned by the memory system controller 215 may be stored in a separate component of the memory system 210 (e.g., memory device 240 or buffer 225). By ordering (e.g., reordering) commands as described herein, commands may be processed more efficiently, which may improve the overall performance of the memory system 210.

[0060] Figure 3 An example of a process flow 300 for supporting sorting entries of an input command queue according to examples disclosed herein is illustrated. The process flow describes an example of a sequence of operations for classifying and executing commands, as described with reference to FIG. Figure 1 and 2 described.

[0061] In some cases, process flow 300 may be implemented by aspects of systems 100 and 200. For example, process flow 300 may include operations performed by a host system 305 (e.g., host system 205) and a memory system 310 (e.g., memory system 210), the memory system 310 including an input command queue 315, a controller circuit 320, a memory system controller 325, and one or more memory devices 330, which may be Figure 1 and 2300 . In some examples, the memory system 310 may include an interface (e.g., HIF) that includes an input command queue 315 and a controller circuit 320. In the following description of process flow 300, the operations may be performed in an order different from that shown. For example, certain operations may be excluded from process flow 300, or other operations may be added to process flow 300.

[0062] Process flow 300 may illustrate an example of controller circuitry 320 ordering commands stored in input command queue 315. For example, controller circuitry 320 may order (e.g., reorder) one or more commands so that LBAs associated with the ordered (e.g., reordered) commands are contiguous. By ordering (e.g., reordering) commands as described herein, commands may be processed more efficiently, which may improve overall performance of memory system 310.

[0063] Aspects of process flow 300 can be implemented by controller circuitry 320 and other components. Additionally or alternatively, aspects of process flow 300 can be implemented as instructions stored in a memory (e.g., firmware stored in a memory coupled to a host system or a memory system). For example, when executed by a controller (e.g., controller circuitry 320, memory system controller 325, or both), the instructions can cause the controller to perform the operations of process flow 300.

[0064] At 335, host system 305 may transmit a first command to memory system 310. The first command may be associated with a first LBA range and may be received by input command queue 315 of memory system 310. In some examples, one or more commands may have been previously received and stored in input command queue 315 (not shown).

[0065] At 340, the host system 305 may transmit a second command to the memory system 310. The second command may be associated with a second LBA range and may be received by the input command queue 315 of the memory system 310. The second command may be received after the first command (e.g., at 335). In some examples, the first LBA of the second command may not be contiguous with the last LBA of the first command.

[0066] At 345, the host system 305 may transmit a third command to the memory system 310. The third command may be associated with a third LBA range and may be received by the input command queue 315 of the memory system 310. The third command may be received after the second command (e.g., at 340). In some examples, the first LBA of the third command may not be contiguous with the last LBA of the second command.

[0067] In some examples (not shown), the host system 305 may have transmitted the fourth, fifth, and sixth commands to the memory system 310 before transmitting the first command. The fourth, fifth, and sixth commands may be associated with respective LBA ranges and may be received by the input command queue 315 of the memory system 310.

[0068] At 350, the controller circuit 320 may determine the position of a pointer associated with the input command queue 315. As described herein, the pointer may indicate a particular command (or commands) currently being processed (e.g., by the memory system controller 325). Consequently, the controller circuit 320 may only be able to sequence (e.g., reorder) commands received after the pointer. For example, the pointer may indicate that the sixth command is being processed, and thus the controller circuit 320 may only be able to sequence (e.g., reorder) the first, second, and third commands. That is, the controller circuit 320 may avoid sequencing (e.g., reordering) the fourth and fifth commands due to the fact that these commands were received before the sixth command.

[0069] At 355, the controller circuit 320 may determine the order of the first, second, and third LBA ranges of the corresponding commands stored in the input command queue 315. For example, the controller circuit 320 may determine that the commands are stored in the order received (e.g., first command, second command, third command), but the corresponding LBA ranges are non-contiguous. At 355, the controller circuit 320 may determine the contiguous order of the LBA ranges.

[0070] For example, the controller circuit 320 may determine that the first LBAs of the second and third commands occur (e.g., sequentially) after the last LBA of the first command. The controller circuit 320 may also determine that the first LBA of the third command is consecutive to the last LBA of the first command. Additionally or alternatively, the controller circuit 320 may determine that the first LBA of the second command is consecutive to the last LBA of the third command.

[0071] At 360, the controller circuit 320 may reorder the commands stored in the input command queue 315. For example, the controller circuit 320 may reorder the commands based on the position of the pointer and the determination made at 355. For example, the controller circuit 320 may reorder the commands so that the third command immediately follows the first command, and so that the second command immediately follows the third command. In other examples, the controller circuit 320 may reorder additional commands in the input command queue 315 so that the LBAs of the resulting commands are contiguous.

[0072] At 365, the host system 305 may transmit a seventh command to the memory system 310. The seventh command may be associated with a seventh LBA range and may be received by the input command queue 315 of the memory system 310. In some examples, the seventh command may be a different command type than the first, second, and third commands. For example, the seventh command may be a write command, while the first, second, and third commands may have been read commands (or vice versa).

[0073] At 370, the controller circuit 320 may determine the command type of the seventh command. The controller circuit 320 may also determine the command type of the previous command in the input command queue 315. For example, the controller circuit 320 may determine that the seventh command is a different type of command than at least the first, second, and third commands. In other examples, the operations performed at 370 may be performed by the memory system controller 325.

[0074] At 375 , the controller circuit 320 may refrain from reordering the seventh command based on the seventh command being a different type of command than at least the first, second, and third commands. Thus, the LBA associated with the seventh command may be discontinuous with other LBAs of commands included in the input command queue 315 .

[0075] At 380, the memory system controller 325 may write data associated with the first, second, and third commands to one or more memory devices 330 of the memory system 310. For example, the memory system controller 325 may write the first data associated with the first command, the second data associated with the third command, and the third data associated with the second command to a contiguous range of physical block addresses. The memory system controller 325 may receive commands from the input command queue 315 and may update pointers accordingly. In some examples, the memory system controller 325 may request command(s) from the input command queue 315, or the command(s) may be pushed to the memory system controller 325.

[0076] In some examples, due to the LBAs being contiguous in the input command queue 315, the memory system controller 325 may be able to write the data using a single command (or a reduced number of commands) rather than executing three separate commands to write the corresponding data. That is, the memory system controller 325 may combine the commands and may determine one or more physical block addresses associated with the LBAs. The memory system controller 325 may also generate command(s) to write the associated data to the one or more memory devices 330. Before writing the data to the one or more memory devices 330, the commands may be stored in a queue (e.g., referenced to the memory device 330). Figure 2 By ordering (eg, reordering) commands as described herein, commands may be processed more efficiently, which may improve the overall performance of the memory system 310.

[0077] Figure 4 A block diagram 400 illustrates a memory system 420 that supports sorting entries of an input command queue according to examples disclosed herein. The memory system 420 may be a reference Figures 1 to 3 Memory system 420 or its various components may be examples of means for performing the various aspects of sorting entries of an input command queue described herein. For example, memory system 420 may include a receiving component 425, a determining component 430, a sorting component 435, a writing component 440, a pointer 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).

[0078] The receiving component 425 may be configured to or otherwise support means for receiving, at an input command queue of the memory system, a first command comprising a first logical block address range, a second command comprising a second logical block address range, and a third command comprising a third logical block address range, wherein the first command is received before the second command and the second command is received before the third command. The determining component 430 may be configured to or otherwise support means for determining, based at least in part on receiving the first, second, and third commands, that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range. The sorting component 435 may be configured to or otherwise support means for sorting the first, second, and third commands in the input command queue, wherein the third command is sorted in the input command queue to immediately follow the first command based at least in part on determining that the first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range.

[0079] In some examples, the determining component 430 may be configured to or otherwise support means for determining that a last logical block address in the first logical block address range is discontinuous with a first logical block address in the second logical block address range based at least in part on receiving the first command, the second command, and the third command.

[0080] In some examples, the receiving component 425 can be configured to or otherwise support means for receiving, at the input command queue, a fourth command including a fourth logical block address range prior to receiving the first, second, and third commands. In some examples, the determining component 430 can be configured to or otherwise support means for determining, based at least in part on receiving the first, second, and third commands, that one or more operations associated with the fourth command are being performed, wherein determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range is based at least in part on determining that one or more operations associated with the fourth command are being performed.

[0081] In some examples, to support determining that one or more operations associated with the fourth command are being performed, pointer component 445 can be configured or otherwise support means for identifying a position of a pointer associated with the input command queue.

[0082] In some examples, the receiving component 425 can be configured to or otherwise support means for receiving, at the input command queue, a fifth command comprising a fifth logical block address range and a sixth command comprising a sixth logical block address range, wherein the fifth command is received before the fourth command and the sixth command is received after the fourth command. In some examples, the ordering component 435 can be configured to or otherwise support means for avoiding reordering the sixth command to immediately follow the fifth command based at least in part on determining that one or more operations associated with the fourth command are being executed.

[0083] In some examples, the first command and receiving component 425 can be configured to or otherwise support means for receiving, at the input command queue, a seventh command comprising a seventh logical block address range based at least in part on receiving the first command, the second command, and the third command. In some examples, the first command and ordering component 435 can be configured to or otherwise support means for avoiding reordering the seventh command in the input command queue based at least in part on determining that the seventh command comprises a second type of command different from the first type of command.

[0084] In some instances, the write component 440 may be configured as or otherwise support means for the memory system to write first data associated with a first command to a first physical block address range, second data associated with a third command to a second physical block address range, and third data associated with the second command to a third physical block address range based at least in part on ordering the first command, the second command, and the third command in an input command queue, wherein the first physical block address range, the second physical block address range, and the third physical block address range are consecutive physical block addresses.

[0085] In some examples, the receiving component 425 may be configured to or otherwise support means for receiving a plurality of commands at an input command queue, each of the plurality of commands including a respective logical block address range, wherein each of the plurality of commands is received in a sequential order. In some examples, the determining component 430 may be configured to or otherwise support means for determining, based at least in part on receiving the plurality of commands, that a first logical block address in the logical block address range of one or more entries in the input command queue is contiguous with a last logical block address in the logical block address range of a previous entry in the input command queue. In some examples, the sorting component 435 may be configured to or otherwise support means for sorting each of the plurality of commands in the input command queue based at least in part on determining that a first logical block address in the logical block address range of one or more entries in the input command queue is contiguous with a last logical block address in the logical block address range of a previous entry in the input command queue.

[0086] In some examples, the receiving component 425 may be configured to or otherwise support means for receiving, at an input command queue of the memory system, an eighth command comprising an eighth logical block address range and a ninth command comprising a ninth logical block address range, wherein the eighth command is received before the ninth command. In some examples, the determining component 430 may be configured to or otherwise support means for determining, based at least in part on receiving the eighth and ninth commands, that a last logical block address in the ninth logical block address range is consecutive to a first logical block address in the eighth logical block address range. In some examples, the sorting component 435 may be configured to or otherwise support means for sorting the eighth and ninth commands in the input command queue, wherein the eighth command is sorted in the input command queue to immediately follow the ninth command based at least in part on determining that the last logical block address in the ninth logical block address range is consecutive to a first logical block address in the eighth logical block address range.

[0087] In some examples, the memory system includes a processor for processing commands input into a command queue. In some examples, the processor maintains a mapping table between logical addresses and physical addresses.

[0088] In some examples, when ordered in the input command queue, an entry associated with each of the first command, the second command, and the third command indicates a location in a buffer of the memory system where the associated data is located.

[0089] Figure 5 Flowchart illustrating a method 500 for supporting sorting entries of an input command queue according to examples disclosed herein. The operations of the method 500 may be implemented by the memory system or components thereof described herein. For example, the operations of the method 500 may be implemented by reference to Figures 1 to 4 In some examples, the memory system may execute a set of instructions to control the functional elements of the device to perform the described functions. Additionally, or alternatively, the memory system may use dedicated hardware to perform aspects of the described functions.

[0090] At 505, the method may include receiving, at an input command queue of a memory system, a first command including a first logical block address range, a second command including a second logical block address range, and a third command including a third logical block address range, wherein the first command is received before the second command and the second command is received before the third command. Operation 505 may be performed according to examples disclosed herein. In some examples, aspects of operation 505 may be implemented as described in reference to Figure 4 The receiving component 425 described is executed.

[0091] At 510, the method may include determining, based at least in part on receiving the first command, the second command, and the third command, that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range. Operation 510 may be performed according to examples disclosed herein. In some examples, aspects of operation 510 may be implemented as described in reference to Figure 4 The described determination component 430 is performed.

[0092] At 515, the method may include sorting the first command, the second command, and the third command in the input command queue, wherein the sorted third command is sorted immediately after the first command in the input command queue based at least in part on determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range. Operation 515 may be performed according to examples disclosed herein. In some examples, aspects of operation 515 may be performed as described in reference to Figure 4 The described sorting component 435 is performed.

[0093] In some examples, an apparatus as described herein may perform a method or 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:

[0094] Aspect 1: A method, apparatus, or non-transitory computer-readable medium comprising operations, features, circuit systems, logic, components, or instructions, or any combination thereof, for: receiving, at an input command queue of a memory system, a first command comprising a first logical block address range, a second command comprising a second logical block address range, and a third command comprising a third logical block address range, wherein the first command is received before the second command and the second command is received before the third command; determining, based at least in part on receiving the first command, the second command, and the third command, that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range; and sorting the first command, the second command, and the third command in the input command queue, wherein the third command is sorted in the input command queue to immediately follow the first command based at least in part on determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range.

[0095] Aspect 2: The method, apparatus, or non-transitory computer-readable medium of Aspect 1, further comprising operations, features, circuit systems, logic, components, or instructions, or any combination thereof, for determining that a last logical block address in a first logical block address range is discontinuous with a first logical block address in a second logical block address range based at least in part on receiving a first command, a second command, and a third command.

[0096] Aspect 3: The method, apparatus, or non-transitory computer-readable medium of any one of Aspects 1 to 2, further comprising operations, features, circuit systems, logic, components, or instructions, or any combination thereof, for: receiving, at an input command queue, a fourth command comprising a fourth logical block address range before receiving the first, second, and third commands; determining that one or more operations associated with the fourth command are being performed based at least in part on receiving the first, second, and third commands, wherein determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range is based at least in part on determining that one or more operations associated with the fourth command are being performed.

[0097] Aspect 4: The method, apparatus, or non-transitory computer-readable medium of aspect 3, wherein determining that one or more operations associated with the fourth command are being performed comprises operations, features, circuit systems, logic, components, or instructions, or any combination thereof, for identifying a position of a pointer associated with an input command queue.

[0098] Aspect 5: The method, apparatus, or non-transitory computer-readable medium of any one of Aspects 3 to 4, further comprising operations, features, circuit systems, logic, components, or instructions, or any combination thereof, for: receiving, at an input command queue, a fifth command comprising a fifth logical block address range and a sixth command comprising a sixth logical block address range, wherein the fifth command is received before the fourth command and the sixth command is received after the fourth command; and avoiding reordering the sixth command to immediately follow the fifth command based at least in part on determining that one or more operations associated with the fourth command are being executed.

[0099] Aspect 6: A method, apparatus, or non-transitory computer-readable medium according to any one of Aspects 1 to 5, wherein the first command and the method, apparatus, and non-transitory computer-readable medium further include operations, features, circuit systems, logic, components, or instructions, or any combination thereof, for: receiving a seventh command including a seventh logical block address range at an input command queue based at least in part on receiving the first command, the second command, and the third command; and avoiding reordering the seventh command in the input command queue based at least in part on determining that the seventh command includes a second type of command different from the first type of command.

[0100] Aspect 7: The method, apparatus, or non-transitory computer-readable medium of any one of Aspects 1 to 6, further comprising operations, features, circuit systems, logic, components, or instructions, or any combination thereof, for: a component for writing, by a memory system, first data associated with a first command to a first physical block address range, second data associated with a third command to a second physical block address range, and third data associated with the second command to a third physical block address range based at least in part on sorting the first command, the second command, and the third command in an input command queue, wherein the first physical block address range, the second physical block address range, and the third physical block address range are consecutive physical block addresses.

[0101] Aspect 8: A method, apparatus, or non-transitory computer-readable medium according to any one of Aspects 1 to 7, further comprising operations, features, circuit systems, logic, components, or instructions, or any combination thereof, for: receiving a plurality of commands at an input command queue, each of the plurality of commands comprising a corresponding logical block address range, wherein each of the plurality of commands is received in a sequential order; determining, based at least in part on receiving the plurality of commands, that a first logical block address in the logical block address range of one or more entries in the input command queue is contiguous with a last logical block address in the logical block address range of a previous entry in the input command queue; and sorting each of the plurality of commands in the input command queue based at least in part on determining that a first logical block address in the logical block address range of one or more entries in the input command queue is contiguous with a last logical block address in the logical block address range of a previous entry in the input command queue.

[0102] 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, components, or instructions, or any combination thereof, for: receiving, at an input command queue of a memory system, an eighth command comprising an eighth logical block address range and a ninth command comprising a ninth logical block address range, wherein the eighth command is received before the ninth command; determining, based at least in part on receiving the eighth and ninth commands, that a last logical block address in the ninth logical block address range is consecutive to a first logical block address in the eighth logical block address range; and sorting the eighth and ninth commands in the input command queue, wherein the eighth command is sorted in the input command queue to immediately follow the ninth command based at least in part on determining that the last logical block address in the ninth logical block address range is consecutive to the first logical block address in the eighth logical block address range.

[0103] Aspect 10: The method, apparatus, or non-transitory computer-readable medium of any one of aspects 1 to 9, wherein the memory system includes a processor for processing commands in an input command queue, and the processor maintains a mapping table between logical addresses and physical addresses.

[0104] Aspect 11: The method, apparatus, or non-transitory computer-readable medium of any of aspects 1 to 10, wherein, when ordered in the input command queue, the entry associated with each of the first command, the second command, and the third command indicates a location in a buffer of the memory system where the associated data is located.

[0105] 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. Furthermore, portions from two or more of the described methods may be combined.

[0106] 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 signaling symbols that may be referenced throughout the above description may be represented by voltages, currents, electromagnetic waves, magnetic fields or particles, optical fields or particles, or any combination thereof. Some figures may illustrate a signal as a single signal; however, the signal may represent a signal bus, where the bus may have various bit widths.

[0107] The terms "electronic communication," "conductive contact," "connected," and "coupled" may refer to a relationship between components that supports the flow of signals between the components. Components are considered to be in electronic communication with each other (or in conductive contact with, or connected to, or coupled to each other) if any conductive path exists between the components that can support the flow of signals between the components at any time. At any given time, the conductive path between components in electronic communication with each other (or in conductive contact with, or connected to, or coupled to each other) may be open or closed based on the operation of the device that includes the connected components. The conductive path between the connected components may be a direct conductive path between the components or an indirect conductive path between the connected components may include intermediate components, such as switches, transistors, or other components. In some examples, the flow of signals between the connected components may be interrupted for a period of time, for example, using one or more intermediate components, such as switches or transistors.

[0108] The term "coupling" (e.g., "electrical coupling") may refer to a condition that transitions from an open-circuit relationship between components (where signals are currently unable to pass between the components via a conductive path) to a closed-circuit relationship between the components (where signals are able to pass between the components via a conductive path). If a component (e.g., a controller) couples other components together, the component initiates a change that allows signals to flow between the other components via conductive paths that previously did not allow signal flow.

[0109] The term "isolation" refers to a relationship between components where signals are currently unable to flow between them. Components are isolated from one another if an open circuit exists between them. For example, when a switch positioned between two components is open, the components separated by the switch are isolated from one another. If a controller isolates two components, it causes a change that prevents signals from flowing between the components using the conductive path that previously allowed signal flow.

[0110] The terms "if," "when," "based on," or "based at least in part on" are used interchangeably. In some instances, if the terms "if," "when," "based on," or "based at least in part on" are used to describe a connection between conditional actions, conditional processes, or portions of processes, the terms are interchangeable.

[0111] The devices discussed herein, including memory arrays, can be formed on a semiconductor substrate (e.g., silicon, germanium, silicon-germanium alloys, gallium arsenide, gallium nitride, etc.). In some examples, the substrate is a semiconductor wafer. In some other examples, the substrate can 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 subregion of the substrate, can be controlled by doping with various chemical species, including but not limited to phosphorus, boron, or arsenic. Doping can be performed by ion implantation during the initial formation or growth of the substrate or by any other doping method.

[0112] The switch components or transistors discussed herein may represent field-effect transistors (FETs) and include three-terminal devices comprising a source, a drain, and a gate. The terminals can be connected to other electronic components via conductive materials (e.g., metals). The source and drain can be conductive and can comprise heavily doped (e.g., degenerate) semiconductor regions. The source and drain can be separated by a lightly doped semiconductor region or channel. If the channel is n-type (i.e., the majority carriers are electrons), the FET can be referred to as an n-type FET. If the channel is p-type (i.e., the majority carriers are holes), the FET can be referred to as a p-type FET. The channel can be capped by an insulating gate oxide. The channel conductivity can be controlled by applying a voltage to the gate. For example, applying a positive or negative voltage to an n-type FET or a p-type FET, respectively, can cause the channel to become conductive. If a voltage greater than or equal to the transistor's threshold voltage is applied to the transistor gate, the transistor can be "on" or "activated." If a voltage less than the transistor's threshold voltage is applied to the transistor gate, the transistor can be "off" or "deactivated."

[0113] 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 rather than "preferred" or "advantageous over other examples." The detailed description includes specific details to provide an understanding of the described techniques. However, these techniques can be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form to avoid obscuring the concepts of the described examples.

[0114] In the accompanying drawings, similar components or features may have the same reference label. Furthermore, various components of the same type may be distinguished by following the reference label with a hyphen and a second label that distinguishes the similar component. When 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.

[0115] 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 on or transmitted via a computer-readable medium as one or more instructions or code. Other examples and implementations are within the scope of this disclosure and the appended claims. For example, due to the nature of software, the functions described may be implemented using software executed by a processor, hardware, firmware, hardwiring, or a combination of any of these. Features that implement the functions may also be physically located at various locations, including portions that are distributed so that the functions are implemented at different physical locations.

[0116] For example, the various illustrative blocks and components described in connection with the present disclosure may be implemented or performed using a general purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device designed to perform the functions described herein, discrete gate or transistor logic, discrete hardware components, or any combination thereof. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any processor, controller, microcontroller, or state machine. A processor may 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).

[0117] As used herein, "or," as used in the claims, as used in a list of items (e.g., a list of items beginning with a phrase such as "at least one" or "one or more") indicates an inclusive list, such that a list of at least one of, for example, 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). Moreover, as used herein, the phrase "based on" should not be interpreted as a reference 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 this disclosure. In other words, as used herein, the phrase "based on" should be interpreted in the same manner as the phrase "based at least in part on."

[0118] Computer-readable media include both non-transitory computer storage media and communication media, and the communication media include any media that facilitates the transfer of a computer program from one place to another. Non-transitory storage media can be any available media that can be accessed by a general-purpose or special-purpose computer. As an example and not limitation, non-transitory computer-readable media may include RAM, ROM, electrically erasable programmable read-only memory (EEPROM), compact disc (CD) ROM or other optical disc storage devices, magnetic disk storage devices or other magnetic storage devices, or any other non-transitory media that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a general-purpose or special-purpose computer or a general-purpose or special-purpose processor. Moreover, 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 technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, then the definition of media includes coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave). As used herein, disk and disc include CD, laser disc, optical disc, digital versatile 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.

[0119] This description is provided to enable one 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 to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A device comprising: a memory system comprising an input command queue; as well as a controller associated with the memory system, wherein the controller is configured to cause the device to: receiving a first command including a first logical block address range, a second command including a second logical block address range, and a third command including a third logical block address range, wherein the first command is received before the second command and the second command is received before the third command; determining, based at least in part on receiving the first command, the second command, and the third command, that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range; as well as The first command, the second command, and the third command in the input command queue are sorted, wherein the third command is sorted immediately after the first command in the input command queue based at least in part on determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range.

2. The apparatus of claim 1, wherein the controller is further configured to cause the apparatus to: A determination is made based at least in part on receiving the first command, the second command, and the third command that a last logical block address in the first logical block address range is non-contiguous with a first logical block address in the second logical block address range.

3. The apparatus of claim 1, wherein the controller is further configured to cause the apparatus to: Before receiving the first command, the second command, and the third command, receiving a fourth command including a fourth logical block address range; and Receiving an indication that one or more operations associated with the fourth command are being performed based at least in part on receiving the first command, the second command, and the third command, wherein determining that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range is based at least in part on determining that the one or more operations associated with the fourth command are being performed.

4. The apparatus of claim 3, wherein to determine that the one or more operations associated with the fourth command are being performed, the controller is configured to cause the apparatus to: An indication of a position of a pointer associated with the input command queue is received.

5. The apparatus of claim 3, wherein the controller is further configured to cause the apparatus to: receiving a fifth command including a fifth logical block address range and a sixth command including a sixth logical block address range, wherein the fifth command is received before the fourth command and the sixth command is received after the fourth command; and Reordering the sixth command to immediately follow the fifth command is avoided based at least in part on determining that the one or more operations associated with the fourth command are being executed.

6. The apparatus of claim 1, wherein the first command, the second command, and the third command each comprise a command of a first type, and the controller is further configured to cause the apparatus to: Based at least in part on receiving the first command, the second command, and the third command, receiving a seventh command including a seventh logical block address range; and Reordering the seventh command in the input command queue is avoided based at least in part on determining that the seventh command comprises a second type of command different from the first type of commands.

7. The apparatus of claim 1, further comprising: a memory system controller associated with the memory system, wherein the memory system controller is configured to cause the device to: Based at least in part on sorting the first command, the second command, and the third command in the input command queue, first data associated with the first command is written to a first physical block address range, second data associated with the third command is written to a second physical block address range, and third data associated with the second command is written to a third physical block address range, wherein the first physical block address range, the second physical block address range, and the third physical block address range are consecutive physical block addresses.

8. The apparatus of claim 1, wherein the controller is further configured to cause the apparatus to: receiving a plurality of commands, the plurality of commands each comprising a respective logical block address range, wherein each of the plurality of commands is received in a sequential order; determining, based at least in part on receiving the plurality of commands, that a first logical block address in a range of logical block addresses of one or more entries in the input command queue is consecutive to a last logical block address in a range of logical block addresses of a previous entry in the input command queue; and Each of the plurality of commands in the input command queue is sorted based at least in part on determining that the first logical block address in the range of logical block addresses of one or more entries in the input command queue is consecutive to a last logical block address in the range of logical block addresses of a previous entry in the input command queue.

9. The apparatus of claim 1, wherein the controller is further configured to cause the apparatus to: receiving an eighth command including an eighth logical block address range and a ninth command including a ninth logical block address range, wherein the eighth command is received before the ninth command; determining, based at least in part on receiving the eighth command and the ninth command, that a last logical block address in the ninth logical block address range is consecutive to a first logical block address in the eighth logical block address range; and The eighth command and the ninth command in the input command queue are sorted, wherein the eighth command is sorted in the input command queue to immediately follow the ninth command based at least in part on determining that the last logical block address in the ninth logical block address range is consecutive to the first logical block address in the eighth logical block address range.

10. The apparatus of claim 1, further comprising: A memory system controller includes a processor for processing commands in the input command queue, wherein the memory system controller maintains a mapping table between logical addresses and physical addresses.

11. The apparatus of claim 1, wherein when ordered in the input command queue, an entry associated with each of the first command, the second command, and the third command indicates a location in a buffer of the memory system where associated data is located.

12. 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, at an input command queue of a memory system, a first command including a first logical block address range, a second command including a second logical block address range, and a third command including a third logical block address range, wherein the first command is received before the second command and the second command is received before the third command; determining, based at least in part on receiving the first command, the second command, and the third command, that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range; as well as The first command, the second command, and the third command in the input command queue are sorted, wherein the third command is sorted immediately after the first command in the input command queue based at least in part on determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range.

13. The non-transitory computer-readable medium of claim 12, wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to: A determination is made based at least in part on receiving the first command, the second command, and the third command that a last logical block address in the first logical block address range is non-contiguous with a first logical block address in the second logical block address range.

14. The non-transitory computer-readable medium of claim 12, wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to: receiving, at the input command queue, a fourth command including a fourth logical block address range before receiving the first command, the second command, and the third command; and Determining that one or more operations associated with the fourth command are being performed based at least in part on receiving the first command, the second command, and the third command, wherein determining that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range is based at least in part on determining that the one or more operations associated with the fourth command are being performed.

15. The non-transitory computer-readable medium of claim 14, wherein to determine that the one or more operations associated with the fourth command are being performed, the instructions, when executed by the processor of the electronic device, further cause the electronic device to: A position of a pointer associated with the input command queue is identified.

16. The non-transitory computer-readable medium of claim 14, wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to: receiving at the input command queue a fifth command including a fifth logical block address range and a sixth command including a sixth logical block address range, wherein the fifth command is received before the fourth command and the sixth command is received after the fourth command; and Reordering the sixth command to immediately follow the fifth command is avoided based at least in part on determining that the one or more operations associated with the fourth command are being executed.

17. The non-transitory computer-readable medium of claim 12, wherein the first command, the second command, and the third command each comprise a first type of command, wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to: Based at least in part on receiving the first command, the second command, and the third command, receiving at the input command queue a seventh command including a seventh logical block address range; and Reordering the seventh command in the input command queue is avoided based at least in part on determining that the seventh command comprises a second type of command different from the first type of commands.

18. The non-transitory computer-readable medium of claim 12, wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to: The memory system writes first data associated with the first command to a first physical block address range, second data associated with the third command to a second physical block address range, and third data associated with the second command to a third physical block address range based at least in part on sorting the first command, the second command, and the third command in the input command queue, wherein the first physical block address range, the second physical block address range, and the third physical block address range are consecutive physical block addresses.

19. The non-transitory computer-readable medium of claim 12, wherein the instructions, when executed by the processor of the electronic device, further cause the electronic device to: receiving a plurality of commands at the input command queue, the plurality of commands each comprising a respective logical block address range, wherein each of the plurality of commands is received in sequential order; determining, based at least in part on receiving the plurality of commands, that a first logical block address in a range of logical block addresses of one or more entries in the input command queue is consecutive to a last logical block address in a range of logical block addresses of a previous entry in the input command queue; and Each of the plurality of commands in the input command queue is sorted based at least in part on determining that the first logical block address in the range of logical block addresses of one or more entries in the input command queue is consecutive to a last logical block address in the range of logical block addresses of a previous entry in the input command queue.

20. A method comprising: receiving, at an input command queue of a memory system, a first command including a first logical block address range, a second command including a second logical block address range, and a third command including a third logical block address range, wherein the first command is received before the second command and the second command is received before the third command; determining, based at least in part on receiving the first command, the second command, and the third command, that a first logical block address in the third logical block address range is consecutive to a last logical block address in the first logical block address range; as well as The first command, the second command, and the third command in the input command queue are sorted, wherein the third command is sorted immediately after the first command in the input command queue based at least in part on determining that the first logical block address in the third logical block address range is consecutive to the last logical block address in the first logical block address range.