Dual-threshold controlled scheduling of memory access commands

By adopting a dual-threshold controlled scheduling method in the memory subsystem, the read and write delays of non-volatile memory units are optimized, the utilization rate of the data bus and system performance are improved, and the problems in the memory subsystem in the existing technology are solved. Problems with limited system throughput and long delays.

CN113518970BActive Publication Date: 2024-10-01MICRON TECHNOLOGY INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080017193.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-02-28
Filing Date
2020-02-25
Publication Date
2024-10-01
Estimated Expiration
2040-02-25

AI Technical Summary

Technical Problem

When existing memory subsystems process memory access commands, it is difficult to effectively optimize the read and write latency of the crosspoint array of non-volatile memory cells, resulting in limited system throughput and long latency.

Method used

Adopts a dual-threshold controlled scheduling method to schedule memory commands through two separate thresholds (promotion threshold and transaction threshold) to determine when to switch the execution of the между read command queue and write command queue to optimize data bus utilization and reduce latency.

Benefits of technology

It achieves approximately 80% utilization of the memory controller's physical media data bus under balanced workload, which improves utilization by approximately 20% compared to conventional scheduling solutions and reduces overall latency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113518970B_ABST
    Figure CN113518970B_ABST
Patent Text Reader

Abstract

A processing device in a memory system provides an execution authorization to a first queue of a plurality of queues, the first queue storing a first plurality of memory commands to be executed on the memory component. The processing device further determines whether a number of commands from the first queue that have been executed since the first queue received the execution authorization meets an executed transaction threshold criterion, and determines whether a number of pending commands in a second queue of the plurality of queues, the second queue storing a second plurality of memory commands to be executed on the memory component meets an elevated threshold criterion. In response to meeting at least one of the executed transaction threshold criterion or the elevated threshold criterion, the processing device provides the execution authorization to the second queue.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate generally to memory subsystems, and more particularly, to dual threshold controlled scheduling of memory access commands. Background Art

[0002] The memory subsystem may be a storage system, such as a solid-state drive (SSD) or a hard disk drive (HDD). The memory subsystem may be a memory module, such as a dual in-line memory module (DIMM), a small outline DIMM (SO-DIMM), or a non-volatile dual in-line memory module (NVDIMM). The memory subsystem may include one or more memory components that store data. The memory components may be, for example, non-volatile memory components and volatile memory components. In general, the host system may use the memory subsystem to store data at the memory components and retrieve data from the memory components. Summary of the invention BRIEF DESCRIPTION OF THE DRAWINGS

[0003] The present disclosure will be more fully understood from the detailed description given below and from the accompanying drawings of various embodiments of the present disclosure.

[0004] Figure 1 An example computing environment including a memory subsystem according to some embodiments of the present disclosure is described.

[0005] Figure 2 is a block diagram of a multi-level queue structure for processing memory commands using dual threshold controlled scheduling according to some embodiments of the present disclosure.

[0006] Figure 3 is a flow chart of an example method for processing memory commands using dual threshold controlled scheduling according to some embodiments of the present disclosure.

[0007] Figure 4 is a flow chart of an example method for processing memory commands using elevated threshold criteria according to some embodiments of the present disclosure.

[0008] Figure 5 is a flow chart of an example method for processing memory commands using executed transaction threshold criteria according to some embodiments of the present disclosure.

[0009] Figure 6 is a block diagram of an example computer system in which embodiments of the present disclosure may operate. DETAILED DESCRIPTION

[0010] Aspects of the present disclosure are directed to dual threshold controlled scheduling of memory access commands in a memory subsystem. A memory subsystem is also referred to hereinafter as a "memory device". An example of a memory subsystem is a storage device coupled to a central processing unit (CPU) via a peripheral interconnect (e.g., an input / output bus, a storage area network). Examples of storage devices include solid-state drives (SSDs), flash drives, universal serial bus (USB) flash drives, and hard disk drives (HDDs). Another example of a memory subsystem is a memory module coupled to a CPU via a memory bus. Examples of memory modules include dual in-line memory modules (DIMMs), small outline DIMMs (SO-DIMMs), and non-volatile dual in-line memory modules (NVDIMMs), among others. In some embodiments, a memory subsystem may be a hybrid memory / storage subsystem. In general, a host system may utilize a memory subsystem that includes one or more memory components. The host system may provide data to be stored at the memory subsystem and may request data to be retrieved from the memory subsystem.

[0011] The memory system typically classifies the memory commands received from the host system into one of several corresponding categories, such as read commands, write commands, erase commands, etc. The memory commands in each category are assigned to a queue that is specifically dedicated to the commands of the particular category. For example, all read commands can be routed to one queue, all write commands can be routed to another queue, etc. Since only one command from a queue can be executed at a time, the memory system serves various queues according to a defined scheduling scheme. Popular conventional scheduling schemes include round-robin and weighted round-robin. In round-robin scheduling, the memory system accesses each queue in sequence, executing a single command from the queue at each access (although empty queues can be skipped). For example, if there are two queues, the memory system can execute one command from the first queue, then execute one command from the second queue, then execute one command from the first queue again, etc. With weighted round-robin scheduling, the command queue can be allocated a greater amount of bandwidth so that groups of two or more commands can be executed whenever a queue is accessed. For example, a memory system may execute five commands from a first queue before switching to a second queue, and then execute five commands from a second queue before switching back to the first queue. As with any system, reducing latency (i.e., the time that elapses between when a memory command is received and when execution of the memory command is completed) is preferred. Thus, command scheduling schemes are typically selected to achieve the goal of reducing latency.

