Memory system and method of performing a process according to a request from a host in a memory system

By introducing physical channels and virtual channels into the memory system, and selecting the request execution path based on the parallelism threshold, the problem of response delay and resource efficiency caused by chaotic request order in the memory system is solved, and more efficient request processing is achieved.

CN118642983APending Publication Date: 2024-09-13KIOXIA CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410226539.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-13
Filing Date
2024-02-29
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

In memory systems, the parallel execution of multiple requests leads to confusion in the order of requests, resulting in increased response delays and reduced resource utilization efficiency, which cannot effectively improve the efficiency of disordered processes.

Method used

Design a memory system that includes multiple memory chips, random access memories, and a controller. It distinguishes requests through physical channels and virtual channels, and selects requests to be executed based on the parallelism threshold. The controller uses physical channels when parallelism is low. ,Use virtual channels when the parallelism is high ,to maintain the orderly execution of requests.

Benefits of technology

Through this method, the response delay of requests can be effectively shortened, resource usage efficiency can be improved, and the overall performance of the memory system can be improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642983A
    Figure CN118642983A
Patent Text Reader

Abstract

Embodiments provide a memory system and a method of performing a process in a memory system in communication with a host according to a request from the host. A memory system includes a plurality of memory chips, a memory, and a controller. The memory chips are capable of operating in parallel. The memory includes a physical channel region and a plurality of virtual channel regions, each virtual channel region corresponding to one of a plurality of processes performed on the memory chip in accordance with the request. The controller stores the requests issued from the host in the physical channel region in an order of acquisition from the host, and stores an entry for each of the requests in one of the virtual channel regions. When a degree of required parallelism of the process is less than a threshold, the controller selects a next request to be executed using the physical channel region. When the degree of required parallelism is greater than or equal to the threshold value, the controller selects a next request to be executed using one of the plurality of virtual channel regions.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims the benefit of priority of Japanese Patent Application No. 2023-038661 filed on March 13, 2023, the entire contents of which are incorporated herein by reference. Technical Field

[0003] Embodiments described herein generally relate to a memory system and a method of performing a process in a memory system in communication with a host according to a request from the host. Background Art

[0004] In recent years, memory systems including storage devices such as nonvolatile memories have become widely used. As one of the memory systems, for example, a solid state drive (SSD) including a NAND flash memory is known. The SSD is used as a main storage device for various computing devices.

[0005] The memory system performs a process, such as data writing or data reading, on a storage device in response to a request (e.g., also referred to as a command) issued by a host. In order to maintain data consistency in the memory system, for example, a memory having a first-in-first-out (FIFO) structure (FIFO memory) is used to maintain the order of multiple requests issued by the host.

[0006] The storage device of the memory system includes a plurality of memory chips capable of performing operations in parallel. For example, in data centers and dedicated enterprise products, the parallelism of the operations of the memory chips tends to increase.

[0007] In this memory system, when it is not necessary to ensure a process (ordered process) that follows the original order of requests from a host and the performance of the memory system can be improved due to the simultaneous execution of independent requests, a plurality of FIFO memories associated with each of a plurality of processes that can be executed in parallel are provided in some cases. The request from the host is stored in a FIFO memory associated with a corresponding process in the plurality of FIFO memories. Therefore, the order of the requests in each of the plurality of processes is reconstructed. Since the processes in response to the requests stored in each FIFO memory can be executed in parallel, the performance of the memory system can be improved if a strict order does not have to be followed.

[0008] When the order of the requests in the multiple processes is reconstructed, the information about the original order of the requests of the host is lost. This means that at the point in time when the requests are stored in the multiple FIFO memories associated in the multiple processes that can be executed in parallel, the requests are changed from an ordered process to a process that does not follow the original order of the requests (out-of-order process).

[0009] In an out-of-order process, the efficiency of a process in a memory system may be degraded due to the deterioration of the response latency to a request (due to excessive waiting for the process of the previous request) and the reduction of resource utilization efficiency in a memory system that adopts an in-order process. Therefore, there is a need for improvement in the efficiency of the out-of-order process. Summary of the invention

[0010] Embodiments provide a memory system and a method of executing a process according to a request from a host in the memory system communicating with the host.

[0011] According to one embodiment, a memory system includes:

[0012] multiple memory chips that can operate in parallel;

[0013] a random access memory including a physical channel area in which requests issued from a host are stored, and a plurality of virtual channel areas, each of the plurality of virtual channel areas corresponding to one of a plurality of processes executed on the plurality of memory chips according to the one or more requests; and

[0014] a controller configured to store the requests issued from the host in the physical channel area in the order of acquisition from the host, and to store an entry for each of the requests in one of the plurality of virtual channel areas, wherein

[0015] When the degree of required parallelism of the plurality of processes is less than a predetermined threshold, the controller selects a next request to be executed using the physical channel region, and

[0016] When the required degree of parallelism is greater than or equal to the predetermined threshold, the controller selects the next request to be executed using one of the plurality of virtual channel areas. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a block diagram showing a configuration example of a complete information processing system in which a memory system and a host are connected according to an embodiment;

[0018] Figure 2 is a diagram showing an example of latency degradation and deterioration of resource usage efficiency in a memory system according to a comparative example;

[0019] Figure 3 is a diagram showing an example of execution of a request from a host in a memory system according to an embodiment;

[0020] Figure 4is a diagram showing an example of an arbitration operation when the degree of flexibility of parallel process management is equal to or greater than a threshold value in a memory system;

[0021] Figure 5 is a diagram showing an example of an arbitration operation when the degree of flexibility of parallel process management is less than a threshold value in a memory system;

[0022] Figure 6 is a diagram illustrating an example in which three requests are stored in physical channels and virtual channels of a memory system according to an embodiment;

[0023] Figure 7 It is shown that the Figure 6 A diagram of an instance of a linked list of physical channels and virtual channels in ;

[0024] Figure 8 is a diagram illustrating an example of an enqueue operation in a memory system;

[0025] Fig. 9 It is shown in Figure 8 A graph of the linked list updated during the enqueue operation in ;

[0026] Fig.10 is a diagram showing a first example of a dequeue operation in a memory system according to an embodiment;

[0027] Fig.11 It is shown in Fig.10 A graph of the linked list updated in the dequeue operation;

[0028] Fig.12 is a diagram illustrating a second example of a dequeue operation in a memory system;

[0029] Fig.13 It is shown in Fig.12 A graph of the linked list updated in the dequeue operation;

[0030] Fig.14 is a diagram showing an example of arbitration operation to dequeue when the flexibility degree of the parallel process is less than a threshold and there are multiple executable processes in the memory system;

[0031] Fig.15 It is shown Fig.14 A diagram of an instance of a linked list in an arbitration operation in ; and

[0032] Fig.16 It is shown Fig.14 Diagram of an instance of a linked list in a dequeue operation. DETAILED DESCRIPTION

[0033] The embodiment provides a memory system capable of improving the efficiency of a process.

[0034] In general, according to one embodiment, a memory system includes a plurality of memory chips, a random access memory, and a controller. The plurality of memory chips can operate in parallel. The random access memory includes a physical channel area in which requests issued from a host are stored, and a plurality of virtual channel areas, each of which corresponds to one of a plurality of processes executed on the plurality of memory chips according to the one or more requests. The controller stores the requests issued from the host in the physical channel area in the order obtained from the host. The controller stores entries for each of the requests in one of the plurality of virtual channel areas. When the degree of required parallelism of the plurality of processes is less than a predetermined threshold, the controller selects the next request to be executed using the physical channel area. When the degree of required parallelism is greater than or equal to a predetermined threshold, the controller selects the next request to be executed using one of the plurality of virtual channel areas.

[0035] Hereinafter, embodiments will be described with reference to the accompanying drawings.

[0036] Figure 1 is a block diagram showing a configuration example of a complete information processing system in which a memory system and a host are connected according to an embodiment. The information processing system 1 includes, for example, a host device 2 and a memory system 3. Hereinafter, the host device 2 is also referred to as a host 2.

[0037] The host device 2 may be a storage server that stores many and different types of data in the memory system 3, or may be a personal computer.

[0038] The memory system 3 is, for example, a semiconductor memory device configured to write data in and read data from a nonvolatile memory. The nonvolatile memory is, for example, a NAND flash memory. The memory system 3 is also referred to as a storage device. The memory system 3 is implemented as, for example, a solid state drive (SSD) including a NAND flash memory.

