MEMORY SYSTEM AND CONTROL METHOD - Patent application

The memory system efficiently manages namespaces by dividing logical address space into equal areas and updating mapping tables to resize namespaces dynamically, addressing inefficiencies in existing systems.

JP7536483B2Active Publication Date: 2024-08-20KIOXIA CORP
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
JP2020046711
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-03-17
Publication Date
2024-08-20
Estimated Expiration
2040-03-17

AI Technical Summary

Technical Problem

Existing memory systems struggle with inefficient management of namespaces, particularly in expanding namespace sizes without requiring data movement and extensive table updates.

Method used

A memory system with a controller that divides the logical address space into equal areas (namespace access units) and manages namespaces using a namespace mapping table, allowing dynamic resizing by allocating unused areas without data movement, and updating the mapping table to expand namespace sizes.

Benefits of technology

Enables efficient and responsive namespace management by allowing dynamic resizing without data movement, maintaining system performance and supporting multiple namespaces up to the stated capacity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007536483000005
    Figure 0007536483000005
  • Figure 0007536483000004
    Figure 0007536483000004
  • Figure 0007536483000006
    Figure 0007536483000006
Patent Text Reader

Abstract

To provide a memory system which can efficiently manage each name space used in a host.SOLUTION: A memory system associates one or more areas among a plurality of areas obtained by equally dividing a first logical address space of the memory system, to each of a plurality of name spaces. The size of each of the areas has a size to which the number of areas corresponding to the maximum number of the name spaces to be supported can be allocated to a remaining space excluding the size of an indicated capacity from the first logical address space. When the size of the first name space should be expanded, the memory system updates a first management table, and additionally allocates an unused area to the first name space.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] SUMMARY OF THE DISCLOSURE An embodiment of the present invention relates to a memory system and a control method for controlling a non-volatile memory. [Background technology]

[0002] In recent years, storage devices that control non-volatile memories have become widespread.

[0003] As such a storage device, a solid-state drive (SSD) equipped with a NAND flash memory is known. SSDs are used in a variety of computers.

[0004] In an SSD, it is desirable to realize a technique that allows efficient management of each namespace used by a host to access the SSD. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] US Patent Application Publication No. 2017 / 0139610 [Patent Document 2] US Patent Application Publication No. 2017 / 0123976 [Patent Document 3] US Patent Application Publication No. 2017 / 0351431 Summary of the Invention [Problem to be solved by the invention]

[0006] The problem to be solved by the present invention is to provide a memory system and a control method capable of efficiently managing each namespace. [Means for solving the problem]

[0007] According to an embodiment, a memory system connectable to a host includes a non-volatile memory and a controller configured to control the non-volatile memory. 、 The controller comprises: The controller manages a plurality of namespaces used by the host to access the memory system. The controller manages a first logical address space of the memory system having a size larger than a nominal capacity of the memory system, which is a total capacity available for the plurality of namespaces. The controller equally divides the entire first logical address space into a plurality of areas such that a number of areas corresponding to the maximum number of namespaces to be supported is assigned to the remaining space after subtracting a second logical address space having a size equal to the nominal capacity from the first logical address space. The controller For each of the multiple namespaces, The above One or more of the areas are assigned. The controller: The controller manages a correspondence relationship between each of the plurality of namespaces and the one or more areas assigned to each of the plurality of namespaces using a first management table. When a size of a first namespace of the plurality of namespaces is to be expanded, the controller: Without moving data from each namespace, The first management table is updated to additionally allocate an unused area of ​​the plurality of areas to the first namespace. [Brief description of the drawings]

[0008] [Figure 1] 1 is a block diagram showing an example of the configuration of a storage system including a memory system according to an embodiment of the present invention. [Diagram 2] 2 is a diagram showing an example of the configuration of a logical-physical address conversion table (L2P table) used in the memory system according to the embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram for explaining a plurality of namespaces managed in the memory system according to the embodiment of the present invention. [Figure 4] (A) A diagram showing a state in which multiple consecutive logical addresses are assigned to each of multiple namespaces used in a memory system according to a comparative example, (B) A diagram showing a state in which data of one namespace following a namespace to be resized is moved to the namespace to be resized in the memory system according to the comparative example, and (C) A diagram showing a state in which the logical address range corresponding to the namespace to be resized is expanded. [Diagram 5] FIG. 2 is a diagram showing an example of a plurality of areas (name space access units) managed in a memory system according to an embodiment of the present invention. [Figure 6]FIG. 2 is a diagram showing an example of the configuration of a namespace mapping table used in the memory system according to the embodiment of the present invention. [Figure 7] (A) A diagram showing a state in which one area in the logical address space is assigned to each of a plurality of namespaces used in a memory system according to an embodiment of the present invention, (B) A diagram showing a state in which another area in the logical address space is additionally assigned to one of the plurality of namespaces used in a memory system according to an embodiment of the present invention, and (C) A diagram showing a state in which yet another area in the logical address space is additionally assigned to one of the plurality of namespaces used in a memory system according to an embodiment of the present invention. [Figure 8] FIG. 2 is a diagram showing an example of a correspondence relationship between a plurality of namespaces and a plurality of areas in a logical address space used in a memory system according to an embodiment of the present invention. [Figure 9] 1 is a flowchart showing the procedure of a namespace management process executed in a memory system according to an embodiment of the present invention. [Figure 10] 4 is a flowchart showing the procedure of a write operation and a read operation executed in the memory system according to the embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. First, the configuration of a memory system according to an embodiment of the present invention will be described. Fig. 1 is a block diagram showing an example of the configuration of a storage system 1 including a memory system 3 according to an embodiment of the present invention. The storage system 1 includes a host (host device) 2 and a memory system 3.