[0012] Depending on certain characteristics of the type of storage medium used in the memory system, the above scheduling schemes may provide varying results. For example, dynamic random access memory (DRAM) devices have approximately equal read and write latencies. Thus, the execution of any particular read command will take approximately the same amount of time as the write command. However, in the case of non-AND (NAND) type flash memory, the write latency is typically much higher than the read latency. In addition, NAND type flash memory further supports erase operations, which may also have relatively long associated latencies. Therefore, different scheduling schemes may be preferred. In addition, the cross-point array of non-volatile memory cells has its own specific characteristics, which include asymmetric read and write latency timing (e.g., approximately 100 nanoseconds for reading and approximately 10 to 20 nanoseconds for writing), which induces limitations in utilizing multi-level parallelism and therefore makes it difficult to optimize the throughput of the cross-point system. The cross-point array of non-volatile memory cells may have a significantly smaller data cell size than a flash-based memory component, and therefore may have a significantly larger number of data cells for a memory component of similar capacity. A cross-point array of non-volatile memory cells can be combined with a stackable cross-grid data access array to perform bit storage based on changes in body resistance. In addition, compared to multiple flash-based memories, cross-point non-volatile memories can perform in-place write operations, where non-volatile memory cells can be programmed without pre-erasing the non-volatile memory cells. Therefore, this type of memory component can perform "in-place" data replacement. Due to the large number of data cells in this memory component, a large amount of computing resources (e.g., processing and memory resources) are used to retrieve, store, and classify various count values ​​associated with the memory component. In addition, retrieving, storing, and classifying a large number of data cells takes a proportionally large amount of time, which contributes significantly to the latency of the memory subsystem. Therefore, different scheduling schemes can be used to improve performance and reduce latency.

[0013] Aspects of the present disclosure address the above and other deficiencies by implementing a dual threshold controlled scheduling of memory access commands in a memory subsystem. In one embodiment, the memory subsystem uses two separate thresholds ("dual thresholds") to schedule the execution of memory commands from several separate queues (e.g., a read command queue and a write command queue) to a memory component of a crosspoint array containing non-volatile memory cells. In one embodiment, the first threshold is defined by a promotion threshold criterion regarding the number of pending (i.e., not yet executed) commands in the associated queue. The second threshold is defined by an executed transaction threshold criterion, which is the number of commands executed since the execution authorization was given to the associated queue. As will be described in more detail herein, in one embodiment, the two thresholds are used together to determine when to switch the execution authorization from one queue to another queue (i.e., when to stop executing commands from the current active queue and when to start executing commands from the non-active queue, thereby making the queue active).

[0014] In one embodiment, for a memory subsystem that includes a read command queue and a write command queue, the sequencer may begin executing a request from either of the read command queues, or the write command queue has a number of pending commands that meet (e.g., exceed) the corresponding promotion threshold criteria. If none of the queues meet the promotion threshold criteria, the sequencer may continue to execute commands from the current active queue (i.e., the most recently executed command is from the queue). Whenever a command from an active queue is executed, the sequencer may increment a counter indicating the number of commands that have been executed since the execution grant was given to the associated queue. If the sequencer determines that the value of the counter meets (e.g., satisfies or exceeds) the corresponding executed transaction threshold criteria, the sequencer may switch the execution grant from the current active queue to the inactive queue and reset the value of the counter. While executing commands and incrementing the counter, the sequencer may continue to monitor the number of pending commands in each queue. If the number of pending commands in the inactive queue meets the corresponding promotion threshold criteria at any time before the value of the counter meets the transaction threshold criteria for the active queue, the sequencer may switch the execution grant to the inactive queue, even if the transaction threshold criteria have not yet been met. After switching execution authorization to another queue, thereby making the non-active queue active, the sequencer may execute commands from that queue and may apply corresponding promotion threshold criteria and executed transaction threshold criteria to determine when to switch execution authorization again.

[0015] Depending on the implementation, the threshold criteria for raising may be the same or different for various queues, and the transaction threshold criteria executed may also be the same or different for various queues. In some implementations, the threshold criteria for raising and the transaction threshold criteria executed may be configured as specific characteristics of the memory subsystem. The use of dual threshold controlled scheduling allows the sequencer to optimize the use of the data bus for different types of workloads, thereby reducing the overall latency in the memory subsystem. When the commands from the host system are balanced between read and write, the transaction threshold criteria are executed to ensure that the two queues are served in the appropriate time. However, when there is a read-intensive workload, the threshold criteria for raising ensure that those read commands can be promoted and executed to prevent the read command queue from becoming full and prevent subsequent commands from the host from being rejected. Similarly, the threshold criteria for raising promote write commands under write-intensive workloads. Experimental results show that the dual threshold controlled scheduling of memory commands can achieve approximately 80% utilization of the data bus between the physical media of the memory controller under a balanced workload, compared to only about 60% utilization using a conventional scheduling scheme.

[0016] Figure 1 An example computing environment 100 including a memory subsystem 110 according to some embodiments of the present disclosure is described. The memory subsystem 110 may include media, such as memory components 112A-112N. The memory components 112A-112N may be volatile memory components, non-volatile memory components, or a combination of such components. In some embodiments, the memory subsystem is a storage system. An example of a storage system is an SSD. In some embodiments, the memory subsystem 110 is a hybrid memory / storage subsystem. In general, the computing environment 100 may include a host system 120 that uses the memory subsystem 110. For example, the host system 120 may write data to the memory subsystem 110 and read data from the memory subsystem 110.