[0039] The memory system 3 may be used as a storage device of the host 2. The memory system 3 may be built in the host 2, or may be connected to the host 2 via a cable or a network.

[0040] The interface connecting the host 2 to the storage system 3 complies with the following standards, such as SCSI, Serial Attached SCSI (SAS), ATA, Serial ATA (SATA), PCI Fibre Channel or NVM

[0041]

[0042] A configuration example of each of the host 2 and the memory system 3 will be described below.

[0043] (Configuration example for host 2)

[0044] 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 via, for example, a bus 20. The bus 20 is connected to an interface (not shown) provided in the host 2. The interface is connected to a host interface 11 in a controller of a memory system 3 described below, and enables information to be transmitted and received between the host 2 and the memory system 3.

[0045] The CPU 21 is, for example, at least one processor and controls operations of various components in the host 2 .

[0046] The RAM 22 is a volatile memory and is implemented as, for example, a dynamic RAM (DRAM) or a static RAM (SRAM).

[0047] The host 2 includes 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 that stores requests issued by the host 2 (more specifically, the CPU 21) to the memory system 3. That is, the host 2 transmits the request to the memory system 3 via the submission queue 221. The request is, for example, a command.

[0048] (Configuration Example of Memory System 3)

[0049] The memory system 3 includes, for example, a nonvolatile memory 4 and a controller 5. The memory system 3 may include a dynamic random access memory (DRAM).

[0050] The nonvolatile memory 4 includes a plurality of memory chips 41. Each of the plurality of memory chips 41 includes a plurality of blocks, each of which includes a plurality of memory cells arranged in a matrix form. A block serves as the minimum unit for a data erase operation. A block is also referred to as an "erase block" or a "physical block" in some cases. 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. A page serves as a unit for a data write operation and a data read operation. A word line can serve as a unit for a data write operation and a data read operation.

[0051] The number of program / erase cycles (the number of P / E cycles) for each block has an upper limit, which is called the maximum number of P / E cycles. One P / E cycle of a certain block includes an erase operation for causing all memory cells in the block to enter an erased state and a write operation for writing data in each page of the block.

[0052] The controller 5 may be implemented by a circuit such as a system on chip (SoC). The controller 5 is configured to control the non-volatile memory 4.

[0053] The controller 5 may function as a flash translation layer (FTL) configured to perform data management and block management of the nonvolatile 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 nonvolatile memory 4, and (2) a process of hiding the difference between a read / write operation in page units and an erase operation in block units. Block management includes management of defective blocks, wear leveling, and garbage collection.

[0054] The logical address is used by the host 2 to specify an address of a storage area for the memory system 3. The logical address is, for example, a logical block address (LBA).

[0055] The management of the mapping between each logical address and each physical address is performed using, for example, a logical to physical address translation table. The controller 5 uses the logical to physical address translation table to manage the mapping between each logical address and each physical address in units of a specific management size. The physical address corresponding to a certain logical address indicates the physical storage location of the data in the non-volatile memory 4 where the logical address is written. The controller 5 uses the logical to physical address translation table to manage the multiple storage areas into which the non-volatile memory 4 is logically divided. The multiple storage areas correspond to multiple logical addresses, respectively. That is, each of the multiple storage areas is assigned a logical address. The logical to physical address translation table can be loaded from the non-volatile memory 4 to the DRAM when the memory system 3 is started.

[0056] The writing of data in a page can be performed only once per P / E cycle. Therefore, the controller 5 writes the update data corresponding to a certain logical address, which is not in the same physical storage location where the data is stored but in another physical storage location. The controller 5 invalidates the previous data by updating the logical to physical address translation table so that the logical address is associated with other physical storage locations. The data referenced in the logical to physical address translation table (i.e., the data associated with the logical address) is called valid data. Data that is not associated with any logical address is called invalid data. Valid data is data that may be read in response to a request from the host 2 later. Invalid data is data that is no longer possible to be read in response to a request from the host 2.

[0057] 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 a bus 10, for example.

[0058] The host I / F 11 functions as a control circuit for controlling communication between the host 2 and the memory system 3. The host I / F 11 receives requests (commands) of various processes from the host 2 (more specifically, the submission queue 221). The requests of the processes 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 receives data from the host 2. The data received from the host 2 is, for example, user data to be written in the nonvolatile memory 4 in response to the write request.

[0059] The SRAM 12 is a volatile memory. The storage area of ​​the SRAM 12 is allocated as, for example, a ring buffer 31, a physical channel 32, and a plurality of virtual channels 33.

[0060] 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 is temporarily stored in response to a read request from the host 2. The write buffer is a storage area in which user data to be written in the nonvolatile memory 4 is temporarily stored in response to a write request from the host 2.

[0061] The physical channel 32 is, for example, a storage area in which one or more requests are stored. More specifically, in the physical channel, for example, one or more requests and the storage order of the one or more requests may be stored. The physical channel 32 has a data structure implemented by, for example, a linked list. All requests acquired from the submission queue 221 of the host 2 are physically stored in the physical channel 32 in the order in which they are acquired 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.

[0062] Each of the plurality of virtual channels 33 is a storage area in which one or more requests can be stored. More specifically, in each of the plurality of virtual channels 33, one or more requests and the storage order of the one or more requests can be stored. Alternatively, in each of the plurality of virtual channels 33, a reference to one or more requests and the order of the one or more requests can be stored. The number of virtual channels 33 provided in the memory system 3 corresponds to the number of processes that can be executed in parallel, for example, in the non-volatile memory 4. In each virtual channel 33, for example, one or more requests are managed by a FIFO scheme. Each virtual channel 33 has a data structure implemented, for example, by a linked list. The request obtained from the submission queue 221 of the host 2 is physically stored in or virtually stored in (i.e., assigned to) any one of the plurality of virtual channels 33. Storing a request virtually in a channel means storing information for referring to the request in the channel with reference to the request. The information for referring to the request is, for example, information indicating a storage location within the physical channel 32 where the request is stored.

[0063] One request is stored in the physical channel 32 and stored in any one of the plurality of virtual channels 33. The physical channel 32 and the virtual channel 33 have a data structure in which the one request stored in both the physical channel and the virtual channel has an association between the virtual channel and the physical channel. More specifically, for example, one request is physically stored in the physical channel 32 and virtually stored in any one of the plurality of virtual channels 33. The physical channel 32 and the virtual channel 33 have a data structure in which the physically stored request and the virtually stored request can be associated with each other.

[0064] Hereinafter, a case where a request is physically stored in the physical channel 32 and a request is virtually stored in the virtual channel 33 will be given as an example. The request may be physically stored in both the physical channel 32 and the virtual channel 33. Figures 3 to 16 A specific example of the structure of the physical channel 32 and the virtual channel 33 is described.

[0065] The memory controller 13 electrically connects the controller 5 to the nonvolatile memory 4. The memory controller 13 complies with an interface standard such as toggle DDR or Open NAND Flash Interface (ONFI).

[0066] The memory controller 13 is a control circuit configured to control the nonvolatile memory 4. The memory controller 13 may be connected to each of the plurality of memory chips 41 of the nonvolatile memory 4 via a plurality of channels. The plurality of memory chips 41 are driven in parallel so that the access bandwidth between the controller 5 and the nonvolatile memory 4 may be widened.

[0067] The memory controller 13 includes an arbiter 131 and a request execution unit 132 .

[0068] The arbiter 131 selects one channel from the physical channel 32 and the plurality of virtual channels 33 through arbitration, and performs an operation of acquiring a request from the head of the selected channel. Hereinafter, this operation is also referred to as an arbitration operation.

[0069] Specifically, for example, when the degree of flexibility of parallel process management (defined below) is equal to or greater than a threshold, the arbitrator 131 selects the physical channel 32. Conversely, when the degree of freedom of parallel process management is less than the threshold, the arbitrator 131 selects one virtual channel 33 corresponding to the executable process from the plurality of virtual channels 33.