[0010] The host 2 is an information processing device that controls the operation of the memory system 3. Examples of the information processing device include, for example, a personal computer, a server computer, a mobile terminal, and an in-vehicle device. The host 2 transmits a write request, which is a request for writing data, to the memory system 3. The host 2 also transmits a read request, which is a request for reading data, to the memory system 3.

[0011] The memory system 3 is a semiconductor storage device configured to write data to a non-volatile memory. The memory system 3 is also a semiconductor storage device configured to read data from the non-volatile memory. The memory system 3 is realized as, for example, an SSD including a NAND type flash memory. The memory system 3 is connectable to a host 2. The memory system 3 is built into, for example, an information processing device. The memory system 3 may be connected to the information processing device via a cable or a network.

[0012] The memory system 3 includes a controller 4 , a non-volatile memory 5 and a random access memory (RAM) 6 .

[0013] The controller 4 is a memory controller configured to control the non-volatile memory 5. The controller 4 may be realized by a controller circuit such as a System-on-a-Chip (SoC). The controller 4 is communicatively connected to the non-volatile memory 5. The controller 4 is electrically connected to the non-volatile memory 5.

[0014] The nonvolatile memory 5 is, for example, a NAND type flash memory. The nonvolatile memory 5 may be realized as a NAND type flash memory with a two-dimensional structure, or may be realized as a NAND type flash memory with a three-dimensional structure.

[0015] The memory cell array of the NAND type flash memory includes a plurality of blocks BLK0 to BLKm-1. Each of the blocks BLK0 to BLKm-1 functions as a unit of an erase operation. Each of the blocks BLK0 to BLKm-1 includes a plurality of pages (here, pages P0 to Pn-1). Each page includes a plurality of memory cells connected to the same word line. The pages P0 to Pn-1 are the units of a data write operation and a data read operation.

[0016] The RAM 6 is a volatile semiconductor memory whose stored contents are lost when the power supply is cut off. The RAM 6 is, for example, a dynamic RAM (DRAM). A part of the storage area of ​​the RAM 6 may be used as a write buffer. The write buffer is a storage area for temporarily storing data to be written to the nonvolatile memory 5. The data to be written to the nonvolatile memory 5 is, for example, data associated with a write request received from the host 2.

[0017] Next, a detailed configuration of the controller 4 will be described. The controller 4 includes a host interface circuit 11, a CPU 12, a nonvolatile memory control circuit 13, a RAM interface circuit 14, a direct memory access controller (DMAC) 15, a static RAM (SRAM) 16, and an ECC encoding / decoding unit 17. The host interface circuit 11, the CPU 12, the nonvolatile memory control circuit 13, the RAM interface circuit 14, the DMAC 15, the SRAM 16, and the ECC encoding / decoding unit 17 are connected to a bus 10.

[0018] The host interface circuit 11 is configured to perform communication with the host 2. The host interface circuit 11 receives various requests from the host 2. The various requests include a write request and a read request.

[0019] The CPU 12 is a processor configured to control the host interface circuit 11, the nonvolatile memory control circuit 13, the RAM interface circuit 14, the DMAC 15, the SRAM 16, and the ECC encoding / decoding unit 17. The CPU 12 performs various processes by executing a control program (firmware). The CPU 12 loads the control program (firmware) from a ROM or nonvolatile memory 5 (not shown) into the SRAM 16 or the RAM 6 in response to the supply of power to the memory system 3. The CPU 12 may function as a flash translation layer (FTL) configured to manage data in the nonvolatile memory 5 and manage blocks in the nonvolatile memory 5. The data management performed by the FTL includes management of mapping information indicating the correspondence between each logical address and each physical address. A logical address is an address that indicates a position in the logical address space of the memory system 3. A physical address corresponding to a certain logical address indicates a physical storage location in the nonvolatile memory 5 where data corresponding to this logical address is written. Generally, an LBA (logical block address) may be used as the logical address. The CPU 12 uses a logical-to-physical address translation table (L2P table) 32 to manage the correspondence between each logical address and each physical address.

[0020] The nonvolatile memory control circuit 13 is a memory control circuit configured to control the nonvolatile memory 5 under the control of the CPU 12. The nonvolatile memory control circuit 13 is configured to control a plurality of nonvolatile memory chips. The nonvolatile memory control circuit 13 may be connected to a plurality of nonvolatile memory chips via a plurality of channels (Ch), for example.

[0021] The RAM interface circuit 14 is a RAM control circuit configured to control the RAM 6 under the control of the CPU 12. The RAM interface circuit 14 is, for example, a DRAM control circuit configured to control a DRAM. A part of the storage area of ​​the RAM 6 may be used to store a namespace mapping table 31 and an L2P table 32. The namespace mapping table 31 is a management table for managing the correspondence between each namespace and one or more areas in the logical address space assigned to each namespace. The L2P table 32 is a management table for managing the correspondence between each logical address and each physical address in a predetermined management size unit.