[0017] The host system 120 may be a computing device, such as a desktop computer, a laptop computer, a network server, a mobile device, or such computing devices that include a memory and a processing device. The host system 120 may include or be coupled to the memory subsystem 110, so that the host system 120 can read data from the memory subsystem 110 or write data to the memory subsystem 110. The host system 120 may be coupled to the memory subsystem 110 via a physical host interface. As used herein, "coupled to" generally refers to a connection between components, which may be an indirect communication connection or a direct communication connection (e.g., without intermediate components), whether wired or wireless, including connections such as electrical connections, optical connections, magnetic connections, etc. Examples of physical host interfaces include, but are not limited to, a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCIe) interface, a Universal Serial Bus (USB) interface, a Fibre Channel, a Serial Attached SCSI (SAS), etc. The physical host interface may be used to transfer data between the host system 120 and the memory subsystem 110. When the memory subsystem 110 is coupled to the host system 120 through a PCIe interface, the host system 120 may further use an NVM Express (NVMe) interface to access the memory components 112A to 112N. The physical host interface may provide an interface for transferring control, address, data, and other signals between the memory subsystem 110 and the host system 120.

[0018] Memory components 112A to 112N may include any combination of different types of non-volatile memory components and / or volatile memory components. Examples of non-volatile memory components include NAND type flash memory. Each of memory components 112A to 112N may include one or more memory cell arrays, such as single-level cells (SLC) or multi-level cells (MLC) (e.g., triple-level cells (TLC) or quad-level cells (QLC)). In some embodiments, a particular memory component may include an SLC portion and an MLC portion of a memory cell. Each of the memory cells may store one or more bits of data (e.g., a data block) used by the host system 120. Although non-volatile memory components such as NAND type flash memory are described, memory components 112A to 112N may be based on any other type of memory, such as volatile memory. In some embodiments, the memory components 112A to 112N may be, but are not limited to, random access memory (RAM), read-only memory (ROM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), phase change memory (PCM), magnetic random access memory (MRAM), or non-(NOR) flash memory, electrically erasable programmable read-only memory (EEPROM), and a cross-point array of non-volatile memory cells. The cross-point array of non-volatile memory may perform bit storage based on changes in body resistance in conjunction with a stackable cross-grid data access array. In addition, compared to multiple flash-based memories, the cross-point non-volatile memory may perform write-in-place operations, where the non-volatile memory cells may be programmed without pre-erasing the non-volatile memory cells. Furthermore, the memory cells of the memory components 112A to 112N may be grouped into memory pages or data blocks that may refer to cells of the memory component for storing data. The data blocks may be further grouped into one or more planes on each of the memory components 112A-112N, where operations may be performed on each of the planes simultaneously. Corresponding data blocks from different planes may be associated with each other in the form of stripes rather than spanning multiple planes.

[0019] The memory system controller 115 (hereinafter referred to as the "controller") may communicate with the memory components 112A to 112N to perform operations, such as reading data, writing data, or erasing data at the memory components 112A to 112N, and other such operations. The controller 115 may include hardware, such as one or more integrated circuits and / or discrete components, buffer memory, or a combination thereof. The controller 115 may be a microcontroller, a dedicated logic circuit (e.g., a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), etc.), or other suitable processor. The controller 115 may include a processor (processing device) 117 configured to execute instructions stored in a local memory 119. In the illustrated example, the local memory 119 of the controller 115 includes an embedded memory configured to store instructions for performing various processes, operations, logic flows, and routines that control the operation of the memory subsystem 110, including handling communications between the memory subsystem 110 and the host system 120. In some embodiments, the local memory 119 may include memory registers that store memory pointers, fetched data, etc. Local memory 119 may also include read-only memory (ROM) for storing microcode. Figure 1 The example memory subsystem 110 in FIG. 1 has been illustrated as including a controller 115, but in another embodiment of the present disclosure, the memory subsystem 110 may not include the controller 115 and may instead rely on external control (e.g., provided by an external host or by a processor or controller separate from the memory subsystem).

[0020] In general, the controller 115 may receive commands or operations from the host system 120, and may convert the commands or operations into instructions or appropriate commands to achieve the desired access to the memory components 112A-112N. The controller 115 may be responsible for other operations, such as wear leveling operations, garbage collection operations, error detection and error correction (ECC) operations, encryption operations, cache operations, and address translation between logical block addresses and physical block addresses associated with the memory components 112A-112N. The controller 115 may further include a host interface circuit system to communicate with the host system 120 via a physical host interface. The host interface circuit system may convert commands received from the host system into command instructions to access the memory components 112A-112N, and convert responses associated with the memory components 112A-112N into information for the host system 120.

[0021] The memory subsystem 110 may also include additional circuitry or components not illustrated. In some embodiments, the memory subsystem 110 may include a cache or buffer (e.g., DRAM) and address circuitry (e.g., row decoders and column decoders) that may receive addresses from the controller 115 and decode the addresses to access the memory components 112A-112N.