[0070] Here, parallel process management is the management of multiple processes that can be executed in parallel in the memory system 3. The arbitrator may impose some restrictions on the parallel process management to meet the required specifications. The constraints imposed on the parallel process management are expressed as, for example, an index indicating the required amount of parallelism to be implemented. The index also indicates the inverse of the required amount of parallelism, which is referred to herein as the degree of flexibility of the parallel process management. Therefore, if the required amount is high, the degree of flexibility is low. Specifically, the degree of flexibility of the parallel process management is based on the number of processes that need to be executed in parallel or the ratio of processes among the multiple processes. For example, when sixteen processes can be executed in parallel in the memory system 3 and only two processes need to be executed in parallel, the degree of flexibility of the parallel process management can be referred to as high. On the other hand, when four processes can be executed in parallel in the memory system 3 and four processes need to be executed in parallel, the degree of flexibility of the parallel process management can be referred to as low. The degree of flexibility of the parallel process management is determined according to the specifications for the memory system 3 (e.g., the configuration of the memory system 3, the performance required in the memory system 3, or the like). Instead of the degree of flexibility in parallel process management, a degree of constraint imposed on the parallel process management may be used, referred to herein as the degree of required parallelism. When the degree of flexibility in parallel process management is higher, the degree of required parallelism is lower. When the degree of flexibility in parallel process management is lower, the degree of required parallelism is higher.

[0071] When a physical channel 32 is selected by arbitration, the arbitrator 131 physically acquires a 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 a virtual channel 33 is selected by arbitration, the arbitrator 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 a storage location where the request is stored in the physical channel 32 from the virtual channel 33 and acquiring the request from the physical channel 32 based on the acquired information. In the case where the request is also physically stored in the virtual channel 33, the arbitrator 131 physically acquires the request from the head of the virtual channel 33. The arbitrator 131 transmits the acquired request to the request execution unit 132.

[0072] The request execution unit 132 executes a process in response to a request received from the arbiter 131. For example, when the received request is a write request, the request execution unit 132 executes a data write operation to write user data in the memory chip 41. For example, when the received request is a read request, the request execution unit 132 executes a data read operation to read user data from the memory chip 41.

[0073] Will refer to below Figures 3 to 16 A specific example of the operations performed by the arbiter 131 and the request execution unit 132 is described.

[0074] 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 command group for causing the CPU 14 to perform various processes. The CPU 14 can perform a request process or the like that processes various requests from the host 2. The operation of the CPU 14 is controlled by the FW executed by the CPU 14.

[0075] The function of each unit in the controller 5 may be implemented by dedicated hardware in the controller 5, or may be implemented by causing the CPU 14 to execute FW.

[0076] The CPU 14 functions as, for example, the request management unit 141. The CPU 14 functions as the request management unit 141, for example, by executing FW.

[0077] The request management unit 141 performs an operation of storing a request acquired (more specifically, extracted) from the submission queue 221 of the host 2 via the host I / F 11 in any one of the physical channel 32 and the plurality of virtual channels 33. The operation of newly storing the request acquired from the submission queue 221 in any one of the physical channel 32 and the plurality of virtual channels 33 is also referred to as an enqueue operation. In the enqueue operation, the request acquired from the submission queue 221 is physically stored in the physical channel 32 and virtually stored in one virtual channel 33 selected from the plurality of virtual channels 33. In some embodiments, the request may also be physically stored in the selected one virtual channel 33.

[0078] The request management unit 141 performs an operation of deleting a request from the physical channel 32 and the virtual channel 33 according to the acquisition of a request from any one of the physical channel 32 and the virtual channel 33 and the execution of a process corresponding to the acquired request. The operation of deleting a request from the physical channel 32 and the virtual channel 33 is also referred to as a dequeue operation. In the dequeue operation, for example, the request for executing a corresponding process is deleted from both the physical channel 32 in which the request is physically stored and the virtual channel 33 in which the request is virtually stored. In an embodiment in which the request is also stored in the virtual channel 33, the request for executing a corresponding process is deleted from the virtual channel 33 in which the request is physically stored.

[0079] Will refer to below Figures 3 to 16 A specific operation example of the request management unit 141 is described.

[0080] 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 implemented as an operation in which the CPU 14 and the memory controller 13 cooperate with each other.

[0081] Here, an in-order process and an out-of-order process in the memory system 3 will be described.

[0082] The ordered process is a process that follows the order of requests obtained from the submission queue 221 of the host 2. In the ordered process, data consistency can be maintained in the host 2 and the memory system 3. The order of the requests obtained from the submission queue 221 of the host 2 is also referred to as the original request order. In the ordered process, for example, when many requests for a single memory chip 41 are continuously obtained from the submission queue 221, there is a possibility that the operating performance of all the multiple memory chips 41 will deteriorate. This is because the process cannot be executed in response to requests to other memory chips 41 until the process is completed in the original request order in response to many requests to a single memory chip 41. In the ordered process, even when the process can be executed immediately in response to a request to another memory chip 41, it is necessary to wait for the completion of the process in response to the previous request.

[0083] The out-of-order process is a process that does not follow the original request order. In the out-of-order process, parallel process management is performed. Specifically, in the out-of-order process, the process responding to each request obtained from the submission queue 221 is included in one of a plurality of processes that can be executed in parallel. Since the process responding to each request is executed in parallel with another process as a part of the corresponding process, the process is an out-of-order process that does not follow the original request order. In the out-of-order process, for example, when an operation is not performed on a certain memory chip 41, a plurality of processes are managed so that the process corresponding to the memory chip 41 is executed. Therefore, since the plurality of processes are efficiently executed, the operation performance of all the plurality of memory chips 41 can be improved.

[0084] Parallel process management is performed in, for example, a single thread. Therefore, the overhead for arbitration between the plurality of processes is recorded as a latency in response to a request from the host 2. Since this arbitration is performed without regard to the original request order, an adverse effect on the quality of service (QoS) of the memory system 3 may occur. Specifically, there is a possibility that this arbitration will deteriorate the latency in response to a request from the host 2.

[0085] When resource management for a process responding to a request assumes an ordered process, resources for a process responding to a certain request cannot be used regardless of completion and release of the process unless the process responding to the previous request is completed. Resources used in the process responding to the request and in which an ordered process is assumed are, for example, the ring buffer 31. Because the released resources cannot be used, the number of ongoing requests necessary to realize the potential performance of the controller 5 cannot be fully obtained, and there is a possibility that the efficiency of the process in the memory system 3 will deteriorate.

[0086] Figure 2is a diagram showing an example of latency degradation and deterioration of resource usage efficiency in a memory system according to a comparative example. The memory system according to the comparative example includes a ring buffer 31C, a plurality of FIFO memories 33C, an arbiter 131C, and a multiplexer 121C.

[0087] Each of the plurality of FIFO memories 33C is a memory in which requests acquired from the host can be stored according to the FIFO scheme. The plurality of FIFO memories 33C respectively correspond to a plurality of processes subject to parallel process management. One request acquired from the host is stored in any one of the plurality of FIFO memories 33C based on the corresponding process. The request is stored in any one of the plurality of FIFO memories 33C, and therefore information about the original request order is lost.

[0088] The ring buffer 31C is a resource in which an ordered process is assumed. 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.

[0089] The arbitrator 131C arbitrates the plurality of FIFO memories 33C during the execution of the process and selects one FIFO memory 33C from the FIFO memories 33C. The arbitrator 131C acquires the request of the head of the selected FIFO memory 33C via the multiplexer 121C. Thus, the process responsive to the acquired request is executed.

[0090] In the arbitration of the arbiter 131C, the original request order is not considered. Therefore, the process of responding to the request is an out-of-order process. Therefore, there is a possibility that the delay of the response to the request will deteriorate.

[0091] In the disordered process, according to the completion of the requested process, the release of the storage area corresponding to the ring buffer 31C becomes disordered. In the ring buffer 31C, all storage areas from the allocated head storage area C1 to the last storage area Cx are considered to be in use. For example, even when the storage area C4 between the head and the last storage area is released according to the completion of the corresponding requested process, the storage area C4 is also considered to be in use. In this way, in the ring buffer 31C, the storage area that is considered to be in use occurs in some cases even when the storage area is not actually in use. This is a factor that causes the utilization efficiency of the ring buffer 31C to deteriorate. Therefore, in the memory system according to the comparative example, there is a possibility that the efficiency of the process responding to the request from the host is deteriorated due to the deterioration of the utilization efficiency of the ring buffer 31C.