[0022] Under the control of the CPU 12, the DMAC 15 executes data transfer between the memory of the host 2 and the SRAM 16 (or the RAM 6).

[0023] The SRAM 16 is a volatile semiconductor memory that loses its stored contents when the power supply is cut off. A part of the storage area of ​​the SRAM 16 may be used as a write buffer for temporarily storing data to be written to the non-volatile memory 5.

[0024] The ECC encoding / decoding unit 17 adds an error correction code (ECC) to the user data as a redundant code by encoding (ECC encoding) the user data before writing the user data to the nonvolatile memory 5. When the user data is read from the nonvolatile memory 5, the ECC encoding / decoding unit 17 performs error correction of the user data by using the ECC added to the read data (ECC decoding).

[0025] Next, a description will be given of namespace management according to an embodiment of the present invention. The CPU 12 can function as a namespace management unit 21, a write control unit 22, and a read control unit 23. Some or all of the namespace management unit 21, the write control unit 22, and the read control unit 23 may be realized by hardware within the controller 4.

[0026] The namespace management unit 21 manages multiple namespaces. The multiple namespaces are logical address ranges independent of each other. The multiple namespaces are used to operate one storage device as if it were multiple storage devices. The multiple namespaces are used by the host 2 to access the memory system 3.

[0027] The namespace management unit 21 manages each of a plurality of areas obtained by equally dividing the logical address space of the memory system 3 as a namespace access unit. The namespace management unit 21 assigns one or more areas (one or more namespace access units) in the logical address space to each of the plurality of namespaces. Each namespace access unit includes consecutive logical addresses. Each namespace access unit is also referred to as a logical address range.

[0028] The namespace management unit 21 is configured to execute a namespace resizing process, which is a process for dynamically changing the size of an arbitrary namespace.

[0029] The write control unit 22 receives a write request including a parameter specifying a namespace identifier (NSID) for identifying a certain namespace and a parameter specifying an LBA (write destination LBA) within this namespace from the host 2. The write control unit 22 writes data associated with the received write request to the nonvolatile memory 5 via the nonvolatile memory control circuit 13.

[0030] The read control unit 23 receives a read request including a parameter specifying a namespace identifier (NSID) for identifying a certain namespace and a parameter specifying an LBA (read target LBA) within this namespace from the host 2. The read control unit 23 reads the read target data corresponding to the read target LBA from the nonvolatile memory 5 via the nonvolatile memory control circuit 13.

[0031] Next, the L2P table 32 according to the embodiment of the present invention will be described. Fig. 2 is a diagram showing an example of the configuration of the L2P table 32 used in the memory system 3. The L2P table 32 is used to manage the correspondence between each logical address in the logical address space of the memory system 3 and each physical address in the physical address space of the non-volatile memory 5 in a predetermined management size unit. The logical address space of the memory system 3 is an address space that the host 2 can use to access the memory system 3.

[0032] The L2P table 32 includes a plurality of entries corresponding to a plurality of logical addresses, respectively. In an entry corresponding to a certain logical address, a physical address associated with this logical address is stored. For example, when the controller 4 writes data corresponding to a certain logical address to a certain physical storage location in the non-volatile memory 5, the controller 4 updates the L2P table 32 to associate a physical address PBA indicating this storage location with this logical address.

[0033] FIG. 2 illustrates an example in which logical addresses 0x000, 0x001, 0x002, 0x005, 0x006, and 0x007 are associated with physical addresses PBA0, PBA3, PBA1, PBA4, PBA5, and PBA6, respectively.

[0034] Next, a description will be given of a namespace according to an embodiment of the present invention.

[0035] FIG. 3 illustrates an example in which namespace NS#1, namespace NS#2, ..., namespace NS#y are managed by the controller 4 of the memory system 3. Each namespace is identified by a namespace identifier (NSID). Each namespace includes a set of multiple consecutive logical addresses (LBAs). The logical address range corresponding to each namespace starts from LBA0. Each namespace can be set to any size. The size of each namespace corresponds to the number of LBAs included in each namespace. FIG. 3 illustrates an example in which namespace NS#1 includes multiple consecutive LBAs from LBA0 to LBAi, namespace NS#2 includes multiple consecutive LBAs from LBA0 to LBAj, and namespace NS#y includes multiple consecutive LBAs from LBA0 to LBAk.

[0036] Next, the namespace creation operation executed by the controller 4 will be described.

[0037] The host 2 can send a namespace creation request (namespace creation command) to the memory system 3. The namespace creation request can specify the size of the namespace to be created.

[0038] When a namespace creation request is received, the controller 4 first creates a namespace having a size specified by the received namespace creation request. Then, the controller 4 issues a namespace identifier that identifies the created namespace, and transmits the issued namespace identifier to the host 2.

[0039] In this manner, the controller 4 creates a namespace every time a namespace creation request is received from the host 2. As a result, multiple namespaces are created in the memory system 3. The multiple namespaces that have been created are managed by the controller 4.

[0040] Next, a namespace resizing process for changing the size of a namespace will be described.

[0041] First, a namespace resizing process according to a comparative example will be described. The SSD according to the comparative example manages the offset and size (here, 100) for each namespace using a namespace mapping table. The offset of a namespace indicates the start position of the LBA range in the logical address space assigned to this namespace.