[0022] The memory subsystem 110 includes a sequencer 113 that can be used to schedule the execution of memory commands received from the host system 120 and stored in the multi-level queue structure 130 for one or more of the memory components 112A to 112N using two separate thresholds. In one embodiment, the first threshold is defined by a promotion threshold criterion regarding the number of pending commands in the associated queue. The second threshold is defined by an executed transaction threshold criterion, which is the number of commands that have been executed since the execution grant was given to the associated queue. In one embodiment, the sequencer 113 uses the two thresholds together to determine when to switch the execution grant from one queue to another queue. If the sequencer 113 determines that the value of the counter indicating the number of transactions that have been executed from a queue in the queue structure 130 meets (e.g., meets or exceeds) the corresponding executed transaction threshold criterion, the sequencer can switch the execution grant from the current active queue to another non-active queue and reset the value of the counter. As commands are executed and the counter is incremented, the sequencer 113 can continue to monitor the number of pending commands in each queue. If the number of pending commands in the non-active queue meets the corresponding promotion threshold criteria at any time before the value of the counter meets the executed transaction threshold criteria for the active queue, then the sequencer 113 may switch execution authorization to the non-active queue even though the transaction threshold criteria have not yet been met. After switching execution authorization to another queue, thereby making the non-active queue active, the sequencer 113 may execute commands from the queue and may apply the corresponding promotion threshold criteria and the executed transaction threshold criteria to determine when to switch execution authorization again. Additional details regarding the operation of the sequencer 113 are described below.

[0023] Figure 21 is a block diagram of a multi-level queue structure 130 for processing memory commands using dual threshold controlled scheduling according to some embodiments of the present disclosure. In one embodiment, the multi-level queue structure 130 includes a command queue 210, a read command queue 220, and a write command queue 230. In other embodiments, the multi-level queue structure 130 may include some other number and / or arrangement of queues. Each of the queues in the multi-level queue structure 130 may include a set of commands maintained in order, so that the first command to be queued (i.e., added to) the queue is also the first command to be dequeued (i.e., removed) from the queue. In other embodiments, some other data structures or structures may be used, such as buffers, etc. In one embodiment, the memory component 112 is a single memory die including several separate partitions 242. Memory commands from the read command queue 220 or the write command queue 230 may be directed to any one of the partitions 242. In another embodiment, the memory component 112 includes multiple memory dies. In one implementation, the memory subsystem 110 includes a separate multi-level queue structure 130 for each memory component 112 or for each individual memory die of a memory component.

[0024] The command queue 210 receives host commands 212 from the host system 120 or from some other component of the memory subsystem 110, and stores the host commands 212 until further processing can be performed. In one embodiment, the sequencer 113 identifies the command type of each of the host commands 212 in the command queue 210. For example, by examining the structure of a particular host command 212 and looking up an indication value in a defined command type field, the sequencer 113 can determine whether the host command is a read command or a write command. A read command includes an instruction to read data from a specific address of the memory component 112, while a write command includes an instruction to write data to a specific address of the memory component 112. Depending on the command type, the sequencer 113 can move the command to one of the read command queue 220 or the write command queue 230. Therefore, the read command queue 220 includes a number of read commands 222 (i.e., a first subset of the host commands 212), and the write command queue 230 includes a number of write commands 232 (i.e., a second subset of the host commands 212).

[0025] In one embodiment, the sequencer 113 uses two separate thresholds to schedule the execution of memory commands from the read command queue 220 and the write command queue 230 to the memory component 112. In one embodiment, the first threshold is defined by a raised threshold criterion regarding the number of pending (i.e., not yet executed) commands in the associated queue. The second threshold is defined by an executed transaction threshold criterion regarding the number of commands that have been executed since the execution grant 260 was given to the associated queue. In one embodiment, the two thresholds are used together to determine when to switch execution grants from one queue to another (i.e., when to stop executing commands from the current active queue and when to start executing commands from another queue).

[0026] In one embodiment, the sequencer 113 may begin executing a request from any of the read command queues 220, or the write command queue 230 has a number of pending commands that meet (e.g., exceed) the corresponding promotion threshold criteria. If none of the queues meet the promotion threshold criteria, the sequencer 113 may continue to execute commands from the current active queue (i.e., the most recently executed command is from that queue). For purposes of explanation, it may be assumed that the read command queue 220 is the current active queue. Each time a read command 222 from the read command queue 220 is executed, the sequencer 113 may increment a counter 250 indicating the number of commands that have been executed since the execution authorization 260 was given to the associated queue. In one embodiment, the execution authorization 260 acts as a permission to execute commands from the queue to which it is currently associated. For example, the execution authorization may have one or more corresponding status bits (e.g., using a one-hot encoding), the value of which indicates to the sequencer 113 which of the read command queue 220 and the write command queue 230 is currently active. In this embodiment, a first value (e.g., 2'b01) may indicate that the write command queue 230 is active, while a second value (e.g., 2'b10) may indicate that the read command queue 220 is active. The sequencer 113 may switch the execution grant 260 to another queue (e.g., by modifying the value of the status bit) according to the dual threshold controlled scheduling scheme described herein.

[0027] If the sequencer 113 determines that the value of the counter 250 meets (e.g., meets or exceeds) the corresponding executed transaction threshold criteria, the sequencer 113 may switch the execute grant 260 from the read command queue 220 to the previously inactive write command queue 230 and begin executing the write command 232. The sequencer 113 may also reset the value of the counter 250. The sequencer 113 may continue to monitor the number of pending commands in each queue while executing the read command 222 from the read command queue 220 and incrementing the counter 250. If the number of pending write commands 232 in the write command queue 230 meets the corresponding raised threshold criteria at any time before the value of the counter 250 meets the transaction threshold criteria for the read command queue 220, the sequencer 113 may switch the execute grant 260 to the write command queue 230 even though the transaction threshold criteria for the read command queue 220 has not yet been met. Thus, in response to either the executed transaction threshold criteria being met for the read command queue 220 or the raised threshold criteria being met for the write command queue 230, the sequencer 113 may switch the execute grant 260 from the read command queue 220 to the write command queue 230. After switching the execute grant 260 to the write command queue 230, the sequencer 113 may begin executing the write command 232 for the memory component 112.