[0092] In order to suppress the above-mentioned deterioration in efficiency of the process, the memory system 3 according to the embodiment includes the physical channel 32 in which requests are stored in the original request order and the plurality of virtual channels 33 in which requests are stored for parallel process management.

[0093] When the degree of flexibility of parallel process management is equal to or greater than a predetermined threshold, the controller 5 obtains a request from the physical channel 32. When the degree of flexibility of parallel process management is less than a predetermined threshold, the controller 5 obtains a request from one of the plurality of virtual channels 33. Therefore, when the degree of flexibility of parallel process management is equal to or greater than the threshold, the time delay of the response to the request is shortened by the ordered process of the request following the original request order, and thus the efficiency of resource use can be improved. The case where "the degree of flexibility of parallel process management is equal to or greater than the threshold" can be replaced by the degree of required parallelism being less than the threshold.

[0094] When the degree of flexibility of parallel process management is less than a threshold value, the operational performance of all the plurality of memory chips 41 can be improved by an out-of-order process in which processes are executed in response to requests. The case where "the degree of flexibility of parallel process management is less than a threshold value" can be replaced by a degree of required parallelism being equal to or greater than a threshold value.

[0095] The ordered process and the out-of-order process have a trade-off relationship between the efficiency of resource use and the latency and operation performance of all the plurality of memory chips 41. In the memory system 3, by selectively using the physical channels 32 and the virtual channels 33 according to the degree of flexibility in parallel process management, the efficiency of the processes in the memory system 3 can be improved.

[0096] Figure 3 is a diagram showing an example of execution of a request from a host 2 in a memory system 3. In the configuration related to the execution of the request from the host 2, for example, a request management unit 141, a physical channel 32, the plurality of virtual channels 33, a ring buffer 31, an arbiter 131, a request execution unit 132, and a multiplexer 121 are included. This configuration is implemented as, for example, a hardware accelerator.

[0097] The request management unit 141 physically stores the 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.

[0098] The request management unit 141 further virtually stores the request in one of the plurality of virtual channels 33. Specifically, the plurality of virtual channels 33 respectively correspond to a plurality of processes subject to parallel process management. The request management unit 141 specifies one virtual channel 33 to which the request is assigned based on the process corresponding to the request. The request management unit 141 virtually stores the request in the specified virtual channel 33. In the virtual channel 33, the order of the request is managed for each corresponding process. In the virtual channel 33, information on the original request order is not maintained.

[0099] The ring buffer 31 is a resource in which an ordered process is assumed. In the ring buffer 31, one or more storage areas corresponding to one or more requests acquired from the submission queue 221 are allocated. For example, the request management unit 141 allocates the storage area of ​​the ring buffer 31.

[0100] The arbitrator 131 performs an arbitration operation on the physical channel 32 and the plurality of virtual channels 33. Specifically, the arbitrator 131 selects one channel from which a request is to be acquired from the physical channel 32 and the plurality of virtual channels 33 through arbitration. The arbitrator 131 acquires the request of the head of the selected channel via the multiplexer 121. The arbitrator 131 transmits the acquired request to the request execution unit 132.

[0101] More specifically, the arbitrator 131 transmits information for identifying a 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 specifies a corresponding channel based on the received selected channel information. The multiplexer 121 reads a request stored in a header of the specified channel. When the specified channel is a physical channel 32, the read request is a request physically stored in a header of the physical channel 32. When the specified channel is a virtual channel 33, the read request is a request virtually stored in a header of the virtual channel 33. The multiplexer 121 transmits the read request to the arbitrator 131.

[0102] The request execution unit 132 executes a process in response to a request received from the arbitrator 131. The request execution unit 132 notifies the request management unit 141 of completion of the process in response to the request.

[0103] The request management unit 141 deletes the corresponding request from both the physical channel 32 and the virtual channel 33 according to the notification of the request execution unit 132. More specifically, the request management unit 141 deletes the request physically stored in the physical channel 32 and deletes the request virtually stored in the virtual channel 33. The request management unit 141 releases the storage area in the ring buffer 31 allocated to the request.

[0104] Hereinafter, physically storing a request in a physical channel 32 by the request management unit 141 is also referred to as storing a request in the physical channel 32. Deleting a request physically stored in a physical channel 32 by the request management unit 141 is also referred to as deleting a request from the physical channel 32. Virtually storing a request in a virtual channel 33 by the request management unit 141 is also referred to as storing a request in the virtual channel 33. Deleting a request virtually stored in a virtual channel 33 by the request management unit 141 is also referred to as deleting a request from the virtual channel 33.

[0105] exist Figure 3 In the example shown in FIG, requests a, b, c, d, e, f, ... acquired from the submission queue 221 of the host 2 are stored in the physical channel 32 in the order of acquisition. Requests a, b, c, d, e, f, ... are also stored in the 0th virtual channel 33-0, the 1st virtual channel 33-1, the 2nd virtual channel 33-2, the 3rd virtual channel 33-3, the 4th virtual channel 33-4, the 5th virtual channel 33-5, ..., respectively.

[0106] In the ring buffer 31, storage areas A1, A2, A3, A4, A5, A6, and ... are allocated to requests a, b, c, d, e, f, ... in order, respectively. In the ring buffer 31, the storage areas indicated by hatching indicate the allocated storage areas, and the storage areas shown in blanks indicate the storage areas released according to the completion of the process of the corresponding request. Since the ring buffer 31 is a resource in which an ordered process is assumed, all storage areas from the head 31H (here, the storage area A1) to the last 31T of the allocated storage area are considered to be in use. Since several storage areas shown in blanks are storage areas between the head 31H and the last 31T, these storage areas are released but are considered to be in use.

[0107] Reference Figure 4 and 5 Describes arbitration operations.

[0108] Figure 4 3 is a diagram showing an example of arbitration operation when the degree of flexibility 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 area allocated in the ring buffer 31 are as described above with reference to FIG. Figure 3 described.

[0109] When the degree of flexibility of parallel process management is equal to or greater than the threshold, the arbitrator 131 obtains the request a from the head of the physical channel 32. Specifically, the arbitrator 131 transmits information indicating the physical channel 32 to the multiplexer 121 based on the degree of flexibility of parallel process management being equal to or greater than the threshold. The multiplexer 121 reads the request a from the head of the physical channel 32 based on the information indicating the physical channel 32. Subsequently, the multiplexer 121 transmits the read request a to the arbitrator 131. The arbitrator 131 transmits the request a obtained via the multiplexer 121 to the request execution unit 132.

[0110] The request execution unit 132 executes a process in response to the request a received from the arbiter 131. In this way, when the degree of flexibility of parallel process management is equal to or greater than the 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 the process in response to the request a.

[0111] 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 in response to the notification of the request execution unit 132. 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. The request management unit 141 releases the storage area A1 in the ring buffer 31 allocated to the request a.

[0112] In this way, when the degree of flexibility of parallel process management is equal to or greater than the threshold value, the request from the host 2 is processed in the original request order using the physical channel 32. Therefore, since the head request a is processed in the original request order, the delay of the response to the request a can be shortened. In the ring buffer 31, the storage area A1 allocated to the request a is released, and thus the size of the storage area regarded as being in use (i.e., the storage area from the head 31H to the last 31T) is reduced. Therefore, the use efficiency of the ring buffer 31 can be improved.

[0113] Figure 5 3 is a diagram showing an example of arbitration operation when the degree of flexibility 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 area allocated in the ring buffer 31 have been referred to. Figure 3 describe.

[0114] When the flexibility degree of parallel process management is less than the threshold, the arbitrator 131 selects one or more virtual channels 33 from the plurality of virtual channels 33 and obtains the request from the head of the selected virtual channel 33. Here, it is assumed that the third virtual channel 33-3 is selected. The arbitrator 131 obtains the request d from the head of the third virtual channel 33-3.

[0115] More specifically, the arbitrator 131 selects the third virtual channel 33-3 corresponding to the currently executable process from the plurality of virtual channels 33 based on the flexibility degree of the parallel process being less than the threshold value. The arbitrator 131 transmits information indicating the selected third virtual channel 33-3 to the multiplexer 121. The multiplexer 121 reads the request d from the head of the third virtual channel 33-3 based on the information indicating the third virtual channel 33-3. Subsequently, the multiplexer 121 transmits the read request d to the arbitrator 131.