[0042] Fig. 4(A) is a diagram showing a state in which consecutive logical addresses (consecutive LBAs) are assigned to each of a plurality of namespaces. Fig. 4(B) is a diagram showing a state in which data of one namespace following the namespace to be resized has been moved. Fig. 4(C) is a diagram showing a state in which the logical address range corresponding to the namespace to be resized has been expanded.

[0043] As shown in FIG. 4(A), in the SSD according to the comparative example, for example, namespaces NS#1, NS#2, and NS#3 are managed. In the SSD according to the comparative example, consecutive LBAs in the logical address space of the SSD are assigned to each namespace. For example, the LBA range (LBA0 to LBA99) in the logical address space of the SSD is assigned to namespace NS#1. The LBA range (LBA100 to LBA199) in the logical address space is assigned to namespace NS#2. The LBA range (LBA200 to LBA299) in the logical address space is assigned to namespace NS#3.

[0044] In the SSD according to the comparative example, it is necessary to assign multiple consecutive LBAs in the logical address space to each namespace. Therefore, in order to expand the size of the namespace NS#2, it is necessary to secure a free LBA range immediately following the LBA range (LBA100 to LBA199) assigned to the namespace NS#2 to be resized. The free LBA range is an LBA range that is not assigned to any namespace.

[0045] On the other hand, as shown in Fig. 4(A), the LBA range (LBA200-LBA299) immediately following the LBA range (LBA100-LBA199) of the namespace NS#2 to be resized has already been assigned to namespace NS#3. Therefore, in order to expand the size of namespace NS#2 in Fig. 4(A), it is necessary to move the data of namespace NS#3 from the LBA range (LBA200-LBA299) to another LBA range.

[0046] 4(B), the data in namespace NS#3 is moved from the LBA range (LBA200-LBA299) to the LBA range (LBA300-LBA399). By moving the data in namespace NS#3 to the LBA range (LBA300-LBA399), the LBA range (LBA200-LBA299) can be made a free LBA range.

[0047] In the process of moving data of namespace NS#3, a process of updating the L2P table is executed so that each physical address in which data of namespace NS#3 is stored is associated with the LBA range (LBA300 to LBA399) immediately following namespace NS#3. In general, the size of address translation information stored in the L2P table is about 1 / 1000 of the capacity of the SSD. For example, in an SSD having a capacity of 1 Tbyte, the size of address translation information stored in the L2P table is 1 Gbyte. In a case where 16 namespaces are created in an SSD having a capacity of 1 Tbyte, the average size of address translation information required per namespace is about 62 Mbytes (=1 GB / 16). Therefore, when data of a certain namespace is moved, it is necessary to rewrite address translation information of about several tens of Mbytes. In such a process of rewriting the L2P table, a certain amount of time is required even just to copy the address translation information.

[0048] Furthermore, in cases where both data and the logical address corresponding to this data are stored in the non-volatile memory 5, it is not enough to simply update the L2P table; processing to actually move the data in the namespace NS#3 is also required.

[0049] After the process of moving the data of namespace NS#3 is completed, as shown in Figure 4(C), the namespace mapping table is updated so that the size of namespace NS#2 is changed from 100 to 200. Furthermore, the namespace mapping table is updated so that the offset of namespace NS#3 is changed from 200 to 300. As a result, namespace NS#2 is merged with the LBA range (LBA200-LBA299) that is the LBA range immediately following it (free space), and the free space can be used for namespace NS#2.

[0050] Next, a namespace resizing process according to an embodiment of the present invention will be described.

[0051] Prior to describing the namespace resizing process according to the embodiment of the present invention, first, a description will be given of a number of areas used in the embodiment of the present invention and the namespace mapping table 31 according to the embodiment of the present invention.

[0052] In the memory system 3, the logical address space (first logical address space) of the memory system 3 managed by the controller 4 is equally divided into a plurality of areas, that is, a plurality of namespace access units (NSAUs). The namespace access unit (NSAU) is used as a unit for allocating an LBA range to a namespace. One NSAU includes consecutive LBAs. The size of one NSAU is set to a size that allows a number of NSAUs corresponding to the maximum number of namespaces to be supported by the memory system 3 to be allocated to the remaining space after subtracting a logical address space (second logical address space) having a size equivalent to the notation capacity of the memory system 3 from the first logical address space. In this way, the first logical address space is divided into a plurality of NSAUs such that a number of NSAUs corresponding to the maximum number of namespaces to be supported are allocated to the remaining space in the first logical address space.

[0053] Fig. 5 shows an example of a plurality of areas (name space access units) managed in the memory system 3. In Fig. 5, the entire first logical address space is divided into a plurality of NSAUs having the same size. Fig. 5 shows an example in which the entire first logical address space is divided into x+1 NSAUs (NSAU0 to NSAU12, ..., NSAUk+1, NSAUk+2, ..., NSAUx-1, NSAUx).