[0028] When the write command queue 230 is the current active queue, each time a write command 232 from the write command queue 230 is executed, the sequencer 113 may increment the value of a counter 250 indicating the number of commands that have been executed since the associated queue was given an execute grant 260. In one embodiment, the same counter 250 is used for both the read command queue 220 and the write command queue 230. In other embodiments, each of the read command queue 220 and the write command queue 230 may have a separate counter.

[0029] If the sequencer 113 determines that the value of the counter 250 meets (e.g., meets or exceeds) the corresponding executed transaction threshold criteria, the sequencer 113 may switch the execute grant 260 from the write command queue 230 to the read command queue 220 and execute the read command 222 again. The sequencer 113 may also reset the value of the counter 250. While executing the write command 232 from the write command queue 230, the sequencer 113 may continue to monitor the number of pending commands in each queue. If the number of pending read commands 222 in the read command queue 220 meets the corresponding raised threshold criteria at any time before the value of the counter 250 meets the transaction threshold criteria for the write command queue 230, the sequencer 113 may switch the execute grant 260 to the read command queue 220 even though the transaction threshold criteria for the write command queue 230 has not yet been met. However, if the number of pending transactions in an active queue (eg, write command queue 230 ) also meets the promotion threshold criteria, sequencer 113 may maintain execution grant 260 to the active queue until the number of executed commands meets the executed transaction threshold criteria.

[0030] Figure 3 300 is a flowchart of an example method for processing memory commands using dual threshold controlled scheduling according to some embodiments of the present disclosure. Method 300 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, method 300 is performed by Figure 1 The sequencer 113 of the embodiment of the present invention is executed. Although shown in a specific sequence or order, unless otherwise specified, the order of the processes may be modified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0031] At operation 310, the processing device receives a host command 212 from the host system 120 or from some other component of the memory subsystem 110. At operation 315, the processing device stores the host command 212 in the command queue 210. The command queue 210 may include a collection of host commands 212 held in order and implement a first-in-first-out (FIFO) scheme for managing the host commands 212. In other implementations, some other data structure or structures may be used, such as a buffer or the like.

[0032] At operation 320, the processing device determines whether the host command 212 is a read command 222. In one implementation, the sequencer 113 identifies the command type of each of the host commands 212 in the command queue 210. For example, by examining the structure of a particular host command 212 and looking up an indication value in a defined command type field, the sequencer 113 may determine whether the host command is a read command 222 or a write command 232. Depending on the command type, the sequencer 113 may move the command to one of the read command queue 220 or the write command queue 230.

[0033] If it is a read command 222, then at operation 325 the processing device moves the read command 222 to the read command queue 220. If the host command 212 is not a read command and is actually a write command 232, then at operation 330 the processing device moves the write command 232 to the write command queue 230. Thus, the read command queue 220 includes a number of read commands 222 (i.e., a first subset of the host commands 212), and the write command queue 230 includes a number of write commands 232 (i.e., a second subset of the host commands 212).

[0034] At operation 335, the processing device executes commands from the read command queue 220 and the write command queue 230 using a dual threshold controlled schedule. In one embodiment, the first threshold is defined by a promotion threshold criterion regarding the number of pending commands in the associated queue. The second threshold is defined by an executed transaction threshold criterion regarding the number of commands that have been executed since an execution grant was given to the associated queue. In one embodiment, the sequencer 113 uses the two thresholds together to determine when to switch an execution grant 260 from one queue to another, as described below with respect to Figure 4 and Figure 5 Describe in more detail.

[0035] Figure 4 4 is a flowchart of an example method for processing memory commands using elevated threshold criteria according to some embodiments of the present disclosure. Method 400 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, method 400 is performed by Figure 1 The sequencer 113 of the embodiment of the present invention is executed. Although shown in a specific sequence or order, unless otherwise specified, the order of the processes may be modified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0036] At operation 410, the processing device determines the number of pending commands in the non-active queues in the read command queue 220 and the write command queue 230. The active queue may include a queue that currently holds the execution authorization 260 and is currently executing a command from it (or recently executing a command from it). In contrast, the non-active queue is another queue that currently holds the execution authorization 260 and is currently executing a command from the queue (or recently executing a command from the queue). In one embodiment, the sequencer 113 queries the non-active queue to determine how many pending commands are stored in the queue. Several pending commands may include commands that are stored in the queue but have not yet been executed or scheduled for execution by the sequencer 113. In another embodiment, the sequencer 113 maintains a counter (separate from the counter 250) for each of the read command queue 220 and the write command queue 230, which is incremented whenever a command is added to the queue and decremented whenever a command from the queue is executed. Therefore, the values ​​of these counters will represent the number of pending commands in the corresponding queue at any point in time.

[0037] At operation 415, the processing device determines whether the number of pending commands in the non-active queue meets the first promotion threshold criteria associated with the non-active queue. In one embodiment, the sequencer 113 may continuously or periodically monitor the number of pending commands in the active and non-active queues. The sequencer 113 may compare the number of pending commands in the non-active queue with the first promotion threshold criteria to determine whether the number of pending commands in the non-active queue meets (e.g., meets or exceeds) the corresponding promotion threshold criteria. Depending on the embodiment, the first promotion criteria may be expressed as a discrete number of pending commands (e.g., 64 commands) or as a fraction or percentage of the capacity of the non-active queue (e.g., 50% full).