[0116] When there are a plurality of currently executable processes, the arbiter 131 selects one virtual channel 33 in which an earlier request in the original request order is stored from the plurality of virtual channels 33 corresponding to the plurality of processes.

[0117] The arbiter 131 transmits the request d acquired via the multiplexer 121 to the request execution unit 132 .

[0118] The request execution unit 132 executes a process in response to the request d received from the arbiter 131. In this way, when the degree of flexibility 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 the process in response to the request d.

[0119] 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 according to the notification of the request execution unit 132. 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. The request management unit 141 releases the storage area A4 allocated for the request d in the ring buffer 31.

[0120] In this way, when the flexibility degree of parallel process management is less than the threshold, requests from the host 2 are processed in parallel using the virtual channel 33 according to the constraints of parallel process management. Therefore, the operating performance of all the plurality of memory chips 41 can be improved so that the constraints of parallel process management are satisfied.

[0121] The physical channel 32 and the virtual channel 33 are implemented using, for example, a linked list. Figures 6 to 16 An example in which the physical channel 32 and the virtual channel 33 are implemented using a linked list is described. Hereinafter, a case in which three requests a, b, and c are stored in the physical channel 32 and the virtual channel 33 will be exemplified. The number of virtual channels 33 provided in the memory system 3 is assumed to be four. The four virtual channels 33 are the 0th virtual channel, the 1st virtual channel 33-1, the 2nd virtual channel 33-2, and the 3rd virtual channel 33-3.

[0122] Figure 6is a diagram showing an example in which three requests a, b, and c are stored in the physical channel 32 and the virtual channel 33 .

[0123] Requests a, b and c are stored in the original request order in the physical channel 32. Requests a, b and c are stored in the 0th virtual channel, the 1st virtual channel 33-1 and the 2nd virtual channel 33-2, respectively.

[0124] In the ring buffer 31, storage areas A1, A2, and A3 corresponding to the requests a, b, and c, respectively, are allocated in order.

[0125] Figure 7 It is shown that the Figure 6 FIG. 4 is a diagram of an example of a linked list of physical channels 32 and virtual channels 33 in FIG.

[0126] The linked list of the physical channel 32 may include a head pointer 50 and one or more entries. When the physical channel 32 is available, the number of entries in the linked list of the physical channel 32 is 0. Here, the linked list of the physical channel 32 includes entries 51, 52 and 53 corresponding to requests a, b and c, respectively.

[0127] The head pointer 50 is information indicating an entry corresponding to the head request stored in the physical channel 32 (here, the entry 51 corresponding to the request a).

[0128] The entry of the physical channel 32 includes a request field and a pointer field. In the entry corresponding to a certain request of the physical channel 32, the request itself can be stored. In the pointer field, a pointer indicating an entry corresponding to a subsequent request of the request can be stored. The pointer indicating the entry is, for example, information indicating the location of a storage area allocated as an entry in the memory (for example, a storage location in the SRAM 12).

[0129] Specifically, the entry 51 corresponding to the request a includes a request field 51R and a pointer field 51P. In the request field 51R, the request a is stored. In the pointer field 51P, a pointer indicating the entry 52 corresponding to the subsequent request b is stored.

[0130] The entry 52 corresponding to the request b includes a request field 52R and a pointer field 52P. In the request field 52R, the request b is stored. In the pointer field 52P, a pointer indicating the entry 53 corresponding to the subsequent request c is stored.

[0131] The entry 53 corresponding to the request c includes a request field 53R and a pointer field 53P. In the request field 53R, the request c is stored. Since the subsequent request of the request c is not stored in the physical channel 32, the pointer field 53P becomes, for example, a null value. The pointer field 53P which is a null value indicates that the entry 53 is the termination entry of the physical channel 32. In the drawings, the null value is represented by "Φ".

[0132] The linked list of the 0th virtual channel 33-0 may include a head pointer 600 and one or more entries. When the 0th virtual channel 33-0 is available, the number of entries in the linked list of the 0th virtual channel 33-0 is 0. Here, the linked list of the 0th virtual channel 33-0 includes an entry 601 corresponding to request a.

[0133] The head pointer 600 indicates an entry corresponding to the head request stored in the 0th virtual channel 33 - 0 (here, the entry 601 corresponding to the request a).

[0134] The entry of the virtual channel 33 includes a request field and a pointer field. In the entry of the virtual channel 33 corresponding to a certain request, the request field may 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 the request field. The pointer field may store a pointer indicating an entry corresponding to a subsequent request of the request.

[0135] Specifically, the entry 601 corresponding to the request a includes a request field 601R and a pointer field 601P. In the request field 601R, a pointer indicating the entry 51 in the physical channel 32 in which the request a itself is stored 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. Since the subsequent request of the request a is not stored in the 0th virtual channel 33-0, the pointer field 601P becomes, for example, a null value. The pointer field 601P, which is a null value, indicates that the entry 601 is the termination entry of the 0th virtual channel 33-0.

[0136] The linked list of the first virtual channel 33-1 may include a head pointer 610 and one or more entries. When the first virtual channel 33-1 is available, the number of entries in the linked list of the first virtual channel 33-1 is 0. Here, the linked list of the first virtual channel 33-1 includes an entry 611 corresponding to the request b.

[0137] The head pointer 610 indicates the entry corresponding to the head request stored in the first virtual channel 33 - 1 (here, the entry 611 corresponding to the request b).

[0138] The entry 611 corresponding to the request b includes a request field 611R and a pointer field 611P. The request field 611R stores a pointer indicating the entry 52 in the physical channel 32 where the request itself is stored. Since a subsequent request of the request b is not stored in the first virtual channel 33-1, the pointer field 611P becomes, for example, a null value.

[0139] The linked list of the second virtual channel 33-2 may include a head pointer 620 and one or more entries. When the second virtual channel 33-2 is available, the number of entries in the linked list of the second virtual channel 33-2 is 0. Here, the linked list of the second virtual channel 33-2 includes an entry 621 corresponding to the request c.

[0140] The head pointer 620 indicates the entry corresponding to the head request stored in the second virtual channel 33 - 2 (here, the entry 621 corresponding to the request c).

[0141] 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 indicating the entry 53 in the physical channel 32 where the request c itself is stored. Since a subsequent request of the request c is not stored in the second virtual channel 33-2, the pointer field 621P becomes, for example, a null value.

[0142] The linked list of the third virtual channel 33-3 may include a head pointer 630 and one or more entries. When the third virtual channel 33-3 is available, the number of entries in the linked list of the third virtual channel 33-3 is 0. Here, the linked list of the third virtual channel 33-3 does not include any entry.

[0143] Since there is no request stored in the third virtual channel 33 - 3 , the head pointer 630 does not indicate any entry. For example, a null value is set in the head pointer 630 .

