Memory system
By managing busy states of non-volatile memory chips, the memory system optimizes resource allocation, preventing waste and enhancing processing efficiency by prioritizing requests to idle chips.
Patent Information
- Application Number
- JP2023033708
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-19
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In memory systems with non-volatile memory, when a large number of requests specify a single non-volatile memory chip, resources are wasted, leading to decreased processing efficiency due to a lack of immediate processing capabilities.
A memory system with a controller that manages the busy states of multiple non-volatile memory chips, prioritizing requests to chips that are not busy, thereby avoiding resource wastage and improving processing efficiency.
The solution effectively manages resource allocation by ensuring requests are processed on idle memory chips, enhancing throughput and reducing waste, thus improving overall processing efficiency.
Smart Images

Figure 2024125708000001
Abstract
Description
[Technical field]
[0001] SUMMARY OF THE DISCLOSURE The present invention relates to a technique for controlling a non-volatile memory. [Background technology]
[0002] In recent years, memory systems equipped with non-volatile memories have become widespread. One such memory system is a solid-state drive (SSD) equipped with a NAND flash memory. SSDs are used as the main storage of various computing devices.
[0003] The non-volatile memory is composed of, for example, one or more non-volatile memory chips (non-volatile memory dies). The memory system performs processing on the non-volatile memory chips in response to a request received from the host.
[0004] More specifically, the host is provided with, for example, a submission queue (SQ), which is capable of storing one or more requests to be executed in the memory system.
[0005] The memory system receives a request from the host by retrieving the request from the submission queue, and performs processing according to the received request. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] U.S. Patent No. 10642500 [Patent Document 2] US Patent Application Publication No. 2022 / 0206871 [Patent Document 3] US Patent Application Publication No. 2022 / 0197563 Summary of the Invention [Problem to be solved by the invention]
[0007] The host may specify the target non-volatile memory chip for each request.
[0008] In this case, if the memory system receives a large number of requests from the host specifying a single non-volatile memory chip, the memory system's resources will be wasted for requests for which corresponding processing cannot be started immediately, and the memory system may experience a decrease in processing efficiency (throughput) due to a lack of resources.
[0009] One embodiment provides a memory system that can improve processing efficiency. [Means for solving the problem]
[0010] According to an embodiment, a memory system includes a plurality of non-volatile memory chips and a controller. The controller manages whether each of the plurality of non-volatile memory chips is in a busy state. When one or more requests issued by a host are stored in at least one queue, the controller identifies a first request for a first non-volatile memory chip that is not in a busy state among the plurality of non-volatile memory chips from the one or more requests, and executes processing according to the identified first request. [Brief description of the drawings]
[0011] [Figure 1] 1 is a block diagram showing an example of the configuration of an information processing system including a memory system according to a first embodiment. [Diagram 2] 11 is a diagram showing an example in which resources become insufficient due to a write request from a host in a memory system according to a comparative example. [Diagram 3] 4 is a diagram showing an example of the configuration of a memory chip management table used in the memory system according to the first embodiment. [Figure 4] 4 is a diagram showing an example of the configuration of a command management table used in the memory system according to the first embodiment. [Diagram 5] 4 is a diagram showing an example of user data stored in a write buffer in the memory system according to the first embodiment. [Figure 6] 4A and 4B are diagrams showing examples of command execution operations and busy state management operations in the memory system according to the first embodiment. [Figure 7] 4 is a diagram showing an example of a command fetched from a submission queue by a fetch control operation in the memory system according to the first embodiment. FIG. [Figure 8] 4 is a diagram showing an example of an SQ bitmap used in the memory system according to the first embodiment. [Figure 9] FIG. 4 is a diagram showing a first example of a fetch control operation in the memory system according to the first embodiment. [Figure 10] FIG. 11 is a diagram showing a second example of a fetch control operation in the memory system according to the first embodiment. [Figure 11] FIG. 11 is a diagram showing a third example of a fetch control operation in the memory system according to the first embodiment. [Figure 12] FIG. 11 is a diagram showing a fourth example of a fetch control operation in the memory system according to the first embodiment. [Figure 13] 11 is a diagram showing an example of a command management table to which a write command has been added in the memory system according to the first embodiment. [Figure 14] 10 is a flowchart showing an example of a procedure of a first fetch control process executed in the memory system according to the first embodiment. [Figure 15] 11 is a diagram showing another example of a command fetched from a submission queue by a fetch control operation in the memory system according to the first embodiment. FIG. [Figure 16] FIG. 11 is a diagram showing a fifth example of a fetch control operation in the memory system according to the first embodiment. [Figure 17] FIG. 11 is a diagram showing a sixth example of a fetch control operation in the memory system according to the first embodiment. [Figure 18]13 is a diagram showing another example of the command management table to which a write command has been added in the memory system according to the first embodiment. [Figure 19] 10 is a flowchart showing an example of a procedure of a second fetch control process executed in the memory system according to the first embodiment. [Figure 20] 13 is a diagram showing an example of a command fetched from a submission queue by a fetch control operation in the memory system according to the second embodiment. [Figure 21] FIG. 11 is a diagram showing an example of a fetch control operation in the memory system according to the second embodiment. [Figure 22] 13 is a diagram showing an example of a command management table to which a write command has been added in the memory system according to the second embodiment. [Figure 23] 13A and 13B are diagrams showing examples of command execution operations and busy state management operations in a memory system according to a second embodiment. [Figure 24] 10 is a flowchart showing an example of a procedure of a third fetch control process executed in the memory system according to the second embodiment. [Diagram 25] 10 is a flowchart showing an example of a procedure of a command execution control process executed in a memory system according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, an embodiment will be described with reference to the drawings.
[0013] (First embodiment) First, the configuration of an information processing system 1 including a memory system according to a first embodiment will be described with reference to Fig. 1. The information processing system 1 includes a host device 2 and a memory system 3.
[0014] The host device 2 may be a storage server that stores a large amount of diverse data in the memory system 3, or may be a personal computer. Hereinafter, the host device 2 will also be referred to as a host 2.
[0015] The memory system 3 is a storage device configured to write data to a non-volatile memory and read data from the non-volatile memory. The non-volatile memory is, for example, a NAND flash memory. The memory system 3 is also called a storage device or a semiconductor storage device. The memory system 3 is realized, for example, as a solid-state drive (SSD) equipped with a NAND flash memory.
[0016] The memory system 3 can be used as storage for the host 2. The memory system 3 may be built into the host 2, or may be connected to the host 2 via a cable or a network.
[0017] The interface for connecting the host 2 and the memory system 3 is PCI Express. TM (PCIe TM ), Ethernet TM , Fiber channel, NVM Express TM (NVMe TM ) and other standards.
[0018] The host 2 includes, for example, a CPU 21 and a random access memory (RAM) 22. The CPU 21 and the RAM 22 are connected via a bus 20, for example.
[0019] The CPU 21 is, for example, at least one processor. The CPU 21 controls the operation of various components within the host 2.
[0020] The RAM 22 is a volatile memory. The RAM 22 is realized, for example, as a dynamic random access memory (DRAM) or a static random access memory (SRAM). The storage areas of the RAM 22 are allocated, for example, as a data buffer 221 and one or more submission queues 222.
[0021] The data buffer 221 temporarily stores data to be sent to the memory system 3 together with a request issued by the host 2 (more specifically, the CPU 21) to the memory system 3. For example, when a write request is issued, the data buffer 221 temporarily stores data to be written to the non-volatile memory of the memory system 3 in response to the write request. The request is, for example, a command. Hereinafter, the request is also referred to as a command.
[0022] Each of the one or more submission queues 222 is a queue for storing commands issued by the host 2 to the memory system 3. That is, the host 2 transmits commands to the memory system 3 via the submission queue 222. Each submission queue 222 includes a number of slots into which the host 2 writes commands to be issued to the memory system 3. The position (i.e., slot) in the submission queue 222 into which the host 2 should write the command is indicated by an SQ tail pointer. The leading position in the submission queue 222 of the command to be fetched by the memory system 3 is indicated by an SQ head pointer.
[0023] The host 2 writes a command (i.e., issues a command) to the position indicated by the SQ tail pointer in the submission queue 222. Then, the host 2 adds 1 to the SQ tail pointer. Note that if the value obtained by adding 1 to the SQ tail pointer reaches the number of slots in the submission queue 222 (i.e., the queue size), the host 2 sets the SQ tail pointer to 0. Then, the host 2 writes the value of the updated SQ tail pointer to the SQ tail doorbell register in the memory system 3.
[0024] 1, three commands are stored in the submission queue 222. The number of commands stored in the submission queue 222 corresponds to the difference between the SQ head pointer and the SQ tail pointer.
[0025] The memory system 3 includes, for example, a non-volatile memory 4, a DRAM 5, and a controller 6.
[0026] The nonvolatile memory 4 includes one or more nonvolatile memory chips 41. The one or more nonvolatile memory chips 41 are, for example, N nonvolatile memory chips 41-1, ..., and 41-N. N is an integer equal to or greater than 1. In the following, a case where the nonvolatile memory 4 includes N nonvolatile memory chips 41-1, ..., and 41-N will be mainly illustrated. An unspecified one of the N nonvolatile memory chips 41-1, ..., and 41-N will also be referred to as a nonvolatile memory chip 41. In addition, the k-th nonvolatile memory chip of the N nonvolatile memory chips 41-1, ..., and 41-N will be referred to as the k-th nonvolatile memory chip 41-k.
[0027] The non-volatile memory chip 41 includes a memory cell array 31 and a page buffer 32 .
[0028] The memory cell array 31 includes a plurality of blocks, each including a plurality of memory cells arranged in a matrix. One block functions as the smallest unit of a data erase operation. A block may also be referred to as an "erase block" or a "physical block." Each of the multiple blocks includes a plurality of pages. Each of the multiple pages includes a plurality of memory cells connected to a single word line. One page functions as a unit of a data write operation and a data read operation. Note that a word line may function as a unit of a data write operation and a data read operation.
[0029] The page buffer 32 is configured by, for example, an SRAM. In the page buffer 32, data transferred between the controller 6 and the non-volatile memory chip 41 is temporarily stored.
[0030] During a data write operation, data received from the controller 6 is temporarily stored in the page buffer 32 and then programmed in the memory cell array 31. Hereinafter, the operation of temporarily storing data received from the controller 6 in the page buffer 32 is referred to as a data-in operation. Also, the operation of programming the data temporarily stored in the page buffer 32 in the memory cell array 31 is referred to as a program operation.
[0031] There is an upper limit to the number of program / erase cycles (P / E cycles) for each block, called the maximum number of P / E cycles. One P / E cycle for a block includes a data erase operation to put all memory cells in the block into an erased state, and a program operation to write data to each page of the block.
[0032] The DRAM 5 is a volatile memory. The DRAM 5 is provided with, for example, a storage area for firmware (FW), a storage area for a memory chip management table 51 and a command management table 52, and a buffer area for temporarily storing data. The buffer area is, for example, a write buffer 53 for temporarily storing user data to be written to the non-volatile memory 4.
[0033] The FW is a program for controlling the operation of the controller 6. The FW is loaded from the non-volatile memory 4 to the DRAM 5, for example.
[0034] The memory chip management table 51 is a table for managing the operating state of each of the N nonvolatile memory chips 41. A specific configuration example of the memory chip management table 51 will be described later with reference to FIG.
[0035] The command management table 52 is a table for managing commands fetched from the submission queue 222 of the host 2. A specific configuration example of the command management table 52 will be described later with reference to FIG.
[0036] The controller 6 may be realized by a circuit such as a system-on-a-chip (SoC). The controller 6 is configured to control the non-volatile memory 4. The functions of each unit in the controller 6 may be realized by dedicated hardware in the controller 6, or may be realized by a processor that executes the FW.
[0037] The controller 6 may function as a flash translation layer (FTL) configured to perform data management and block management of the non-volatile memory 4. The data management performed by the FTL includes (1) management of mapping information indicating the correspondence between each logical address and each physical address of the non-volatile memory 4, and (2) processing for concealing the difference between page-based data read / write operations and block-based data erase operations. The block management includes bad block management, wear leveling, and garbage collection.
[0038] The logical address is used by the host 2 to address a storage area of the memory system 3. The logical address is, for example, a logical block address (LBA).
[0039] The management of the mapping between each logical address and each physical address is performed, for example, by using a logical-physical address conversion table. The controller 6 uses the logical-physical address conversion table to manage the mapping between each logical address and each physical address in a specific management size unit. A physical address corresponding to a certain logical address indicates a physical storage location in the non-volatile memory 4 to which data of this logical address is written. The controller 6 uses the logical-physical address conversion table to manage a plurality of storage areas obtained by logically dividing the storage area of the non-volatile memory 4. These multiple storage areas correspond to a plurality of logical addresses, respectively. That is, each of these multiple storage areas is specified by one logical address. The logical-physical address conversion table may be loaded from the non-volatile memory 4 to the DRAM 5 when the memory system 3 is started up.
[0040] Data can be written to one page only once per P / E cycle. Therefore, the controller 6 writes updated data corresponding to a certain logical address to a different physical storage location, not to the physical storage location where the previous data corresponding to this logical address is stored. The controller 6 then invalidates the previous data by updating the logical-physical address conversion table so as to associate this logical address with this different physical storage location. Data referenced by the logical-physical address conversion table (i.e., data associated with a logical address) is called valid data. Data not associated with any logical address is called invalid data. Valid data is data that may be read by the host 2 later. Invalid data is data that may no longer be read by the host 2.
[0041] The controller 6 includes, for example, a DRAM interface (DRAM I / F) 11 and a memory controller 12. The DRAM I / F 11 and the memory controller 12 are connected, for example, via a bus 10. The controller 6 may further include an SRAM 13. In that case, the memory area of the SRAM 13 may be allocated as at least one of a storage area for a memory chip management table 51, a storage area for a command management table 52, and a write buffer 53.
[0042] The DRAM I / F 11 functions as a DRAM control circuit configured to control access to the DRAM 5 .
[0043] The memory controller 12 is configured to control various processes for the nonvolatile memory 4. The memory controller 12 includes a front-end unit 121 and a back-end unit 122.
[0044] The front-end unit 121 controls communication between the host 2 and the memory system 3. For example, commands and data are transmitted from the host 2 to the memory system 3 through the communication.
[0045] Specifically, the front-end unit 121 performs a fetch control operation. The fetch control operation is an operation of identifying a command to be fetched from the submission queue 222 of the host 2 and fetching the identified command. The command to be fetched is, for example, an input / output (I / O) command and various control commands. The I / O command may include a write command and a read command. The control command may include an unmap command (trim command) and a format command.
[0046] The command may specify the target nonvolatile memory chip 41. Specifically, the command may include, for example, identification information (chip ID) assigned to the target nonvolatile memory chip 41. Alternatively, the command may include identification information assigned to the target superblock. A superblock is composed of multiple physical blocks included in one or more nonvolatile memory chips 41. Therefore, the command may indirectly specify the nonvolatile memory chip 41 by including the identification information assigned to the target superblock.
[0047] In the fetch control operation, the front-end unit 121 identifies a command to be fetched based on, for example, the state of the non-volatile memory chip 41 specified by each command in the submission queue 222. The front-end unit 121 fetches the identified command. The front-end unit 121 then manages the fetched command. For example, the command management table 52 is used to manage the fetched command. A specific example of the fetch control operation will be described later with reference to FIGS. 7 to 13.
[0048] The front-end unit 121 also includes a memory area 61. The memory area 61 is a memory area for temporarily storing data, such as a register. The memory area 61 is allocated, for example, as a storage area for an SQ head pointer 611, an SQ tail doorbell register, and an SQ bitmap 613. The value of the SQ tail pointer managed by the host 2 is written in the SQ tail doorbell register. Hereinafter, the value stored in the SQ tail doorbell register in the memory area 61 is referred to as an SQ tail pointer 612.
[0049] The SQ bitmap 613 is bit string data indicating the fetch status of commands stored in each slot from the slot indicated by the SQ head pointer 611 to the slot immediately preceding the slot indicated by the SQ tail pointer 612. The SQ bitmap 613 includes, for example, a number of bits equivalent to the number of slots in the corresponding submission queue 222. The fetch status is either a state in which the command has already been fetched (fetched) or a state in which the command has not yet been fetched (not fetched). A specific configuration example of the SQ bitmap 613 will be described later with reference to FIG. 8.
[0050] When the host 2 is provided with a plurality of submission queues 222, a plurality of sets of SQ head pointers 611, SQ tail pointers 612, and SQ bitmaps 613 are stored in the memory area 61. Each of the plurality of sets of SQ head pointers 611, SQ tail pointers 612, and SQ bitmaps 613 stored in the memory area 61 is associated with any one of the plurality of submission queues 222 in the host 2. The set of SQ head pointers 611, SQ tail pointers 612, and SQ bitmaps 613 may be stored in a volatile memory such as the SRAM 13.
[0051] The front end unit 121 uses the SQ head pointer 611 and the SQ tail pointer 612 to manage the number of commands stored in the corresponding submission queue 222. Specifically, the front end unit 121 calculates the number of commands stored in the corresponding submission queue 222 based on the difference between the SQ head pointer 611 and the SQ tail pointer 612. In addition, the front end unit 121 manages the commands that have already been fetched from each submission queue 222 and the commands that have not yet been fetched, for example, using an SQ bitmap 613.
[0052] The back-end unit 122 electrically connects the controller 6 and the non-volatile memory 4. The back-end unit 122 supports interface standards such as Toggle DDR and Open NAND Flash Interface (ONFI).
[0053] The back-end unit 122 functions as a memory control circuit configured to control the nonvolatile memory 4. The back-end unit 122 may be connected to the multiple nonvolatile memory chips 41 via multiple channels. By driving the multiple nonvolatile memory chips 41 in parallel, the access bandwidth between the controller 6 and the nonvolatile memory 4 is expanded.
[0054] Additionally, the front-end unit 121 and the back-end unit 122 perform command execution operations and busy state management operations.
[0055] The command execution operation is an operation for executing a process according to the fetched command. Specifically, for example, when the fetched command is a write command, the command execution operation includes a data transfer operation and a data write operation. The data transfer operation is an operation in which the front-end unit 121 transfers user data to be written to the non-volatile memory 4 according to the fetched write command from the data buffer 221 of the host 2 to the write buffer 53 of the memory system 3. The data write operation is an operation in which the back-end unit 122 writes user data to the non-volatile memory 4 based on the fetched write command. The data write operation includes a data-in operation and a program operation.
[0056] The busy state management operation is an operation for managing the busy state of each of the N nonvolatile memory chips 41. The busy state is a state in which a program operation is being performed in the nonvolatile memory chip 41. Alternatively, the busy state may be a state in which a program operation is being performed in the nonvolatile memory chip 41 and user data to be written in the next program operation is already stored in the write buffer 53. Note that a state that is not a busy state is also referred to as an idle state.
[0057] In the busy state management operation, the back-end unit 122 manages each non-volatile memory chip 41. is in a busy state, and notifies information about the busy state to the front-end unit 121. The information about the busy state includes, for example, information indicating either the start or end of the busy state in each nonvolatile memory chip 41. Based on the notification from the back-end unit 122, the front-end unit 121 updates the memory chip management table 51 to indicate the current state of each nonvolatile memory chip 41. In this way, the front-end unit 121 and the back-end unit 122 manage the busy state of each nonvolatile memory chip 41.
[0058] Specific examples of the command execution operation and busy state management operation will be described later with reference to FIG.
[0059] Here, a description will be given of the relationship between fetching a command from the submission queue 222 and the resources of the memory system 3. The resources of the memory system 3 are consumed in response to a command being fetched from the submission queue 222. When resources are insufficient, the processing efficiency (throughput) of the memory system 3 in response to a command from the host 2 may decrease.
[0060] 2 shows an example in which resources of a memory system 3A according to a comparative example become insufficient as a result of a write command being fetched from the submission queue 222 of the host 2. The host 2 may specify a non-volatile memory chip to which user data is to be written in response to a write command. In this case, depending on the method by which the host 2 specifies the non-volatile memory chip, the processing efficiency of the memory system 3A may decrease.
[0061] Specifically, when a write command is fetched from the submission queue 222 of the host 2, resources of the memory system 3A are consumed according to the fetched write command. The consumed resources are, for example, resources for managing the fetched write command (for example, a command management table), a bus bandwidth between the host 2 and the memory system 3A to which user data to be written to the non-volatile memory chip according to the fetched write command is transferred, and resources for temporarily storing the transferred user data (for example, a write buffer). Due to a shortage of resources, the processing efficiency of the memory system 3A may decrease. For example, when the free space of the command management table is insufficient, the memory system 3A cannot fetch a new write command from the submission queue 222. Also, for example, when the bus bandwidth between the host 2 and the memory system 3A is insufficient or when the free space of the write buffer is insufficient, the memory system 3A cannot transfer the user data corresponding to the fetched write command from the host 2 to the memory system 3A.
[0062] 2, four jobs J0, J1, J2, and J3 are being executed on the host 2. Each of the jobs J0, J1, J2, and J3 is, for example, processing by an application program being executed on the host 2. Here, it is assumed that in all of the jobs J0, J1, J2, and J3, a large number of write commands specifying each of a plurality of non-volatile memory chips are issued in a specific order.
[0063] Specifically, first, in each of jobs J0, J1, J2, and J3, a large number of write commands specifying the first nonvolatile memory chip are issued. In the memory system 3A, the issued write commands are fetched and resources are consumed. Then, a queue C1 is formed for a large number of write commands (i.e., write commands waiting for nonvolatilization) whose command execution operation has not been completed for the first nonvolatile memory chip. Note that hatching on each illustrated write command indicates that the command was issued in the job with the same hatching.
[0064] Next, in each of the jobs J0, J1, J2, and J3, a large number of write commands specifying the second nonvolatile memory chip are issued. In the memory system 3A, the issued write commands are fetched and resources are consumed. Then, a queue C2 of a large number of write commands is formed for the second nonvolatile memory chip.
[0065] Next, in each of jobs J0, J1, J2, and J3, a large number of write commands specifying the third nonvolatile memory chip are issued. In the memory system 3A, the issued write commands are fetched and resources are consumed. Then, a queue C3 of a large number of write commands is configured for the third nonvolatile memory chip.
[0066] Furthermore, in each of jobs J0, J1, J2, and J3, a large number of write commands that specify the fourth nonvolatile memory chip are issued. In the memory system 3A, resources (e.g., free space in the command management table or free space in the write buffer) are exhausted before all of the issued write commands are fetched. Therefore, the memory system 3A cannot fetch write commands for nonvolatile memory chips after the fifth nonvolatile memory chip, for example.
[0067] In addition, in the memory system 3A, user data to be written to the non-volatile memory chip is transferred from the host 2 in response to the fetched write command. However, when a large number of write commands are issued to a single non-volatile memory chip and fetched, there is a possibility that user data that is not immediately programmed is transferred from the host 2 and stored in the write buffer. This means that the bus bandwidth between the host 2 and the memory system 3A and the storage area of the write buffer are wasted for the user data that is not immediately programmed. This may lead to a situation where, for example, the transfer of corresponding user data from the host 2 is delayed behind the transfer of the user data that is not immediately programmed, even though another non-volatile memory chip can immediately start data-in and program operations.
[0068] Therefore, in the case shown in FIG. 2, the processing efficiency in the memory system 3A may decrease due to a shortage of resources. Also, for example, when the commands issued in each of the jobs J0, J1, J2, and J3 randomly specify one of a plurality of nonvolatile memory chips, the timing of resource release may become random, and the resources may not be used effectively, resulting in a decrease in processing efficiency. However, if the resources provided in the memory system 3A are increased to prevent the shortage of resources, the cost of the memory system 3A increases. Also, if restrictions are placed on the method by which the host 2 specifies a nonvolatile memory chip in order to alleviate the shortage of resources, it becomes necessary to change the specification method depending on the vendor or model, and software cannot be standardized.
[0069] A decrease in processing efficiency due to a lack of resources in the memory system 3A occurs, for example, when commands stored in each submission queue 222 are fetched in order from the top, and processing according to the fetched commands is started.
[0070] Therefore, in this embodiment, the controller 6 is configured to identify a command that designates a non-volatile memory chip 41 that is not busy from one or more commands stored in the submission queue 222, and execute a process according to the identified command. This makes it possible to prevent resources of the memory system 3 from being wasted by a command to a non-volatile memory chip 41 that is busy. Therefore, the processing efficiency of the memory system 3 can be improved.
[0071] Here, the memory chip management table 51, the command management table 52, and the write buffer 53 used in the memory system 3 will be specifically described with reference to FIGS.
[0072] 3 shows an example of the configuration of the memory chip management table 51. The memory chip management table 51 includes, for example, N entries. The N entries correspond respectively to the N nonvolatile memory chips 41. Each of the N entries includes a chip ID field and a status field.
[0073] The chip ID field indicates the chip ID of the corresponding nonvolatile memory chip 41. The chip ID is information capable of uniquely identifying one corresponding nonvolatile memory chip 41 among the N nonvolatile memory chips 41.
[0074] The status field indicates the status of the corresponding nonvolatile memory chip 41. More specifically, the status field indicates whether the corresponding nonvolatile memory chip 41 is busy or not. In the status field, for example, either "busy" indicating a busy state or "idle" indicating an idle state is set.
[0075] 3, the first nonvolatile memory chip 41-1 with a chip ID of 1 is shown to be in a busy state. The second nonvolatile memory chip 41-2 with a chip ID of 2 is shown to be in an idle state. The third nonvolatile memory chip 41-3 with a chip ID of 3 is shown to be in an idle state. Also, the Nth nonvolatile memory chip 41-N with a chip ID of N is shown to be in a busy state.
[0076] 4 shows an example of the configuration of the command management table 52. The command management table 52 includes one or more entries. The one or more entries correspond to, for example, one or more commands that have been fetched and the corresponding processing has not been completed. Each of the one or more entries includes, for example, a command information field.
[0077] The command information field indicates information about the corresponding command. The information about the command includes, for example, the command identification information (tag), the type of command (here, a write command), the identification information (chip ID) of the specified non-volatile memory chip 41, the specified logical address range, and information indicating the memory location in the host 2 where the user data to be written is stored. The information about the command may include information about the command itself fetched from the submission queue 222.
[0078] 4, write commands cmdA and cmdB are managed, each of which specifies the first nonvolatile memory chip 41-1 whose chip ID is 1. In other words, the write commands cmdA and cmdB are commands that have been fetched and the corresponding processing has not been completed.
[0079] In the command management table 52, for example, when a command is fetched from the submission queue 222, an entry corresponding to that command is added. Also, for example, when a process corresponding to the command is completed (for example, when a completion response (completion) corresponding to the command is stored in a completion queue (not shown) of the host 2), the entry corresponding to that command is deleted from the command management table 52. Note that, hereinafter, adding an entry corresponding to a command to the command management table 52 is also simply referred to as adding the command to the command management table 52.
[0080] Fig. 5 shows an example of user data stored in the write buffer 53. Here, a case is illustrated in which user data 53A and user data 53B are stored by a command execution operation based on the command management table 52 in the state shown in Fig. 4.
[0081] The user data 53A is user data to be written to the first nonvolatile memory chip 41-1 in response to the write command cmd A. The user data 53B is user data to be written to the first nonvolatile memory chip 41-1 in response to the write command cmd B.
[0082] The states of the memory chip management table 51 in Fig. 3, the command management table 52 in Fig. 4, and the write buffer 53 in Fig. 5 correspond to the first nonvolatile memory chip 41-1 being in a busy state. More specifically, it is shown that the first nonvolatile memory chip 41-1 is in a busy state in which a program operation is being performed to write user data 53A in response to a write command cmdA, and that user data 53B to be written in response to the next write command cmdB has already been stored in the write buffer 53.
[0083] Next, the operations of the front-end unit 121 and the back-end unit 122 will be described with reference to Fig. 6 to Fig. 13. In the following, for ease of understanding, a case where all commands stored in the submission queue 222 are write commands will be illustrated. Note that other types of commands may be stored in the submission queue 222.
[0084] 6 shows an example of a command execution operation and a busy state management operation performed by the front-end unit 121 and the back-end unit 122. As described above, the command execution operation is an operation for executing a process according to a fetched command. The busy state management operation is an operation for managing the busy state of the non-volatile memory chip 41.
[0085] First, the command execution operation will be described.
[0086] Here, it is assumed that a write command cmdA for which the corresponding command execution operation has not yet started is managed in the command management table 52. The user data to be written to the nonvolatile memory 4 in response to the write command cmdA is user data 53A. Moreover, the write command cmdA specifies the first nonvolatile memory chip 41-1 as the write destination of the user data 53A.
[0087] The front-end unit 121 acquires command information of the write command cmdA (hereinafter referred to as first command information) by referring to the command management table 52 ((1) in FIG. 6). The first command information includes, for example, information indicating the memory location in the host 2 where the user data 53A is stored, and the chip ID of the first nonvolatile memory chip 41-1 designated as the write destination of the user data 53A.
[0088] The front-end unit 121 transfers the user data 53A from the data buffer 221 of the host 2 to the write buffer 53 of the memory system 3 based on the acquired first command information ((2) in FIG. 6). Specifically, the front-end unit 121 receives from the host 2 the user data 53A read from the data buffer 221 based on the first command information. Then, the front-end unit 121 stores the received user data 53A in the write buffer 53. The front-end unit 121 may notify the back-end unit 122 that storage of the user data 53A in the write buffer 53 has been completed.
[0089] Next, the back-end unit 122 refers to the command management table 52 and acquires the first command information ((3) in FIG. 6). Based on the acquired first command information, the back-end unit 122 performs a data-in operation to transfer the user data 53A stored in the write buffer 53 to the page buffer 32 in the first nonvolatile memory chip 41-1 ((4) in FIG. 6). Then, the back-end unit 122 instructs the first nonvolatile memory chip 41-1 to write (program) the user data 53A stored in the page buffer 32 to the memory cell array 31 in the first nonvolatile memory chip 41-1 ((5) in FIG. 6). In response to this instruction, the first nonvolatile memory chip 41-1 performs a program operation to write the user data 53A to the memory cell array 31 ((6) in FIG. 6).
[0090] The back-end unit 122 can similarly perform processing according to commands managed in the command management table 52 for each of the other nonvolatile memory chips 41-2, 41-3, . . . , and 41-N.
[0091] In this way, the front-end unit 121 and the back-end unit 122 can use the command management table 52 to execute processing according to the fetched command.
[0092] Next, the busy state management operation will be described.
[0093] The back-end unit 122 manages the states of each of the N nonvolatile memory chips 41-1, 41-2, 41-3, ..., and 41-N. Specifically, the back-end unit 122 determines whether each of the N nonvolatile memory chips 41-1, 41-2, 41-3, ..., and 41-N is in program operation. Furthermore, the back-end unit 122 may determine, based on the command management table 52 and the user data stored in the write buffer 53, whether user data corresponding to a write command to be executed next for each of the N nonvolatile memory chips 41-1, 41-2, 41-3, ..., and 41-N is already stored in the write buffer 53.
[0094] The back-end unit 122 notifies the front-end unit 121 of the start of the busy state of a certain nonvolatile memory chip 41 in response to the transition of the certain nonvolatile memory chip 41 from the idle state to the busy state ((7) in FIG. 6). The back-end unit 122 determines that the certain nonvolatile memory chip 41 has transitioned to the busy state in response to the start of a program operation for the certain nonvolatile memory chip 41. Alternatively, the back-end unit 122 may determine that the certain nonvolatile memory chip 41 has transitioned to the busy state when a program operation for the certain nonvolatile memory chip 41 has been started and user data corresponding to a write command to be executed next for the certain nonvolatile memory chip 41 is stored in the write buffer 53. The back-end unit 122 may also determine that the certain nonvolatile memory chip 41 has transitioned to the busy state in response to the user data corresponding to a write command to be executed next for the certain nonvolatile memory chip 41 being stored in the write buffer 53 during the program operation for the certain nonvolatile memory chip 41.
[0095] The front-end unit 121 updates the memory chip management table 51 in response to notification from the back-end unit 122 that the nonvolatile memory chip 41 has entered a busy state ((8) in FIG. 6). Specifically, the front-end unit 121 updates the memory chip management table 51 to indicate that the nonvolatile memory chip 41 is in a busy state.
[0096] Furthermore, in response to a transition of a certain nonvolatile memory chip 41 from a busy state to an idle state, the back-end unit 122 notifies the front-end unit 121 of the end of the busy state of that nonvolatile memory chip 41 ((9) in FIG. 6). In response to the end of a program operation in a certain nonvolatile memory chip 41, the back-end unit 122 determines that that nonvolatile memory chip 41 has transitioned to the idle state. Alternatively, the back-end unit 122 may determine that a certain nonvolatile memory chip 41 has transitioned to the idle state when user data corresponding to a write command to be executed next for that nonvolatile memory chip 41 is not stored in the write buffer 53.
[0097] The front-end unit 121 updates the memory chip management table 51 in response to notification from the back-end unit 122 that the nonvolatile memory chip 41 has ended its busy state ((10) in FIG. 6). Specifically, the front-end unit 121 updates the memory chip management table 51 to indicate that the nonvolatile memory chip 41 is in the idle state.
[0098] The back-end unit 122 may update the memory chip management table 51 in response to the start and end of the busy state of the nonvolatile memory chip 41. In this case, the front-end unit 121 can determine whether the nonvolatile memory chip 41 is in a busy state by referring to the memory chip management table 51 updated by the back-end unit 122.
[0099] In this way, the front-end unit 121 and the back-end unit 122 can use the memory chip management table 51 to manage whether or not each non-volatile memory chip 41 is in a busy state.
[0100] Next, the fetch control operation performed by the front-end unit 121 will be described with reference to Fig. 7 to Fig. 13. In the following, a case will be illustrated in which four submission queues 222 are provided in the host 2, and the number of slots of each submission queue 222 is five. The four submission queues 222 are a first submission queue 222-1, a second submission queue 222-2, a third submission queue 222-3, and a fourth submission queue 222-4.
[0101] FIG. 7 shows examples of commands fetched from submission queues 222-1, 222-2, 222-3, and 222-4 by fetch control operations.
[0102] The first submission queue 222-1 includes five slots 711, 712, 713, 714, and 715. The slot 711 is the first slot identified by the SQ head pointer 611 corresponding to the first submission queue 222-1. In other words, the slot 711 stores the first command in the first submission queue 222-1.
[0103] Five write commands are stored in the five slots 711, 712, 713, 714, and 715. The order of the slots 711, 712, 713, 714, and 715 corresponds to the order in which the five write commands were stored in the first submission queue 222-1. These five write commands are commands that have not yet been fetched by the front-end unit 121.
[0104] The write commands stored in slot 711 and slot 712 specify the nonvolatile memory chip 41 that is in a busy state. The write commands stored in slot 713, slot 714, and slot 715 specify the nonvolatile memory chip 41 that is in an idle state. The write command stored in slot 711 is referred to as write command cmdC. The write command stored in slot 712 is referred to as write command cmdD. The write command stored in slot 713 is referred to as write command cmdE. The write command stored in slot 714 is referred to as write command cmdF.
[0105] The second submission queue 222-2 includes five slots 721, 722, 723, 724, and 725. The slot 721 is the first slot identified by the SQ head pointer 611 corresponding to the second submission queue 222-2. In other words, the slot 721 stores the first command of the second submission queue 222-2.
[0106] Four write commands are stored in the four slots 721, 722, 723, and 724, respectively. The order of the four slots 721, 722, 723, and 724 corresponds to the order in which the four write commands are stored in the second submission queue 222-2. The four write commands are commands that have not yet been fetched by the front-end unit 121. Furthermore, all of the four write commands specify the non-volatile memory chip 41 that is in an idle state. The write command stored in the slot 721 is referred to as a write command cmdG. Note that the slot 725 shown as a blank is a slot in which no command is stored.
[0107] The third submission queue 222-3 includes five slots 731, 732, 733, 734, and 735. The slot 731 is the first slot identified by the SQ head pointer 611 corresponding to the third submission queue 222-3. In other words, the slot 731 stores the first command of the third submission queue 222-3.
[0108] Three write commands are stored in the slots 731, 732, and 733. The order of the slots 731, 732, and 733 corresponds to the order in which the three write commands are stored in the third submission queue 222-3. These three write commands are commands that have not yet been fetched by the front-end unit 121.
[0109] The write command stored in slot 731 specifies a nonvolatile memory chip 41 that is in a busy state. The write commands stored in slot 732 and slot 733 specify nonvolatile memory chips 41 that are in an idle state. The write command stored in slot 731 is referred to as write command cmdH. The write command stored in slot 732 is referred to as write command cmdI. Note that slots 734 and 735, which are shown as blanks, are slots in which no commands are stored.
[0110] The fourth submission queue 222-4 includes five slots 741, 742, 743, 744, and 745. The slot 741 is the first slot identified by the SQ head pointer 611 corresponding to the fourth submission queue 222-4. In other words, the slot 741 stores the first command of the fourth submission queue 222-4.
[0111] Four write commands are stored in the slots 741, 742, 743, and 744, respectively. The order of the slots 741, 742, 743, and 744 corresponds to the order in which the four write commands are stored in the fourth submission queue 222-4. The four write commands are commands that have not yet been fetched by the front-end unit 121. In addition, all of the four write commands specify a non-volatile memory chip 41 that is in a busy state. The write command stored in the slot 741 is referred to as a write command cmdJ. Note that the slot 745 shown as a blank is a slot in which no command is stored.
[0112] The front-end unit 121 selects one submission queue 222 from which a command should be fetched from the four submission queues 222-1, 222-2, 222-3, and 222-4 by arbitration. For example, round robin or weighted round robin defined in the NVMe standard is used as the arbitration mechanism. The front-end unit 121 is configured to fetch a write command specifying an idle nonvolatile memory chip 41 from the selected submission queue 222, and not to fetch a write command specifying a busy nonvolatile memory chip 41.
[0113] Specifically, when the first submission queue 222-1 is selected by arbitration, the front-end unit 121 fetches the write command cmdE of the slot 713 without fetching the write command cmdC of the slot 711 and the write command cmdD of the slot 712. When the second submission queue 222-2 is selected by arbitration, the front-end unit 121 fetches the write command cmdG of the slot 721. When the third submission queue 222-3 is selected by arbitration, the front-end unit 121 fetches the write command cmdI of the slot 732 without fetching the write command cmdH of the slot 731. When the fourth submission queue 222-4 is selected by arbitration, the front-end unit 121 does not fetch any write command from the fourth submission queue 222-4.
[0114] The front end unit 121 manages the write commands that have already been fetched from each submission queue 222 and the write commands that have not yet been fetched, for example, by using an SQ bitmap 613.
[0115] 8 shows an example of the SQ bitmap 613. The SQ bitmap 613 is, for example, bit string data indicating the fetch status of the write commands stored in each slot from the slot indicated by the SQ head pointer 611 of the corresponding submission queue 222 to the slot immediately before the slot indicated by the SQ tail pointer 612. The slot indicated by the SQ head pointer 611 is also referred to as the first slot. The slot immediately before the slot indicated by the SQ tail pointer 612 is also referred to as the last slot. Each bit of the SQ bitmap 613 corresponds to, for example, a write command stored in each of the slots from the first slot to the last slot, in order from the beginning. Here, as an example, a bit of the SQ bitmap 613 corresponding to a certain write command is set to 0 if the write command has not been fetched, and is set to 1 if the write command has been fetched.
[0116] The SQ bitmap 613-1 shown in Fig. 8(a) indicates that all write commands stored in the corresponding submission queue 222 have not yet been fetched. In the SQ bitmap 613-1, the first bit b1 corresponds to the write command stored in the first slot. The first bit b1 is set to 0. In other words, the first bit b1 indicates that the write command stored in the first slot has not yet been fetched.
[0117] Each of the subsequent bits b2, b3, b4, and b5 is also set to 0. Therefore, the SQ bitmap 613-1 indicates that all of the write commands stored in the corresponding submission queue 222 have not yet been fetched.
[0118] After that, for example, when the third write command stored in the submission queue 222 is fetched, the SQ bitmap 613-1 is updated to the SQ bitmap 613-2 shown in FIG. 8(b).
[0119] In the SQ bitmap 613-2, the value set in the third bit b3 has been changed from 0 to 1. In other words, the third bit b3 indicates that the write command stored in the third slot has been fetched.
[0120] The other bits b1, b2, b4, and b5 remain set to 0. Thus, the SQ bitmap 613-2 indicates that the third write command stored in the submission queue 222 has been fetched, and the other write commands have not yet been fetched.
[0121] Furthermore, for example, when the top write command stored in the submission queue 222 is fetched, the SQ bitmap 613-2 is updated to the SQ bitmap 613-3 shown in FIG. 8(c). Specifically, in response to the fetching of the top write command, the SQ head pointer 611 of the submission queue 222 is updated. The updated SQ head pointer 611 specifies the second original slot (i.e., the slot corresponding to the second bit b2) as the new top slot. Therefore, the SQ bitmap 613-3 becomes, for example, a bit string from the second bit b2 onwards, with the top bit b1 removed from the original SQ bitmap 613-2. In other words, the SQ bitmap 613-3 becomes a bit string in which the bit string from the second bit b2 onwards in the original SQ bitmap 613-2 is shifted by one bit towards the top.
[0122] Therefore, the SQ bitmap 613-3 indicates that the second write command stored in the submission queue 222 has been fetched, and the other write commands have not yet been fetched.
[0123] By using such an SQ bitmap 613, the front end unit 121 can trace the write commands that have been fetched and the write commands that have not yet been fetched in each submission queue 222.
[0124] The front-end unit 121 may manage a pointer indicating the bit position of the SQ bitmap 613 corresponding to the first slot of the submission queue 222. When the first write command stored in the submission queue 222 is fetched, the front-end unit 121 may specify the bit position of the SQ bitmap 613 corresponding to the new first slot of the submission queue 222 by updating this pointer instead of shifting the bit string of the SQ bitmap 613.
[0125] An example of the fetch control operation will be specifically described with reference to Fig. 9 to Fig. 12. The write commands stored in the four submission queues 222-1, 222-2, 222-3, and 222-4 are as described above with reference to Fig. 7. In the following description, it is assumed that the first nonvolatile memory chip 41-1 and the Nth nonvolatile memory chip 41-N are in a busy state, and the second nonvolatile memory chip 41-2 and the third nonvolatile memory chip 41-3 are in an idle state, as shown in the memory chip management table 51 shown in Fig. 3. It is also assumed that the state of each nonvolatile memory chip 41 does not change during the fetch control operation shown in Figs. 9 to 12.
[0126] 9 shows an example of a fetch control operation, in which the first submission queue 222-1 is selected as the submission queue 222 to be fetched through arbitration.
[0127] The front-end unit 121 refers to the SQ head pointer 611 and the SQ tail pointer 612 corresponding to the first submission queue 222-1 and determines that a command is stored in the first submission queue 222-1 ((1) and (2) in FIG. 9). Specifically, the front-end unit 121 determines that a command is stored in the first submission queue 222-1 based on the presence of a difference between the SQ head pointer 611 and the SQ tail pointer 612.
[0128] Next, the front-end unit 121 refers to the SQ bitmap 613 corresponding to the first submission queue 222-1 ((3) in FIG. 9). The referred SQ bitmap 613 corresponds to, for example, the SQ bitmap 613-1 in FIG. 8(a) indicating that all write commands have not yet been fetched. The front-end unit 121 reads out the write commands that have not yet been fetched, starting from the head of the first submission queue 222-1, based on the SQ head pointer 611 and the SQ bitmap 613. Therefore, the front-end unit 121 first reads out the write command cmdC from the head slot 711 of the first submission queue 222-1 ((4) in FIG. 9). Then, the front-end unit 121 refers to the memory chip management table 51 and determines that the nonvolatile memory chip 41 (for example, the first nonvolatile memory chip 41-1) specified by the read out write command cmdC is in a busy state ((5) in FIG. 9). Therefore, the front end unit 121 does not fetch the write command cmdC. Specifically, the front end unit 121 discards the data of the read write command cmdC, and does not update the SQ head pointer 611 and the SQ bitmap 613, for example.
[0129] FIG. 10 shows an example of a fetch control operation subsequent to FIG.
[0130] The front-end unit 121 reads the write command cmdD from the second slot 712 of the first submission queue 222-1 ((1) in FIG. 10). Then, the front-end unit 121 refers to the memory chip management table 51 and determines that the nonvolatile memory chip 41 (e.g., the first nonvolatile memory chip 41-1) specified in the read write command cmdD is busy ((2) in FIG. 10). Therefore, the front-end unit 121 does not fetch the write command cmdD. Specifically, the front-end unit 121, for example, discards the data of the read write command cmdD and does not update the SQ head pointer 611 and the SQ bitmap 613.
[0131] FIG. 11 shows an example of a fetch control operation subsequent to FIG.
[0132] The front-end unit 121 reads the write command cmdE from the third slot 713 of the first submission queue 222-1 ((1) in FIG. 11). The front-end unit 121 refers to the memory chip management table 51 and determines that the nonvolatile memory chip 41 (e.g., the second nonvolatile memory chip 41-2) specified by the read write command cmdE is in an idle state ((2) in FIG. 11). Therefore, the front-end unit 121 fetches the read write command cmdE. Specifically, the front-end unit 121 adds the read write command cmdE to the command management table 52 ((3) in FIG. 11). Then, the front-end unit 121 updates the SQ bitmap 613 to indicate that the write command cmdE in the slot 713 has been fetched ((4) in FIG. 11). The updated SQ bitmap 613 corresponds to, for example, the SQ bitmap 613-2 in FIG. 8(b) which indicates that the third write command has been fetched. Note that the front-end unit 121 does not update the SQ head pointer 611 because the slot 713 is not the first slot of the first submission queue 222-1. In this manner, in this embodiment, not only is a command read from the submission queue 222, but the read command is added to the command management table 52, which corresponds to the command being fetched from the submission queue 222.
[0133] Fig. 12 shows an example of a fetch control operation subsequent to Fig. 11. After a write command cmdE is fetched from the slot 713 of the first submission queue 222-1, the second submission queue 222-2 is selected as the submission queue 222 to be newly fetched by arbitration.
[0134] The front-end unit 121 refers to the SQ head pointer 611 and the SQ tail pointer 612 corresponding to the second submission queue 222-2 and determines that a command is stored in the second submission queue 222-2 ((1) and (2) in FIG. 12).
[0135] Next, the front-end unit 121 refers to the SQ bitmap 613 corresponding to the second submission queue 222-2 ((3) in FIG. 12). The referred SQ bitmap 613 corresponds to, for example, the SQ bitmap 613-1 in FIG. 8(a) which indicates that all write commands have not yet been fetched. Based on the SQ head pointer 611 and the SQ bitmap 613, the front-end unit 121 reads the write commands that have not yet been fetched, starting from the top of the second submission queue 222-2. Therefore, the front-end unit 121 first reads the write command cmdG from the top slot 721 of the second submission queue 222-2 ((4) in FIG. 12).
[0136] The front-end unit 121 refers to the memory chip management table 51 and determines that the nonvolatile memory chip 41 (for example, the third nonvolatile memory chip 41-3) specified by the read write command cmdG is in an idle state ((5) in FIG. 12). Therefore, the front-end unit 121 fetches the read write command cmdG. Specifically, the front-end unit 121 adds the read write command cmdG to the command management table 52 ((6) in FIG. 12). Since the slot 721 is the first slot of the second submission queue 222-2, the front-end unit 121 updates the corresponding SQ head pointer 611 ((7) in FIG. 12). Then, the front-end unit 121 updates the corresponding SQ bitmap 613 so as to indicate the fetch state of the write commands stored in slots 722, 723, and 724 after the slot 721 ((8) in FIG. 12).
[0137] 12 will mainly describe the write commands that are fetched and the write commands that are not fetched, and will omit a description of the referencing and updating of the memory chip management table 51, the command management table 52, the SQ head pointer 611, the SQ tail pointer 612, and the SQ bitmap 613. The operations related to the referencing and updating of the memory chip management table 51, the command management table 52, the SQ head pointer 611, the SQ tail pointer 612, and the SQ bitmap are similar to the operations when write commands are fetched from the first submission queue 222-1 and the second submission queue 222-2 described above.
[0138] After the write command cmdG in slot 721 is fetched from the second submission queue 222-2, arbitration is performed to select the third submission queue 222-3 as the new fetch target submission queue 222. The front-end unit 121 fetches the write command cmdI in slot 732 in the third submission queue 222-3 without fetching the write command cmdH in slot 731 ((9) and (10) in FIG. 12).
[0139] Furthermore, after the write command cmdI in slot 732 is fetched from the third submission queue 222-3, the fourth submission queue 222-4 is selected by arbitration as the submission queue 222 to be newly fetched. All of the four write commands stored in slots 741, 742, 743, and 744 of the fourth submission queue 222-4 specify the non-volatile memory chip 41 that is in a busy state. Therefore, the front-end unit 121 does not fetch any write commands from the fourth submission queue 222-4. In other words, the fetching of commands from the fourth submission queue 222-4 is skipped.
[0140] Then, for example, the first submission queue 222-1 is selected as the submission queue 222 to be newly fetched by the next arbitration. In this case, the front-end unit 121 identifies a write command that specifies a non-volatile memory chip 41 that is not in a busy state from one or more write commands excluding the already fetched write command cmdE in the slot 713 based on the SQ bitmap 613 corresponding to the first submission queue 222-1. Therefore, the front-end unit 121 fetches the write command cmdF in the slot 714 from the four write commands stored in the slots 711, 712, 714, and 715, respectively, without fetching the write command cmdC in the slot 711 and the write command cmdD in the slot 712 ((11) and (12) in FIG. 12).
[0141] Fig. 13 shows an example of the command management table 52 to which a write command (more specifically, an entry corresponding to a write command) has been added. Here, an example is shown in which the state of the command management table 52 shown in Fig. 4 has been updated by the fetch control operation described above with reference to Figs. 9 to 12.
[0142] 13, a write command cmdE, a write command cmdG, a write command cmdI, and a write command cmdF are added. The write command cmdE and the write command cmdI each specify the second nonvolatile memory chip 41-2 in an idle state. The write command cmdG and the write command cmdF each specify the third nonvolatile memory chip 41-3 in an idle state.
[0143] In this way, the fetch control operation causes a write command for the nonvolatile memory chip 41 in the idle state to be added to the command management table 52. In other words, a write command for the nonvolatile memory chip 41 in the busy state is not added to the command management table 52.
[0144] Therefore, the fetch control operation by the front-end unit 121 makes it possible to fetch from the submission queue 222 only write commands for nonvolatile memory chips 41 in an idle state. This makes it possible to avoid wasting resources of the memory system 3 due to write commands for which the target nonvolatile memory chip 41 is busy and corresponding processing cannot be started immediately. Therefore, no matter how the host 2 selects the nonvolatile memory chip 41 specified in the write command, it is possible to suppress waste of resources of the memory system 3 and achieve high throughput with fewer resources.
[0145] In addition, in applications where the latency of the response to a write command is important, the front-end unit 121 may turn off the above-mentioned fetch control operation. In other words, the front-end unit 121 may fetch the write commands stored in the submission queue 222 in order, regardless of whether the target nonvolatile memory chip 41 is busy or not. By turning off the fetch control operation, the memory system 3 can easily support applications where the latency is important.
[0146] 14 is a flowchart showing an example of the procedure of the first fetch control process executed by the front-end unit 121. The first fetch control process is a process for fetching a command for the idle non-volatile memory chip 41 from the submission queue 222 of the host 2. The front-end unit 121 executes the first fetch control process, for example, at a timing when arbitration between one or more submission queues 222 of the host 2 should be performed. Here, it is assumed that one or more commands are stored in each of the one or more submission queues 222.
[0147] First, the front-end unit 121 selects one submission queue 222 from one or more submission queues 222 through arbitration (step S101). The selected submission queue 222 is referred to as a target submission queue 222.
[0148] Next, the front-end unit 121 sets the variable i to 1 (step S102). The variable i is used to identify one of one or more commands stored in the target submission queue 222 from the slot (first slot) indicated by the SQ head pointer 611 to the slot (last slot) immediately before the slot indicated by the SQ tail pointer 612. The variable i indicates the order of the commands stored in the target submission queue 222. The order of the commands is the storage order in the target submission queue 222, with the command stored in the first slot as the first and the command stored in the last slot as the last. In the following, the number of commands stored in the target submission queue 222 is assumed to be M. In this case, the variable i is set to any integer from 1 to M.
[0149] The front-end unit 121 uses the SQ bitmap 613 corresponding to the target submission queue 222 to determine whether or not the i-th command of the target submission queue 222 has been fetched (step S103).
[0150] If the i-th command in the target submission queue 222 has not been fetched (no in step S103), the front-end unit 121 reads the i-th command from the target submission queue 222 (step S104). The front-end unit 121 uses the memory chip management table 51 to determine whether the non-volatile memory chip 41 specified in the read i-th command is busy (step S105).
[0151] If the nonvolatile memory chip 41 specified by the i-th command is not busy (no in step S105), the front-end unit 121 adds an entry corresponding to the i-th command to the command management table 52 (step S106). This corresponds to the i-th command being fetched from the target submission queue 222. Then, the front-end unit 121 determines whether or not the variable i is 1 (step S107). In other words, the front-end unit 121 determines whether or not the i-th command is the top command in the target submission queue 222.
[0152] If the variable i is 1 (yes in step S107), the front-end unit 121 updates the SQ head pointer 611 of the target submission queue 222 (step S108). Specifically, the front-end unit 121 adds 1 to the SQ head pointer 611 of the target submission queue 222. Note that if the value obtained by adding 1 to the SQ head pointer 611 reaches the number of slots of the target submission queue 222, the front-end unit 121 sets the SQ head pointer 611 to 0. Then, the front-end unit 121 updates the SQ bitmap 613 of the target submission queue 222 to indicate the fetch status of commands from the (i+1)th command onwards (step S109), and ends the first fetch control process.
[0153] If the variable i is not 1 (no in step S107), the front-end unit 121 updates the SQ bitmap 613 of the target submission queue 222 so that the bit corresponding to the i-th command indicates that the i-th command has been fetched (step S110), and terminates the first fetch control process.
[0154] Furthermore, if the nonvolatile memory chip 41 specified by the i-th command is busy (yes in step S105), the front-end unit 121 does not store an entry corresponding to the i-th command in the command management table 52. This corresponds to the i-th command not being fetched from the target submission queue 222. Then, the front-end unit 121 determines whether the variable i is equal to the number M of commands stored in the target submission queue 222 (step S111).
[0155] If the variable i is smaller than the number M of commands stored in the target submission queue 222 (no in step S111), the front-end unit 121 adds 1 to the variable i (step S112). Then, the process by the front-end unit 121 returns to step S103. That is, the front-end unit 121 proceeds to a process for determining whether or not to fetch the next command in the target submission queue 222.
[0156] If the variable i is equal to the number M of commands stored in the target submission queue 222 (yes in step S111), the front-end unit 121 ends the first fetch control process. This means that none of the unfetched commands stored in the target submission queue 222 have been fetched because the designated non-volatile memory chip 41 is busy.
[0157] If the i-th command has already been fetched (Yes in step S103), the process by the front-end unit 121 proceeds to step S111. The procedure from step S111 onwards is as described above.
[0158] By the above-described first fetch control process, the front-end unit 121 fetches commands for non-volatile memory chips 41 that are not busy from the target submission queue 222, and does not fetch commands for non-volatile memory chips 41 that are busy. In the memory system 3, resources are consumed in response to the fetching of commands. Therefore, by fetching only commands for non-volatile memory chips 41 that are not busy, it is possible to avoid wasting resources of the memory system 3 for commands for which the target non-volatile memory chip 41 is busy and corresponding processing is not immediately started. Therefore, it is possible to improve the processing throughput in the memory system 3.
[0159] (Modification) A modification of the fetch control operation will now be described with reference to FIGS.
[0160] 15 shows another example of commands fetched from the submission queues 222-1, 222-2, 222-3, and 222-4 by the fetch control operation. The write commands stored in each of the submission queues 222-1, 222-2, 222-3, and 222-4 are as described above with reference to FIG.
[0161] Through arbitration, one submission queue 222 from which a command should be fetched is selected from the four submission queues 222-1, 222-2, 222-3, and 222-4. The front-end unit 121 of the modified example is configured to fetch a write command at the head of the selected submission queue 222 when the write command designates a non-volatile memory chip 41 in an idle state. The front-end unit 121 is also configured not to fetch a write command at the head of the selected submission queue 222 when the write command designates a non-volatile memory chip 41 in a busy state. That is, the front-end unit 121 of the modified example determines whether or not to fetch the head write command in the selected submission queue 222, and does not determine whether or not to fetch subsequent write commands.
[0162] Specifically, when the first submission queue 222-1 is selected by arbitration, the front-end unit 121 does not fetch any write command from the first submission queue 222-1 because the write command cmdC stored in the first slot 711 specifies a nonvolatile memory chip 41 that is busy (for example, the first nonvolatile memory chip 41-1).
[0163] When the second submission queue 222-2 is selected by arbitration, the front-end unit 121 fetches the write command cmdG stored in the first slot 721. This is because the write command cmdG specifies a nonvolatile memory chip 41 (for example, the third nonvolatile memory chip 41-3) that is in an idle state.
[0164] When the third submission queue 222-3 is selected by arbitration, the front-end unit 121 does not fetch any write command from the third submission queue 222-3. This is because the write command cmdH stored in the first slot 731 specifies a nonvolatile memory chip 41 that is busy (for example, the Nth nonvolatile memory chip 41-N).
[0165] When the fourth submission queue 222-4 is selected by arbitration, the front-end unit 121 does not fetch any write command from the fourth submission queue 222-4. This is because the write command cmdJ stored in the first slot 741 specifies a nonvolatile memory chip 41 that is busy (for example, the first nonvolatile memory chip 41-1).
[0166] A modified example of the fetch control operation will be specifically described with reference to FIG. 16 and FIG.
[0167] 16 shows an example of a fetch control operation, in which the first submission queue 222-1 is selected as the submission queue 222 to be fetched through arbitration.
[0168] The front-end unit 121 refers to the SQ head pointer 611 and the SQ tail pointer 612 corresponding to the first submission queue 222-1 and determines that a command is stored in the first submission queue 222-1 ((1) and (2) in FIG. 16).
[0169] Next, the front-end unit 121 reads out the write command cmdC from the head slot 711 of the first submission queue 222-1 based on the SQ head pointer 611 ((3) in FIG. 16). Then, the front-end unit 121 refers to the memory chip management table 51 and determines that the non-volatile memory chip 41 specified in the read out write command cmdC is busy ((4) in FIG. 16). Therefore, the front-end unit 121 does not fetch the write command cmdC. Specifically, for example, the front-end unit 121 discards the data of the read out write command cmdC and does not update the SQ head pointer 611. Then, the front-end unit 121 skips fetching the write command from the first submission queue 222-1.
[0170] Fig. 17 shows an example of a fetch control operation subsequent to Fig. 16. After the fetch of the write command from the first submission queue 222-1 is skipped, the second submission queue 222-2 is selected as the submission queue 222 to be newly fetched by arbitration.
[0171] The front-end unit 121 references the SQ head pointer 611 and the SQ tail pointer 612 corresponding to the second submission queue 222-2 and determines that a command is stored in the second submission queue 222-2 ((1) and (2) in FIG. 17). Next, the front-end unit 121 reads the write command cmdG from the first slot 721 of the second submission queue 222-2 based on the SQ head pointer 611 ((3) in FIG. 17).
[0172] The front-end unit 121 refers to the memory chip management table 51 and determines that the nonvolatile memory chip 41 specified in the read write command cmdG (e.g., the third nonvolatile memory chip 41-3) is in an idle state ((4) in FIG. 17). Therefore, the front-end unit 121 fetches the write command cmdG. Specifically, the front-end unit 121 adds the read write command cmdG to the command management table 52 ((5) in FIG. 17). Then, the front-end unit 121 updates the corresponding SQ head pointer 611 ((6) in FIG. 17).
[0173] After the write command cmdG in slot 721 is fetched from the second submission queue 222-2, arbitration is performed to select the third submission queue 222-3 as the new fetch target submission queue 222. The front-end unit 121 does not fetch the write command cmdH stored in the first slot 731 of the third submission queue 222-3, as in the case of the first submission queue 222-1. Then, the front-end unit 121 skips fetching the write command from the third submission queue 222-3.
[0174] Furthermore, after the fetching of the write command from the third submission queue 222-3 is skipped, the fourth submission queue 222-4 is selected as the submission queue 222 to be newly fetched through arbitration. The front-end unit 121 does not fetch the write command cmdJ stored in the first slot 741 of the fourth submission queue 222-4, as in the case of the first submission queue 222-1. The front-end unit 121 skips the fetching of the write command from the fourth submission queue 222-4. Then, through the next arbitration, for example, the first submission queue 222-1 is selected as the submission queue 222 to be newly fetched.
[0175] Fig. 18 shows another example of the command management table 52 to which a write command has been added. Here, an example is shown in which the command management table 52 in the state shown in Fig. 4 has been updated by the fetch control operation described above with reference to Figs. 16 and 17.
[0176] 18, a write command cmdG is added. The write command cmdG is a write command read from the first slot 721 of the second submission queue 222-2. The write command cmdG is a write command that designates the third nonvolatile memory chip 41-3, which is in an idle state.
[0177] In this way, a write command that is stored in the first slot of the submission queue 222 and that specifies an idle nonvolatile memory chip 41 is added to the command management table 52 by the fetch control operation. A write command that specifies a busy nonvolatile memory chip 41 is not added to the command management table 52.
[0178] 19 is a flowchart showing an example of the procedure of the second fetch control process executed by the front-end unit 121. The second fetch control process is a process for fetching a command for the idle non-volatile memory chip 41 from the submission queue 222 of the host 2. The front-end unit 121 executes the second fetch control process, for example, at a timing when arbitration between one or more submission queues 222 in the host 2 should be performed. Here, it is assumed that one or more commands are stored in each of the one or more submission queues 222.
[0179] First, the front-end unit 121 selects one submission queue 222 (target submission queue 222) from one or more submission queues 222 through arbitration (step S21). The front-end unit 121 reads the head command from the target submission queue 222 (step S22). That is, the front-end unit 121 reads the command from the slot in the target submission queue 222 indicated by the SQ head pointer 611. Then, the front-end unit 121 uses the memory chip management table 51 to determine whether the non-volatile memory chip 41 specified by the read command is in a busy state (step S23).
[0180] If the non-volatile memory chip 41 specified by the command is not busy (no in step S23), the front-end unit 121 adds an entry corresponding to the command to the command management table 52 (step S24). This corresponds to fetching the top command from the target submission queue 222. Then, the front-end unit 121 updates the SQ head pointer 611 of the target submission queue 222 (step S25) and ends the second fetch control process.
[0181] If the nonvolatile memory chip 41 specified by the command is busy (yes in step S23), the front-end unit 121 ends the second fetch control process without adding an entry corresponding to the command to the command management table 52. This corresponds to the fact that the top command has not been fetched from the target submission queue 222.
[0182] By the above-described second fetch control process, the front-end unit 121 fetches commands for non-volatile memory chips 41 that are not busy from the target submission queue 222, and does not fetch commands for non-volatile memory chips 41 that are busy. In the memory system 3, resources are consumed in response to the fetching of commands. Therefore, by fetching only commands for non-volatile memory chips 41 that are not busy, it is possible to avoid wasting resources of the memory system 3 for commands for which the target non-volatile memory chip 41 is busy and corresponding processing cannot be started immediately. Therefore, it is possible to improve the processing throughput in the memory system 3.
[0183] 14. In other words, in the case where the top command is not fetched from any of the submission queues 222 in the host 2, if the top command designates a nonvolatile memory chip 41 that is busy in any of the submission queues 222, the front-end unit 121 may fetch a subsequent command designating a nonvolatile memory chip 41 that is not busy from the target submission queue 222.
[0184] Second embodiment In the first embodiment, the front-end unit 121 of the memory system 3 is configured to fetch a command specifying an idle nonvolatile memory chip 41 from the submission queue 222, and not to fetch a command specifying a busy nonvolatile memory chip 41. In contrast, in the second embodiment, the back-end unit 122 of the memory system 3 is configured to start processing according to a command specifying an idle nonvolatile memory chip 41 among the commands fetched from the submission queue 222, and not to start processing according to a command specifying a busy nonvolatile memory chip 41.
[0185] The configuration of the memory system 3 according to the second embodiment is similar to that of the memory system 3 according to the first embodiment. The second embodiment is different from the first embodiment in the operations of the front-end unit 121 and the back-end unit 122. The following mainly describes the differences from the first embodiment.
[0186] First, the fetch control operation by the front end unit 121 will be described.
[0187] 20 shows an example of commands fetched from the submission queues 222-1, 222-2, 222-3, and 222-4 by the fetch control operation. The write commands stored in each of the submission queues 222-1, 222-2, 222-3, and 222-4 are as described above with reference to FIG.
[0188] The front-end unit 121 selects, through arbitration, one submission queue 222 from which a command should be fetched from among the four submission queues 222-1, 222-2, 222-3, and 222-4. The front-end unit 121 is configured to fetch write commands in order from the head of the submission queue 222, without considering whether the write command stored in the selected submission queue 222 specifies a nonvolatile memory chip 41 in a busy state or a nonvolatile memory chip 41 in an idle state.
[0189] Specifically, for example, when the first submission queue 222-1 is selected by arbitration, the front-end unit 121 fetches the write command cmdC from the top slot 711. When the second submission queue 222-2 is selected by arbitration, the front-end unit 121 fetches the write command cmdG from the top slot 721. When the third submission queue 222-3 is selected by arbitration, the front-end unit 121 fetches the write command cmdH from the top slot 731. When the fourth submission queue 222-4 is selected by arbitration, the front-end unit 121 fetches the write command cmdJ from the top slot 741.
[0190] 21 shows a specific example of the fetch control operation, in which the first submission queue 222-1 is selected as the submission queue 222 to be fetched by arbitration.
[0191] The front-end unit 121 refers to the SQ head pointer 611 and the SQ tail pointer 612 corresponding to the first submission queue 222-1 and determines that a command is stored in the first submission queue 222-1 ((1) and (2) in FIG. 21).
[0192] Next, the front-end unit 121 reads the write command cmdC from the head slot 711 of the first submission queue 222-1 based on the SQ head pointer 611 ((3) in FIG. 21). The front-end unit 121 adds the read write command cmdC to the command management table 52 ((4) in FIG. 21). Then, the front-end unit 121 updates the corresponding SQ head pointer 611 ((5) in FIG. 21).
[0193] In this manner, the front-end unit 121 fetches the write command cmdC in the top slot 711 from the first submission queue 222-1.
[0194] After the write command cmdC is fetched from the first submission queue 222-1, arbitration is performed to select the second submission queue 222-2 as the new fetch target submission queue 222. The front-end unit 121 fetches the write command cmdG from the first slot 721 of the second submission queue 222-2 by the same operation as in the case of the first submission queue 222-1.
[0195] After the write command cmdG is fetched from the second submission queue 222-2, arbitration selects the third submission queue 222-3 as the new fetch target submission queue 222. The front-end unit 121 fetches the write command cmdH from the first slot 731 of the third submission queue 222-3 by the same operation as in the case of the first submission queue 222-1.
[0196] After the write command cmdH is fetched from the third submission queue 222-3, the fourth submission queue 222-4 is selected as the new fetch target submission queue 222 through arbitration. The front-end unit 121 fetches the write command cmdJ from the top slot 741 of the fourth submission queue 222-4 through the same operation as in the case of the first submission queue 222-1. Then, through the next arbitration, for example, the first submission queue 222-1 is selected as the new fetch target submission queue 222.
[0197] Fig. 22 shows an example of the command management table 52 to which a write command has been added. Here, an example is shown in which the state of the command management table 52 shown in Fig. 4 has been updated by the fetch control operation described above with reference to Fig. 21.
[0198] 22, write commands cmdC, cmdG, cmdH, and cmdJ are added. The write commands cmdC and cmdJ are write commands that specify the first nonvolatile memory chip 41-1, which is in a busy state. The write command cmdG is a write command that specifies the third nonvolatile memory chip 41-3, which is in an idle state. The write command cmdH is a write command that specifies the Nth nonvolatile memory chip 41-N, which is in a busy state.
[0199] In this way, a write command is added to the command management table 52 by the fetch control operation. The write command to be added is the top command in the submission queue 222 selected by arbitration. Therefore, regardless of whether the nonvolatile memory chip 41 designated by the command is in a busy state or an idle state, the top command is fetched from the submission queue 222 selected by arbitration and added to the command management table 52.
[0200] Next, the command execution operation and busy state management operation by the front-end unit 121 and the back-end unit 122 will be described.
[0201] FIG. 23 shows an example of a command execution operation and a busy state management operation performed by the front-end unit 121 and the back-end unit 122. In FIG.
[0202] The command execution operation will now be described.
[0203] Here, it is assumed that the command management table 52 manages the write command cmdC and the write command cmdG. The write command cmdC and the write command cmdG are write commands for which the corresponding processing has not yet started. The user data to be written to the nonvolatile memory 4 in response to the write command cmdC is assumed to be user data 53C. The user data to be written to the nonvolatile memory 4 in response to the write command cmdG is assumed to be user data 53G. The write command cmdC specifies the first nonvolatile memory chip 41-1 in a busy state as the write destination of the user data 53C. The write command cmdG specifies the third nonvolatile memory chip 41-3 in an idle state as the write destination of the user data 53G. The following describes the execution of the processing in response to the write command cmdC and the execution of the processing in response to the write command cmdG.
[0204] (Executes processing according to the write command cmdC) The front-end unit 121 acquires command information of the write command cmdC (hereinafter referred to as second command information) by referring to the command management table 52 ((1) in FIG. 23). The second command information includes, for example, information indicating the memory location in the host 2 where the user data 53C is stored, and the chip ID of the first nonvolatile memory chip 41-1 designated as the write destination of the user data 53C.
[0205] The front-end unit 121 refers to the memory chip management table 51 and determines that the first nonvolatile memory chip 41-1 indicated by the acquired second command information is in a busy state ((2) in FIG. 23). Therefore, the front-end unit 121 does not start processing in response to the write command cmdC. More specifically, the front-end unit 121 does not start transferring the user data 53C corresponding to the write command cmdC from the host 2 to the memory system 3. In other words, the front-end unit 121 and the back-end unit 122 wait to execute processing in response to the write command cmdC until the first nonvolatile memory chip 41-1 is no longer in a busy state.
[0206] This makes it possible to prevent resources of the memory system 3 from being wasted due to a write command cmdC to the first nonvolatile memory chip 41-1 in a busy state, that is, due to a write command cmdC in which a data write operation is not immediately started.
[0207] (Executes processing according to the write command cmdG) The front-end unit 121 acquires command information of the write command cmdG (hereinafter referred to as third command information) by referring to the command management table 52 ((1) in FIG. 23). The third command information includes, for example, information indicating the memory location in the host 2 where the user data 53G is stored, and the chip ID of the third nonvolatile memory chip 41-3 designated as the write destination of the user data 53G.
[0208] The front-end unit 121 refers to the memory chip management table 51 and determines that the third nonvolatile memory chip 41-3 indicated by the acquired third command information is in an idle state ((2) in FIG. 23). In this case, the front-end unit 121 starts processing according to the write command cmdG. Specifically, the front-end unit 121 transfers the user data 53G from the data buffer 221 of the host 2 to the write buffer 53 of the memory system 3 based on the third command information ((3) in FIG. 23). The front-end unit 121 may notify the back-end unit 122 that storage of the user data 53G in the write buffer 53 has been completed.
[0209] Next, the back-end unit 122 refers to the command management table 52 and acquires the third command information ((4) in FIG. 23). Based on the acquired third command information, the back-end unit 122 performs a data-in operation to transfer the user data 53G stored in the write buffer 53 to the page buffer 32 in the third nonvolatile memory chip 41-3 ((5) in FIG. 23). Then, the back-end unit 122 instructs the third nonvolatile memory chip 41-3 to write the user data 53G stored in the page buffer 32 to the memory cell array 31 in the third nonvolatile memory chip 41-3 ((6) in FIG. 23). In response to this instruction, the third nonvolatile memory chip 41-3 performs a program operation to write the user data 53G to the memory cell array 31 ((7) in FIG. 23).
[0210] This enables the front-end unit 121 and the back-end unit 122 to execute processing in response to the write command cmdG for the third nonvolatile memory chip 41-3, which is in the idle state.
[0211] Similarly, for other write commands managed in the command management table 52, the front-end unit 121 and the back-end unit 122 can control the execution of processing according to the write command depending on whether the specified nonvolatile memory chip 41 is in a busy state or an idle state. Since the front-end unit 121 and the back-end unit 122 do not start processing according to a write command for a nonvolatile memory chip 41 that is in a busy state, it is possible to prevent resources of the memory system 3 from being wasted by a write command that does not immediately start a data write operation. Therefore, the processing throughput of the memory system 3 can be improved.
[0212] The busy state management operations indicated as (8), (9), (10), and (11) in FIG. 23 are similar to the busy state management operations indicated as (7), (8), (9), and (10) in FIG. 6.
[0213] 24 is a flowchart showing an example of the procedure of the third fetch control process executed by the front-end unit 121. The third fetch control process is a process for fetching a command from the submission queue 222 of the host 2. The front-end unit 121 executes the third fetch control process, for example, at a timing when arbitration between one or more submission queues 222 of the host 2 should be performed. Here, it is assumed that one or more commands are stored in each of the one or more submission queues 222.
[0214] First, the front-end unit 121 selects one submission queue 222 (target submission queue 222) from one or more submission queues 222 through arbitration (step S31). The front-end unit 121 fetches the first command from the target submission queue 222 (step S32). That is, the front-end unit 121 fetches the command from the slot in the target submission queue 222 indicated by the SQ head pointer 611. The front-end unit 121 adds an entry corresponding to the fetched command to the command management table 52 (step S33). Then, the front-end unit 121 updates the SQ head pointer 611 of the target submission queue 222 (step S34) and ends the third fetch control process.
[0215] Through the above-described third fetch control process, the front-end unit 121 fetches the top command from the target submission queue 222.
[0216] 25 is a flowchart showing an example of the procedure of command execution control processing executed by the back-end unit 122. The command execution control processing is processing for controlling the execution of commands that are managed in the command management table 52 and for which corresponding processing has not yet started (i.e., unprocessed commands). The back-end unit 122 executes the command execution control processing when the command management table 52 includes at least one entry.
[0217] First, the back-end unit 122 selects an unprocessed command from the command management table 52 (step S41). The selected unprocessed command is called a target command. The back-end unit 122 determines whether the non-volatile memory chip 41 specified by the target command is in a busy state (step S42).
[0218] If the non-volatile memory chip 41 specified by the target command is not busy (no in step S42), the back-end unit 122 starts processing according to the target command (step S43). The processing according to the target command includes, for example, a process of transferring user data to be written to the non-volatile memory chip 41 according to the target command, which is a write command, from the data buffer 221 of the host 2 to the write buffer 53 of the memory system 3, and a process of writing the transferred user data to the non-volatile memory chip 41.
[0219] On the other hand, if the nonvolatile memory chip 41 specified in the target command is in a busy state (yes in step S42), the back-end unit 122 does not start processing according to the target command.
[0220] Then, the back-end unit 122 determines whether or not there is another unprocessed command in the command management table 52 (step S44).
[0221] If there is another unprocessed command in the command management table 52 (yes in step S44), the process by the back-end unit 122 returns to step S41. That is, the back-end unit 122 controls the execution of a process corresponding to the other unprocessed command.
[0222] If there is no unprocessed command in the command management table 52 (no in step S44), the back-end unit 122 ends the command execution control process.
[0223] By the above command execution control process, if a fetched command managed in the command management table 52 is an unprocessed command for a nonvolatile memory chip 41 that is not busy, the back-end unit 122 starts processing according to that command. On the other hand, if a fetched command managed in the command management table 52 is an unprocessed command for a nonvolatile memory chip 41 that is busy, the back-end unit 122 does not start processing according to that command. This makes it possible to prevent resources of the memory system 3 from being wasted due to a command for which corresponding processing cannot be immediately started because the target nonvolatile memory chip 41 is busy. Therefore, the processing efficiency of the memory system 3 can be improved.
[0224] As described above, according to the first and second embodiments, the efficiency of processing can be improved. The front-end unit 121 manages whether each of the multiple nonvolatile memory chips 41 is busy or not. When one or more requests (e.g., commands) issued by the host 2 are stored in at least one submission queue 222, the front-end unit 121 and the back-end unit 122 identify a first request for a first nonvolatile memory chip 41-1 that is not busy among the multiple nonvolatile memory chips 41 from the one or more requests, and execute processing according to the identified first request.
[0225] This makes it possible to avoid wasting resources of the memory system 3 due to a request for which the corresponding processing cannot be started immediately because the target nonvolatile memory chip 41 is busy. Therefore, no matter how the host 2 selects the nonvolatile memory chip 41 specified in the request, it is possible to suppress waste of resources of the memory system 3 and achieve high processing efficiency with fewer resources.
[0226] Each of the various functions described in the first and second embodiments may be realized by a circuit (processing circuit). An example of a processing circuit includes a programmed processor, such as a central processing unit (CPU). The processor executes each of the described functions by executing a computer program (a set of instructions) stored in a memory. The processor may be a microprocessor including an electric circuit. Examples of the processing circuit include a digital signal processor (DSP), an application specific integrated circuit (ASIC), a microcontroller, a controller, and other electric circuit components. Each of the other components other than the CPU described in these embodiments may also be realized by a processing circuit.
[0227] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0228] 1...information processing system, 2...host, 3...memory system, 4...non-volatile memory, 5...DRAM, 6...controller, 10...bus, 11...DRAM I / F, 12...memory controller, 13...SRAM, 121...front end section, 122...back end section, 20...bus, 21...CPU, 22...RAM, 221...data buffer, 222...submission queue, 31...memory cell array, 32...page buffer, 41...non-volatile memory chip, 51...memory chip management table, 52...command management table, 53...write buffer, 61...memory area, 611...SQ head pointer, 612...SQ tail pointer, 613...SQ bitmap.
Claims
1. A plurality of non-volatile memory chips; Manage whether each of the plurality of non-volatile memory chips is in a busy state; If one or more requests issued by a host are stored in at least one queue, identifying a first request from the one or more requests to a first non-busy non-volatile memory chip of the plurality of non-volatile memory chips; and a controller configured to perform processing in response to the identified first request. Memory system.
2. The controller: Fetching the first request from the queue; configured to not fetch a second request for the second non-volatile memory chip from the queue in response to a second non-volatile memory chip of the plurality of non-volatile memory chips being busy.
2. The memory system of claim 1.
3. each of the one or more requests specifying one of the plurality of non-volatile memory chips on which a corresponding operation is to be performed; the controller is configured to, in response to the one or more requests from the host, execute processing in response to the one or more requests on any one of the non-volatile memory chips designated in each of the one or more requests; 3. The memory system of claim 2.
4. the one or more requests include a second request and the first request arranged in order of storage in the queue; in response to the second request being a request to a second nonvolatile memory chip that is busy among the plurality of nonvolatile memory chips, the controller not fetching the second request from the queue; Fetching the first request from the queue; configured to perform processing in response to the fetched first request.
2. The memory system of claim 1.
5. The controller: configured to manage information indicative of the fetched first request and the unfetched second request; 5. The memory system of claim 4.
6. The controller: using the information to identify a third request from the one or more requests from which the first request is excluded to a third non-busy non-volatile memory chip of the plurality of non-volatile memory chips; configured to perform a process in response to the third request; 6. The memory system of claim 5.
7. the at least one queue includes a first queue and a second queue; the one or more requests include the first request stored in the first queue and a second request stored in the second queue; The controller: Fetching the first request from the first queue; Performing processing in response to the fetched first request; and configured to not fetch the second request from the second queue in response to the second request being a request for a second non-volatile memory chip in a busy state among the plurality of non-volatile memory chips.
2. The memory system of claim 1.
8. The controller: fetching a second request from the queue for a second non-volatile memory chip of the plurality of non-volatile memory chips that is busy; The second non-volatile memory chip is configured to wait until the second non-volatile memory chip is no longer busy before executing the process corresponding to the fetched second request.
2. The memory system of claim 1.
9. The controller further comprises: Fetching the first request from the queue; configured to perform processing in response to the fetched first request.
9. The memory system of claim 8.
10. the one or more requests include a second request and the first request arranged in order of storage in the queue; in response to the second request being a request to a second nonvolatile memory chip that is busy among the plurality of nonvolatile memory chips, the controller Fetching the second request from the queue; waits until the second non-volatile memory chip is no longer busy before executing the process corresponding to the fetched second request; Fetching the first request from the queue; configured to perform processing in response to the fetched first request.
2. The memory system of claim 1.
11. The non-volatile memory chip in the busy state is a non-volatile memory chip in which data is being written. The memory system according to any one of claims 1 to 10.
12. further comprising a random access memory; The non-volatile memory chip in the busy state is a non-volatile memory chip in which data is being written and in which data to be written next has already been stored in the random access memory. The memory system according to any one of claims 1 to 10.
Citation Information
Patent Citations
Methods, systems and computer readable media for intelligent fetching of data storage device commands from submission queues
US10642500B2
QOS traffic class latency model for just-in-time (JIT) schedulers
US20220197563A1
Techniques for workload balancing using dynamic path state modifications
US20220206871A1