[0038] If the first raising threshold criteria is met, then at operation 420, the processing device determines the number of pending commands in the current active queues in the read command queue 220 and the write command queue 230. In one embodiment, the sequencer 113 queries the active queue to determine how many pending commands are stored in the queue. In another embodiment, the sequencer 113 checks a counter associated with the active queue, the value of the counter indicating the number of pending commands in the active queue.

[0039] At operation 425, the processing device determines whether the number of pending commands in the active queue meets the second promotion threshold criterion associated with the active queue. In one embodiment, the sequencer 113 can compare the number of pending commands in the active queue with the second promotion threshold criterion to determine whether the number of pending commands in the active queue meets (e.g., meets or exceeds) the corresponding promotion threshold criterion. Depending on the embodiment, the second promotion threshold criterion associated with the active queue can be the same as or different from the first promotion threshold criterion associated with the non-active queue.

[0040] If the second promotion threshold criteria are not met, then at operation 430, the processing device switches the execution authorization from the active queue to the inactive queue. After switching the execution authorization to the inactive queue, thereby making the inactive queue active, the sequencer may execute commands from the queue and may return to operation 410 and continue to monitor the number of pending commands in each of the active and inactive queues. If the number of pending commands in the inactive queue does not meet the first promotion threshold criteria or the number of pending commands in the active queue does meet the second promotion threshold criteria, then at operation 435, the processing device maintains the execution authorization 260 for the active queue.

[0041] Figure 5 5 is a flowchart of an example method for processing memory commands using transaction threshold criteria executed according to some embodiments of the present disclosure. Method 500 may be performed by processing logic, which may include hardware (e.g., a processing device, a circuit system, dedicated logic, programmable logic, microcode, hardware of a device, an integrated circuit, etc.), software (e.g., instructions running or executed on a processing device), or a combination thereof. In some embodiments, method 500 is performed by Figure 1 The sequencer 113 of the embodiment of the present invention is executed. Although shown in a specific sequence or order, unless otherwise specified, the order of the processes may be modified. Therefore, the illustrated embodiments should be understood as examples only, and the illustrated processes may be performed in different orders, and some processes may be performed in parallel. In addition, one or more processes may be omitted in various embodiments. Therefore, not all processes are required in every embodiment. Other process flows are possible.

[0042] At operation 510, the processing device executes commands from the first queue in the multi-level queue structure 130. The sequencer 113 may schedule the execution of memory commands from any queue that currently holds an execute grant 260. If none of the queues holds an execute grant 260, the sequencer 113 may select a queue whose number of pending commands meets the corresponding escalation threshold criteria or has a higher number of pending commands. For example, in one embodiment, the sequencer 113 may schedule the execution of a read command 222 from the read command queue 220. At operation 515, the processing device increments the value of the counter 250 associated with the read command queue 220, the value indicating the number of read commands 222 that have been executed since the read command queue 220 received the execute grant 260.

[0043] At operation 520, the processing device determines whether the number of executed read commands 222 (as indicated by the value of the counter 250) meets the first executed transaction threshold criteria associated with the read command queue 220. In one embodiment, the sequencer 113 may compare the number of executed read commands 222 with the first executed transaction threshold criteria to determine whether the number of executed commands meets (e.g., meets or exceeds) the corresponding executed transaction threshold criteria. Depending on the embodiment, the first executed transaction criteria may be expressed as a discrete number of executed commands (e.g., 16 or 32 commands) or as a fraction or percentage of the capacity of the queue (e.g., 20% of the capacity). If the first executed transaction threshold criteria is not met, the processing device returns to operation 510 and executes another read command 222 from the read command queue 220.

[0044] If the first executed transaction threshold criteria are met, then at operation 525, the processing device switches the execute grant 260 from the read command queue 220 to a second queue, such as the write command queue 230. At operation 530, the processing device executes the write command 232 from the write command queue 230. In one embodiment, the sequencer 113 selects the oldest write command 232 in the write command queue 230. At operation 535, the processing device increments the value of the counter 250 associated with the write command queue 230, the value indicating the number of write commands 232 that have been executed since the write command queue 230 received the execute grant 260.

[0045] At operation 540, the processing device determines whether the number of executed write commands 232 (as indicated by the value of the counter 250) meets the second executed transaction threshold criteria associated with the write command queue 230. In one embodiment, the sequencer 113 may compare the number of executed write commands 232 with the second executed transaction threshold criteria to determine whether the number of executed commands meets (e.g., meets or exceeds) the corresponding executed transaction threshold criteria. Depending on the embodiment, the second executed transaction threshold criteria associated with the write command queue 230 may be the same as or different from the first executed transaction threshold criteria associated with the read command queue 220. If the second executed transaction threshold criteria is not met, the processing device returns to operation 530 and executes another write command 232 from the write command queue 230.

[0046] If the second executed transaction threshold criteria are met, then at operation 545, the processing device switches the execution grant 260 from the write command queue 230 back to the read command queue 220 and returns to block 510 to resume executing the read command 222 from the read command queue 220. As described above, while executing a read command 222 from the read command queue 220 or executing a write command 232 from the write command queue 230, the sequencer 113 may continue to monitor the number of pending commands in each queue, as described above with respect to Figure 4 Thus, in response to meeting either the executed transaction threshold criteria for the active queue or meeting the boost threshold criteria for the inactive queue (unless the boost threshold criteria for the active queue is also met), the sequencer 113 may switch the execution grant 260 from the active queue to the inactive queue.