[0144] (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 1st virtual channel 33-1, and a 2nd virtual channel 33-2 in which requests a, b, and c are stored, respectively, can be implemented by a linked list. When the physical channel 32 and the virtual channel 33 are implemented by a linked list, the request itself can be placed in any position in the memory (e.g., SRAM 12). Therefore, even when a request obtained in the middle of the original request order and an entry corresponding to the request are deleted from the linked list, the pointer in the linked list can be corrected and the memory usage efficiency can be improved. The linked list of each channel may include a tail pointer indicating the termination of the linked list, so that the terminated 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 terminated 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.

[0145] Here, an example of an operation in which the arbiter 131 acquires a request from the linked lists of the physical channels 32 and the virtual channels 33 will be described.

[0146] For example, when obtaining a request from the head of the physical channel 32, the arbitrator 131 specifies the entry 51 of the request a using the head pointer 50 of the physical channel 32. The arbitrator 131 obtains the request a (ie, the entity of the request a) from the request field 51R of the specified entry 51.

[0147] In this way, the arbiter 131 can obtain the request a from the head entry 51 of the physical channel 32 from the association of one step based on the head pointer 50 of the physical channel 32 .

[0148] For example, when obtaining a request from the head of the 0th virtual channel 33-0, the arbitrator 131 specifies the entry 601 of the request a using the head pointer 600 of the 0th virtual channel 33-0. The arbitrator 131 obtains 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 specified entry 601. The arbitrator 131 specifies the entry 51 of the request a using the obtained pointer. The arbitrator 131 obtains the request a from the request field 51R of the specified entry 51.

[0149] For example, when acquiring a request from the head of the first virtual channel 33-1, the arbitrator 131 specifies the entry 611 of the request b using the head pointer 610 of the first virtual channel 33-1. The arbitrator 131 acquires 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 designated entry 611. The arbitrator 131 uses the acquired pointer to specify the entry 52 of the request b. The arbitrator 131 acquires the request b from the request field 52R of the designated entry 52.

[0150] For example, when acquiring a request from the head of the second virtual channel 33-2, the arbitrator 131 specifies the entry 621 of the request c using the head pointer 620 of the second virtual channel 33-2. The arbitrator 131 acquires 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 designated entry 621. The arbitrator 131 specifies the entry 53 of the request c using the acquired pointer. The arbitrator 131 acquires the request c from the request field 53R of the designated entry 53.

[0151] The arbiter 131 does not perform an operation of acquiring a request from, for example, the third virtual channel 33 - 3 because the head pointer 630 of the third virtual channel 33 - 3 does not indicate any entry.

[0152] In this way, the arbitrator 131 can specify the head entry (i.e., the head entry of the virtual channel 33) based on the head pointer of the virtual channel 33, and can obtain the entity of the request from the entry of the physical channel 32 indicated by the pointer stored in the request field of the head entry. That is, when obtaining the request from the virtual channel 33, the request can be obtained from the head of the virtual channel 33 through the two-step association of the head pointer of the virtual channel 33 and the pointer stored in the request field of the head entry of the virtual channel 33.

[0153] Next, we will refer to Figure 8 and 9 Describes the enqueue operation implemented using a linked list.

[0154] Figure 8 2 is a diagram showing an example of a queue operation. Here, the example is to add a request d obtained from the submission queue 221 of the host 2 to the queue. Figure 6 1 and 2. The enqueue operation of the physical channel 32 and the virtual channel 33 is shown in FIG. 4. The memory chip 41 to which the request d is targeted is assumed to correspond to the process associated with the first virtual channel 33-1.

[0155] The enqueue operation of adding request d includes an operation of adding request d to the physical channel 32 and an operation of 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). Request d is added to the end of the requests stored in the first virtual channel 33-1 (here, after request b).

[0156] In the ring buffer 31, the storage area A4 corresponding to the request d is newly allocated.

[0157] Fig. 9 It is shown that the implementation Figure 8 FIG. 3 is a diagram of a linked list of physical channels 32 and virtual channels 33 in FIG.