[0054] In this case, the size of each of the x+1 NSAUs is set to a size that allows NSAUs of a number corresponding to the maximum number of namespaces that the memory system 3 should support to be assigned to the remaining space after subtracting the second logical address space having the size of the notation capacity from the first logical address space. In FIG. 5, the total number of NSAUk+1 to NSAUx corresponds to the maximum number of namespaces that the memory system 3 should support. Generally, a logical address space having a size equivalent to the notation capacity of a storage device is approximately 93.14% of the size of the logical address space in an actual storage device that is managed by binary numbers. This is also true in the IDEMA standard. In the memory system 3, the controller 4 also manages the first logical address space by binary numbers. On the other hand, the notation capacity of the memory system 3 is expressed by decimal numbers. For example, if the notation capacity of the memory system 3 is 1 TB (= 1,000,000,000,000 bytes = 10 12 bytes), the size of the first logical address space is 1,099,511,627,776 bytes (=2 40 It may be a number of bytes.

[0055] Furthermore, when the maximum number of namespaces to be supported is N, the size of each NSAU may be set to a size that allows at least N-1 NSAUs to be allocated to the remaining space, whereby the first logical address space is divided into multiple NSAUs such that at least N-1 NSAUs are allocated to the remaining space in the first logical address space.

[0056] The number of divisions of the first logical address space varies depending on the maximum number of namespaces to be supported. For example, when the maximum number of namespaces to be supported is 16, the first logical address space may be divided into, for example, 256 NSAUs. When the second logical address space having the size of the nominal capacity is about 93.14 percent of the first logical address space, the second logical address space having the size of the nominal capacity can be expressed by 239 NSAUs out of the 256 NSAUs. Therefore, even if 239 NSAUs are used for one namespace having a size slightly smaller than the nominal capacity, 17 NSAUs remain. Therefore, it is possible to assign one NSAU each to the other 15 namespaces. When the maximum number of namespaces to be supported is 32, the first logical address space may be divided into, for example, 512 NSAUs.

[0057] FIG. 6 is a diagram showing an example of the configuration of the namespace mapping table 31 used in the memory system 3 according to the embodiment of the present invention.

[0058] The namespace mapping table 31 includes a plurality of table sections corresponding to a plurality of namespaces, respectively. Each table section includes entry #0, entry #1, ..., entry #x. For example, in a case where the first logical address space is divided into 256 NSAUs, each table section may include 256 entries. One entry includes a pointer indicating the location of one NSAU in the first logical address space.

[0059] For example, if the size of namespace NS#1 is equal to or smaller than the size of one NSAU and NSAU0 is assigned to namespace NS#1, pointer P0 in entry #0 in the table portion corresponding to namespace NS#1 is set to a value indicating NSAU0. Pointers P1-px of entries #1-#x in the table portion corresponding to namespace NS#1 are set to specific values ​​indicating unused.

[0060] When the size of the namespace NS#2 is equal to or smaller than the size of one NSAU and NSAU1 is assigned to the namespace NS#2, the pointer P0 in the entry #0 in the table portion corresponding to the namespace NS#2 is set to a value indicating the NSAU1. The pointers P1 to Px of the entries #1 to #x in the table portion corresponding to the namespace NS#2 are set to specific values ​​indicating unused.

[0061] Similarly, if the size of namespace NS#3 is equal to or smaller than the size of one NSAU and NSAU2 is assigned to namespace NS#3, pointer P0 in entry #0 in the table portion corresponding to namespace NS#3 is set to a value indicating NSAU2. Pointers P1 to Px of entries #1 to #x in the table portion corresponding to namespace NS#3 are set to specific values ​​indicating unused.

[0062] Next, a namespace resizing process according to an embodiment of the present invention will be described. Fig. 7(A) is a diagram showing a state in which one area in a logical address space is assigned to each of a plurality of namespaces used in a memory system 3 according to an embodiment of the present invention. Fig. 7(B) is a diagram showing a state in which another area in a logical address space is additionally assigned to one of a plurality of namespaces used in a memory system 3 according to an embodiment of the present invention. Fig. 7(C) is a diagram showing a state in which yet another area in a logical address space is additionally assigned to one of a plurality of namespaces used in a memory system 3 according to an embodiment of the present invention.

[0063] 7A, it is assumed that namespaces NS#1, NS#2, and NS#3 are managed. Namespaces NS#1, NS#2, and NS#3 are assigned NSAU0, NSAU1, and NSAU2, respectively. In this case, in the namespace mapping table 31, the pointer P0 corresponding to the namespace NS#1 indicates the position of NSAU0 in the first logical address space, the pointer P0 corresponding to the namespace NS#2 indicates the position of NSAU1 in the first logical address space, and the pointer P0 corresponding to the namespace NS#3 indicates the position of NSAU2 in the first logical address space.

[0064] Next, referring to FIG. 7(B), a process executed to expand the size of the namespace NS#2 will be described. First, the controller 4 selects one unused NSAU (for example, NSAU3) from among the multiple NSAUs in the first logical address space. The controller 4 additionally assigns the selected NSAU3 to the namespace NS#2. In this case, the controller 4 only needs to update the namespace mapping table 31 so that the pointer P1 corresponding to the namespace NS#2 points to NSAU3, and there is no need to move the data of each namespace. There is also no need to change the correspondence between each of the other namespaces and the NSAU.

[0065] Next, referring to Fig. 7(C), a process executed to further expand the size of the namespace NS#2 will be described. The controller 4 further selects one unused NSAU (e.g., NSAU4) from among the multiple NSAUs in the first logical address space. The controller 4 additionally assigns the selected NSAU4 to the namespace NS#2. In this case, the controller 4 only needs to update the namespace mapping table 31 so that the pointer P2 corresponding to the namespace NS#2 points to NSAU4.

[0066] 8 is a diagram showing an example of a correspondence relationship between a plurality of namespaces used in the memory system 3 according to the embodiment of the present invention and a plurality of areas in the first logical address space. In FIG. 8, a case is illustrated in which the maximum number of namespaces supported by the memory system 3 is 16, and the notional capacity of the memory system 3 is 480 GB. When the namespace NS#1 uses a size of, for example, 479 GB, the controller 4 assigns a number of NSAUs (for example, NSAU0 to NSAUj) corresponding to 480 GB to the namespace NS#1. As for NSAUj, only a portion of a plurality of LBAs included in NSAUj is used by the namespace NS#1.

[0067] However, since NSAUj is assigned to namespace NS#1, the set of unused LBAs in NSAUj cannot be used for other namespaces.

[0068] In the memory system 3 according to this embodiment, the number of NSAUs (e.g., NSAUk+1 to NSAUx) corresponding to the maximum number of namespaces to be supported exist in the remaining space after subtracting the second logical address space having the size of the notation capacity from the first logical address space. Therefore, even if the number of NSAUs corresponding to the notation capacity is assigned to the namespace NS#1, it is possible to assign one NSAU each to the remaining 15 namespaces (NS#2 to NS#15).

[0069] For example, NSAUk+1 is assigned to namespace NS#2, and NSAUk+2 is assigned to namespace NS#3. Similarly, one NSAU is assigned each to namespaces NS#4 to NS#14, and then NSAUx-1 is assigned to namespace NS#15, and NSAUx is assigned to namespace NS#16.

[0070] The total capacity available to the namespaces NS#2 to NS#15 is 1 GB (=480 GB-479 GB). Therefore, in each of NSAUk+1 to NSAUx, only a portion of the multiple LBAs included in each NSAU is used by each of the namespaces NS#2 to NS#15.

[0071] Therefore, the memory system 3 according to the embodiment of the present invention can allocate NSAUs in the number equal to the nominal capacity for one namespace having a size slightly smaller than the nominal capacity, without performing any special processing for expanding the first logical address space itself, and can simultaneously allocate one NSAU to each of the remaining namespaces. Therefore, for example, if the memory system supports 16 namespaces, by equally dividing the first logical address space of the memory system 3 into, for example, 256 NSAUs, it is possible to enable one namespace to use a size equal to the nominal capacity at most, and at the same time, support for a maximum of 16 namespaces can be realized.

[0072] Furthermore, the size of a namespace can be changed dynamically during operation of the memory system 3 without impairing the responsiveness of the memory system 3. This is because the size of any namespace can be changed without moving data in each namespace.

[0073] Next, a namespace management process according to an embodiment of the present invention will be described below with reference to a flowchart of FIG 9, which shows the procedure of the namespace management process executed in the memory system 3 according to the embodiment of the present invention.

[0074] The host 2 transmits a namespace creation request to the memory system 3. Upon receiving the namespace creation request (start), the controller 4 of the memory system 3 divides the first logical address space of the memory system 3 into a plurality of areas (NSAUs) and assigns one or more NSAUs to each namespace (S101). In S101, the size of one NSAU is set to a size that allows a number of NSAUs corresponding to the maximum number of namespaces that the memory system 3 should support to be assigned to the remaining space excluding the second logical address space having a size of the notation capacity from the first logical address space. The controller 4 divides the entire first logical address space into a plurality of NSAUs each having a set size so that a number of NSAUs corresponding to the maximum number of namespaces are assigned to the remaining space. Then, the controller 4 assigns one or more NSAUs to each namespace.

[0075] Next, the controller 4 manages the correspondence between each of the plurality of namespaces and one or more NSAUs assigned to each namespace, using the namespace mapping table 31 (S102).

[0076] The controller 4 determines whether it is necessary to expand the size of a certain namespace (S103). For example, the host 2 may transmit a request (command) to expand the size of a certain namespace to the memory system 3. In this case, when the controller 4 receives this request, the controller 4 may determine that it is necessary to expand the size of the namespace specified by this received request.

[0077] If it is not necessary to expand the size of a namespace (NO in S103), the controller 4 ends the process (END).

[0078] If it is necessary to expand the size of a namespace (YES in S103), the controller 4 selects an unused NSAU from the multiple NSAUs (S104). Here, an unused NSAU means an NSAU that is not assigned to any namespace.

[0079] The controller 4 allocates the selected unused NSAU to the namespace to be expanded by updating the namespace mapping table 31 (S105). This allows the controller 4 to dynamically expand the size of the namespace to be expanded without performing processing to move data of each namespace. Then, the controller 4 ends the processing (End).

[0080] Next, a write operation and a read operation according to the embodiment of the present invention will be described below. Fig. 10 is a flowchart showing the procedure of a write operation and a read operation executed in the memory system 3 according to the embodiment of the present invention.

[0081] The host 2 transmits various requests, including write requests and read requests, to the memory system 3. When a request is received (start), the controller 4 determines whether the received request is a write request, a read request, or another request (S111). If the received request is a write request (write request in S111), the controller 4 obtains a parameter specifying the NSID and a parameter specifying the LBA (destination LBA) within this namespace from the received write request (S112).

[0082] Next, the controller 4 identifies one or more NSAUs assigned to the namespace corresponding to the NSID specified by the acquired parameters by referring to the namespace mapping table 31 (S113). For example, if NSAU1 and NSAU3 are assigned to the namespace corresponding to this NSID, the controller 4 identifies NSAU1 and NSAU3 as one or more NSAUs assigned to the namespace corresponding to the NSID. Then, the controller 4 proceeds to the process of S114.

[0083] In S114, the controller 4 selects one NSAU from the one or more identified NSAUs based on the upper bit portion of the LBA (destination LBA). Then, the controller 4 converts the LBA (destination LBA) into an access target logical address belonging to the selected NSAU in the first logical address space by replacing the upper bit portion of the LBA (destination LBA) with a bit string indicating the position of the selected NSAU in the first logical address space.

[0084] After converting the LBA (destination LBA) into the logical address of the access target, the controller 4 writes data (write data) associated with the received write request to the non-volatile memory 5 (S115). Next, the controller 4 updates the L2P table 32 so that a physical address indicating a storage location (physical storage location) in the non-volatile memory 5 where the write data has been written is associated with the logical address of the access target (S116). Then, the controller 4 ends the process (END).

[0085] If the received request is a read request (read request in S111), the controller 4 acquires a parameter specifying an NSID and a parameter specifying an LBA (read target LBA) within this namespace from the received read request (S117).

[0086] Next, the controller 4 identifies one or more NSAUs assigned to the namespace corresponding to the NSID specified by the acquired parameters by referring to the namespace mapping table 31 (S118). For example, if NSAU1 and NSAU3 are assigned to the namespace corresponding to this NSID, the controller 4 identifies NSAU1 and NSAU3 as one or more NSAUs assigned to the namespace corresponding to the NSID. Then, the controller 4 proceeds to the process of S119.

[0087] In S119, the controller 4 selects one NSAU from the one or more identified NSAUs based on the upper bit portion of the LBA (the read target LBA). Then, the controller 4 converts the LBA (the read target LBA) into an access target logical address belonging to the selected NSAU in the first logical address space by replacing the upper bit portion of the LBA (the read target LBA) with a bit string indicating the position of the selected NSAU in the first logical address space.

[0088] After converting the LBA (read target LBA) into the logical address of the access target, the controller 4 refers to the L2P table 32 to identify the physical address where the data corresponding to the logical address of the access target is stored (S120). In S120, the controller 4 obtains from the L2P table 32 the physical address stored in the entry in the L2P table 32 that corresponds to the logical address of the access target as the physical address where the data corresponding to the logical address of the access target is stored.

[0089] The controller 4 reads the read target data from the non-volatile memory 5 based on the identified physical address, and transmits the read target data that has been read to the host 2 (S121). Then, the controller 4 ends the process (END).

[0090] Next, an example of the address conversion operation executed in S114 will be described. For example, assume that the first logical address space is divided into 256 NSAUs (NSAU0 to NSAU255), and NSAU1 and NSAU3 are assigned to the namespace corresponding to the NSID specified by the received write request.

[0091] In this case, if the upper 8 bits of the LBA (destination LBA) are "00000000", the controller 4 selects NSAU1 and replaces the upper 8 bits "00000000" with a bit string "00000001" indicating the position of NSAU1 in the first logical address space. The logical address to be accessed is represented by the replaced bit string "00000001" and the lower 24 bits of the LBA (destination LBA).

[0092] If the upper 8 bits are "00000001", the controller 4 selects the NSAU3 and replaces the upper 8 bits "00000001" with a bit string "000011" indicating the location of the NSAU3 in the first logical address space. The logical address to be accessed is represented by the replaced bit string "00000011" and the lower 24 bits of the LBA (destination LBA).

[0093] In S119, an address conversion operation similar to the address conversion operation performed in S114 is performed.

[0094] As described above, according to this embodiment, the controller 4 assigns one or more NSAUs among the multiple NSAUs obtained by equally dividing the first logical address space of the memory system 3 managed by the controller 4 to each of the multiple namespaces used by the host 2. Here, each of the multiple NSAUs has a size that allows a number of areas corresponding to the maximum number of namespaces to be supported to be assigned to the remaining space after removing the second logical address space having a size equivalent to the notation capacity of the memory system 3 from the first logical address space. For this reason, the first logical address space is divided into the multiple NSAUs so that the number of NSAUs corresponding to the maximum number of namespaces to be supported are assigned to the remaining space. The controller 4 manages the correspondence between each of the multiple namespaces and one or more NSAUs assigned to each of the multiple namespaces by using the namespace mapping table 31. Then, when the size of the first namespace of the multiple namespaces should be expanded, the controller 4 updates the namespace mapping table 31 to additionally assign an unused NSAU among the multiple NSAUs to the first namespace.

[0095] In this case, the controller 4 only needs to update the namespace mapping table 31, and does not need to move data of each namespace. Also, it is not necessary to change the correspondence between each of the other namespaces and the NSAU. Therefore, the controller 4 can dynamically expand the size of the first namespace without performing a process of moving data of each namespace.

[0096] In addition, without performing any special processing to expand the first logical address space itself, it is possible to allocate NSAUs in the number equal to the nominal capacity for one namespace having a size slightly smaller than the nominal capacity, and at the same time, it is possible to allocate one NSAU each to each of the remaining namespaces. Thus, it is possible to realize support for the maximum number of namespaces while enabling one namespace to use a size equal to the nominal capacity at most.

[0097] In this embodiment, a NAND flash memory is exemplified as a nonvolatile memory, but the function of this embodiment can be applied to various other nonvolatile memories such as MRAM (Magnetoresistive Random Access Memory), PRAM (Phase Change Random Access Memory), ReRAM (Resistive Random Access Memory), or FeRAM (Ferroelectric Random Access Memory).

[0098] 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]

