Memory system
The memory system improves efficiency by using a physical channel for in-order request storage and virtual channels for parallel processing, addressing the inefficiencies of out-of-order processing in memory systems with parallel requests.
Patent Information
- Application Number
- JP2023038661
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In memory systems with parallel processing of requests, out-of-order processing leads to increased latency and reduced efficiency due to the loss of the original request order, affecting resource utilization and overall performance.
A memory system with a physical channel for storing requests in their original order and multiple virtual channels for parallel processing, managed by a controller that selects the appropriate channel based on the degree of freedom in parallel process management to maintain or optimize order and efficiency.
This approach reduces latency and improves resource utilization by ensuring in-order processing when possible, while allowing parallel processing when constraints allow, thereby enhancing the overall operating performance of the memory system.
Smart Images

Figure 2024129443000001
Abstract
Description
[Technical field]
[0001] SUMMARY OF THE DISCLOSURE The present invention relates to a technique for controlling a memory system. [Background technology]
[0002] In recent years, memory systems equipped with storage devices such as non-volatile memories have become widespread. As one of such memory systems, for example, a solid-state drive (SSD) equipped with a NAND flash memory is known. SSDs are used as main storage for various computing devices.
[0003] A memory system performs processes such as writing data to and reading data from a storage device in response to requests (also called commands) issued by a host. In the memory system, in order to maintain data coherency, the order of multiple requests issued by the host is maintained by, for example, a memory with a first-in first-out (FIFO) structure (FIFO memory).
[0004] In addition, a memory system may include a plurality of memory chips that can operate in parallel as storage devices. For example, in data centers and enterprise products, the parallelism of memory chip operations is on the rise.
[0005] In such a memory system, when there is no need to guarantee that requests from the host are processed in the original order (in-order processing) and the performance of the memory system can be improved by simultaneously executing requests that are independent of each other, multiple FIFO memories may be provided, each associated with a number of processes that can be executed in parallel. Requests from the host are stored in one of the multiple FIFO memories that is associated with a corresponding process. This reconstructs the order of requests in each of the multiple processes. Then, processing according to the requests stored in each FIFO memory can be executed in parallel, so there is no need to follow a strict order and the performance of the memory system can be improved. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] US Patent Application Publication No. 2022 / 0253248 [Patent Document 2] U.S. Patent No. 7,506,114 [Patent Document 3] U.S. Patent No. 6,581,111 Summary of the Invention [Problem to be solved by the invention]
[0007] When the order of requests is reconstructed in each of the multiple processes, information about the original order of requests by the host is lost, which means that requests change from being processed in order to being processed out of order when requests are stored in multiple FIFO memories associated with multiple processes that can be executed in parallel.
[0008] Out-of-order processing can actually reduce the efficiency of processing in a memory system by increasing the latency of responses to requests (due to the processing of preceding requests being unduly delayed) and by reducing the efficiency of utilization of resources in a memory system that is premised on in-order processing. Therefore, the efficiency of out-of-order processing depends on the algorithm.
[0009] An object of one embodiment of the present invention is to provide a memory system capable of improving processing efficiency. [Means for solving the problem]
[0010] According to an embodiment, a memory system includes a plurality of memory chips, a random access memory, and a controller. The plurality of memory chips are operable in parallel. The random access memory includes a physical channel area capable of storing requests issued from a host in a storage order, and a plurality of virtual channel areas capable of storing requests issued from the host in a storage order, respectively. The controller stores one or more requests issued from the host in the physical channel area in the order of acquisition from the host. The controller stores each of the one or more requests in any one of the plurality of virtual channel areas. Each of the plurality of virtual channel areas corresponds to one of a plurality of processes respectively executed on the plurality of memory chips according to the one or more requests. The controller executes the process using the physical channel area when the degree of freedom of parallelization of the plurality of processes is equal to or greater than a predetermined threshold. The controller executes the process using the plurality of virtual channel areas when the degree of freedom is less than a predetermined threshold. [Brief description of the drawings]
[0011] [Figure 1] 1 is a block diagram showing an example of the overall configuration of an information processing system in which a memory system and a host according to an embodiment are connected. [Diagram 2] 1A and 1B are diagrams for explaining an example in which a deterioration in latency and a decrease in resource utilization efficiency occur in a memory system according to a comparative example. [Diagram 3] 1 is a diagram for explaining an example of execution of a request from a host in a memory system according to an embodiment. [Figure 4] 11A and 11B are diagrams for explaining an example of arbitration operation when the degree of freedom of parallel process management is equal to or greater than a threshold in the memory system according to the embodiment. [Diagram 5] 11A and 11B are diagrams for explaining an example of arbitration operation when the degree of freedom of parallel process management is less than a threshold in the memory system according to the embodiment. [Figure 6] 1A and 1B are diagrams for explaining an example in which three requests are stored in the physical channel and the virtual channel of the memory system according to the embodiment. [Figure 7] FIG. 7 is a diagram showing an example of a linked list that implements the physical and virtual channels of FIG. 6. [Figure 8] 1 is a diagram for explaining an example of an enqueue operation in a memory system according to an embodiment. [Figure 9] FIG. 9 is a diagram showing an example of a linked list updated in the enqueue operation of FIG. 8. [Figure 10] 1A and 1B are diagrams for explaining a first example of a dequeue operation in the memory system according to the embodiment. [Figure 11] FIG. 11 shows an example of a linked list updated in the dequeue operation of FIG. 10. [Figure 12] 11 is a diagram for explaining a second example of a dequeue operation in the memory system according to the embodiment. [Figure 13] FIG. 13 is a diagram showing an example of a linked list updated in the dequeue operation of FIG. 12. [Figure 14] 11 is a diagram for explaining an example of operations from arbitration to dequeue in a memory system according to an embodiment when the degree of freedom of parallel process management is less than a threshold and there are multiple executable processes. FIG. [Figure 15] FIG. 15 is a diagram showing an example of a linked list in the arbitration operation of FIG. 14. [Figure 16] FIG. 15 is a diagram showing an example of a linked list in the dequeue operation of FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, an embodiment will be described with reference to the drawings.
[0013] 1 is a block diagram showing an example of the overall configuration of an information processing system in which a memory system and a host device according to an embodiment are connected. The information processing system 1 includes, for example, a host device 2 and a memory system 3. Hereinafter, the host device 2 will also be referred to as a host 2.
[0014] The host device 2 may be a storage server that stores a large amount of diverse data in the memory system 3, or may be a personal computer.
[0015] The memory system 3 is, for example, a semiconductor storage device configured to write data to a nonvolatile memory and read data from the nonvolatile memory. The nonvolatile memory is, for example, a NAND flash memory. The memory system 3 is also called a storage device. The memory system 3 is, for example, realized as a solid state drive (SSD) including a NAND flash memory.
[0016] The memory system 3 can be used as storage for the host 2. The memory system 3 may be built into the host 2, or may be connected to the host 2 via a cable or a network.
[0017] The interface for connecting the host 2 and the memory system 3 is SCSI, Serial Attached SCSI (SAS), ATA, Serial ATA (SATA), PCI Express. TM (PCIe TM ), Ethernet TM , Fiber channel, NVM Express TM (NVMe TM ) and other standards.
[0018] Configuration examples of the host 2 and the memory system 3 will be described below.
[0019] (Example of host 2 configuration) The host 2 includes, for example, a central processing unit (CPU) 21 and a random access memory (RAM) 22. The CPU 21 and the RAM 22 are connected, for example, via a bus 20. This bus 20 is connected to an interface (not shown) provided in the host 2. This interface is connected to a host interface 11 in a controller of the memory system 3 (described later), enabling transmission and reception of information between the host 2 and the memory system 3.
[0020] The CPU 21 is, for example, at least one processor. The CPU 21 controls the operation of various components within the host 2.
[0021] The RAM 22 is a volatile memory and may be implemented, for example, as a dynamic random access memory (DRAM) or a static random access memory (SRAM).
[0022] The host 2 may include a plurality of submission queues 221. For example, a storage area of the RAM 22 is allocated to each of the plurality of submission queues 221. The submission queue 221 is a queue for storing requests issued by the host 2 (more specifically, the CPU 21) to the memory system 3. That is, the host 2 transmits requests to the memory system 3 via the submission queue 221. The requests are, for example, commands.
[0023] (Example of memory system 3 configuration) The memory system 3 includes, for example, a non-volatile memory 4 and a controller 5. The memory system 3 may include a dynamic random access memory (DRAM).
[0024] The non-volatile memory 4 includes a plurality of memory chips 41. Each of the plurality of memory chips 41 includes a plurality of blocks each including a plurality of memory cells arranged in a matrix. One block functions as the smallest unit of a data erase operation. A block may also be referred to as an "erase block" or a "physical block." Each of the plurality of blocks includes a plurality of pages. Each of the plurality of pages includes a plurality of memory cells connected to a single word line. One page functions as a unit of a data write operation and a data read operation. Note that a word line may function as a unit of a data write operation and a data read operation.
[0025] There is an upper limit to the number of program / erase cycles (P / E cycles) for each block, called the maximum number of P / E cycles. One P / E cycle for a block includes an erase operation to put all memory cells in the block into the erased state, and a write operation to write data to each page of the block.
[0026] The controller 5 may be realized by a circuit such as a System-on-a-chip (SoC). The controller 5 is configured to control the non-volatile memory 4.
[0027] The controller 5 may function as a flash translation layer (FTL) configured to perform data management and block management of the non-volatile memory 4. The data management performed by the FTL includes (1) management of mapping information indicating the correspondence between each logical address and each physical address of the non-volatile memory 4, and (2) processing for concealing the difference between page-based read / write operations and block-based erase operations. The block management includes bad block management, wear leveling, and garbage collection.
[0028] The logical address is used by the host 2 to address a storage area of the memory system 3. The logical address is, for example, a logical block address (LBA).
[0029] The management of the mapping between each logical address and each physical address is performed, for example, by using a logical-physical address conversion table. The controller 5 uses the logical-physical address conversion table to manage the mapping between each logical address and each physical address in a specific management size unit. A physical address corresponding to a certain logical address indicates a physical storage location in the non-volatile memory 4 to which data of this logical address is written. The controller 5 uses the logical-physical address conversion table to manage a plurality of storage areas obtained by logically dividing the storage area of the non-volatile memory 4. These multiple storage areas correspond to a plurality of logical addresses, respectively. That is, each of these multiple storage areas is specified by one logical address. The logical-physical address conversion table may be loaded from the non-volatile memory 4 to the DRAM when the memory system 3 is started up.
[0030] Data can be written to one page only once per P / E cycle. Therefore, the controller 5 writes updated data corresponding to a certain logical address to a different physical storage location, not to the physical storage location where the previous data corresponding to this logical address is stored. The controller 5 then invalidates the previous data by updating the logical-physical address conversion table so as to associate this logical address with this different physical storage location. Data referenced by the logical-physical address conversion table (i.e., data associated with a logical address) is called valid data. Data not associated with any logical address is called invalid data. Valid data is data that may be read by the host 2 later. Invalid data is data that may no longer be read by the host 2.
[0031] The controller 5 includes, for example, a host interface (host I / F) 11, an SRAM 12, a memory controller 13, and a CPU 14. The host I / F 11, the SRAM 12, the memory controller 13, and the CPU 14 are connected via, for example, a bus 10.
[0032] The host I / F 11 functions as a control circuit that controls communication between the host 2 and the memory system 3. The host I / F 11 receives various processing requests (commands) from the host 2 (more specifically, the submission queue 221). The processing requests received from the host 2 are, for example, input / output (I / O) requests and various control requests. The I / O requests include, for example, write requests and read requests. The control requests include, for example, trim requests (unmap requests), abort requests, and flush requests. The host I / F 11 also receives data from the host 2. The data received from the host 2 is, for example, user data to be written to the non-volatile memory 4 in response to a write request.
[0033] The SRAM 12 is a volatile memory. The storage areas of the SRAM 12 are allocated as, for example, a ring buffer 31, a physical channel 32, and a plurality of virtual channels 33.
[0034] The ring buffer 31 is, for example, a read buffer and / or a write buffer. The read buffer is a storage area in which user data read from the nonvolatile memory 4 in response to a read request from the host 2 is temporarily stored. The write buffer is a storage area in which user data to be written to the nonvolatile memory 4 in response to a write request from the host 2 is temporarily stored.
[0035] The physical channel 32 is, for example, a storage area capable of storing one or more requests in the order in which they are stored. More specifically, the physical channel is capable of storing, for example, one or more requests and the order of the one or more requests. The physical channel 32 has a data structure realized, for example, by a linked list. All requests obtained from the submission queue 221 of the host 2 are physically stored in the physical channel 32 according to the order in which they are obtained from the submission queue 221. Physically storing a request in a channel means storing the request itself (i.e., the entity of the request) in the channel.
[0036] Each of the multiple virtual channels 33 is a storage area capable of storing one or more requests in the order of storage. More specifically, each of the multiple virtual channels 33 can store, for example, one or more requests and the order of the one or more requests. Alternatively, each of the multiple virtual channels 33 may be capable of storing a reference to one or more requests and the order of the one or more requests. The number of virtual channels 33 provided in the memory system 3 corresponds to, for example, the number of processes that can be executed in parallel on the non-volatile memory 4. In each virtual channel 33, for example, one or more requests are managed in a FIFO manner. Each virtual channel 33 has a data structure realized by, for example, a linked list. A request obtained from the submission queue 221 of the host 2 is physically or virtually stored (distributed) in one of the multiple virtual channels 33. Storing a request virtually in a channel means, for example, storing information for referencing the request in the channel. The information for referencing the request is, for example, information indicating a storage location in the physical channel 32 where the entity of the request is stored.
[0037] One request is stored in the physical channel 32 and also in one of the multiple virtual channels 33. The physical channel 32 and the virtual channel 33 have data structures that enable the one request stored in both to be associated from the virtual channel to the physical channel. More specifically, one request is, for example, physically stored in the physical channel 32 and virtually stored in one of the multiple virtual channels 33. The physical channel 32 and the virtual channel 33 have data structures that enable the physically stored request and the virtually stored request to be associated with each other.
[0038] In the following, a case will be mainly illustrated where a request is physically stored in the physical channel 32 and virtually stored in the virtual channel 33. Note that a request may be physically stored in both the physical channel 32 and the virtual channel 33. Specific examples of the structures of the physical channel 32 and the virtual channel 33 will be described later with reference to Figs. 3 to 16.
[0039] The memory controller 13 electrically connects the controller 5 and the nonvolatile memory 4. The memory controller 13 supports interface standards such as Toggle DDR and Open NAND Flash Interface (ONFI).
[0040] The memory controller 13 functions as a control circuit configured to control the nonvolatile memory 4. The memory controller 13 may be connected to each of the multiple memory chips 41 in the nonvolatile memory 4 via multiple channels. By driving the multiple memory chips 41 in parallel, the access bandwidth between the controller 5 and the nonvolatile memory 4 can be increased.
[0041] The memory controller 13 includes an arbiter 131 and a request execution unit 132 .
[0042] The arbiter 131 selects one channel from the physical channel 32 and the multiple virtual channels 33 by arbitration, and acquires a request from the head of the selected channel. Hereinafter, this operation is also referred to as an arbitration operation.
[0043] Specifically, for example, when the degree of freedom of parallel process management is equal to or greater than a threshold, the arbiter 131 selects a physical channel 32. On the other hand, when the degree of freedom of parallel process management is less than the threshold, the arbiter 131 selects one virtual channel 33 corresponding to an executable process from among the multiple virtual channels 33.
[0044] Here, parallel process management refers to management of multiple processes that can be executed in parallel in the memory system 3. The constraints on parallel process management are control constraints imposed on an arbiter (described later) to satisfy the required specifications. The constraints on parallel process management are expressed, for example, by an index indicating the constraints on parallelization to be realized. The index indicating the parallelization to be realized is also called the degree of freedom of parallel process management. Specifically, the degree of freedom of parallel process management is based on, for example, the number or ratio of processes that should actually be executed in parallel among multiple processes. For example, in a case where 16 processes can be executed in parallel in the memory system 3, if the degree of freedom of parallel process management indicates a constraint to parallelize two processes, the degree of freedom of parallel process management can be said to be high. Also, for example, in a case where four processes can be executed in parallel in the memory system 3, if the degree of freedom of parallel process management indicates a constraint to parallelize four processes, the degree of freedom of parallel process management can be said to be low. The degree of freedom of parallel process management is determined by the specifications required for the memory system 3 (for example, the configuration of the memory system 3, the performance required for the memory system 3, etc.). Note that instead of the degree of freedom of parallel process management, a degree of constraint of parallel process management indicating the strictness of constraints on parallel process management may be used. A high degree of freedom of parallel process management corresponds to a low degree of constraint of parallel process management. A low degree of freedom of parallel process management corresponds to a high degree of constraint of parallel process management.
[0045] When the physical channel 32 is selected by arbitration, the arbiter 131 physically acquires the request from the head of the physical channel 32. Physically acquiring a request from the physical channel 32 means acquiring the request itself from the physical channel 32. When one virtual channel 33 is selected by arbitration, the arbiter 131 virtually acquires a request from the head of the virtual channel 33. Virtually acquiring a request from the virtual channel 33 means acquiring information indicating the memory location in the physical channel 32 where the request is stored from the virtual channel 33, and acquiring the request from the physical channel 32 based on the acquired information. Note that in the case where the request is also physically stored in the virtual channel 33, the arbiter 131 physically acquires the request from the head of the virtual channel 33. The arbiter 131 sends the acquired request to the request execution unit 132.
[0046] The request execution unit 132 executes processing according to a request received from the arbiter 131. For example, if the received request is a write request, the request execution unit 132 performs a data write operation to write user data to the memory chip 41. For example, if the received request is a read request, the request execution unit 132 performs a data read operation to read user data from the memory chip 41.
[0047] Specific examples of the operations of the arbiter 131 and the request execution unit 132 will be described later with reference to FIGS.
[0048] The CPU 14 is a processor configured to control the host I / F 11, the SRAM 12, and the memory controller 13. The CPU 14 performs various processes by executing firmware (FW). The FW is a control program including a group of instructions for causing the CPU 14 to execute various processes. The CPU 14 can execute request processes for processing various requests from the host 2, etc. The operation of the CPU 14 is controlled by the FW executed by the CPU 14.
[0049] The functions of each unit in the controller 5 may be realized by dedicated hardware in the controller 5, or may be realized by the CPU 14 executing the FW.
[0050] The CPU 14 functions as, for example, a request management unit 141. The CPU 14 functions as the request management unit 141 by, for example, executing the FW.
[0051] The request management unit 141 performs an operation for storing a request acquired (more specifically, fetched) from the submission queue 221 of the host 2 via the host I / F 11 in the physical channel 32 and any one of the multiple virtual channels 33. An operation for newly storing a request acquired from the submission queue 221 in the physical channel 32 and any one of the multiple virtual channels 33 is also referred to as an enqueue operation. In the enqueue operation, the request acquired from the submission queue 221 is, for example, physically stored in the physical channel 32 and virtually stored in one virtual channel 33 selected from the multiple virtual channels 33. Note that the request may be physically stored in the selected one virtual channel 33.
[0052] Furthermore, when a request is acquired from one of the physical channel 32 and the virtual channel 33 and a process corresponding to the acquired request is executed, the request management unit 141 performs an operation to delete the request from the physical channel 32 and the virtual channel 33. The operation to delete a request from the physical channel 32 and the virtual channel 33 is also called a dequeue operation. In the dequeue operation, the request for which the corresponding process has been executed is deleted, for example, from both the physical channel 32 that physically stores the request and the virtual channel 33 that virtually stores the request. Note that in a case where the request is also physically stored in the virtual channel 33, the request for which the corresponding process has been executed is deleted from the virtual channel 33 that physically stores the request.
[0053] A specific example of the operation of the request management unit 141 will be described later with reference to FIGS.
[0054] The request management unit 141 may be provided in the memory controller 13. The request execution unit 132 may be provided in the CPU 14. Alternatively, the operation of at least one of the request management unit 141 and the request execution unit 132 may be realized as a cooperative operation between the CPU 14 and the memory controller 13.
[0055] Here, the in-order processing and out-of-order processing in the memory system 3 will be described.
[0056] In-order processing is processing that follows the order of requests obtained from the submission queue 221 of the host 2. In-order processing can maintain data coherency between the host 2 and the memory system 3. The order of requests obtained from the submission queue 221 of the host 2 is also referred to as the original request order. In-order processing, for example, when a large number of requests to a single memory chip 41 are continuously obtained from the submission queue 221, the operating performance of the multiple memory chips 41 as a whole may be degraded. This is because processing in response to a request to another memory chip 41 cannot be executed until processing in response to the large number of requests to the single memory chip 41 is completed in the original request order. In-order processing requires waiting for the completion of processing in response to the previous request, even if processing in response to a request to another memory chip 41 can be executed immediately.
[0057] Out-of-order processing is processing that does not follow the original request order. In out-of-order processing, parallel process management is performed. Specifically, in out-of-order processing, processing according to each request obtained from the submission queue 221 is incorporated into one of multiple processes that can be executed in parallel. Since processing according to each request is executed in parallel with other processes as part of the corresponding process, it becomes out-of-order processing that does not follow the original request order. In out-of-order processing, for example, multiple processes are managed so that when an operation for a certain memory chip 41 is not being performed, the process corresponding to that memory chip 41 is executed. As a result, multiple processes are executed efficiently, and the operating performance of the entire multiple memory chips 41 can be improved.
[0058] Parallel process management is performed, for example, by a single thread. Therefore, the overhead for arbitration between multiple processes is counted as the latency of a response to a request from the host 2. This arbitration is performed without considering the original request order, which may adversely affect the Quality of Service (QoS) of the memory system 3. Specifically, this arbitration may worsen, for example, the latency of a response to a request from the host 2.
[0059] Furthermore, when management of resources used in processing in response to requests is premised on in-order processing, resources used in processing in response to a certain request cannot be used even if that processing is completed and released, unless processing in response to a preceding request is completed. An example of a resource used in processing in response to requests and premised on in-order processing is the ring buffer 31. If the released resources are not available, it may be impossible to obtain a sufficient number of in-flight requests necessary to bring out the potential performance of the controller 5, and the efficiency of processing in the memory system 3 may decrease.
[0060] 2 is a diagram for explaining an example in which latency is increased and resource utilization efficiency is reduced in a memory system according to a comparative example, which includes a ring buffer 31C, a plurality of FIFO memories 33C, an arbiter 131C, and a multiplexer 121C.
[0061] Each of the multiple FIFO memories 33C is a memory capable of storing requests acquired from the host in a FIFO manner. The multiple FIFO memories 33C correspond to multiple processes in parallel process management, respectively. One request acquired from the host is stored in one of the multiple FIFO memories 33C based on the corresponding process. When a request is stored in one of the multiple FIFO memories 33C, information regarding the original request order is lost.
[0062] The ring buffer 31C is a resource that assumes in-order processing. In the ring buffer 31C, a plurality of storage areas C1, C2, C3, C4, ..., Cx are allocated in order in response to a plurality of requests from the host.
[0063] The arbiter 131C arbitrates between multiple FIFO memories 33C, and selects one of the FIFO memories 33C when executing a process. The arbiter 131C acquires the top request of the selected FIFO memory 33C via the multiplexer 121C. This causes the process corresponding to the acquired request to be executed.
[0064] The arbitration by the arbiter 131C does not take into account the original order of requests, so requests are processed out of order, which can unduly increase the latency of responses to requests.
[0065] In out-of-order processing, the release of the corresponding storage area in the ring buffer 31C in response to the completion of the processing of the request is also out-of-order. In the ring buffer 31C, all the allocated storage areas from the top storage area C1 to the bottom storage area Cx are considered to be in use. For example, even if the storage area C4 between the top and bottom is released in response to the completion of the processing of the corresponding request, it is considered to be in use. In this way, in the ring buffer 31C, there may be cases where a storage area is intermittently considered to be in use even though it is not actually in use. This is a factor that causes a decrease in the utilization efficiency of the ring buffer 31C. Therefore, in the memory system of the comparative example, the efficiency of processing in response to a request from the host may decrease due to the decrease in the utilization efficiency of the ring buffer 31C.
[0066] In order to suppress the above-mentioned decrease in processing efficiency, the memory system 3 of this embodiment is provided with a physical channel 32 that stores requests in the original request order, and multiple virtual channels 33 that store requests for parallel process management.
[0067] The controller 5 is configured to obtain a request from the physical channel 32 when the degree of freedom of parallel process management is equal to or greater than a predetermined threshold, and to obtain a request from one of the multiple virtual channels 33 when the degree of freedom of parallel process management is less than the predetermined threshold. As a result, when the degree of freedom of parallel process management is equal to or greater than the threshold, the latency of a response to a request can be shortened and resource utilization efficiency can be improved by in-order processing of the requests according to the original request order. Note that "when the degree of freedom of parallel process management is equal to or greater than a threshold" may be replaced with a case where there is no constraint on parallel process management, or a case where the degree of constraint on parallel process management is less than a threshold.
[0068] Furthermore, when the degree of freedom in parallel process management is less than a threshold, out-of-order processing that executes processes in parallel according to requests can improve the overall operating performance of the multiple memory chips 41. Note that "when the degree of freedom in parallel process management is less than a threshold" may be replaced with "when there are constraints on parallel process management" or "when the degree of constraints on parallel process management is equal to or greater than a threshold."
[0069] There is a trade-off between in-order processing and out-of-order processing in terms of latency, resource utilization efficiency, and overall operating performance of the multiple memory chips 41. In the memory system 3, the efficiency of processing in the memory system 3 can be improved by properly using the physical channel 32 and the virtual channel 33 according to the degree of freedom in parallel process management.
[0070] 3 is a diagram for explaining an example of the execution of a request from the host 2 in the memory system 3. The configuration related to the execution of a request from the host 2 includes, for example, a request management unit 141, a physical channel 32, a plurality of virtual channels 33, a ring buffer 31, an arbiter 131, a request execution unit 132, and a multiplexer 121. This configuration is realized, for example, as a hardware accelerator.
[0071] The request management unit 141 physically stores requests acquired from the submission queue 221 of the host 2 via the host I / F 11 in the physical channel 32 in the original request order.
[0072] The request management unit 141 further virtually stores the request in one of a plurality of virtual channels 33. Specifically, the plurality of virtual channels 33 respectively correspond to a plurality of processes in parallel process management. The request management unit 141 identifies one virtual channel 33 to which the request is to be allocated, based on the process corresponding to the request. The request management unit 141 virtually stores the request in the identified virtual channel 33. In the virtual channel 33, the order of the requests is managed for each corresponding process. The virtual channel 33 does not hold information regarding the original order of requests.
[0073] The ring buffer 31 is a resource that assumes in-order processing. In the ring buffer 31, one or more storage areas corresponding to one or more requests acquired from the submission queue 221 are sequentially allocated. The allocation of the storage areas in the ring buffer 31 is performed by, for example, the request management unit 141.
[0074] The arbiter 131 performs arbitration for the physical channel 32 and the multiple virtual channels 33. Specifically, the arbiter 131 selects one channel from which to acquire a request from the physical channel 32 and the multiple virtual channels 33 through arbitration. The arbiter 131 acquires the head request of the selected channel via the multiplexer 121. The arbiter 131 sends the acquired request to the request execution unit 132.
[0075] More specifically, the arbiter 131 sends information identifying the selected channel (hereinafter referred to as selected channel information) to the multiplexer 121. The selected channel information is, for example, a number assigned to a channel. The multiplexer 121 identifies one corresponding channel based on the received selected channel information. The multiplexer 121 reads out the request stored at the beginning of the identified channel. If the identified channel is a physical channel 32, the request to be read out is the request physically stored at the beginning of the physical channel 32. If the identified channel is a virtual channel 33, the request to be read out is the request virtually stored at the beginning of the virtual channel 33. The multiplexer 121 sends out the read out request to the arbiter 131.
[0076] The request execution unit 132 executes processing in response to a request received from the arbiter 131. The request execution unit 132 notifies the request management unit 141, for example, of the completion of the processing in response to the request.
[0077] In response to the notification from the request execution unit 132, the request management unit 141 deletes the corresponding request from both the physical channel 32 and the virtual channel 33. More specifically, the request management unit 141 deletes the request that is physically stored in the physical channel 32, and deletes the request that is virtually stored in the virtual channel 33. The request management unit 141 also releases the storage area in the ring buffer 31 that is allocated to the request.
[0078] In the following, the request management unit 141 physically storing a request in the physical channel 32 is also simply referred to as storing a request in the physical channel 32. The request management unit 141 deleting a request physically stored in the physical channel 32 is also simply referred to as deleting a request from the physical channel 32. The request management unit 141 virtually storing a request in the virtual channel 33 is also simply referred to as storing a request in the virtual channel 33. The request management unit 141 deleting a request virtually stored in the virtual channel 33 is also simply referred to as deleting a request from the virtual channel 33.
[0079] 3, requests a, b, c, d, e, f, ... obtained from the submission queue 221 of the host 2 are stored in the physical channel 32 in the order in which they were obtained. Requests a, b, c, d, e, f, ... are also stored in the 0th virtual channel 33-0, the first virtual channel 33-1, the second virtual channel 33-2, the third virtual channel 33-3, the fourth virtual channel 33-4, the fifth virtual channel 33-5, ..., respectively.
[0080] In the ring buffer 31, the memory areas A1, A2, A3, A4, A5, A6, etc. are allocated to the requests a, b, c, d, e, f, etc., in order. In the ring buffer 31, the memory areas illustrated with hatching represent allocated memory areas, and the memory areas illustrated with blank spaces represent memory areas that have been released in response to the completion of the processing of the corresponding requests. Since the ring buffer 31 is a resource that assumes in-order processing, the entire memory area from the top 31H (here, memory area A1) to the bottom 31T of the allocated memory area is considered to be in use. Some of the memory areas illustrated with blank spaces are memory areas between the top 31H and the bottom 31T, and therefore are considered to be in use even though they have been released.
[0081] The arbitration operation will be described with reference to FIGS.
[0082] 4 is a diagram for explaining an example of arbitration operation when the degree of freedom of parallel process management is equal to or greater than a threshold value. The requests stored in the physical channel 32 and the virtual channel 33, and the storage areas allocated in the ring buffer 31 are as described above with reference to FIG.
[0083] When the degree of freedom of parallel process management is equal to or greater than the threshold, the arbiter 131 acquires request a from the head of the physical channel 32. Specifically, the arbiter 131 sends information indicating the physical channel 32 to the multiplexer 121 based on the fact that the degree of freedom of parallel process management is equal to or greater than the threshold. The multiplexer 121 reads request a from the head of the physical channel 32 based on the information indicating the physical channel 32. Then, the multiplexer 121 sends the read request a to the arbiter 131. The arbiter 131 sends the request a acquired via the multiplexer 121 to the request execution unit 132.
[0084] The request execution unit 132 executes processing in response to the request a received from the arbiter 131. In this manner, when the degree of freedom of parallel process management is equal to or greater than a threshold, the request execution unit 132 executes the process using the physical channel 32. The request execution unit 132 notifies the request management unit 141 of the completion of processing in response to the request a.
[0085] In response to the notification from the request execution unit 132, the request management unit 141 deletes the request a stored in the physical channel 32, and deletes the request a stored in the virtual channel 33. That is, the deletion of the request a stored in the physical channel 32 is also reflected in the request a stored in the virtual channel 33. In addition, the request management unit 141 releases the memory area A1 in the ring buffer 31 that is allocated to the request a.
[0086] In this way, when the degree of freedom of parallel process management is equal to or greater than the threshold, requests from the host 2 are processed in the original request order by using the physical channel 32. As a result, the first request a is processed in the original request order, and the latency of the response to request a can be reduced. Also, in the ring buffer 31, the size of the storage area considered to be in use (i.e., the storage area from the beginning 31H to the end 31T) is reduced by releasing the storage area A1 allocated to request a. This improves the utilization efficiency of the ring buffer 31.
[0087] 5 is a diagram for explaining an example of arbitration operation when the degree of freedom of parallel process management is less than a threshold value. The requests stored in the physical channel 32 and the virtual channel 33, and the storage areas allocated in the ring buffer 31 are as described above with reference to FIG.
[0088] When the degree of freedom of parallel process management is less than the threshold, the arbiter 131 selects one virtual channel 33 from the multiple virtual channels 33, and acquires a request from the head of the selected virtual channel 33. Here, it is assumed that the third virtual channel 33-3 is selected. The arbiter 131 acquires the request d from the head of the third virtual channel 33-3.
[0089] More specifically, the arbiter 131 selects a third virtual channel 33-3 corresponding to a currently executable process from among the multiple virtual channels 33, based on the degree of freedom of parallel process management being less than a threshold. The arbiter 131 sends information indicating the selected third virtual channel 33-3 to the multiplexer 121. The multiplexer 121 reads request d from the beginning of the third virtual channel 33-3, based on the information indicating the third virtual channel 33-3. Then, the multiplexer 121 sends the read request d to the arbiter 131.
[0090] In addition, when there are multiple processes that are currently executable, the arbiter 131 selects, for example, one virtual channel 33 that stores a request that is earlier in the original request order from among multiple virtual channels 33 corresponding to each of the multiple processes.
[0091] The arbiter 131 sends the request d acquired via the multiplexer 121 to the request execution unit 132 .
[0092] The request execution unit 132 executes processing according to the request d received from the arbiter 131. In this way, when the degree of freedom of parallel process management is less than the threshold, the request execution unit 132 executes the process using the virtual channel 33. The request execution unit 132 notifies the request management unit 141 of the completion of processing according to the request d.
[0093] In response to the notification from the request execution unit 132, the request management unit 141 deletes the request d stored in the third virtual channel 33-3, and deletes the request d stored in the physical channel 32. That is, the deletion of the request d stored in the third virtual channel 33-3 is also reflected in the request d stored in the physical channel 32. In addition, the request management unit 141 releases the memory area A4 in the ring buffer 31 that is allocated to the request d.
[0094] In this way, when the degree of freedom of parallel process management is less than the threshold, requests from the host 2 are processed in parallel according to the constraints of parallel process management by using the virtual channel 33. This makes it possible to improve the overall operating performance of the multiple memory chips 41 so as to satisfy the constraints of parallel process management.
[0095] The physical channel 32 and the virtual channel 33 are realized, for example, by using a linked list. An example in which the physical channel 32 and the virtual channel 33 are realized by using a linked list will be described with reference to Figs. 6 to 16. In the following, a case in which three requests a, b, and c are stored in the physical channel 32 and the virtual channel 33 will be illustrated. Also, the number of virtual channels 33 provided in the memory system 3 is assumed to be four. The four virtual channels 33 are a zeroth virtual channel 33-0, a first virtual channel 33-1, a second virtual channel 33-2, and a third virtual channel 33-3.
[0096] FIG. 6 is a diagram for explaining an example in which three requests a, b, and c are stored in the physical channel 32 and the virtual channel 33. In FIG.
[0097] The requests a, b, and c are stored in the original request order in the physical channel 32. In addition, the requests a, b, and c are stored in the 0th virtual channel 33-0, the first virtual channel 33-1, and the second virtual channel 33-2, respectively.
[0098] In the ring buffer 31, memory areas A1, A2, and A3 corresponding to requests a, b, and c, respectively, are allocated in order.
[0099] FIG. 7 shows an example of a linked list implementing the physical channel 32 and virtual channel 33 of FIG.
[0100] The linked list of physical channel 32 may include a head pointer 50 and one or more entries. Note that if physical channel 32 is empty, the number of entries in the linked list of physical channel 32 is zero. Here, the linked list of physical channel 32 includes entries 51, 52, and 53 corresponding to requests a, b, and c, respectively.
[0101] The head pointer 50 is information that indicates the entry corresponding to the first request stored in the physical channel 32 (here, the entry 51 corresponding to the request a).
[0102] An entry in the physical channel 32 includes a request field and a pointer field. In an entry in the physical channel 32 corresponding to a certain request, the request field can store the request itself. The pointer field can store a pointer to an entry corresponding to the next request after the request. The pointer to an entry is, for example, information indicating the location of a storage area in memory allocated as the entry (for example, a storage location in the SRAM 12).
[0103] Specifically, the entry 51 corresponding to the request a includes a request field 51R and a pointer field 51P. The request a is stored in the request field 51R. The pointer field 51P stores a pointer indicating the entry 52 corresponding to the next request b.
[0104] The entry 52 corresponding to the request b includes a request field 52R and a pointer field 52P. The request b is stored in the request field 52R. The pointer field 52P stores a pointer indicating the entry 53 corresponding to the next request c.
[0105] Entry 53 corresponding to request c includes a request field 53R and a pointer field 53P. Request c is stored in request field 53R. Pointer field 53P is, for example, null because the request next to request c is not stored in physical channel 32. The null pointer field 53P indicates that entry 53 is the end entry of physical channel 32. In the figure, null is represented as "Φ".
[0106] The linked list of the 0th virtual channel 33-0 may include a head pointer 600 and one or more entries. Note that if the 0th virtual channel 33-0 is empty, the number of entries in the linked list of the 0th virtual channel 33-0 will be 0. Here, the linked list of the 0th virtual channel 33-0 includes an entry 601 corresponding to request a.
[0107] The head pointer 600 points to the entry corresponding to the top request stored in the 0th virtual channel 33-0 (here, entry 601 corresponding to request a).
[0108] An entry in the virtual channel 33 includes a request field and a pointer field. In an entry in the virtual channel 33 corresponding to a certain request, the request field can store a pointer indicating an entry in the physical channel 32 in which the request itself is stored. That is, the request itself is obtained by referring to the entry in the physical channel 32 based on the pointer stored in this request field. The pointer field can store a pointer indicating an entry corresponding to the next request after the request.
[0109] Specifically, the entry 601 corresponding to the request a includes a request field 601R and a pointer field 601P. The request field 601R stores a pointer indicating the entry 51 in the physical channel 32 in which the request a itself is stored. That is, the request a itself is acquired by referring to the entry 51 in the physical channel 32 based on the pointer stored in the request field 601R. The pointer field 601P is null, for example, because the request next to the request a is not stored in the 0th virtual channel 33-0. The pointer field 601P being null indicates that the entry 601 is the end entry of the 0th virtual channel 33-0.
[0110] The linked list of the first virtual channel 33-1 may include a head pointer 610 and one or more entries. Note that if the first virtual channel 33-1 is empty, the number of entries in the linked list of the first virtual channel 33-1 will be 0. Here, the linked list of the first virtual channel 33-1 includes an entry 611 corresponding to request b.
[0111] The head pointer 610 points to the entry corresponding to the top request stored in the first virtual channel 33-1 (here, the entry 611 corresponding to the request b).
[0112] The entry 611 corresponding to request b includes a request field 611R and a pointer field 611P. The request field 611R stores a pointer to the entry 52 in the physical channel 32 in which the request b itself is stored. The pointer field 611P is, for example, null, since the request following request b is not stored in the first virtual channel 33-1.
[0113] The linked list of the second virtual channel 33-2 may include a head pointer 620 and one or more entries. Note that if the second virtual channel 33-2 is empty, the number of entries in the linked list of the second virtual channel 33-2 will be 0. Here, the linked list of the second virtual channel 33-2 includes an entry 621 that corresponds to request c.
[0114] The head pointer 620 points to the entry corresponding to the top request stored in the second virtual channel 33-2 (here, the entry 621 corresponding to the request c).
[0115] The entry 621 corresponding to the request c includes a request field 621R and a pointer field 621P. The request field 621R stores a pointer to the entry 53 in the physical channel 32 in which the request c itself is stored. The pointer field 621P is, for example, null, since the request following the request c is not stored in the second virtual channel 33-2.
[0116] The linked list of the third virtual channel 33-3 may include a head pointer 630 and one or more entries. Note that if the third virtual channel 33-3 is empty, the number of entries in the linked list of the third virtual channel 33-3 is 0. In this case, the linked list of the third virtual channel 33-3 does not include any entries.
[0117] The head pointer 630 does not point to any entry because there is no request stored in the third virtual channel 33-3. The head pointer 630 is set to, for example, null.
[0118] Such a linked list can realize (1) a physical channel 32 in which requests a, b, and c are stored in the original request order, and (2) a 0th virtual channel 33-0, a first virtual channel 33-1, and a second virtual channel 33-2 in which requests a, b, and c are stored, respectively. When the physical channel 32 and the virtual channel 33 are realized by the linked list, the requests themselves are arranged freely on a memory (for example, SRAM 12). Therefore, even when a request in the middle of the original request order is acquired and an entry corresponding to the request is deleted from the linked list, it is only necessary to modify the pointer in the linked list, and the memory utilization efficiency can be improved. Note that the linked list of each channel may include a tail pointer indicating the end of the linked list so that the end entry can be specified at a fixed time. In this case, for example, a pointer indicating the tail pointer is stored in the pointer field of the end entry. The linked list of the physical channel may be a bidirectional list. In this case, a pointer to the entry of the previous request is stored in the second pointer field.
[0119] An example of the operation of the arbiter 131 to obtain requests from the linked lists of physical channels 32 and virtual channels 33 will now be described.
[0120] For example, when arbiter 131 obtains a request from the head of physical channel 32, arbiter 131 identifies entry 51 of request a by using head pointer 50 of physical channel 32. Arbiter 131 obtains request a (i.e., the entity of request a) from request field 51R of identified entry 51.
[0121] In this way, the arbiter 131 can obtain the request a from the head entry 51 of the physical channel 32 in a one-stage associative manner based on the head pointer 50 of the physical channel 32 .
[0122] Furthermore, for example, when retrieving a request from the head of the 0th virtual channel 33-0, the arbiter 131 uses the head pointer 600 of the 0th virtual channel 33-0 to identify the entry 601 of request a. The arbiter 131 retrieves a pointer indicating the entry 51 in the physical channel 32 in which the request a is stored, from the request field 601R of the identified entry 601. The arbiter 131 uses the retrieved pointer to identify the entry 51 of request a. The arbiter 131 retrieves the request a from the request field 51R of the identified entry 51.
[0123] For example, when retrieving a request from the head of the first virtual channel 33-1, the arbiter 131 uses the head pointer 610 of the first virtual channel 33-1 to identify the entry 611 of request b. The arbiter 131 retrieves a pointer indicating the entry 52 in the physical channel 32 in which the request b is stored, from the request field 611R of the identified entry 611. The arbiter 131 uses the retrieved pointer to identify the entry 52 of request b. The arbiter 131 retrieves the request b from the request field 52R of the identified entry 52.
[0124] For example, when retrieving a request from the head of the second virtual channel 33-2, the arbiter 131 uses the head pointer 620 of the second virtual channel 33-2 to identify the entry 621 of the request c. The arbiter 131 retrieves a pointer indicating the entry 53 in the physical channel 32 in which the request c is stored, from the request field 621R of the identified entry 621. The arbiter 131 uses the retrieved pointer to identify the entry 53 of the request c. The arbiter 131 retrieves the request c from the request field 53R of the identified entry 53.
[0125] It should be noted that the arbiter 131 does not perform an operation to acquire a request from, for example, the third virtual channel 33-3, since the head pointer 630 of the third virtual channel 33-3 does not point to any entry.
[0126] In this way, the arbiter 131 can identify the top entry (i.e., the top entry of the virtual channel 33) based on the head pointer of the virtual channel 33, and obtain the substance of the request from the entry of the physical channel 32 pointed to by the pointer stored in the request field of the top entry. In other words, when attempting to obtain a request from the virtual channel 33, the request can be obtained from the top of the virtual channel 33 through a two-stage association between the head pointer of the virtual channel 33 and the pointer stored in the request field of the top entry of the virtual channel 33.
[0127] Next, an enqueue operation implemented using a linked list will be described with reference to FIGS.
[0128] Fig. 8 is a diagram for explaining an example of an enqueue operation. Here, an enqueue operation is illustrated in which a request d obtained from the submission queue 221 of the host 2 is added to the physical channel 32 and the virtual channel 33 shown in Fig. 6. Also, the memory chip 41 targeted by the request d corresponds to the process associated with the first virtual channel 33-1.
[0129] The enqueue operation for adding request d includes an operation for adding request d to the physical channel 32 and an operation for adding request d to the first virtual channel 33-1. Request d is added to the end of the requests stored in the physical channel 32 (here, after request c). Also, request d is added to the end of the requests stored in the first virtual channel 33-1 (here, after request b).
[0130] In the ring buffer 31, a storage area A4 corresponding to the request d is newly allocated.
[0131] FIG. 9 shows an example of a linked list implementing the physical channel 32 and virtual channel 33 of FIG.
[0132] In the enqueue operation, the request management unit 141 adds an entry 54 for request d to the end of the linked list for the physical channel 32 ((1) in Figure 9), and adds an entry 612 for request d to the end of the linked list for the first virtual channel 33-1 ((2) in Figure 9).
[0133] Specifically, the request management unit 141 allocates a storage area on the SRAM 12 as an entry 54 of the physical channel 32 corresponding to request d. The request management unit 141 stores request d in a request field 54R of the entry 54. Then, in order to change the end entry of the physical channel 32 from the entry 53 corresponding to the request c immediately before request d to the entry 54 of request d, the request management unit 141 stores a pointer indicating the entry 54 of request d in a pointer field 53P of the entry 53 of request c. Note that the pointer field 54P of the entry 54 of request d is null.
[0134] Next, the request management unit 141 specifies the first virtual channel 33-1 to which the request d is allocated. For example, the request management unit 141 specifies a process corresponding to the request d (more specifically, the memory chip 41 targeted by the request d) and determines the first virtual channel 33-1 corresponding to the specified process. The request management unit 141 allocates a storage area on the SRAM 12 as an entry 612 of the first virtual channel 33-1 corresponding to the request d. The request management unit 141 stores a pointer indicating the entry 54 of the physical channel 32 in which the request d itself is stored, in a request field 612R of the entry 612. Then, in order to change the end entry of the first virtual channel 33-1 from the entry 611 corresponding to the request b immediately before the request d to the entry 612 of the request d, the request management unit 141 stores a pointer indicating the entry 612 of the request d in a pointer field 611P of the entry 611 of the request b. Note that the pointer field 612P of the entry 612 of the request d is null.
[0135] In this way, the request management unit 141 can realize the enqueue operation of adding a request to each of the physical channel 32 and the virtual channel 33 by adding an entry to each of the linked list of the physical channel 32 and the linked list of the virtual channel 33.
[0136] Next, a dequeue operation implemented using a linked list will be described with reference to FIGS.
[0137] FIG. 10 is a diagram for explaining a first example of a dequeue operation. Here, a dequeue operation for deleting request b from the physical channel 32 and the virtual channel 33 after the enqueue operation shown in FIG. 8 is illustrated. This dequeue operation is performed, for example, when the degree of freedom of parallel process management is less than a threshold, after the arbiter 131 selects the first virtual channel 33-1, acquires request b from the head of the first virtual channel 33-1, and the request execution unit 132 executes processing according to request b. When the degree of freedom of parallel process management is less than a threshold, the operating performance of the entire plurality of memory chips 41 is optimized by out-of-order processing that executes processing according to the request in parallel.
[0138] The dequeue operation to remove request b includes an operation to remove request b from the first virtual channel 33-1 and an operation to remove request b from the physical channel 32. Request b is removed from the top of the first virtual channel 33-1. Request b is also removed from between requests a and c in the physical channel 32.
[0139] In the ring buffer 31, the storage area A2 corresponding to the request b is released.
[0140] FIG. 11 shows an example of a linked list implementing the physical channel 32 and virtual channel 33 of FIG.
[0141] In a first example of a dequeue operation, the request management unit 141 deletes the entry 611 for request b from the linked list of the first virtual channel 33-1 ((1) in FIG. 11), and deletes the entry 52 for request b from the linked list of the physical channel 32 ((2) in FIG. 11).
[0142] Specifically, the request management unit 141 changes the head pointer 610 of the first virtual channel 33-1, which has been pointing to the entry 611 of request b, so that it points to the entry 612 of request d, which is the next entry after the entry 611 of request b. As a result, the entry 611 of request b is deleted from the linked list of the first virtual channel 33-1.
[0143] Furthermore, the request management unit 141 uses the entry 611 of the request b in the first virtual channel 33-1 to identify the storage location of the entry 52 of the request b in the physical channel 32. As shown in FIG. 9, the request field 611R of the entry 611 stores a pointer indicating the entry 52 in the physical channel 32 in which the request b itself is stored. Therefore, the request management unit 141 uses the pointer stored in the request field 611R to identify the storage location of the entry 52 of the request b in the physical channel 32. The request management unit 141 identifies that the pointer field 51P of the entry 51 of the request a in the physical channel 32 stores a pointer indicating the entry 52 of the identified request b. Then, the request management unit 141 changes the pointer stored in this pointer field 51P to a pointer indicating the entry 53 of the request c that is next to the entry 52 of the request b. As a result, the entry 52 of the request b is deleted from the linked list of the physical channel 32. For example, if the physical channels are implemented as a two-way list, the time required for the physical channel deletion operation in FIG. 11 can be shortened.
[0144] In this way, the request management unit 141 can realize the dequeue operation of deleting request b from the first virtual channel 33-1 and deleting request b from the physical channel 32 by deleting entry 611 for request b from the linked list of the first virtual channel 33-1 and deleting entry 52 for request b from the linked list of the physical channel 32.
[0145] Fig. 12 is a diagram for explaining a second example of the dequeue operation. Here, a dequeue operation is illustrated in which the request a is further deleted from the physical channel 32 and the virtual channel 33 after the dequeue operation shown in Fig. 10. This dequeue operation is performed after the arbiter 131 acquires the request a from the head of the physical channel 32 and the request execution unit 132 executes processing according to the request a, when the degree of freedom of parallel process management is equal to or greater than a threshold value. When the degree of freedom of parallel process management is equal to or greater than a threshold value, the latency of the response to the request and the release of resources are optimized by in-order processing of the requests according to the original request order.
[0146] The dequeue operation to remove request a includes an operation to remove request a from the physical channel 32 and an operation to remove request a from the 0th virtual channel 33-0. Request a is removed from the head of the 0th virtual channel 33-0. Request a is also removed from the head of the physical channel 32.
[0147] In the ring buffer 31, the storage area A1 corresponding to the request a is released.
[0148] FIG. 13 shows an example of a linked list implementing the physical channel 32 and virtual channel 33 of FIG.
[0149] In a second example of a dequeue operation, the request management unit 141 deletes the entry 51 of request a from the linked list of the physical channel 32 ((1) in FIG. 13), and deletes the entry 601 of request a from the linked list of the 0th virtual channel 33-0 ((2) in FIG. 13).
[0150] Specifically, the request management unit 141 changes the head pointer 50 of the physical channel 32, which has been pointing to the entry 51 of the request a, to point to the entry 53 of the request c, which is the next entry after the entry 51 of the request a. As a result, the entry 51 of the request a is deleted from the linked list of the physical channel 32.
[0151] Next, the request management unit 141 identifies the 0th virtual channel 33-0 to which the request a is allocated, based on the process corresponding to the request a. It is guaranteed that the request a stored at the top of the physical channel 32 is stored at the top of the 0th virtual channel 33-0. Therefore, the request management unit 141 identifies the entry 601 of the request a at the top of the 0th virtual channel 33-0, using the head pointer 600 of the 0th virtual channel 33-0. Then, since there is no entry following the identified entry 601 of the request a, the request management unit 141 changes the head pointer 600 of the 0th virtual channel 33-0 so that it does not point to any entry. For example, the request management unit 141 sets the head pointer 600 of the 0th virtual channel 33-0 to null. As a result, the entry 601 of the request a is deleted from the linked list of the 0th virtual channel 33-0.
[0152] In this way, the request management unit 141 can realize the dequeue operation of deleting request a from the physical channel 32 and deleting request a from the 0th virtual channel 33-0 by deleting entry 51 for request a from the linked list of the physical channel 32 and deleting entry 601 for request a from the linked list of the 0th virtual channel 33-0.
[0153] Next, the operation from arbitration to dequeueing (hereinafter, arbitration-dequeueing operation) in the case where the degree of freedom of parallel process management is less than the threshold value and there are multiple executable processes will be described. In the case where the degree of freedom of parallel process management is less than the threshold value and there are multiple executable processes, the arbiter 131 is configured to obtain, for example, a request that is earlier in the original request order among requests stored in multiple virtual channels 33 corresponding to the multiple processes respectively. This is realized, for example, by the arbiter 131 searching the physical channels 32 from the top to find a request corresponding to an executable process.
[0154] Fig. 14 is a diagram for explaining an example of arbitration-dequeue operation. Here, it is assumed that, when the degree of freedom of parallel process management is less than a threshold value and processes corresponding to odd-numbered virtual channels 33 (i.e., the first virtual channel 33-1 and the third virtual channel 33-3) are executable, requests are obtained from the physical channel 32 and the virtual channel 33 after the enqueue operation shown in Fig. 8. Processes corresponding to even-numbered virtual channels 33 (i.e., the 0th virtual channel 33-0 and the second virtual channel 33-2) are not executable. Processes corresponding to odd-numbered virtual channels 33 are also referred to as odd-numbered processes.
[0155] First, the arbiter 131 searches the physical channel 32 from the top to identify the first request corresponding to the odd-numbered process. In the example shown in FIG. 14, the arbiter 131 identifies the request b corresponding to the first process in the physical channel 32. The arbiter 131 acquires the identified request b from the physical channel 32 and sends it to the request execution unit 132. The request b is stored at the top of the first virtual channel 33-1 corresponding to the first process. That is, the first request b identified by searching the physical channel 32 from the top is guaranteed to be stored at the top of the corresponding first virtual channel 33-1. Therefore, the arbiter 131 searching the physical channel 32 from the top to acquire the first request corresponding to the executable odd-numbered process corresponds to acquiring a request from the top of any virtual channel 33 corresponding to the executable process in consideration of the original request order.
[0156] The request execution unit 132 executes processing in response to the request b received from the arbiter 131. The request execution unit 132 notifies the request management unit 141, for example, of the completion of the processing in response to the request b.
[0157] In response to the notification from the request execution unit 132, the request management unit 141 performs a dequeue operation to delete the corresponding request from both the physical channel 32 and the first virtual channel 33-1. In addition, in response to the completion of the processing in response to the request b, the request management unit 141 releases the storage area A2 in the ring buffer 31 in response to the completion of the processing in response to the request b.
[0158] In this way, the arbiter 131 can search the physical channels 32 from the top, and obtain the first request corresponding to an executable process. In other words, when the degree of freedom of parallel process management is less than the threshold value and a plurality of processes corresponding to odd-numbered virtual channels 33 are executable, the arbiter 131 can obtain a request that is earlier in the original request order among the requests stored in the plurality of virtual channels 33 corresponding to the plurality of processes. As a result, even when the degree of freedom of parallel process management is less than the threshold value, a process that is earlier in the original request order is executed with priority, and therefore the utilization efficiency of resources (e.g., the ring buffer 31) that are premised on in-order processing can be improved.
[0159] FIG. 15 shows an example of a linked list implementing the physical channel 32 and virtual channel 33 of FIG.
[0160] In the arbitration-dequeue operation, first, the arbiter 131 searches the entries 51, 52, 53, and 54 in order from the top based on the head pointer 50 of the linked list of the physical channel 32, and identifies the request b virtually stored in the first virtual channel 33-1 (i.e., the first request b corresponding to an executable process) from the entry 52 ((1) in FIG. 15). The arbiter 131 obtains the identified request b from the entry 52 of the physical channel 32 and sends it to the request execution unit 132.
[0161] Then, the request management unit 141 deletes the request b from both the physical channel 32 and the first virtual channel 33-1.
[0162] FIG. 16 shows an example in which request b has been deleted from the link list of the physical channel 32 and the virtual channel 33 shown in FIG.
[0163] The request management unit 141 deletes the entry 52 of request b from the link list of the physical channel 32 ((1) in FIG. 16), and deletes the entry 611 of request b from the link list of the first virtual channel 33-1 ((2) in FIG. 16).
[0164] Specifically, the request management unit 141 changes the pointer in the pointer field 51P of request a, which has pointed to the entry 52 of request b, to point to the entry 53 of request c, which is the next entry after the entry 52 of request b. As a result, the entry 52 of request b is deleted from the linked list of the physical channel 32.
[0165] Next, the request management unit 141 identifies the first virtual channel 33-1 to which the request b has been allocated, based on the first process corresponding to the request b. It is guaranteed that the request b, which has been searched for in order from the top of the physical channel 32, is stored at the top of the first virtual channel 33-1. Therefore, the request management unit 141 identifies the entry 611 of the request b at the top of the first virtual channel 33-1, using the head pointer 610 of the first virtual channel 33-1. Then, the request management unit 141 changes the head pointer 610 of the first virtual channel 33-1 so as to point to the entry 612 of the request d that is next to the entry 611 of the identified request b. As a result, the entry 611 of the request b is deleted from the linked list of the first virtual channel 33-1.
[0166] In this way, the request management unit 141 can realize the dequeue operation of deleting request b from the physical channel 32 and deleting request b from the first virtual channel 33-1 by deleting entry 52 for request b from the linked list of the physical channel 32 and deleting entry 611 for request b from the linked list of the first virtual channel 33-1.
[0167] As described above, according to this embodiment, the processing efficiency can be improved.
[0168] The multiple memory chips 41 can operate in parallel. The SRAM 12 includes a physical channel 32 capable of storing requests issued from the host 2 in the order in which they are stored, and multiple virtual channels 33 capable of storing the requests issued from the host 2 in the order in which they are stored. The request management unit 141 stores one or more requests issued from the host 2 in the physical channel 32 in the order in which they are obtained from the host 2. The request management unit 141 stores each of the one or more requests in one of the multiple virtual channels 33. Each of the multiple virtual channels 33 corresponds to one of multiple processes executed on the multiple memory chips 41 in accordance with the one or more requests.
[0169] When the degree of freedom of parallelization of a plurality of processes is equal to or greater than a predetermined threshold, the arbiter 131 and the request execution unit 132 execute the processes using the physical channel 32. More specifically, the arbiter 131 acquires, for example, a first request among one or more requests stored at the beginning of the physical channel 32. The request execution unit 132 executes processing according to the first request. Thereafter, the request management unit 141 deletes the first request stored in the physical channel 32, and deletes the first request stored in the first virtual channel among the plurality of virtual channels 33. This makes it possible to reduce the latency of responses to requests and improve the efficiency of resource utilization by performing in-order processing of requests according to the original request order.
[0170] When the degree of freedom of parallelization of the multiple processes is less than a threshold, the arbiter 131 and the request execution unit 132 execute the processes using the multiple virtual channels 33. More specifically, the arbiter 131 acquires, for example, a second request among one or more requests stored at the beginning of the second virtual channel 33 among the multiple virtual channels 33. The request execution unit 132 executes processing according to the second request. Thereafter, the request management unit 141 deletes the second request stored in the second virtual channel 33, and deletes the second request stored in the physical channel 32. This can improve the overall operating performance of the multiple memory chips 41.
[0171] Therefore, in the memory system 3, the efficiency of processing in the memory system 3 can be improved by using the physical channel 32 and the virtual channel 33 appropriately according to the degree of freedom of parallel process management.
[0172] Each of the various functions described in this embodiment may be realized by a circuit (processing circuit). An example of a processing circuit includes a programmed processor, such as a central processing unit (CPU). The processor executes each of the described functions by executing a computer program (a set of instructions) stored in a memory. The processor may be a microprocessor including an electric circuit. Examples of the processing circuit include a digital signal processor (DSP), an application specific integrated circuit (ASIC), a microcontroller, a controller, and other electric circuit components. Each of the components other than the CPU described in this embodiment may also be realized by a processing circuit.
[0173] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0174] 1...information processing system, 2...host, 3...memory system, 4...non-volatile memory, 5...controller, 11...host I / F, 12...SRAM, 13...memory controller, 14...CPU, 21...CPU, 22...RAM, 31...ring buffer, 32...physical channel, 33...virtual channel, 41...memory chip, 131...arbiter, 132...request execution unit, 141...request management unit, 221...submission queue.
Claims
1. A plurality of memory chips operable in parallel; a random access memory including a physical channel area capable of storing requests issued by a host in a storage order, and a plurality of virtual channel areas capable of storing the requests issued by the host in a storage order, storing one or more requests issued by the host in the physical channel area in the order in which the requests are received from the host; a controller configured to store each of the one or more requests in one of the plurality of virtual channel areas; each of the plurality of virtual channel regions corresponds to one of a plurality of processes respectively executed on the plurality of memory chips in accordance with the one or more requests; The controller: If the degree of freedom of parallelization of the plurality of processes is equal to or greater than a predetermined threshold, the processes are executed using the physical channel region; configured to execute a process using the plurality of virtual channel regions if the degrees of freedom are less than the predetermined threshold. Memory system.
2. The controller: if the degree of freedom of parallelization of the plurality of processes is equal to or greater than a predetermined threshold, obtain a first request from the one or more requests stored at the beginning of the physical channel area, and execute a process corresponding to the first request; if the degree of freedom is less than the predetermined threshold, obtain a second request from among the one or more requests stored at the beginning of a second virtual channel area from among the plurality of virtual channel areas, and execute a process in accordance with the second request.
2. The memory system of claim 1.
3. The controller: when a degree of freedom of parallelization of the plurality of processes is equal to or greater than a predetermined threshold, after executing a process corresponding to the first request, delete the first request stored in the physical channel area, and delete the first request stored in a first virtual channel area among the plurality of virtual channel areas; when the degree of freedom is less than the predetermined threshold, after executing a process according to the second request, delete the second request stored in the second virtual channel area, and delete the second request stored in the physical channel area.
3. The memory system of claim 2.
4. A plurality of memory chips operable in parallel; a random access memory including a physical channel area capable of storing requests issued by a host in a storage order, and a plurality of virtual channel areas capable of storing the requests issued by the host in a storage order, storing one or more requests issued by the host in the physical channel area in the order in which the requests are received from the host; a controller configured to store each of the one or more requests in one of the plurality of virtual channel areas; each of the plurality of virtual channel regions corresponds to one of a plurality of processes respectively executed on the plurality of memory chips in accordance with the one or more requests; The controller: if the degree of freedom of parallelization of the plurality of processes is equal to or greater than a predetermined threshold, obtain a first request from the one or more requests stored at the beginning of the physical channel area, execute a process corresponding to the first request, and then delete the first request stored in the physical channel area, and delete the first request stored in a first virtual channel area from among the plurality of virtual channel areas; when the degree of freedom is less than the predetermined threshold, obtain a second request from the one or more requests stored at the beginning of a second virtual channel area from among the plurality of virtual channel areas, execute a process according to the second request, and then delete the second request stored in the second virtual channel area and delete the second request stored in the physical channel area. Memory system.
5. The controller: physically storing the first request in the physical channel area; configured to virtually store the first request in the first virtual channel area by storing in the first virtual channel area first information indicating a location in the physical channel area where the first request is stored.
5. The memory system of claim 4.
6. the controller is configured, when the degree of freedom is equal to or greater than the predetermined threshold, to acquire the first request stored in the physical channel area, execute processing in accordance with the first request, delete the first request stored in the physical channel area, and delete the first information stored in the first virtual channel area.
6. The memory system of claim 5.
7. The controller: physically storing the second request in the physical channel area; the second request is virtually stored in the second virtual channel area by storing, in the second virtual channel area, second information indicating a location in the physical channel area where the second request is stored.
5. The memory system of claim 4.
8. The controller: When the degree of freedom is less than the predetermined threshold, the second information stored in the second virtual channel area is acquired, the second request is acquired from the physical channel area based on the second information, a process is performed according to the second request, and thereafter, the second information stored in the second virtual channel area is deleted, and the second request stored in the physical channel area is deleted.
8. The memory system of claim 7.
9. the first request is stored in the physical channel area prior to the second request; the first virtual channel region corresponds to a first process of the plurality of processes; the second virtual channel region corresponds to a second process of the plurality of processes; The controller: if the degree of freedom is less than the predetermined threshold and the first process and the second process are executable, obtain the first request stored in the physical channel area, execute processing according to the first request, thereafter delete the first request stored in the physical channel area, and delete the first request stored in the first virtual channel area; if the degree of freedom is less than the predetermined threshold and the first process is executable but the second process is not executable, obtain the first request stored in the physical channel area, execute processing according to the first request, thereafter delete the first request stored in the physical channel area, and delete the first request stored in the first virtual channel area; configured to, when the degree of freedom is less than the predetermined threshold and the second process is executable but the first process is not executable, obtain the second request stored in the physical channel area, perform processing according to the second request, and then delete the second request stored in the physical channel area and delete the second request stored in the second virtual channel area.
5. The memory system of claim 4.
10. The controller: storing the first request in the physical channel area; storing, in the first virtual channel area, first information indicating a location in the physical channel area where the first request is stored, in the first virtual channel area, thereby virtually storing the first request in the first virtual channel area; storing the second request in the physical channel area after the first request; configured to virtually store the second request in the second virtual channel area by storing, in the second virtual channel area, second information indicating a position in the physical channel area where the second request is stored; the first virtual channel region corresponds to a first process of the plurality of processes; the second virtual channel region corresponds to a second process of the plurality of processes; The controller: if the degree of freedom is less than the predetermined threshold and the first process and the second process are executable, obtain the first request stored in the physical channel area, execute processing according to the first request, and then delete the first request stored in the physical channel area and delete the first information stored in the first virtual channel area; if the degree of freedom is less than the predetermined threshold value and the first process is executable but the second process is not executable, obtain the first request stored in the physical channel area, execute processing according to the first request, and then delete the first request stored in the physical channel area and delete the first information stored in the first virtual channel area; configured to, when the degree of freedom is less than the predetermined threshold and the second process is executable but the first process is not executable, obtain the second request stored in the physical channel area, execute processing according to the second request, and then delete the second request stored in the physical channel area and delete the second information stored in the second virtual channel area.
5. The memory system of claim 4.
11. When the controller receives a third request from the host, storing the third request in the physical channel area; identifying a process corresponding to the third request, and storing the third request in a third virtual channel area among the plurality of virtual channel areas corresponding to the identified process.
5. The memory system of claim 4.
12. When the controller receives a third request from the host, physically storing the third request in the physical channel area; the third request is virtually stored in a third virtual channel area by identifying a process corresponding to the third request and storing, in a third virtual channel area among the plurality of virtual channel areas corresponding to the identified process, third information indicating a position in the physical channel area where the third request is stored.
5. The memory system of claim 4.
Citation Information
Patent Citations
Memory controller and memory control method
US20220253248A1
Out-of-order probing in an in-order system
US6581111B1
Data transfer device which executes DMA transfer, semiconductor integrated circuit device and data transfer method
US7506114B2