[0158] In the enqueue operation, the request management unit 141 appends the entry 54 of request d to the end of the linked list of the physical channel 32 ( Fig. 9 , and appends entry 612 of request d to the end of the linked list of the first virtual channel 33-1 ( Fig. 9 (2) in the figure.

[0159] Specifically, the request management unit 141 allocates a storage area on the SRAM 12 as an entry 54 corresponding to request d of the physical channel 32. The request management unit 141 stores request d in the request field 54R of the entry 54. The request management unit 141 stores a pointer indicating the entry 54 of request d in the pointer field 53P of the entry 53 of request c to change the terminating entry of the physical channel 32 from the entry 53 corresponding to request c immediately before request d to the entry 54 of request d. The pointer field 54P of the entry 54 of request d is a null value.

[0160] Subsequently, the request management unit 141 specifies the first virtual channel 33-1 to which request d is assigned. For example, the request management unit 141 specifies a process corresponding to request d (more specifically, the memory chip 41 in which request d is a target) 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 corresponding to request d of the first virtual channel 33-1. The request management unit 141 stores a pointer indicating the entry 54 of the physical channel 32 in which request d itself is stored in the request field 612R of the entry 612. The request management unit 141 stores a pointer indicating the entry 612 of request d in the pointer field 611P of the entry 611 of request b to change the terminating entry of the first virtual channel 33-1 from the entry 611 corresponding to request b immediately before request d to the entry 612 of request d. The pointer field 612P of the entry 612 of request d is a null value.

[0161] In this manner, the request management unit 141 may implement an enqueue operation of adding a request to each of the physical channel 32 and the virtual channel 33 through an operation of appending an entry to each of the linked list of the physical channel 32 and the linked list of the virtual channel 33 .

[0162] Next, we will refer to Figures 10 to 13 Describes the dequeue operation implemented using a linked list.

[0163] Fig.10 is a diagram showing a first example of a dequeue operation. Figure 8 , after the enqueue operation shown in , a dequeue operation of deleting the request b from the physical channel 32 and the virtual channel 33. For example, when the degree of flexibility of parallel process management is less than a threshold value, the dequeue operation is performed after the arbiter 131 selects the first virtual channel 33-1 and obtains the request b from the head of the first virtual channel 33-1 and the request execution unit 132 executes a process in response to the request b. When the degree of flexibility of parallel process management is less than a threshold value, the operation performance of all the plurality of memory chips 41 is optimized by an out-of-order process in which processes are executed in parallel in response to requests.

[0164] The dequeue operation of deleting request b includes an operation of deleting request b from the first virtual channel 33-1 and an operation of deleting request b from the physical channel 32. Request b is deleted from the head of the first virtual channel 33-1. Request b is deleted between requests a and c in the physical channel 32.

[0165] In the ring buffer 31, the storage area A2 corresponding to the request b is released.

[0166] Fig.11 It is shown that the Fig.10 FIG. 4 is a diagram of an example of a linked list of physical channels 32 and virtual channels 33 in FIG.

[0167] In the first instance of the dequeue operation, the request management unit 141 deletes the entry 611 of request b from the linked list of the first virtual channel 33-1 ( Fig.11 (1) in ), and delete entry 52 of request b from the linked list of physical channel 32 ( Fig.11 (2) in the figure.

[0168] Specifically, the request management unit 141 changes the head pointer 610 of the entry 611 indicating the request b of the first virtual channel 33-1 so that the head pointer 610 indicates the entry 612 of the request d subsequent to the entry 611 of the request b. Therefore, the entry 611 of the request b is deleted from the linked list of the first virtual channel 33-1.

[0169] The request management unit 141 specifies the storage location of the entry 52 of the request b in the physical channel 32 using the entry 611 of the request b in the first virtual channel 33-1. Fig. 9 As shown in FIG. 6 , in the request field 611R of the entry 611, a pointer indicating the entry 52 in the physical channel 32 in which the request b itself is stored is stored. Therefore, the request management unit 141 specifies the storage location of the entry 52 of the request b in the physical channel 32 using the pointer stored in the request field 611R. The request management unit 141 specifies that the pointer indicating the entry 52 specifying the request b is stored in the pointer field 51P of the entry 51 of the request a in the physical channel 32. The request management unit 141 changes the pointer stored in the pointer field 51P to a pointer indicating the entry 53 of the subsequent request c of the entry 52 of the request b. Therefore, the entry 52 of the request b is deleted from the linked list of the physical channel 32. For example, when the physical channel is implemented as a bidirectional list, a shortened and Fig.11 The time advantage associated with the physical channel deletion operation.

[0170] In this way, by deleting the entry 611 of request b from the linked list of the first virtual channel 33 - 1 and the entry 52 of request b from the linked list of the physical channel 32 , the request management unit 141 implements a dequeue operation of deleting request b from the first virtual channel 33 - 1 and deleting request b from the physical channel 32 .

[0171] Fig.12 is a diagram showing a second example of a dequeue operation. Fig.10 After the dequeue operation shown in , the dequeue operation of request a is further deleted from the physical channel 32 and the virtual channel 33. When the degree of flexibility of parallel process management is equal to or greater than the threshold, the dequeue operation is performed after the arbiter 131 obtains request a from the head of the physical channel 32 and the request execution unit 132 executes a process in response to request a. When the degree of flexibility of parallel process management is equal to or greater than the threshold, the latency of the response to the request and the release of resources are optimized by the ordered process of the requests following the original request order.

[0172] The dequeue operation of deleting request a includes an operation of deleting request a from the physical channel 32 and an operation of deleting request a from the 0th virtual channel 33 - 0 . Request a is deleted from the head of the 0th virtual channel 33 - 0 . Request a is deleted from the head of the physical channel 32 .

[0173] In the ring buffer 31, the storage area A1 corresponding to the request a is released.

[0174] Fig.13 It is shown that the Fig.12 FIG. 3 is a diagram of a linked list of physical channels 32 and virtual channels 33 in FIG.

[0175] In the second example of the dequeue operation, the request management unit 141 deletes the entry 51 of request a from the linked list of the physical channel 32 ( Fig.13 , and deletes entry 601 of request a from the linked list of virtual channel 33-0 ( Fig.13 (2) in the figure.

[0176] Specifically, the request management unit 141 changes the head pointer 50 of the entry 51 indicating the request a of the physical channel 32 to indicate the entry 53 of the request c subsequent to the entry 51 of the request a. Therefore, the entry 51 of the request a is deleted from the linked list of the physical channel 32.

[0177] Subsequently, the request management unit 141 specifies the 0th virtual channel 33-0 to which the request is assigned based on the process corresponding to request a. It is guaranteed that request a stored in the header of the physical channel 32 is stored in the header in the 0th virtual channel 33-0. Therefore, the request management unit 141 specifies the entry 601 of request a in the header of the 0th virtual channel 33-0 using the head pointer 600 of the 0th virtual channel 33-0. Since there is no entry after the entry 601 of request a is specified, the request management unit 141 changes the head pointer 600 so that the head pointer 600 of the 0th virtual channel 33-0 does not indicate any entry. For example, the request management unit 141 sets the head pointer 600 of the 0th virtual channel 33-0 to a null value. Therefore, the entry 601 of request a is deleted from the linked list of the 0th virtual channel 33-0.

[0178] In this way, by deleting entry 51 of request a from the linked list of the physical channel 32 and entry 601 of request a from the linked list of the 0th virtual channel 33-0, the request management unit 141 can implement a dequeue operation of deleting request a from the physical channel 32 and deleting request a from the 0th virtual channel 33-0.

[0179] Next, the operation from arbitration to dequeue when the degree of flexibility of parallel process management is less than a threshold value and there are a plurality of executable processes (hereinafter referred to as arbitration-dequeue operation) will be described. When the degree of flexibility of parallel process management is less than a threshold value and there are a plurality of executable processes, the arbitrator 131 obtains, for example, an earlier request in the original request order among the requests stored in the plurality of virtual channels 33 respectively corresponding to the plurality of processes. This is implemented, for example, by causing the arbitrator 131 to search the physical channels 32 from the head in order and search for requests corresponding to executable processes.

[0180] Fig.14 3 is a diagram showing an example of arbitration-dequeue operation. Here, it is assumed that when the flexibility degree of parallel process management is less than a threshold value and the processes corresponding to the odd-numbered virtual channels 33 (i.e., the first virtual channel 33-1 and the third virtual channel 33-3) are executable, Figure 8 Requests are then obtained from the physical channel 32 and the virtual channel 33 after the enqueue operation shown in FIG. The process corresponding to the even virtual channel 33 (ie, the 0th virtual channel 33-0 and the 2nd virtual channel 33-2) is not executable. The process corresponding to the odd virtual channel 33 is also referred to as an odd process.

[0181] First, the arbiter 131 searches the physical channel 32 from the head and specifies the first request corresponding to the odd-numbered process. Fig.14In the example illustrated in FIG. 1 , the arbitrator 131 specifies the request b corresponding to the first process in the physical channel 32. The arbitrator 131 obtains the specified request b from the physical channel 32 and transmits the request b to the request execution unit 132. The request b is stored in the header of the first virtual channel 33-1 corresponding to the first process. That is, it is guaranteed that the first request b searched from the header of the physical channel 32 and specified in order is stored in the header corresponding to the first virtual channel 33-1. Therefore, the fact that the arbitrator 131 searches the physical channel 32 from the header and obtains the first request corresponding to the odd-numbered executable process corresponds to the fact that the request is obtained from the header of any virtual channel 33 corresponding to the executable process in consideration of the original request order.

[0182] The request execution unit 132 executes a process in response to the request b received from the arbitrator 131. For example, the request execution unit 132 notifies the request management unit 141 of the completion of the process in response to the request b.

[0183] 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 response to the notification of the request execution unit 132. The request management unit 141 releases the storage area A2 corresponding to the request b in the ring buffer 31 according to the completion of the process in response to the request b.

[0184] In this way, the arbiter 131 can search the physical channel 32 from the head and obtain the first request corresponding to the executable process. That is, when the degree of flexibility of parallel process management is less than the threshold value and there are the plurality of executable processes corresponding to the odd-numbered virtual channels 33, the arbiter 131 can obtain an earlier request in the original request order among the requests stored in the plurality of virtual channels 33 corresponding to the plurality of processes. Therefore, even when the degree of flexibility of parallel process management is less than the threshold value, the process responding to the earlier request in the original request order is preferably executed. Therefore, the use efficiency of resources (e.g., the ring buffer 31) in which an ordered process is assumed can be improved.

[0185] Fig.15 It is shown that the Fig.14 FIG. 4 is a diagram of an example of a linked list of physical channels 32 and virtual channels 33 in FIG.

[0186] In the arbitration-dequeue operation, the arbiter 131 first searches for entries 51, 52, 53, and 54 in order from the head based on the head pointer 50 of the linked list of the physical channel 32, and specifies the request b virtually stored in the first virtual channel 33-1 (i.e., the first request b corresponding to the executable process) from the entry 52 ( Fig.15 (1) in FIG. 1 ). The arbiter 131 obtains the designated request b from the entry 52 of the physical channel 32 and transmits the request b to the request execution unit 132 .

[0187] Subsequently, the request management unit 141 deletes the request b from both the physical channel 32 and the first virtual channel 33 - 1 .

[0188] Fig.16 Showing that from Fig.15 2 is an example of a linked list deletion request b for a physical channel 32 and a virtual channel 33 shown in FIG.

[0189] The request management unit 141 deletes the entry 52 of request b from the linked list of the physical channel 32 ( Fig.16 , and deletes the entry 611 of request b from the linked list of the first virtual channel 33-1 ( Fig.16 (2) in the figure.

[0190] Specifically, the request management unit 141 changes the pointer indicating the entry 52 of request b in the pointer field 51P of request a so that the pointer indicates the entry 53 of request c subsequent to the entry 52 of request b. Thus, the entry 52 of request b is deleted from the linked list of the physical channel 32.

[0191] Subsequently, the request management unit 141 specifies the first virtual channel 33-1 to which the request b is assigned based on the first process corresponding to the request b. It is ensured that the request b searched in order from the head of the physical channel 32 is stored in the head in the first virtual channel 33-1. Therefore, the request management unit 141 specifies the entry 611 of the request b in the head of the first virtual channel 33-1 using the head pointer 610 of the first virtual channel 33-1. The request management unit 141 changes the head pointer 610 of the first virtual channel 33-1 so that the head pointer 610 indicates the entry 612 of the subsequent request d that specifies the entry 611 of the request b. Therefore, the entry 611 of the request b is deleted from the linked list of the first virtual channel 33-1.

[0192] In this way, the request management unit 141 implements a 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 of request b from the linked list of the physical channel 32 and entry 611 of request b from the linked list of the first virtual channel 33-1.

[0193] As described above, according to the embodiment, the efficiency of the process can be improved.

[0194] The plurality of memory chips 41 are capable of operating in parallel. The SRAM 12 includes a physical channel 32 capable of storing requests issued from the host 2 in a storage order and the plurality of virtual channels 33 capable of storing requests issued from the host 2 in a storage order. The request management unit 141 stores one or more requests issued from the host 2 in the physical channel 32 in the order of acquisition from the host 2. The request management unit 141 stores each of the one or more requests in one of the plurality of virtual channels 33. Each of the plurality of virtual channels 33 corresponds to one of a plurality of processes executed on the plurality of memory chips 41 in response to the one or more requests.

[0195] When the degree of flexibility of parallel process management is equal to or greater than a threshold value, the arbitrator 131 and the request execution unit 132 execute a process using the physical channel 32. More specifically, for example, the arbitrator 131 obtains a first request among the one or more requests stored in the header of the physical channel 32. The request execution unit 132 executes a process in response to the first request. Subsequently, 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 multiple virtual channels 33. Therefore, according to the ordered process of the requests following the original request order, the delay of the response to the request can be shortened and the use efficiency of the resources can be improved.

[0196] When the degree of flexibility of parallel process management is less than a threshold value, the arbiter 131 and the request execution unit 132 execute a process using the plurality of virtual channels 33. More specifically, the arbiter 131 acquires a second request among the one or more requests stored in a header of a second virtual channel 33 among the plurality of virtual channels 33. The request execution unit 132 executes a process in response to the second request. Subsequently, 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. Therefore, the operation performance of all the plurality of memory chips 41 can be improved.

[0197] Therefore, in the memory system 3, by selectively using the physical channels 32 and the virtual channels 33 according to the degree of flexibility in parallel process management, the efficiency of the processes in the memory system 3 can be improved.

[0198] Each of the various functions described in the embodiments may be implemented by a circuit (processing circuit). Examples of processing circuits include programmed processors, such as central processing units (CPUs). The processor performs each of the described functions by executing a computer program (command group) stored in a memory. The processor may be a microprocessor including a circuit. Examples of processing circuits include digital signal processors (DSPs), application specific integrated circuits (ASICs), microcontrollers, controllers, and other circuit components. Each of the other components except the CPU described in the embodiments may also be implemented by a processing circuit.

[0199] Although certain embodiments have been described, these embodiments are presented only as examples, and are not intended to limit the scope of the present disclosure. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions, and changes in the form of the embodiments described herein may be made without departing from the spirit of the present disclosure. The appended claims and their equivalents are intended to cover such forms or modifications as would be within the scope and spirit of the present disclosure.

[0200] 1: Information Processing System

[0201] 2: Host device

[0202] 3: Memory system

[0203] 4: Non-volatile memory

[0204] 5: Controller

[0205] 11: Host interface (Host I / F)

[0206] 12: SRAM

[0207] 13: Memory Controller

[0208] 14: CPU

[0209] 21: CPU

[0210] 22: Random Access Memory (RAM)

[0211] 31: Ring buffer

[0212] 32: Physical channel

[0213] 33: Virtual Channel

[0214] 41: Memory chips

[0215] 131: Arbitrator

[0216] 132: Request execution unit

[0217] 141: Request Management Unit

[0218] 221: Submit queue.

Claims

1. A memory system, wherein include: multiple memory chips that can operate in parallel; a random access memory including a physical channel area in which requests issued from a host are stored, and a plurality of virtual channel areas, each of the plurality of virtual channel areas corresponding to one of a plurality of processes executed on the plurality of memory chips according to the one or more requests; as well as a controller configured to store the requests issued from the host in the physical channel area in the order of acquisition from the host, and to store an entry for each of the requests in one of the plurality of virtual channel areas, wherein When the degree of required parallelism of the plurality of processes is less than a predetermined threshold, the controller selects a next request to be executed using the physical channel area, and When the required degree of parallelism is greater than or equal to the predetermined threshold, the controller selects the next request to be executed using one of the plurality of virtual channel areas.

2. The memory system according to claim 1, wherein When the degree of the required parallelism of the multiple processes is less than the predetermined threshold, the controller selects a first request among the one or more requests stored in the header of the physical channel area and executes a process according to the first request, and immediately deletes the first request stored in the physical channel area after completion of the process and deletes the entry corresponding to the first request stored in one of the multiple virtual channel areas.

3. The memory system according to claim 1, wherein When the required degree of parallelism is greater than or equal to the predetermined threshold, the controller accesses a first entry among the one or more entries stored in one of the multiple virtual channel areas and executes a process according to a second request corresponding to the first entry stored in the physical channel area, and deletes the first entry stored in the one of the multiple virtual channel areas and deletes the second request stored in the physical channel area upon completion of the process. 4 . The memory system of claim 3 , wherein the first entry includes a pointer referencing a second entry stored in the physical channel area. 5 . The memory system of claim 1 , wherein the plurality of entries stored in any one of the plurality of virtual channel areas are stored in an order of acquisition of corresponding requests from the host.

6. The memory system of claim 1, wherein the degree of required parallelism decreases as the number of parallel processes that can be executed on the memory chip increases, and increases as the number of parallel processes that can be executed on the memory chip decreases.

7. A memory system, wherein include: multiple memory chips that can operate in parallel; a random access memory including a physical channel area in which requests issued from a host are stored, and a plurality of virtual channel areas, each of the plurality of virtual channel areas corresponding to one of a plurality of processes executed on the plurality of memory chips according to the one or more requests; as well as a controller configured to store the requests issued from the host in the physical channel area in the order of acquisition from the host, and to store an entry for each of the requests in one of the plurality of virtual channel areas, wherein When the degree of required parallelism of the plurality of processes is less than a predetermined threshold, the controller selects a first request among the one or more requests stored at the head of the physical channel area and executes a first process according to the first request, and upon completion of the first process, deletes the first request stored in the physical channel area and deletes an entry stored in one of the plurality of virtual channel areas, and When the degree of required parallelism is greater than or equal to the predetermined threshold, the controller accesses a first entry stored at a head of one of the multiple virtual channel areas and performs a second process according to a second request corresponding to the first entry stored in the physical channel area, and deletes the first entry stored in the one of the multiple virtual channel areas and the second request stored in the physical channel area upon completion of the second process. 8 . The memory system of claim 7 , wherein each of the entries stored in the plurality of virtual channel areas includes a pointer that references a corresponding entry stored in the physical channel area.

9. The memory system of claim 8, wherein when the degree of the required parallelism is greater than or equal to the predetermined threshold, the first entry is accessed from a head of one of the plurality of virtual channel areas corresponding to one of the plurality of processes that can be executed.

10. The memory system of claim 9, wherein the first entry references a request in the physical channel area that is closest to a head of the physical channel area compared to all other requests in the physical channel area referenced by entries in other virtual channel areas corresponding to the processes that can be executed.

11. The memory system of claim 8, wherein When obtaining a third request from the host, the controller stores the third request at the end of the physical channel area, determines a process corresponding to the third request, and stores an entry corresponding to the third request at the end of a virtual channel area among the multiple virtual channel areas corresponding to the determined process.

12. The memory system of claim 7, wherein the degree of desired parallelism decreases as the number of parallel processes executed on the memory chip increases, and increases as the number of parallel processes executed on the memory chip decreases.

13. A method for executing a process in a memory system that communicates with a host according to a request from the host, wherein the memory system comprises: a plurality of memory chips that can operate in parallel; a random access memory that comprises a physical channel area in which requests issued from the host are stored, and a plurality of virtual channel areas, each of the plurality of virtual channel areas corresponding to one of a plurality of processes executed on the plurality of memory chips according to one or more requests. ; and a controller configured to store the requests issued from the host in the physical channel area in the order of acquisition from the host, and to store an entry for each of the requests in one of the plurality of virtual channel areas, the method comprising: determining a desired degree of parallelism for the plurality of processes; In response to determining that the required degree of parallelism is less than a predetermined threshold, selecting a next request to be executed using the physical channel region; and In response to determining that the desired degree of parallelism is greater than or equal to the predetermined threshold, selecting the next request to be executed using one of the plurality of virtual channel zones.

14. The method according to claim 13, further comprising: include: In response to determining that the degree of required parallelism of the multiple processes is less than the predetermined threshold, a first request among the one or more requests stored in the header of the physical channel area is selected and a process is performed according to the first request, and upon completion of the process, the first request stored in the physical channel area is deleted and an entry corresponding to the first request stored in one of the multiple virtual channel areas is deleted.

15. The method according to claim 13, wherein In response to determining that the degree of required parallelism is greater than or equal to the predetermined threshold, a first entry among the one or more entries stored in one of the multiple virtual channel areas is accessed and a process is performed according to a second request corresponding to the first entry stored in the physical channel area, and upon completion of the process, the first entry stored in the one of the multiple virtual channel areas is deleted and the second request stored in the physical channel area is deleted.

16. The method of claim 15, wherein the first entry includes a pointer referencing a second entry stored in the physical channel area.

17. The method of claim 13, wherein the plurality of entries stored in any one of the plurality of virtual channel areas are stored in an order of acquisition of corresponding requests from the host.

18. The method of claim 13, wherein the degree of desired parallelism decreases as the number of parallel processes executed on the memory chip increases and increases as the number of parallel processes executed on the memory chip decreases.