[0099] 1. Storage System 2 Host 3. Memory System 4. Controller 5 Non-volatile memory 6 Random Access Memory (RAM) 10 Bus 11 Host interface circuit 12 CPU 13 Non-volatile memory control circuit 14 RAM interface circuit 15 Direct Memory Access Controller (DMAC) 16 Static RAM (SRAM) 17 ECC Encode / Decode Section 21 Namespace Management Department 22 Light control section 23 Lead control section 31 Namespace Mapping Table 32 Logical to physical address translation table (L2P table)

Claims

1. 1. A memory system connectable to a host, comprising: A non-volatile memory; a controller configured to control the non-volatile memory; The controller: managing a number of namespaces used by the host to access the memory system; Manage a first logical address space of the memory system having a size greater than a nominal capacity of the memory system, the nominal capacity being a total capacity available to the plurality of namespaces; equally dividing the entire first logical address space into a plurality of areas so that a number of areas corresponding to a maximum number of namespaces to be supported is assigned to a remaining space, the remaining space being obtained by excluding a second logical address space having a size equal to the notation capacity from the first logical address space; assigning one or more areas of the plurality of areas to each of the plurality of namespaces; managing a correspondence relationship between each of the plurality of namespaces and the one or more areas assigned to each of the plurality of namespaces using a first management table; A memory system configured to, when the size of a first namespace among the plurality of namespaces is to be expanded, update the first management table to additionally allocate an unused area among the plurality of areas to the first namespace without performing a process of moving data in each namespace.