[0047] Figure 6 An example machine of a computer system 600 is illustrated within which a set of instructions for causing the machine to perform any one or more of the methodologies discussed herein may be executed. In some embodiments, the computer system 600 may correspond to a host system (e.g., Figure 1 1) a host system 120 that includes, is coupled to, or utilizes a memory subsystem (e.g., Figure 1 The memory subsystem 110 of the controller may be used to execute the operation of the controller (for example, execute the operating system to execute the corresponding Figure 1 In some embodiments, the machine may be connected (e.g., using a network) to other machines. The machine may operate in the capacity of a server or a client machine in a client-server network environment, or in the capacity of a peer machine in a peer-to-peer (or distributed) network environment, or as a server or a client machine in a cloud computing infrastructure or environment.

[0048] The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a personal digital assistant (PDA), a cellular phone, a network appliance, a server, a network router, a switch or a bridge, or any machine capable of executing a set of instructions (sequentially or otherwise) that specify actions to be performed by the machine. Furthermore, while a single machine is described, the term "machine" should also be construed to include any collection of machines that individually or collectively execute one (or more) sets of instructions to perform one or more of the methodologies discussed herein.

[0049] The example computer system 600 includes a processing device 602, a main memory 604 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM), such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc.), a static memory 606 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage system 618 that communicate with each other via a bus 630.

[0050] The processing device 602 represents one or more general-purpose processing devices, such as a microprocessor, a central processing unit, etc. More specifically, the processing device may be a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, or a processor that implements other instruction sets, or a processor that implements a combination of instruction sets. The processing device 602 may also be one or more special-purpose processing devices, such as an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), a network processor, etc. The processing device 602 is configured to execute instructions 626 for performing the operations and steps discussed herein. The computer system 600 may further include a network interface device 608 to communicate over a network 620.

[0051] The data storage system 618 may include a machine-readable storage medium 624 (also referred to as a computer-readable medium) having stored thereon one or more sets of instructions 626 or software embodying any one or more of the methods or functions described herein. The instructions 626 may also reside, completely or at least partially, within the main memory 604 and / or within the processing device 602 during execution thereof by the computer system 600, the main memory 604 and the processing device 602 also constituting machine-readable storage media. The machine-readable storage medium 624, the data storage system 618, and / or the main memory 604 may correspond to Figure 1 Memory subsystem 110.

[0052] In one embodiment, the instructions 626 include instructions for implementing the Figure 1The functional instructions of the sequencer 113 of the present invention. Although the machine-readable storage medium 624 is shown as a single medium in the example embodiment, the term "machine-readable storage medium" should be considered to include a single medium or multiple media storing one or more sets of instructions. The term "machine-readable storage medium" should also be considered to include any medium capable of storing or encoding a set of instructions for execution by a machine and causing the machine to perform one or more of the methods of the present disclosure. Therefore, the term "machine-readable storage medium" should be considered to include, but not limited to, solid-state memory, optical media, and magnetic media.

[0053] Some portions of the previous detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means by which those skilled in the art of data processing most effectively communicate the substance of their work to other persons skilled in the art. An algorithm is here and generally considered to be a self-consistent sequence of operations that result in a desired result. The operations are operations that require physical manipulation of physical quantities. These quantities are typically, but not necessarily, in the form of electrical or magnetic signals that can be stored, combined, compared, and otherwise manipulated. It has proven convenient, primarily for general reasons, to sometimes refer to these signals as bits, values, elements, symbols, characters, terms, numbers, etc.

[0054] It should be borne in mind, however, that all of these and similar terms should be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. The present disclosure may refer to the actions and processes of a computer system or similar electronic computing device that manipulates and transforms data represented as physical (electronic) quantities within a computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage systems.

[0055] The present disclosure also relates to an apparatus for performing the operations described herein. This apparatus may be specially constructed for the intended purpose, or it may comprise a general purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer-readable storage medium, such as, but not limited to, any type of disk including a floppy disk, an optical disk, a CD-ROM and a magnetic optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic card or an optical card, or any type of medium suitable for storing electronic instructions, each coupled to a computer system bus.

[0056] The algorithms and displays presented herein are not inherently related to any particular computer or other device. Various general purpose systems may be used with programs according to the teachings herein, or it may prove convenient to construct more specialized devices to perform the methods. The structures of a variety of these systems will be presented as set forth in the description below. In addition, the present disclosure is described without reference to any particular programming language. It will be appreciated that a variety of programming languages ​​may be used to implement the teachings of the present disclosure as described herein.

[0057] The present disclosure may be provided as a computer program product or software, which may include a machine-readable medium having stored thereon instructions that can be used to program a computer system (or other electronic device) to perform a process according to the present disclosure. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). In some embodiments, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium, such as a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory component, etc.

[0058] In the foregoing description, embodiments of the present disclosure have been described with reference to specific example embodiments thereof. It will be apparent that various modifications may be made to the present disclosure without departing from the broader spirit and scope of the embodiments of the present disclosure as set forth in the appended claims. Therefore, the description and drawings should be viewed in an illustrative rather than a restrictive sense.

Claims

1. A system comprising: Memory components; and A processing device operatively coupled to the memory component to perform the following operations: providing an execute grant to a first queue of a plurality of queues, the first queue storing a first plurality of memory commands to be executed on the memory component, the execute grant causing the first queue to become an active queue; determining whether a number of commands from the active queue that have been executed since the active queue received the execute grant meets an executed transaction threshold criterion; determining whether a number of pending commands in a non-active queue of the plurality of queues meets a first elevated threshold criterion regarding the number of pending commands in the non-active queue, the non-active queue storing a second plurality of memory commands to be executed on the memory component; determining whether the number of pending commands in the active queue meets a second elevated threshold criterion; and The execution grant is provided to the non-active queue in response to at least one of: (i) meeting the executed transaction threshold criteria, or (ii) not meeting the executed transaction threshold criteria, meeting the first elevated threshold criteria, and not meeting the second elevated threshold criteria.