2. The controller: when a read / write request specifying a first namespace identifier and a first logical address is received from the host, by referring to the first management table, one or more areas assigned to a namespace specified by the first namespace identifier are identified; selecting one area from the one or more identified areas based on a value of a high-order bit portion of the first logical address; 2. The memory system according to claim 1, configured to convert the first logical address into a logical address of an access target belonging to the selected area in the first logical address space by replacing the upper bit portion of the first logical address with a first bit string indicating the position of the selected area in the first logical address space.

3. 2. The memory system of claim 1, wherein the controller is configured to, in response to receiving a request from the host to expand the size of the first namespace, update the first management table to additionally allocate the unused area to the first namespace without changing a correspondence between each namespace other than the first namespace and one or more areas allocated to each of the other namespaces.

4. 2. The memory system of claim 1, wherein the controller is configured, when the size of the first namespace among the plurality of namespaces is to be expanded, to update the first management table and additionally allocate the unused area to the first namespace without performing a process of moving data of each namespace.

5. 1. A method for controlling a memory system including a non-volatile memory and a controller configured to control the non-volatile memory, comprising: managing, by the controller, a number of namespaces used by hosts to access the memory system; managing, by the controller, a first logical address space of the memory system having a size greater than a nominal capacity of the memory system, the nominal capacity being a total capacity available to the plurality of namespaces; dividing the entire first logical address space equally into a plurality of areas by the controller so that a number of areas corresponding to a maximum number of namespaces to be supported is assigned to a remaining space, excluding a second logical address space having a size equal to the notation capacity from the first logical address space; assigning, by the controller, one or more areas of the plurality of areas to each of the plurality of namespaces; managing, by the controller, a correspondence relationship between each of the plurality of namespaces and the one or more areas assigned to each of the plurality of namespaces using a first management table; a control method comprising: when a size of a first namespace among the plurality of namespaces is to be expanded, the controller updates the first management table without changing a correspondence between each namespace other than the first namespace and one or more areas assigned to each of the other namespaces, and additionally assigns an unused area among the plurality of areas to the first namespace.

6. when a read / write request specifying a first namespace identifier and a first logical address is received from the host, the controller refers to the first management table to identify one or more areas assigned to one namespace specified by the first namespace identifier; selecting, by the controller, one area from the one or more identified areas based on a value of a high-order bit portion of the first logical address; 6. The control method according to claim 5, further comprising: converting, by the controller, the first logical address into a logical address of an access target belonging to the selected area in the first logical address space by replacing the upper bit portion of the first logical address with a first bit string indicating a position of the selected area in the first logical address space.

7. 6. The control method of claim 5, wherein the additional allocation includes updating the first management table by the controller in response to receiving a request from the host to expand the size of the first namespace, to additionally allocate the unused area to the first namespace.

8. 6. The control method according to claim 5, wherein the additional allocation includes updating the first management table by the controller to additionally allocate the unused area to the first namespace without executing a process of moving data in each namespace.

Citation Information

Patent Citations

  • Memory controller and memory access control method

    JP2004240616A

  • Information processing device, program, and information processing system

    JP2016115355A

  • Memory system

    JP2017004355A

  • Memory system

    JP2017027387A

  • Storage system, information processing system, and control method

    JP2017162068A