2. The system of claim 1, wherein the memory component comprises a cross-point array of non-volatile memory cells.

3. The system according to claim 1, wherein the processing device further performs the following operations: executing one or more of the first plurality of memory commands; and A value of a counter associated with the active queue is incremented in response to executing each of the one or more of the first plurality of memory commands.

4. The system of claim 3 , wherein to determine whether the number of executed commands from the active queue meets the executed transaction threshold criterion, the processing device compares the value of the counter associated with the active queue with the executed transaction threshold criterion.

5. The system of claim 1, wherein the processing device further performs the following operations: Responsive to the number of pending commands in the active queue meeting the first elevated threshold criteria and the number of pending commands in the non-active queues of the plurality of queues meeting the second elevated threshold criteria, maintaining the execution grant to the active queue.

6. The system of claim 1, wherein the processing device further performs the following operations: executing one or more of the second plurality of memory commands; and A value of a counter associated with the non-active queue is incremented in response to executing each of the one or more of the second plurality of memory commands.

7. The system of claim 1, wherein the first plurality of memory commands comprises read commands, and wherein the second plurality of memory commands comprises write commands.

8. A method comprising: providing an execute grant to a first queue of a plurality of queues, the first queue storing a first plurality of memory commands to be executed on a memory component, the execute grant causing the first queue to become an active queue; determining whether a number of commands from the active queue that have been executed since the active queue received the execute grant meets an executed transaction threshold criterion; determining whether a number of pending commands in a non-active queue of the plurality of queues meets a first elevated threshold criterion regarding the number of pending commands in the non-active queue, the non-active queue storing a second plurality of memory commands to be executed on the memory component; determining whether the number of pending commands in the active queue meets a second elevated threshold criterion; and The execution grant is provided to the non-active queue in response to at least one of: (i) meeting the executed transaction threshold criteria, or (ii) not meeting the executed transaction threshold criteria, meeting the first elevated threshold criteria, and not meeting the second elevated threshold criteria.

9. The method of claim 8, wherein the memory component comprises a cross-point array of non-volatile memory cells.

10. The method according to claim 8, further comprising: executing one or more of the first plurality of memory commands; and A value of a counter associated with the active queue is incremented in response to executing each of the one or more of the first plurality of memory commands.

11. The method of claim 10, wherein determining whether the number of executed commands from the active queue meets the executed transaction threshold criteria comprises comparing the value of the counter associated with the active queue to the executed transaction threshold criteria.

12. The method according to claim 8, further comprising: Responsive to the number of pending commands in the active queue meeting the first elevated threshold criteria and the number of pending commands in the non-active queues of the plurality of queues meeting the second elevated threshold criteria, maintaining the execution grant to the active queue.

13. The method according to claim 8, further comprising: executing one or more of the second plurality of memory commands; and A value of a counter associated with the non-active queue is incremented in response to executing each of the one or more of the second plurality of memory commands.

14. The method of claim 8, wherein the first plurality of memory commands comprises read commands, and wherein the second plurality of memory commands comprises write commands.

15. A non-transitory computer-readable storage medium comprising instructions that, when executed by a processing device, cause the processing device to: receiving a plurality of memory commands from a host system; storing a first subset of the plurality of memory commands in a first queue; storing a second subset of the plurality of memory commands in a second queue; and The first and second subsets of the plurality of memory commands are executed for a cross-point array of non-volatile memory cells according to a dual threshold controlled scheduling scheme, wherein the dual threshold controlled scheduling scheme includes an executed transaction threshold criterion regarding the number of executed commands from one of the first queue or the second queue being an active queue and an elevated threshold criterion regarding the number of pending commands in the other of the first queue or the second queue being an inactive queue, and wherein the executed transaction threshold criterion and the elevated threshold criterion are used together to determine when to execute the first and second subsets of the plurality of memory commands.

16. The non-transitory computer-readable storage medium of claim 15, wherein the instructions further cause the processing device to: determining whether the number of executed commands from one of the first queue or the second queue as an active queue meets the executed transaction threshold criterion; determining whether the number of pending commands in the other of the first queue or the second queue that is a non-active queue meets an elevation threshold criterion; and In response to at least one of the executed transaction threshold criteria or the elevated threshold criteria being met, execution of commands is switched from the active queue to the inactive queue.

17. The non-transitory computer-readable storage medium of claim 16, wherein the processing device further performs the following operations: A value of a counter associated with the active queue is incremented in response to executing each of the memory commands from the active queue.

18. The non-transitory computer-readable storage medium of claim 17, wherein to determine whether the number of executed commands from the active queue meets the executed transaction threshold criterion, the instructions cause the processing device to compare the value of the counter associated with the active queue with the executed transaction threshold criterion.

19. The non-transitory computer-readable storage medium of claim 16, wherein the instructions further cause the processing device to: determining whether the number of pending commands in the active queue meets the escalation threshold criteria; and Responsive to the number of pending commands in the active queue and the number of pending commands in the inactive queue meeting the elevation threshold criteria, continuing execution of commands from the active queue.

20. The non-transitory computer-readable storage medium of claim 15, wherein the first subset of the plurality of memory commands comprises read commands, and wherein the second subset of the plurality of memory commands comprises write commands.