Memory system and method for controlling nonvolatile memory
By using a memory controller to optimize data storage in consecutive pages and periodically updating the file system, the memory system addresses the challenge of slow read operations in non-volatile memory systems, achieving faster data retrieval.
Patent Information
- Application Number
- JP2023044749
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-10-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing memory systems with non-volatile memory face challenges in speeding up read operations, particularly when handling fragmented file data that requires additional processing time.
The memory system employs a memory controller that assigns configuration information to write commands, writes data to consecutive pages based on this information, and periodically updates the file system, optimizing data storage to facilitate faster read operations through Application-Based Optimization (ABO) processing.
This approach significantly reduces the time required to read file data when starting an application by storing data in consecutive physical addresses, thereby enhancing the speed of read operations.
Smart Images

Figure 2024134441000001_ABST
Abstract
Description
[Technical field]
[0001] SUMMARY OF THE DISCLOSURE Embodiments of the present disclosure relate to memory systems that include non-volatile memory. [Background technology]
[0002] In recent years, memory systems equipped with nonvolatile memories have become widespread. In such memory systems, NAND flash memories are used as the nonvolatile memories. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] U.S. Patent No. 10120606 [Patent Document 2] US Patent Application Publication No. 2021 / 0247920 [Patent Document 3] US Patent Application Publication No. 2018 / 0173620 Summary of the Invention [Problem to be solved by the invention]
[0004] The present disclosure aims to speed up read operations in memory systems. [Means for solving the problem]
[0005] The memory system of this embodiment is a memory system connectable to a host, the memory system comprising: non-volatile memories each including a plurality of pages; and a memory controller that writes a plurality of pieces of data specified by a plurality of write commands received from the host to the non-volatile memory, the host providing identical setting information to each of the plurality of write commands, and the memory controller writing the plurality of pieces of data to a plurality of pages among the plurality of pages corresponding to a plurality of consecutive addresses based on the identical setting information.
[0006] The memory system of this embodiment comprises non-volatile memories connectable to a host, each including a plurality of pages, and a memory controller that writes a plurality of pieces of data specified by a plurality of write commands received from the host to the non-volatile memory, wherein the host assigns setting information belonging to the same group to each of the plurality of write commands, and the memory controller writes the plurality of pieces of data to a plurality of pages among the plurality of pages corresponding to a plurality of consecutive addresses based on the setting information belonging to the same group, and after the write operation, periodically reads out a file system stored in the non-volatile memory, analyzes the file system, and obtains a timestamp included in the file system.
[0007] A method of controlling a non-volatile memory according to this embodiment includes executing a write operation to write a plurality of data specified in each of a plurality of write commands received from the host to the non-volatile memory, each of the plurality of write commands being assigned identical configuration information, and the write operation includes writing the plurality of data to a plurality of pages among the plurality of pages corresponding to a plurality of consecutive addresses based on the identical configuration information. [Brief description of the drawings]
[0008] [Figure 1] 1 is a block diagram showing a configuration of a memory system and a host according to a first embodiment. [Diagram 2] FIG. 2 is a diagram showing the configuration of an application file according to the first embodiment. [Figure 3A] 3 is a diagram showing the configurations of an actual data section and a table section according to the first embodiment; FIG. [Figure 3B] FIG. 4 is a diagram showing the configuration of an actual data section according to the first embodiment. [Figure 3C] FIG. 2 is a diagram showing a configuration of a table portion according to the first embodiment. [Figure 3D]FIG. 2 is a diagram showing a configuration of a table portion according to the first embodiment. [Figure 4] FIG. 2 is a diagram showing the configuration of an application file according to the first embodiment. [Diagram 5] FIG. 4 is a diagram showing the configuration of an actual data section according to the first embodiment. [Figure 6] FIG. 2 is a diagram showing a configuration of a table portion according to the first embodiment. [Figure 7A] FIG. 4 is a diagram showing the configuration of an actual data section according to the first embodiment. [Figure 7B] FIG. 2 is a diagram showing a configuration of a table portion according to the first embodiment. [Figure 7C] FIG. 2 is a diagram showing a configuration of a table portion according to the first embodiment. [Figure 8] FIG. 4 is a diagram showing a command configuration according to the first embodiment. [Figure 9A] FIG. 4 is a diagram showing an example of an operation sequence of the memory system according to the first embodiment. [Figure 9B] FIG. 4 is a diagram showing an example of command settings according to the first embodiment. [Figure 10] 4 is a flowchart showing a method of operating the memory system according to the first embodiment. [Figure 11] FIG. 11 is a diagram showing a command configuration according to the second embodiment. [Figure 12] FIG. 11 is a diagram showing an example of settings of an application code and a data order according to the second embodiment. [Figure 13] 10 is a flowchart illustrating a method of operating a memory system according to a second embodiment. [Figure 14] 10 is a flowchart illustrating a method of operating a memory system according to a second embodiment. [Figure 15] FIG. 11 is a functional block diagram of a memory system and a host according to a third embodiment. [Figure 16] 13 is a flowchart illustrating a method of operating a memory system according to a third embodiment. [Figure 17A] FIG. 13 is a diagram showing the arrangement of a timestamp table according to the third embodiment. [Figure 17B] FIG. 13 is a diagram showing the configuration of an actual data section according to the third embodiment. [Figure 17C] FIG. 13 is a diagram showing a configuration of a table portion according to a third embodiment. [Figure 17D] FIG. 13 is a diagram showing the configuration of an actual data section according to the third embodiment. [Figure 17E] FIG. 13 is a diagram showing a configuration of a table portion according to a third embodiment. [Figure 17F] FIG. 13 is a diagram showing the configuration of an actual data section according to the third embodiment. [Figure 17G] FIG. 13 is a diagram showing a configuration of a table portion according to a third embodiment. [Figure 18] FIG. 13 is a functional block diagram of a memory system and a host according to a fourth embodiment. [Figure 19] FIG. 13 is a diagram showing the configuration of an application file according to the fourth embodiment. [Figure 20] FIG. 13 is a diagram showing a command configuration according to the fourth embodiment. [Figure 21] 13 is a flowchart illustrating a method of operating a memory system according to a fourth embodiment. [Figure 22] FIG. 13 is a diagram showing an example of command settings according to the fourth embodiment. [Figure 23] FIG. 13 is a diagram showing the configuration of an actual data section according to the fourth embodiment. [Figure 24] FIG. 13 is a diagram showing a configuration of a table portion according to a fourth embodiment. [Diagram 25] FIG. 13 is a functional block diagram of a memory system and a host according to a fifth embodiment. [Figure 26] FIG. 13 is a diagram showing the configuration of an application file according to the fifth embodiment. [Figure 27] 13 is a flowchart illustrating a method of operating a memory system according to a fourth embodiment. [Figure 28A] FIG. 13 is a diagram showing the configuration of an actual data section according to the fifth embodiment. [Figure 28B] FIG. 13 is a diagram showing a configuration of a table portion according to a fifth embodiment. [Figure 28C]FIG. 13 is a diagram showing the configuration of an actual data section according to the fifth embodiment. [Figure 28D] FIG. 13 is a diagram showing a configuration of a table portion according to a fifth embodiment. [Figure 29] FIG. 13 is a diagram showing a configuration of a table portion according to a fifth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] The memory system of each embodiment will be described below with reference to the drawings. In the following description, components having the same or similar functions and configurations are given common reference symbols. When multiple components having a common reference symbol are to be distinguished from each other, the common reference symbol is given a suffix (e.g., an uppercase alphabet, a number, a hyphen and an uppercase alphabet and a number, etc.) to distinguish them, and duplicate descriptions may be omitted.
[0010] First Embodiment A memory system 1 according to the first embodiment will be described. The memory system 1 includes a nonvolatile memory 20 and a memory controller 10 that controls the nonvolatile memory 20. The nonvolatile memory 20 is an example of a semiconductor memory device, such as a NAND flash memory.
[0011] <1-1. Overall configuration of memory system 1> The overall configuration of the memory system 1 will be described with reference to Figs. 1 to 3. Fig. 1 is a block diagram for explaining the configuration of the memory system 1. Fig. 2 is a diagram showing the configuration of data created by an application 32 installed in the host 30. In other words, Fig. 2 is a diagram showing files constituting the application 32 installed in the host 30. Fig. 3A is a diagram showing the configurations of an actual data section 300 and a table section 400 included in the memory section 23, Fig. 3B is a diagram showing the configuration of the actual data section 300, and Fig. 3C is a diagram showing the configuration of the table section 400.
[0012] The nonvolatile memory 20 of the memory system 1 includes a plurality of memory cells. The memory system 1 is connectable to a host 30. The memory system 1 in FIG.
[0013] The memory system 1 is, for example, an SD memory device in which a memory controller 10 and a non-volatile memory 20 are configured as a single package. TM The storage device may be a memory card such as a card, a Universal Flash Storage (UFS), or a Solid State Drive (SSD).
[0014] The host 30 is, for example, an electronic device such as a personal computer or a mobile terminal. The host 30 includes, for example, a processor and a memory. The processor is configured to execute various programs loaded into the memory. The various programs include, for example, an operating system (OS), a file system implemented in the OS, and an application (Application) 32. Data created by the application 32 includes application file data (AFD) 321. The AFD 321 includes multiple file data. The OS of the host 30 manages, for example, the generation, storage, update, deletion, etc. of the AFD. The application 32 is configured, for example, to exchange data (actual data) with the memory system 1 via the OS. The data (actual data) is stored as file data.
[0015] <1-2. Configuration of non-volatile memory 20> The nonvolatile memory 20 is a nonvolatile memory that stores data in a nonvolatile manner. The nonvolatile memory 20 is, for example, a NAND type flash memory (hereinafter, simply referred to as a NAND memory). In the memory system 1, a case where a NAND memory is used as the nonvolatile memory 20 is illustrated, but a nonvolatile memory other than a NAND memory, such as a three-dimensional structure flash memory, a ReRAM (Resistance Random Access Memory), or a FeRAM (Ferroelectric Random Access Memory), can be used as the nonvolatile memory 20. Various storage media can be applied to the memory system 1.
[0016] The non-volatile memory 20 stores data (actual data) sent from the host 30, management information of the memory system 1, firmware, and the like. The data is, for example, the AFD 321. Although details will be described later, the management information includes an application ID, a time stamp, a logical address included in an address-physical address conversion table, a physical address, and a page number, and the like. The management information may also include a time stamp, time, cumulative read amount, and cumulative write amount, which will be described later. The firmware operates the processor 11 that controls at least a part of the functions of the memory controller 10. A part of the firmware may be stored in the ROM 10.
[0017] The non-volatile memory 20 includes a plurality of memory chips 21. The memory controller 10 controls each of the plurality of memory chips 21. Specifically, the memory controller 10 executes data write operations, read operations, and erase operations for each of the memory chips 21. Each of the plurality of memory chips 21 is connected to the memory controller 10 via a NAND bus.
[0018] Each memory chip 21 includes a plurality of dies 22. A die 22 refers to a wafer unit on which memory cells are formed. The memory chip 21 is configured by stacking a plurality of dies 22.
[0019] Each die 22 is provided with a plurality of memory sections 23. The memory section 23 is made up of a plurality of pages. The memory section 23 includes an actual data section 300 and a table section 400 (FIG. 3A).
[0020] The actual data section 300 includes multiple memory blocks MBx (MB1, MB2, MB3, MB4, ...) (Figures 3A and 3B). The multiple memory blocks MB include AFD321, firmware, etc. The memory block MB is a data erasure unit. All memory cell transistors provided in the memory block MB are connected to the same source line. One unit of memory block MB may be called a "physical block."
[0021] In the NAND memory, write and read operations are generally performed in data units called "pages," and erase is performed in data units of the physical blocks. In the memory system 1, a memory cell transistor, which is the smallest unit of a memory element, may simply be called a "memory cell," and the position of a memory cell in a physical block may be called a "physical address." In the memory system 1, a "page" refers to the smallest unit in a write operation. A plurality of memory cells connected to the same word line is called a "memory cell group." When the memory cells are SLC (Single Level Cell), one memory cell group constitutes one page. When the memory cells are multi-bit cells, such as MLC (Multi Level Cell) in which one memory cell group constitutes two pages, TLC (Triple Level Cell) in which one memory cell group constitutes three pages, or QLC (Quad Level Cell) in which one memory cell group constitutes four pages, one memory cell group corresponds to multiple pages. Each memory cell is connected to both a word line and a bit line. Therefore, it is possible to identify each memory cell using an address that identifies a word line and an address that identifies a bit line.
[0022] The table section 400 includes a plurality of logical address-physical address conversion tables. In the logical address-physical address conversion tables, the logical address of the data received from the host 30 is associated with the physical address indicating the page of the real data section 300 on the non-volatile memory 20 in which the data is stored. The logical address-physical address conversion table is commonly called an L2P table. The logical address, physical address, page number, etc. are management information.
[0023] <1-3. Configuration of memory controller 10> The memory controller 10 is, for example, a semiconductor integrated circuit configured as a System On a Chip (SoC).
[0024] The memory controller 10 controls a write operation to the non-volatile memory 20 in accordance with a write request from the host 30, controls a read operation from the non-volatile memory 20 in accordance with a read request from the host 30, and controls an erase operation to the non-volatile memory 20 in accordance with an erase request from the host 30. The memory controller 10 includes functional blocks such as a host interface (host I / F) 17, a RAM 12, a ROM 13, a processor 11, an ECC 15, and a memory I / F (memory I / F) 18. These functional blocks are connected to each other via an internal bus 19.
[0025] The host I / F 17 receives a write request, read request, or erase request from the host 30, and executes processing in accordance with the interface standard between the host 30 and the host I / F 17. The host I / F 17 transmits data read from the non-volatile memory 20 to the host 30, and transmits responses from the processor 11 to the host 30. Note that the write request includes, for example, a write command WCMD, a write address, and write data (for example, AFD321). The read request includes, for example, a read command RCMD and a read address. The erase request includes, for example, an erase command ERCMD and an erase address.
[0026] The interface standard may be, for example, a Small Computer System Interface (SCSI) or a Serial SCSI (SAS) interface, or a high-speed communication standard such as Universal Serial Bus (USB), Advanced Technology Attachment (ATA), or Serial ATA.
[0027] The RAM 12 is used, for example, as a data buffer, and temporarily holds data received by the memory controller 10 from the host 30 until the data is stored in the nonvolatile memory 20. The RAM 12 temporarily holds data read from the nonvolatile memory 20 until the data is transmitted to the host 30. In addition, in the RAM 12, an L2P table and the like read from the nonvolatile memory 20 based on each command are expanded. As the RAM 12, for example, a general-purpose memory such as an SRAM (Static Random Access Memory) or a DRAM (Dynamic Random Access Memory) can be used.
[0028] The ROM 13 stores various programs, parameters, etc. for operating the memory controller 10. The programs, parameters, etc. stored in the ROM 13 are read out and executed by the processor 11 as necessary.
[0029] The processor 11 is a control unit that comprehensively controls each functional block of the memory system 1. The processor 11 includes a data management unit 110 and a write / read (W / R) management unit 111. The functions of the data management unit 110 may be realized by hardware, or may be realized by a CPU that executes firmware. The functions of the W / R management unit 111 may be realized by hardware, or may be realized by a CPU that executes firmware.
[0030] When the processor 11 receives a request from the host 30 via the host I / F 17, it uses the data management unit 110 and the W / R management unit 111 to carry out control according to the request.
[0031] The memory I / F 18 executes a write operation, a read operation, and an erase operation to the non-volatile memory 20 based on an instruction from the processor 11. The memory I / F 18 may execute other operations based on an instruction from the processor 11, for example, an operation based on a first command.
[0032] For example, in response to a write request from the host 30, the processor 11 instructs the memory I / F 18 to perform a data write operation to the nonvolatile memory 20. For example, in response to a write request from the host 30, the data management unit 110 uses the L2P table included in the table unit 400 to determine a write destination (physical address indicating a page in the actual data unit 300) on the nonvolatile memory 20 for the data to be written that is temporarily stored in the RAM 12. That is, the data management unit 110 manages the data to be written and the write destination of the data. In addition, the W / R management unit 111 receives the physical address from the data management unit 110, and instructs the memory I / F 18 to perform a write operation to write the data to be written to the physical address. The memory I / F 18 outputs the data to be written and the physical address to the nonvolatile memory 20, and the data to be written is stored in the page of the actual data unit 300 that corresponds to the physical address. The correspondence between the logical address of the data to be written received from the host 30 and the physical address at which the data to be written is stored is stored in an L2P table included in the table unit 400.
[0033] Furthermore, in response to a read request from the host 30, the processor 11 instructs the memory I / F 18 to perform a read operation of data from the nonvolatile memory 20. For example, in response to a read request from the host 30, the data management unit 110 uses the L2P table included in the table unit 400 to determine a physical address indicating a page in the real data unit 300 on the nonvolatile memory 20 corresponding to the logical address of the data to be read. That is, the data management unit 110 uses the L2P table to manage the logical address of the data to be read and the physical address corresponding to the logical address. Furthermore, the W / R management unit 111 receives the physical address from the data management unit 110 and instructs the memory I / F 18 to perform a read operation to read the data to be read from the physical address. The memory I / F 18 outputs the data to be read and the physical address to the nonvolatile memory 20, and reads the data to be read from the physical address.
[0034] Furthermore, in response to an erase request from the host 30, the processor 11 instructs the memory I / F 18 to erase data from the nonvolatile memory 20. For example, in response to an erase request from the host 30, the data management unit 110 uses the L2P table included in the table unit 400 to determine a physical address indicating a page in the real data unit 300 on the nonvolatile memory 20 corresponding to the logical address of the data to be erased. That is, the data management unit 110 manages the logical address of the data to be erased and the physical address corresponding to the logical address. Furthermore, the W / R management unit 111 receives the physical address from the data management unit 110 and instructs the memory I / F 18 to perform an erase operation to erase the data to be erased from the physical address. The memory I / F 18 outputs the data to be erased and the physical address to the nonvolatile memory 20, and erases the data to be erased from the physical address.
[0035] In addition, the data management unit 110 executes garbage collection (GC) and application based optimization (ABO) processing. For example, the data management unit 110 counts the number of free blocks (FBs) described below, and if the number of FBs is equal to or less than a predetermined threshold, the data management unit 110 executes GC. If the number of FBs is greater than the predetermined threshold, the data management unit 110 does not need to execute GC processing.
[0036] Garbage collection (GC) is a process for increasing the number of usable blocks among physical blocks, and refers to a process of, for example, collecting valid data from a plurality of active blocks that contain valid data and invalid data, rewriting the valid data in another block, and reserving a free block. Here, an active block refers to a physical block in which valid data is recorded. A free block refers to a physical block in which valid data is not recorded. A free block can be reused as an erased block after erasure. A free block includes both a block before erasure in which valid data is not recorded, and an erased block. Valid data is data associated with a logical address, which will be described later, and invalid data is data not associated with a logical address. An erased block becomes an active block when data is written to it. In the drawings, invalid data is indicated by diagonal lines.
[0037] In addition, application based optimization (ABO) processing refers to processing in which each of multiple application data corresponding to consecutive logical addresses generated using the same application is stored in physical blocks corresponding to consecutive physical addresses in non-volatile memory 20 in the order of the corresponding logical addresses.
[0038] The ECC 15 executes ECC encoding (error correction encoding) during a write operation and ECC decoding (error correction decoding) during a read operation based on an instruction from the processor 11. As the encoding method of the ECC 15, for example, an encoding method using a Low-Density Parity-Check (LDPC) code, a Bose-Chaudhuri-Hocquenghem (BCH) code, or a Reed-Solomon (RS) code can be adopted.
[0039] In the memory system 1 having the above configuration, when executing a write operation to the nonvolatile memory 20, the processor 11 determines a write destination (physical address indicating a page in the actual data unit 300) of the data to be written in the nonvolatile memory 20, and instructs the memory I / F 18 of the physical address indicating the determined page in the actual data unit 300. For example, the ECC 15 ECC-encodes the data to be written based on an instruction from the processor 11. The data to be written generated in this way is written to the specified page of the nonvolatile memory 20 via the memory I / F 18.
[0040] On the other hand, during a read operation on the non-volatile memory 20, the processor 11 designates a physical address on the non-volatile memory 20, determines conditions for a read operation of a memory cell according to the designated physical address, and instructs the memory I / F 18 to execute the read operation. The processor 11 instructs the ECC 15 to start ECC decoding. The memory I / F 18 executes a read operation on the designated physical address of the non-volatile memory 20 according to the instruction of the processor 11, and inputs the data to be read obtained by this read operation to the ECC 15. The ECC 15 decodes the input data to be read. If the decoding is successful, the processor 11 stores the data to be read in the RAM 12. On the other hand, if the ECC decoding fails, the processor 11 notifies the host 30 of a read error, for example.
[0041] <1-4. Structure of data created by application 32> 2, the data structure created by the application 32 will be described. The application 32 includes an AFD 321. The data created by the application 32 is specified by a logical address of the host 30. In the logical address space 100, the AFD is associated with the logical address.
[0042] The logical address may be, for example, a Logical Block Addressing (LBA), which may include, for example, 0000h, 0080h, 0100h, 0180h, 0200h, . . .
[0043] Data created by the application 32 includes, for example, File A, File B, and File C. File A, File B, and File C are file data created using the same application. For example, one file is made up of 32 pages, and one page is made up of 4 LBAs. File A is associated with 0000h to 007Fh, File B is associated with 0080h to 00FFh, and File C is associated with 0100h to 017Fh. In the first embodiment, File A to File C are referred to as the first file data to the third file data.
[0044] <1-5. Configuration of the actual data section 300 and the table section 400> The configurations of the real data section 300 and the table section 400 will be described with reference to Figs. 3A to 3D. Figs. 3A to 3D are diagrams showing the state of the real data section 300 or the table section 400 in which the memory system 1 receives a write request, executes a write operation based on the write command WCMD, and Files A to C of the AFD 321 are stored in the non-volatile memory 20. The real data section 300 includes, for example, four memory blocks MB1 to MB4 (MBx, x = 1 to 4) (Fig. 3A). One memory block is made up of 128 pages (Fig. 3B). File A is stored in pages 000 to 031 of MB1, File B is stored in pages 032 to 063 of MB1, and File C is stored in pages 064 to 095 of MB1. No data is stored in pages 096 to 127 of MB1, the pages of MB2, the pages of MB3, and the pages of MB4. That is, pages 096 to 127 of MB1, each page of MB2, each page of MB3, and each page of MB4 are pages that have no correspondence between physical addresses and logical addresses in the real data section 300 and the table section 400, and are erased pages (Erased Pages (EP)).
[0045] The table section 400 includes, for example, four L2P tables (a first L2P table 400a, a second L2P table 400b, a third L2P table 400c, and a fourth L2P table 400d) (FIGS. 3A and 3C). Furthermore, an application-specific L2P table 410 shown in FIG. 3D may be generated as necessary. The application-specific L2P table 410 is a table that associates file data generated using the same application with a logical address corresponding to the file data. An application may be referred to as a group, and the same application may be referred to as the same group.
[0046] In the first L2P table 400a, the second L2P table 400b, the third L2P table 400c, and the fourth L2P table 400d, physical addresses of 128 pages are associated with logical addresses corresponding to the respective physical addresses of the 128 pages in the memory system 1. Specifically, in the first L2P table 400a of the memory system 1, pages 000 to 127 of the physical addresses are associated with logical addresses corresponding to the respective physical addresses. Like the first L2P table 400a, the second L2P table 400b associates physical addresses of pages 128 to 255 with logical addresses corresponding to the respective physical addresses, the third L2P table 400c associates physical addresses of pages 256 to 383 with logical addresses corresponding to the respective physical addresses, and the fourth L2P table 400d associates physical addresses of pages 384 to 511 with logical addresses corresponding to the respective physical addresses. More specifically, the first L2P table 400a associates physical addresses of pages 000 to 096 with logical addresses 0000h to 017Fh. Furthermore, the physical addresses of pages 096 to 127 of the first L2P table 400a, each page of the second L2P table 400b, each page of the third L2P table 400c, each page of the fourth L2P table 400d, and each page of the application-specific L2P table 410 are pages that are not associated with a logical address and are erased pages (Erased Pages (EPs)). Note that in the first embodiment, there may not be an association in which the LBAs of the first L2P table 400a, the second L2P table 400b, the third L2P table 400c, and the fourth L2P table 400d are EPs.
[0047] The memory system 1 can store FileA, FileB, and FileC, which were generated using the same application 32 and correspond to consecutive logical addresses 0000h to 017Fh, in pages corresponding to consecutive physical addresses of the non-volatile memory 20 in the order of logical addresses 0000h to 017Fh.
[0048] <1-6. First Example of Operation Method of Memory System 1 (First Example)> 2 to 7, a first example of an operation method of the memory system 1 will be described. The operation method of the first example includes updating file data generated using the application 32 in the host 30, the memory system 1 receiving a write request from the host 30 based on the updated file data, the memory controller 10 executing a write operation based on the write request, and the data management unit 110 executing ABO processing. The operation method of the first example may include the data management unit 110 executing GC after executing the write operation, or may include the data management unit 110 executing ABO processing after executing GC.
[0049] Fig. 4 is a diagram showing the configuration of updated data when data created by application 32 is updated. Fig. 5 is a diagram showing the configuration of real data section 300 after update. Fig. 6 is a diagram showing the configuration of table section 400 after update. Figs. 7A to 7C are diagrams showing the configuration of real data section 300 or table section 400 after ABO processing. In the description of the operation method of the first example of memory system 1, descriptions of configurations that are the same as or similar to those in Figs. 1 to 3D may be omitted.
[0050] 4, the structure of data after updating when data created by application 32 is updated will be described. FileB and FileC are updated to file BU (FileBU) and file CU (FileCU). FileA is associated with 0000h to 007F, as before the update. FileBU is associated with 2000h to 207Fh, and FileCU is associated with 3000h to 307Fh.
[0051] 5 and 6, the configuration of the actual data section 300 and the table section 400 after updating will be described. When the memory controller 10 receives a write request including a write command WCMD and write data from the host 30, the memory controller 10 executes the write operation described in "1-3. Configuration of the memory controller 10" based on the write command WCMD and the write data.
[0052] FIG. 5 is a diagram showing a schematic diagram of data arrangement in the actual data section 300 after, for example, the following processing is executed. After creating FileA, FileB, and FileC, the host 30 creates other data and transmits it to the memory system 1. The memory system 1 stores the other data in pages 096 to 127 of the memory block MB1. Thereafter, host 30 updates FileB to FileBU and sends it to memory system 1. Memory system 1 stores FileBU in pages 128 to 159 of memory block MB2. In addition, host 30 creates other data different from the data stored in pages 096 to 127 and sends it to memory system 1. Memory system 1 stores the other data received from host 30 in pages 160 to 255 of memory block MB2. Thereafter, host 30 updates FileC to FileCU and sends it to memory system 1. Memory system 1 stores FileCU in pages 256 to 287 of memory block MB3. Host 30 also creates other data different from the data saved in pages 096 to 127 and pages 160 to 255 and sends it to memory system 1. Memory system 1 stores the other data received from host 30 in pages 287 to 351 of memory block MB3. FileB stored in pages 032 to 063 and FileC stored in pages 064 to 095 are invalid data not associated with a logical address.
[0053] For example, in the first L2P table 400a of the table section 400 after the update shown in Fig. 6, FileA (physical address pages 000 to 031) is associated with logical addresses 0000h to 007Fh, as in the case before the update, and FileA stored in pages 000 to 031 is valid data. Also, in the first L2P table 400a, the association of FileB and FileC stored in physical addresses pages 032 to 095 corresponding to logical addresses 0080h to 017Fh is no longer present (shown as invalid data in Fig. 6), and the file data in physical addresses pages 096 to 127 associated with LBAs corresponding to valid data other than FileA to FileC, FileBU, and FileCU is valid data. In the second L2P table 400b, FileBU (physical addresses of pages 128 to 159) are associated with logical addresses of 1000h to 01007Fh, and FileBU stored in pages 128 to 159 is valid data. In addition, file data in physical addresses of pages 160 to 255 associated with logical addresses corresponding to valid data other than FileA to FileC, FileBU, and FileCU is valid data. In the third L2P table 400c, FileCU (physical addresses of pages 256 to 287) are associated with logical addresses of 2000h to 207Fh, and FileCU stored in pages 256 to 287 is valid data. In addition, file data in physical addresses of pages 288 to 351 associated with logical addresses corresponding to valid data other than FileA to FileC, FileBU, and FileCU is valid data. The physical addresses of the pages of the third L2P table 400c and the physical addresses of the pages of the fourth L2P table 400d are pages that are not associated with a logical address and are erased pages (Erased Pages (EPs)). The application-specific L2P table 410 is in the same state as in FIG. 3D even after the update. In the first embodiment, there may be no association with the LBAs (hatched areas) of the invalid data.
[0054] 7A to 7C, the configurations of the real data section 300 and the table section 400 after the memory controller 10 executes the ABO process will be described. In the description of the configurations of the real data section 300 and the table section 400 after the ABO process is executed with reference to Figs. 7A to 7C, the differences from the configurations of the real data section 300 and the table section 400 with reference to Figs. 5, 6, and 3D will be mainly described.
[0055] The memory controller 10 executes the ABO process after executing the write operation of the update data, etc. For example, in the actual data part 300 shown in Fig. 7A, FileA is stored in pages 352 to 383 of the memory block MB3, FileBU is stored in pages 384 to 415 of the memory block MB3, and FileCU is stored in pages 416 to 447 of the memory block MB3. FileA stored in pages 000 to 031, FileBU stored in pages 128 to 159, and FileCU stored in pages 256 to 287 are invalid data not associated with a logical address.
[0056] 7B, physical addresses of page 352 to page 383 are associated with logical addresses of 0000h to 007Fh. In a fourth L2P table 400d, physical addresses of page 384 to page 415 are associated with logical addresses of 1000h to 107Fh, and physical addresses of page 416 to page 447 are associated with logical addresses of 2000h to 207Fh. FileA stored in pages 000 to 031 of physical addresses corresponding to logical addresses 0000h to 007Fh in the first L2P table 400a, FileBU stored in pages 128 to 159 of physical addresses corresponding to logical addresses 1000h to 107Fh in the second L2P table 400b, and FileCU stored in pages 256 to 287 of physical addresses corresponding to logical addresses 2000h to 207Fh in the third L2P table 400c have become invalid data.
[0057] That is, the memory controller 10 executes the ABO process, and the nonvolatile memory 20 stores file data (FileA to FileC) generated using the same application 32 in pages 352 to 447 of consecutive physical addresses in the actual data unit 300. Also, the ABO process is executed, and the nonvolatile memory 20 stores in the application-specific L2P table 410 the pages 352 to 447 of the physical addresses where FileA generated using the same application 32 is stored and the logical addresses 0000h to 007Fh, the pages 384 to 415 of the physical addresses where FileB is stored and the logical addresses 1000h to 107Fh, and the pages 416 to 447 of the physical addresses where FileC is stored and the logical addresses 2000h to 207Fh, so as to be associated with each other (FIG. 7C).
[0058] The first example of the operating method of the memory system 1 can execute an ABO process that stores multiple application data included in the AFD 321 in physical blocks corresponding to consecutive physical addresses associated in the order of LBA. Therefore, when the host 30 starts the application 32, the multiple application data can be read from the memory system 1 in the order of LBA.
[0059] The memory system 1 may execute GC, collect valid data from a plurality of active blocks, and file data obtained by dividing the AFD stored in a plurality of pages, rewrite the data to another block, and secure a free block. The memory system 1 may execute an operation of temporarily storing the file data obtained by dividing the AFD into SLC in the non-volatile memory 20, and then re-storing the file data obtained by dividing the AFD into TLC in the non-volatile memory 20. When a memory system not having an ABO process implemented in the memory controller 10 of the memory system 1 starts an application using file data obtained by dividing the AFD, the file data stored in the non-volatile memory in a divided state must be read from the non-volatile memory. Therefore, the memory system not having an ABO process implemented in the memory controller 10 of the memory system 1 takes longer to read the file data stored in a divided state than the memory system 1. That is, it may take longer for a host connected to a memory system not having an ABO process implemented in the memory controller 10 of the memory system 1 to start an application file.
[0060] On the other hand, when the host 30 starts the application 32 in the above-mentioned case, the memory system 1 can read the AFD 32 (File A, File BU, and File CU) corresponding to LBA0000h-007Fh, LBA1000h-107Fh, File B, and 2000h-207Fh from the non-volatile memory 20 in the memory system 1, from pages 352-447 corresponding to consecutive physical addresses. Therefore, the memory system 1 can shorten the read time of file data when starting the application 32, compared to a memory system that does not have the ABO process implemented in the memory controller 10 of the memory system 1. That is, the memory system 1 can speed up the read operation of file data when starting the application 32.
[0061] Furthermore, for example, if the number of FBs is greater than a predetermined threshold, the data management unit 110 may not execute GC processing, but may execute ABO processing after writing the file data based on the write command WCMD or writing the updated file data.
[0062] <1-7. Second Example of Operation Method of Memory System 1 (Second Example)> A second example of the operation method of the memory system 1 will be described with reference to FIGS. 8 to 10. FIG. 8 is a diagram showing an example of a format 500 of a write command WCMD. FIG. 9A is a diagram showing an example of an operation sequence of the memory system 1. FIG. 9B is a diagram showing an example of setting of the write command WCMD shown in FIG. 8. FIG. 10 is a flowchart showing a second example of the operation method of the memory system 1. In the description of the second example of the operation method of the memory system 1, the description of the same or similar configurations as those in FIGS. 1 to 7 may be omitted.
[0063] 8 and 9B, a format 500 of the write command WCMD will be described. For example, the format 500 may be a format conforming to SCSI. When a request to write file data is sent from the host 30 to the memory system 1, the format 500 specifies, for example, the start address of the LBA corresponding to the file data and the size of the file data.
[0064] The format 500 includes an operation code (OPERATION CODE, OC) 502, a plurality of individual setting codes 504, an LBA 506, a continuous flag (Continuous Flag, CF) 508, a reserved area (Rsvd) 509, a group number (GROUP NUMBER) 510, a transfer length (TRANSFER LENGTH, TL) 512, and a control byte 514. The code, data, value, etc. set in the format 500 are called setting information.
[0065] OC502 indicates that the request (e.g., command, descriptor block) being sent is a write request, and includes a first operation code (1st OPERATION CODE, 1stOC). The block size of OC502 is, for example, 1 byte, and OC502 includes a predetermined value 2Ah. The multiple individual setting codes 504 include individually settable codes such as WRPROTECT(0), DPO, FUA, and FUN_NV(0), as well as Rsvd, which is an extension block. Also, Obsolete is a code that was used in the past but has since been discontinued.
[0066] LBA 506 is the start address of the LBA. The size of LBA 506 is, for example, 4 bytes. The size of LBA 506 is not limited to 4 bytes and can be appropriately selected based on the purpose and specifications of the memory system 1. For example, when the format 500 is a request to write 1 MByte of file data to a start address of 0x0100 (0x00000100), LBA 506 is set to 0x0100.
[0067] CF508 includes CF data, and the size of the CF data is, for example, 2 bits, and CF508 is set, for example, as shown in FIG. 9B. When 0b00 (CF=00) is set as the CF data, the format 500 represents a write request instructing a write operation of normal data. The write operation of normal data is, for example, an operation in which a plurality of data are not written to pages corresponding to consecutive physical addresses. When 0b10 (CF=10) is set in the CF data, the format 500 represents a write request instructing a write operation of consecutive data and ABO processing. The write operation of consecutive data and ABO processing are operations in which data is written to pages corresponding to consecutive physical addresses. When 0b11 (CF=11) is set in the CF, the format 500 represents a write request instructing the end of the write operation of consecutive data of CF=10. Moreover, the write data transmitted to the memory system 1 together with the format 500 in which 0b11 (CF=11) is set in the CF is the last data of the consecutive data. The memory system 1 processes the write command WCDM following the write command WCMD in which CF=11 is set as a write request different from the write command WCMD in which CF=10 to CF=11 are set.
[0068] The description of the format 500 will be continued with reference to Fig. 8. The transfer length (TL) 512 indicates the size of the file data. The size of the TL 512 is, for example, 2 bytes. The size of the TL 512 is not limited to 2 bytes, and can be appropriately selected based on the application, specifications, etc. of the memory system 1.
[0069] Rsvd 509 is an extension block, and group number 510 and control byte 514 are codes that can be individually set, but detailed description thereof will be omitted here.
[0070] An example of an operation sequence of the memory system 1 will be described with reference to Fig. 9A. The example of the operation sequence shown in Fig. 9A includes sending write requests to write multiple AFDs (e.g., FileA to FileC) included in data created by the same application 32 consecutively multiple times from the host 30 to the memory system 1. Each of the write requests includes a write command WCMD including the format 500 shown in Fig. 8. The format 500 includes 1stOC corresponding to the write request, and CF data capable of setting consecutive data writing and ABO processing.
[0071] First, the host 30 starts a write operation (step S1). The host 30 transmits a first write command WCMD including a format 500 in which OC, CF, LBA and TL are set to a first operation command (1stOC), "0b00", a predetermined address and a predetermined size to the memory system 1 (step S10).
[0072] Next, the host 30 sends a second write command WCMD to the memory system 1 (step S11), which includes a format 500 in which the CF, LBA and TL set in step S10 are changed to "0b10", a specified address, and a specified size, without changing the OC set in step S10.
[0073] Next, the host 30 transmits to the memory system 1, in a plurality of steps from step S11 to step S12, a write command WCMD including a format 500 in which CF is set to 0b10, similarly to step S11.
[0074] Since CF of the format 500 is set to 0b10 in the multiple steps from step S11 to step S12, the memory controller 10 in the memory system 1 instructs the non-volatile memory 20 to store the application file data received from the host 30 in steps S11 to S12 in pages corresponding to consecutive physical addresses, based on the write command WCMD received from the host 30 in steps S11 to S12. The operations of the host 30 and the memory system 1 in steps S11 to S12 correspond to the operations in period 550.
[0075] Next, in multiple steps from step S13 to step S14 following step S12, the host 30 sends a write command WCMD to the memory system 1, which includes OC, CF, LBA and TL, 1stOC, "0b00", a specified address, and a format 500 set to a specified size.
[0076] Because the CF of the format 500 is set to 0b00 in the multiple steps from step S13 to step S14, the memory controller 10 in the memory system 1 instructs the non-volatile memory 20 to write the application file data received from the host 30 from step S13 to step S14 to a page corresponding to a specified physical address based on the write command WCMD received from the host 30 from step S13 to step S14.
[0077] Next, in a plurality of steps from step S15 onwards, the host 30 transmits a write command WCMD including OC, CF, LBA and TL, 1stOC, "0b10", a predetermined address and a format 500 set to a predetermined size, to the memory system 1, as in step S12. Also, in step S16, the host 30 transmits a third write command WCMD including OC, CF, LBA and TL, 1stOC, "0b11", a predetermined address and a format 500 set to a predetermined size, to the memory system 1.
[0078] In step S16, since CF of the format 500 is set to 0b11, the memory controller 10 in the memory system 1 instructs the nonvolatile memory 20 to store the application file data received from the host 30 in steps S15 to S16 in pages corresponding to consecutive physical addresses based on the write command WCMD received from the host 30 in steps S15 to S16. The operations of the host 30 and the memory system 1 in steps S15 to S16 correspond to the operations in the period 552. Moreover, the memory controller 10 in the memory system 1 instructs the nonvolatile memory 20 to store the application file data received in the operations in the period 550 and the operation in the period 552 in pages corresponding to consecutive physical addresses as data corresponding to a series of consecutive write operations.
[0079] A second example of the operation method of the memory system 1 will be described with reference to Fig. 10. The second example of the operation method of the memory system 1 shown in Fig. 10 is an example in which two application file data are stored in pages corresponding to consecutive physical addresses in the example of the operation sequence shown in Fig. 9A. In the description of the second example of the operation method of the memory system 1, the same description as the example of the operation sequence shown in Fig. 9A will be omitted.
[0080] Step S501 corresponds to step S1. Next, the memory controller 10 receives from the host 30 a first write command WCMD including the format 500 and FileA of the AFD 321 included in the application 32, and stores FileA in the non-volatile memory 20 based on the first write command WCMD using the W / R management unit 111 and the data management unit 110 (step S502). In the format 500 included in the first write command WCMD, the OC, CF, LBA, and TL are set to 1stOC, "0b00", 0000h which is the LBA of FileA, and 512KByte which is the transfer length of FileA. For example, the LBA is 4KByte per address.
[0081] Next, the memory controller 10 receives the second write command WCMD including the format 500 and File B of the AFD 321 from the host 30, and stores File B in the non-volatile memory 20 based on the second write command WCMD using the W / R management unit 111 and the data management unit 110 (step S503). The format 500 included in the second write command WCMD has OC, CF, LBA and TL set to the 1stOC, "0b10", the LBA of File B, 0080h, and the transfer length of File B, 512KByte.
[0082] Next, the memory controller 10 receives from the host 30 a third write command WCMD including the format 500 and FileC of the application file data 321, and uses the W / R management unit 111 and the data management unit 110 to store FileC in the non-volatile memory 20 based on the third write command WCMD (step S504). FileC is the last file data following FileB in the series of data from FileA to FileC. In the format 500 included in the third write command WCMD, the OC, CF, LBA and TL are set to the 1stOC, "0b11", the LBA of FileC, 0100h, and the transfer length of FileC, 512KByte.
[0083] Next, the data management unit 110 executes the ABO process based on the CF data (11) included in the third write command WCMD (step S505). The data management unit 110 can store FileA, FileB, and FileC in pages corresponding to consecutive physical addresses of the non-volatile memory 20 in the order of logical addresses 0000h to 017Fh via the memory I / F. The data management unit 110 can also manage the application file data stored in pages corresponding to consecutive physical addresses of the non-volatile memory 20 in the order of logical addresses 0000h to 017Fh.
[0084] At this time, the data management unit 110 associates the logical addresses 00h to 04h with pages corresponding to consecutive physical addresses of the non-volatile memory 20, and stores the logical addresses 00h to 04h and the pages corresponding to consecutive physical addresses of the non-volatile memory 20 in at least one of the multiple L2P tables included in the table unit 400.
[0085] The data management unit 110 executes the ABO process, and when step S505 is completed, the write operation ends (step S506).
[0086] The memory system 1 can store multiple files corresponding to consecutive logical addresses generated using the same application 32 in pages corresponding to consecutive physical addresses of the non-volatile memory 20 in the order of the corresponding logical addresses.
[0087] <Second embodiment> A memory system 1 according to the second embodiment will be described. The method of operation of the memory system 1 according to the second embodiment differs from the method of operation of the memory system 1 according to the first embodiment. The components other than the method of operation of the memory system 1 according to the second embodiment are similar to the configuration of the first embodiment. Below, differences from the first embodiment will be mainly described with reference to Figs. 11 to 14.
[0088] <2-1.Format 600> A format 600 of a write command WCMD will be described with reference to Figs. 11 and 12. Fig. 11 is a diagram showing an example of a format 600 of a write command WCMD of a memory system 1 according to the second embodiment. Fig. 12 is a diagram showing an example of settings of an application code and a level order included in the format 600. The format 600 differs from the format 500 according to the first embodiment in an operation code (OC), an order flag (OF), an application code, and a data order. Note that, like the format 500, the code, data, level order, value, and the like set in the format 600 are called setting information.
[0089] The format 600 includes an OC 602, an OF 608, an application code 616, a first level data order 618, a second level data order 620, and a third level data order 622, as well as a plurality of individual setting codes 604, an LBA 606, a group number 610, a transfer length (TRANSFER LENGTH, TL) 612, and a control byte 614. The plurality of individual setting codes 604, the LBA 606, the group number 610, the transfer length (TRANSFER LENGTH, TL) 612, and the control byte 614 are similar to the plurality of individual setting codes 504, the LBA 506, the group number 510, the transfer length (TRANSFER LENGTH, TL) 512, and the control byte 514, and therefore description thereof will be omitted.
[0090] OC602 indicates that the transferred block (eg, command, descriptor block) is a write request and includes a second operation code (2nd OPERATION CODE, 2ndOC). The block size of OC602 is, for example, 1 byte.
[0091] OF608 includes OF data, and the size of the OF data is, for example, 3 bits. By setting the OF data, the data to be written corresponding to the format 600 includes an application ID described later, and indicates that it is continuous with the data written previously. Also, by setting the OF data, the format 600 represents a write request that instructs a write operation and ABO processing.
[0092] The size of each of the application code 616, the first level order 618, the second level order 620, and the third level order 622 is, for example, 512 KByte. The size of each of the application code 616, the first level order 618, the second level order 620, and the third level order 622 is not limited to 512 KByte, and can be appropriately selected based on the application, specifications, etc. of the memory system 1.
[0093] The application code 616, the first level order 618, the second level order 620, and the third level order 622 are set as shown in FIG.
[0094] The application code 616 includes an application ID, which is assigned an index unique to the application, such as #01 shown in FIG.
[0095] The first level order 618, the second level order 620, and the third level order 622 indicate the hierarchical structure of data included in the same application. For example, the hierarchical structure of data is explained by comparing it to a number of apartment buildings. In the case where one apartment building has three floors and each floor includes 10 rooms, for example, the first digit indicates the number of the building, the next digit indicates the floor, and the last two digits indicate the room number, each room in the apartment building can be set with a four-digit number. In this case, for example, room 5 on the first floor of one building can be set as 1105, and room 10 on the second floor of one building can be set as 1210. That is, for example, if the first level order 618, the second level order 620, and the third level order 622 are set in the order of increasing hierarchy, the first level order 618 can be assigned to the number of the apartment building, the second level order 620 can be assigned to the floor of the apartment building, and the third level order 622 can be assigned to the room number of the apartment building.
[0096] The first level order 618, the second level order 620, and the third level order 622 shown in FIG. 12 are assigned positive integers of 1 to 3, 1 to 5, and 1 to 10, respectively, and are set so that the hierarchy becomes deeper in the order of the first level order 618, the second level order 620, and the third level order 622. Note that the memory system 1 shows a three-level level order as an example, but the number of hierarchical levels of the level order is not limited to three. The number of hierarchical levels of the level order can be appropriately selected based on the application and specifications of the memory system 1. Note that in the memory system 1, as an example, when the setting value of the first level order 618 is defined as x, the setting value of the second level order 620 is defined as y, and the setting value of the third level order 622 is defined as z, the first level order 618, the second level order 620, and the third level order 622 are expressed as one unit such as (x, y, z).
[0097] In addition, the first level order 618, the second level order 620, and the third level order 622 indicate the hierarchical structure of data included in the same application, and the hierarchy is information indicating the order in which data included in the same application is read and written. That is, the memory controller 10 instructs the nonvolatile memory 20 to write and read data in order from the data corresponding to the unit with the smallest set value among (x, y, z).
[0098] <2-2. An example of the operation method of the memory system 1> A method of operating the memory system 1 according to the second embodiment will be described with reference to Figures 13 and 14. Figures 13 and 14 are flowcharts showing a method of operating the memory system 1 according to the second embodiment.
[0099] The operating method of the memory system 1 according to the second embodiment includes transmitting, from the host 30 to the memory system 1, write requests for writing a plurality of application file data (e.g., FileA to FileC) that are included in data created by the same application 32 and that include information indicating a hierarchical structure indicating the order of reading or writing. Each of the write requests includes a write command WCMD that includes a format 600 shown in Fig. 11. The format 600 includes 2ndOC corresponding to the write request, an application ID, and OF data that indicates that the data is consecutive to previously written data and that can set writing and ABO processing.
[0100] In the operation method of the memory system 1 according to the second embodiment, as an example, data created by the application 32 includes five AFDs, FileA to FileE, each having a TL of 512KByte. FileA to FileE are referred to as the first file data to the fifth file data.
[0101] First, the host 30 starts a write operation (step S601). The host 30 sets OC602, application code 616, first level order 618, second level order 620, third level order 622, LBA, and TL to 2ndOC, #01, (1,0,0,), a predetermined address, and 512KByte, and transmits a first write command WCMD including a format 600 in which OF is set, and FileA to the memory system 1 (step S602).
[0102] Next, the memory controller 10 receives from the host 30 a first write command WCMD including the format 600 and FileA included in the application file data 321, and stores FileA in the non-volatile memory 20 based on the first write command WCMD using the W / R management unit 111 and the data management unit 110 (step S602). The OC 602, application code 616, first level order 618, second level order 620, and third level order 622, LBA, and TL of the format 600 included in the first write command WCMD are set to 2ndOC, #01, (1,0,0), the LBA corresponding to FileA, and 512KByte, and OF is set.
[0103] After step S602, the host 30 executes step S603. The host 30 executes step S603 by replacing FileA, the first write command WCMD, the first level order 618, the second level order 620, and the third level order 622 (1, 0, 0), and the LBA corresponding to FileA in step S602 with FileB, the second write command WCMD, (2, 0, 0), and the LBA corresponding to FileB.
[0104] After step S603, the host 30 executes step S604. The host 30 executes step S604 by replacing FileB, the second write command WCMD, the first level order 618, the second level order 620, and the third level order 622 (2, 0, 0), and the LBA corresponding to FileB in step S603 with FileC, the third write command WCMD, (3, 0, 0), and the LBA corresponding to FileC.
[0105] The first write command WCMD to the third write command WCMD are set with OF and a hierarchical structure (first to third level order), respectively. The data management unit 110 executes ABO processing based on the OF and the hierarchical structure set in the first write command WCMD to the third write command WCMD (step S605). The data management unit 110 can store FileA, FileB, and FileC in the order of FileA, FileB, and FileC in pages corresponding to consecutive physical addresses of the nonvolatile memory 20 via the memory I / F. The data management unit 110 can also manage application file data stored in pages corresponding to consecutive physical addresses of the nonvolatile memory 20 in the order of the hierarchical structure of FileA, FileB, and FileC.
[0106] At this time, the data management unit 110 associates the LBAs of File A, File B, and File C with pages corresponding to consecutive physical addresses in the non-volatile memory 20, and stores them in at least one of the multiple L2P tables included in the table unit 400.
[0107] Next, when the memory controller 10 receives an erase request including the erase command ERCMD and the erase data (File B) from the host 30, the memory controller 10 executes the erase operation described in "1-3. Configuration of the memory controller 10" based on the erase command ERCMD and the erase data (step S606).
[0108] Next, as the memory controller 10 executes the erase operation, the data management unit 110 executes the ABO process (step S607). That is, the data management unit 110 stores FileA and FileC in pages corresponding to consecutive physical addresses of the nonvolatile memory 20 in the order of the LBAs of FileA and FileC via the memory I / F. The data management unit 110 also associates the LBAs of FileA and FileC with pages corresponding to consecutive physical addresses of the nonvolatile memory 20, and stores them in at least one of the multiple L2P tables included in the table unit 400.
[0109] After step S607, the host 30 executes step S608. The host 30 executes step S608 by replacing FileC, the third write command WCMD, the first level order 618, the second level order 620, and the third level order 622 (3, 0, 0), and the LBA corresponding to FileC in step S604 with FileD, the fourth write command WCMD, (2, 0, 0), and the LBA corresponding to FileD.
[0110] After step S608, the host 30 executes step S609. The host 30 executes step S609 by replacing FileD, the fourth write command WCMD, the first level order 618, the second level order 620, and the third level order 622 (2, 0, 0), and the LBA corresponding to FileD in step S608 with FileE, the fifth write command WCMD, (2, 1, 0), and the LBA corresponding to FileE.
[0111] Since the fourth write command WCMD and the fifth write command WCMD are set with OF and hierarchical structure, the data management unit 110 executes the ABO process based on the OF and hierarchical structure set in the fourth write command WCMD and the fifth write command WCMD, similarly to step 605 (step S610). As a result, the data management unit 110 can store FileA, FileD, FileE, and FileC in the order of FileA, FileD, FileE, and FileC in pages corresponding to consecutive physical addresses of the nonvolatile memory 20 via the memory I / F based on the hierarchical structures (1, 0, 0), (3, 0, 0), (2, 0, 0), and (2, 1, 0) of FileA, FileC, FileD, and FileE, respectively. In addition, the data management unit 110 can manage the application file data stored in the pages corresponding to consecutive physical addresses of the nonvolatile memory 20 in the order of FileA, FileD, FileE, and FileC.
[0112] At this time, the data management unit 110 associates the hierarchical structure of File A, File D, File E, and File C with pages corresponding to consecutive physical addresses of the non-volatile memory 20, and stores them in at least one of the multiple L2P tables included in the table unit 400.
[0113] The data management unit 110 executes the ABO process, and when step S610 is completed, the write operation ends (step S611).
[0114] Also, for example, after step S610, when the memory system 1 receives a read request including a read command RCMD from the host 30 and reads data from the non-volatile memory 20 based on the read command RCMD, FileA, FileD, FileE, and FileC can be read in this order based on the L2P table that stores the hierarchical structure and the pages corresponding to the physical addresses of each data.
[0115] The memory system 1 according to the second embodiment can execute the ABO process in the same manner as the memory system 1 according to the first embodiment, and store a plurality of file data in pages corresponding to consecutive physical addresses of the non-volatile memory 20. Therefore, like the memory system 1 according to the first embodiment, the memory system 1 according to the second embodiment can shorten the time required to read file data when starting the application 32, and can speed up the operation of reading file data when starting the application 32.
[0116] <Third embodiment> A memory system 1 according to a third embodiment will be described. The method of operation of the memory system 1 according to the third embodiment differs from the method of operation of the memory system 1 according to the first and second embodiments. In the description of the memory system 1 according to the third embodiment, the differences from the first embodiment will be mainly described.
[0117] <3-1. Overall configuration of memory system 1> 15 is a functional block diagram of the memory system 1 and the host 30 according to the third embodiment. The operating method of the memory system 1 according to the third embodiment includes that the memory controller 10 does not execute the ABO process using the data management unit 110 and the W / R management unit 111 based on the write command WCMD from the host 30, but that the data management unit 110 of the memory controller 10 analyzes the file system 121 and acquires time information. The file system 121 is data for the host 30 to manage information about files and directories, is a data format for managing the data of the file stored in the nonvolatile memory 20 and the address where the data is stored, and includes metadata (for example, a time stamp 122) including the time when the data was stored in the nonvolatile memory 20.
[0118] The data management unit 110 identifies the timestamp 122 included in the file system 121 according to the type of the file system, and reads out as time information the identified timestamp 122. The area in which the timestamp 122 exists differs depending on the file system.
[0119] The data management unit 110 includes, for example, a program 115. The program 115 is a program that periodically reads a file system 121, analyzes the data structure of the file system 121, and determines whether or not the data includes a timestamp 122. Specifically, the program 115 can analyze a number of representative file systems.
[0120] The data management unit 110 periodically executes the program 115. The data management unit 110 may store an accumulated write amount obtained by counting the number of times a write command WCMD is received from the host 30, and may also manage the accumulated write amount. Also, for example, the data management unit 110 may count the number of times a read command RCMD is received from the host 30, and may store an accumulated read amount and manage the accumulated write amount. Also, the data management unit 110 may be executed every time a write command WCMD or a read command RCMD is received.
[0121] The data management unit 110 executes the program 115, for example, for each 100 GByte of accumulated read volume or each 100 GByte of accumulated write volume, reads the file system 121, analyzes the data structure of the file system 121, and determines whether the data includes a timestamp 122.
[0122] <3-2. Operation method of memory system 1> A method of operating the memory system 1 according to the third embodiment will be specifically described with reference to Figs. 16 to 17E. Fig. 16 is a flowchart showing the method of operating the memory system 1 according to the third embodiment. Fig. 17A is a diagram showing a configuration of a time stamp table 630 according to the third embodiment. Figs. 17B, 17D, and 17F are diagrams showing a configuration of an actual data section 300A according to the third embodiment. Figs. 17C, 17E, and 17G are diagrams showing a configuration of an L2P table 400A according to the third embodiment.
[0123] When the memory controller 10 receives, for example, a write command WCMD or a read command RCMD from the host 30, the memory controller 10 starts counting the number of times the write command WCMD and the read command RCMD have been received (step 701).
[0124] The data management unit 110 reads the file system 121, for example, each time the cumulative read amount or cumulative write amount reaches a certain amount (step S702). After reading the file system 121, the data management unit 110 analyzes the data structure of the file system 121 (step S703). The data management unit 110 also determines whether the data in the data structure includes the timestamp 122. If it is determined that the data in the data structure includes the timestamp 122, the data management unit 110 stores the time information corresponding to the timestamp 122 in the timestamp table 630.
[0125] For example, in the time stamp table 630, the LBA, AFD, application ID, and time stamp 122 shown in Fig. 17A are associated with each other. LBA 0000h to 007Fh, FileA, application ID #01 (application 32), and time t0 of the time stamp 122 are associated with each other. Like FileA, FileB and FileC are associated with each other as shown in Fig. 17A. Here, FileA is updated to FileAU from time t0 to time t1. FileB, FileA, and FileC, which were created using the same application 32 (application ID is #01), are stored in the memory block in this order.
[0126] FIG. 17B is a diagram showing a schematic diagram of data arrangement in the real data section 300A after, for example, the following processing has been executed. The real data section 300A includes, for example, memory blocks MB1 to MB3. The host 30 creates FileB, FileA, and FileC and transmits them to the memory system 1. The memory system 1 stores FileB, FileA, and FileC in pages 000 to 095 that correspond to the physical addresses of the memory block MB1. As shown in the table section 400A of FIG. 17C, the table section 400A includes, for example, a first L2P table 400a, a second L2P table 400b, and a third L2P table 400c. The table section 400A of FIG. 17C is a table section corresponding to the real data section 300A shown in FIG. 17B. In the first L2P table 400a, LBA0000h-017Fh are associated with FileB, FileA, and FileC (pages 000-095 corresponding to physical addresses). The configurations of the memory blocks MB1-MB3, the first L2P table 400a, the second L2P table 400b, and the third L2P table 400c are similar to those in the first embodiment, and detailed description thereof will be omitted here.
[0127] For example, the memory controller 10 receives a write request including a write command WCMD and write data (FileB, FileA, and FileC) from the host 30, and executes the write operation described in "1-3. Configuration of the memory controller 10" based on the write command WCMD and the write data (FileB, FileA, and FileC), thereby forming the time stamp table 630 shown in Fig. 17A, the actual data section 300A, and the table section 400A shown in Fig. 17B and Fig. 17C. Also, when Files A to C are updated, for example, the memory controller 10 executes the write operation described in "1-6. First Example (First Example) of the Operation Method of the Memory System 1", thereby forming the time stamp table 630U shown in Fig. 17A, and the actual data section 300A or the table section 400A shown in Fig. 17D and Fig. 17E.
[0128] When the timestamp 122 is updated, for example, the timestamp table 630 is updated to a timestamp table 630U, the actual data portion 300A shown in Fig. 17B is updated to the actual data portion 300 shown in Fig. 17D, and the table portion 400A shown in Fig. 17C is updated to the table portion 400A shown in Fig. 17E. Based on the timestamp table 630U and the actual data portion 300A shown in Fig. 17D, the pages in which FileA is stored are updated from pages 032 to 063 to pages 128 to 159 at time t1. FIG. 17D is a diagram showing a schematic diagram of data arrangement in real data section 300A after, for example, FileB, FileA, and FileC are stored in pages 000 to 095 corresponding to the physical addresses of memory block MB1 and the following processing is executed. The host 30 creates data other than FileA to FileC and FileAU, and transmits it to the memory system 1. The memory system 1 stores the other data in pages 096 to 127 of memory block MB1. The other data is valid data stored in pages 096 to 127, and is file data in pages 096 to 127 of physical addresses associated with LBAs corresponding to valid data other than FileA to FileC and FileAU in the table portion 400A of FIG. 17E. Thereafter, the host 30 updates FileA to FileAU and transmits it to the memory system 1. The memory system 1 stores FileAU in pages 128 to 159 of the memory block MB2. The table section 400A in Fig. 17E corresponds to the real data section 300A shown in Fig. 17D. In the first L2P table 400a, LBA0000h-007Fh are associated with FileB (page 000-page 031 of the physical address), LBA0100h-017Fh are associated with FileC (page 064-page 095 of the physical address), and LBAs corresponding to valid data other than FileA-FileC, FileBU, and FileCU are associated with page 096-page 127 of the physical address. In the second L2P table 400b, LBA0080h-00FFh are associated with FileAU (page 128-page 159 of the physical address). 17B to 17E are pages that have no correspondence between physical addresses and logical addresses in the real data part 300A and the table part 400A. Also, as shown in Fig. 17D and Fig. 17E, the correspondence of FileB (page 032 to page 063 of physical addresses) that corresponded to LBA 0080h to 00FFh in the first L2P table 400a has disappeared (shown as invalid data in Fig. 17D).
[0129] Returning to Fig. 16, the explanation will be continued. Data management unit 110 reads time stamp table 630U and acquires the time information corresponding to updated time stamp 122 (step S704).
[0130] When the data management unit 110 acquires the time stamp 122 as time information, the data management unit 110 reads the updated table section 400A shown in Fig. 17E and checks the order of the file data (step 705). Specifically, the data management unit 110 reads the first L2P table 400a and the second L2P table 400b shown in Fig. 17E and checks that LBA0000h-007Fh correspond to pages 000-031 of the physical addresses, that LBA0100h-017Fh correspond to pages 064-095 of the physical addresses, and that LBA0080h-00FFh correspond to pages 128-159 of the physical addresses. The data management unit 110 also confirms that File B is stored in pages 000 to 031 of the physical addresses of the updated actual data unit 300A shown in FIG. 17D, File C is stored in pages 064 to 095, and File AU is stored in pages 128 to 159, in that order. The data management unit 110 executes the ABO processing described in the first and second embodiments based on the file update. FIG. 17F is a diagram showing a schematic diagram of data arrangement in real data section 300A after, for example, FileAU is stored in pages 128 to 159 corresponding to the physical addresses of memory block MB2 and the ABO process is executed. The host 30 creates other data different from the data stored in FileA to FileC, and FileAU, and pages 128 to 159, and transmits it to the memory system 1. The memory system 1 stores the other data in pages 160 to 255 of memory block MB2. The other data is valid data stored in pages 160 to 255, and is file data in pages 160 to 255 of physical addresses associated with LBAs corresponding to valid data other than FileA to FileC, and FileAU in the table portion 400A of FIG. 17G. As a result, the data management unit 110 can store FileB, FileAU, and FileC corresponding to consecutive LBAs 000h to 017Fh in pages 256 to 351 corresponding to consecutive physical addresses in memory block MB3 in the order of the corresponding LBAs, as in real data unit 300A shown in Fig. 17F. Also, the data management unit 110 associates pages 256 to 352 of the physical addresses with LBAs 0000h to 017Fh, as in table unit 400A shown in Fig. 17G, and stores them in the third L2P table 400c. That is, FileB, FileAU, and FileC stored in pages 256 to 352 are valid data. 17G, the association between the FileAU (page 128 to page 159 of the physical addresses) corresponding to LBA 0080h to 00FFh in the second L2P table 400b and the FileAU (page 128 to page 159 of the physical addresses) in the memory block MB2 has disappeared (shown as invalid data in FIG. 17F). Note that in the third embodiment, the association of the LBAs of the invalid data (hatched areas) may not exist, and the associations in which the LBAs in the first L2P table 400a, the second L2P table 400b, and the third L2P table 400c are EPs may not exist.
[0131] When the data management unit 110 confirms that FileB, FileAU, and FileC are stored in this order, the operation method of the memory system 1 according to the third embodiment ends (step S707).
[0132] The memory system 1 according to the third embodiment executes ABO processing in the same way as the first and second embodiments, and can store a plurality of file data corresponding to consecutive LBAs, which are generated using the same application 32, in pages corresponding to consecutive physical addresses in the non-volatile memory 20 in the order of the corresponding logical addresses. Therefore, the memory system 1 according to the third embodiment, like the first and second embodiments, can shorten the time required to read file data when starting the application 32, and can speed up the operation of reading file data when starting the application 32.
[0133] <Fourth embodiment> A memory system 1 according to a fourth embodiment will be described. The method of operation of the memory system 1 according to the fourth embodiment differs from the method of operation of the memory system 1 according to the first embodiment. In the description of the memory system 1 according to the fourth embodiment, the differences from the first embodiment will be mainly described.
[0134] <4-1. Overall configuration of memory system 1> A functional block configuration of the memory system 1 and the host 30 according to the fourth embodiment will be described with reference to Fig. 18. Fig. 18 is a functional block diagram of the memory system 1 and the host 30 according to the fourth embodiment.
[0135] The operating method of the memory system 1 according to the fourth embodiment includes the memory controller 10 using the data management unit 110 and the W / R management unit 111 to execute a process of concatenating at least two AFDs (e.g., FileB and FileD) generated using the same application 33, and executing an ABO process, based on a first command from the host 30. The first command includes a format 700 shown in FIG. 20. The format 700 includes a third operation command (3rdOC) corresponding to the first command, a first LBA (1stLBA), a first data length (1st Data Length, 1stDL), a second LBA (2ndLBA), and a second data length (2nd Data Length, 2ndDL).
[0136] In response to a first command received from the host 30, the W / R management unit 111 instructs the non-volatile memory 20 to execute a process of concatenating at least two AFDs generated using the same application 33.
[0137] In response to a first command received from the host 30, the data management unit 110, for example, reads out the L2P table contained in the table unit 400 into the RAM 12, develops it on the RAM 12, and updates the management information in the L2P table.
[0138] <4-2. Structure of data created by application 33> The configuration of data created by the application 33 will be described with reference to Fig. 19. Fig. 19 is a diagram showing the configuration of data created by the application 33 according to the fourth embodiment. The data created by the application 33 includes an AFD 331. The data created by the application 33 is specified by a logical address of the host 30. In the logical address space 100A, the AFD is associated with a logical address.
[0139] The AFD 331 includes, for example, FileA to FileD that were generated using the same application 33. FileB is associated with LBA0000h to 007Fh, FileD is associated with LBA1080h to 117Fh, FileA is associated with LBA2180h to 227Fh, and FileC is associated with LBA2280h to 237Fh. That is, in the memory system 1 according to the fourth embodiment, FileB, FileD, FileA, and FileC are not associated with consecutive logical addresses.
[0140] <4-3.Format 700> A format 700 of the first command will be described with reference to Fig. 20. Fig. 20 is a diagram showing an example of the format 700 of the first command according to the fourth embodiment. The format 700 differs from the format 500 according to the first embodiment in 3rdOC, 1stLBA, 1stDL, 2ndLBA, and 2ndDL. Note that, like the format 500, the code, data, value, etc. set in the format 700 are called setting information.
[0141] The format 700 includes an OC 702, a plurality of individual setting codes 704, a 1stLBA 706, reserved areas (Reserved) 709 and 719, a 1stDL 713, a 2ndLBA 716, a 2ndDL 723, and control bytes 714 and 724. That is, the format 700 includes two consecutive LBAs (1stLBA 706 and 2ndLBA 716), and includes 1stDL 713 and 2ndDL 723 corresponding to the data lengths of the 1stLBA 706 and 2ndLBA 716, respectively.
[0142] The multiple individual setting codes 704, the reserved areas 709 and 719, and the control bytes 714 and 724 are similar to the multiple individual setting codes 504, the reserved area 509, and the control byte 514, and therefore description thereof will be omitted. Also, the 1stLBA 706 and the 2ndLBA 716 are similar to the LBA 506, and the 1stDL 713 and the 2ndDL 723 are similar to the TL 512.
[0143] OC702 indicates that the transferred block (eg, command, descriptor block) concatenates at least two AFDs and is a request to execute an ABO operation, and includes a third operation code (3rd OPERATION CODE, 3rdOC).
[0144] <4-4. Operation method of memory system 1> With reference to Figs. 21 to 24, an operation method of the memory system 1 according to the fourth embodiment will be described. Fig. 21 is a flowchart showing the operation method of the memory system 1 according to the fourth embodiment. Fig. 22 is a diagram showing an example of setting the first command shown in Fig. 20. Fig. 23 is a diagram showing the configuration of the real data section 300B and the table section 400B according to the fourth embodiment, and Fig. 24 is a diagram showing the configuration of the table section 400B according to the fourth embodiment. In the operation method of the memory system 1 according to the fourth embodiment, as an example, data created by the application 33 includes four AFDs, FileA to FileD, each having a DL of 512KByte. FileA to FileD are called the first file data to the fourth file data.
[0145] First, the host 30 starts an operation of concatenating a plurality of AFDs (step S701). The host 30 transmits a first command including OC702, 1stLBA, 1stDL, 2ndLBA, and 2ndDL, 3rdOC shown in FIG. 22, the start address of the LBA of FileB, 512KByte, the start address of the LBA of FileD, and a format 700 set to 512KByte to the memory system 1, and the memory controller 10 receives the first command including the format 700 from the host 30 (step S702). Note that the start address is, for example, an address in which the start address is set and which indicates the order in which the AFDs are read or written. The start address of the LBA of FileB is smaller than the start address of the LBA of FileD. The non-volatile memory 20 stores FileB before FileD, and reads FileB before FileD.
[0146] After step S702, the memory system 1 executes step S703. The memory system 1 transmits a first command to the memory system 1, in which the 3rdOC, the start address of the LBA of FileB, 512KByte, the start address of the LBA of FileD, and the format 700 set to 512KByte in step S702 are replaced with the 3rdOC, the start address of the LBA of FileD, 512KByte, the start address of the LBA of FileA, and the format 700 set to 512KByte shown in FIG. 22, and the memory controller 10 receives the first command including the format 700 from the host 30 (step S703). The start address of the LBA of FileD is smaller than the start address of the LBA of FileA. The non-volatile memory 20 stores FileD before FileA, and reads FileD before FileA.
[0147] Next, the memory controller 10 executes step S704. The operation method of the memory system 1 in step S704 is an operation method in which FileB and FileD in step S703 are replaced with FileA and FileC. The start address of the LBA of FileA is smaller than the start address of the LBA of FileC. The non-volatile memory 20 stores FileA before FileC and reads FileA before FileC.
[0148] When step S704 is completed, the memory controller 10 instructs the nonvolatile memory 20 to execute a process (ABO process) of linking FileB, FileD, FileA, and FileC corresponding to consecutive logical addresses in this order and storing them in pages corresponding to consecutive physical addresses (step S705) using the W / R management unit 111 and the data management unit 110 based on each of the first commands received in steps S702 to S704. The nonvolatile memory 20 stores FileB, FileD, FileA, and FileC in this order in pages corresponding to consecutive physical addresses.
[0149] 23, the nonvolatile memory 20 stores file data in memory block MB1 (a page (EP) with no correspondence between a logical address and a physical address) included in the actual data unit 300. Specifically, the nonvolatile memory 20 stores File B from page 000 to page 031, File D from page 032 to page 063, File A from page 064 to page 095, and File C from page 096 to page 127.
[0150] 24, the data management unit 110 sets pages (EPs) in the table unit 400 that do not have a correspondence between logical addresses and physical addresses in the first L2P table 400a to a state in which valid data is stored. Specifically, the data management unit 110 associates the physical addresses of pages 000 to 032 with logical addresses 0000h to 007Fh, associates the physical addresses of pages 033 to 063 with logical addresses 1080h to 117Fh, associates the physical addresses of pages 064 to 095 with logical addresses 2080h to 217Fh, and associates the physical addresses of pages 096 to 0127 with logical addresses 2280h to 237Fh. The states of the real data unit 300B and the table unit 400B at the end of step S705 are as shown in FIGS. 23 and 24.
[0151] The data management unit 110 executes the ABO process, and when step S705 is completed, the write operation ends (step S706).
[0152] For example, after step S706, when the memory system 1 receives a read request including a read command RCMD from the host 30 and reads data from the non-volatile memory 20 based on the read command RCMD, FileB, FileD, FileA, and FileC can be read in this order.
[0153] The operation method of the memory system 1 according to the fourth embodiment can store two AFDs in pages corresponding to consecutive physical addresses in a state in which the two AFDs are linked without being separated by using a first command that links at least two AFDs in advance. As a result, the number of commands received by the memory system 1 from the host 30 can be reduced compared to the case in which the AFDs are written individually and the AFDs are stored in pages corresponding to consecutive physical addresses using the ABO process. Therefore, the operation method of the memory system 1 according to the fourth embodiment can reduce the number of GC processes and extend the life of the non-volatile memory 20. Furthermore, the operation method of the memory system 1 according to the fourth embodiment can store the AFDs in pages corresponding to consecutive physical addresses even if the logical addresses of the AFDs are separated. Therefore, the memory system 1 according to the fourth embodiment can shorten the read time of file data when the application 33 is started, and can speed up the read operation of file data when the application 33 is started, as in the first to third embodiments.
[0154] <Fifth embodiment> A memory system 1 according to the fifth embodiment will be described. The operation method of the memory system 1 according to the fifth embodiment is an operation method related to the application-specific L2P table 410 of the memory system 1 according to the first embodiment. In the explanation of the memory system 1 according to the fifth embodiment, the differences from the first embodiment will be mainly described.
[0155] <5-1. Overall configuration of memory system 1> A functional block configuration of the memory system 1 and the host 30 according to the fifth embodiment will be described with reference to Fig. 25. Fig. 25 is a functional block diagram of the memory system 1 and the host 30 according to the fifth embodiment.
[0156] The operation method of the memory system 1 according to the fifth embodiment includes the following: the memory controller 10, using the data management unit 110 and the W / R management unit 111, executes a write operation of a plurality of AFDs 341 (e.g., File A to File D) generated using the same application 34 based on a write command WCMD from the host 30; executes an ABO process after executing the write operation; and generates an application-specific L2P table after executing the ABO process. The write command WCMD includes, for example, the format 500 shown in FIG. 8 according to the first embodiment. The application-specific L2P table 410 stores information that associates the logical addresses of a plurality of AFDs generated using the same application 34 with pages corresponding to physical addresses, as in the first embodiment.
[0157] The operating method of the memory system 1 according to the fifth embodiment includes, as an example, executing a write operation based on a write command WCMD including a format 500. The format compatible with the operating method of the memory system 1 according to the fifth embodiment is not limited to the format 500. For example, the format may be the format 600 or the format 700. The format can be appropriately selected based on the application, specifications, etc. of the memory system 1.
[0158] The data management unit 110 includes, for example, a program 116. The program 116 is a program that generates an application-specific L2P table 410 upon completion of the ABO process.
[0159] In the operation method of the memory system 1 according to the fifth embodiment, after the ABO process is executed, the data management unit 110 executes the program 116 upon completion of the ABO process, and generates the application-specific L2P table 410.
[0160] <5-2. Structure of data created by application 34> The configuration of data created by the application 34 will be described with reference to Fig. 26. Fig. 19A is a diagram showing the configuration of data created by the application 34 according to the fifth embodiment. The data created by the application 34 includes an AFD 341. The data created by the application 34 is specified by a logical address of the host 30.
[0161] The AFD 341 includes, for example, FileA to FileD. FileA to FileD are associated with LBA0000h to 027Fh, which correspond to consecutive logical addresses. In the operation method of the memory system 1 according to the fifth embodiment, as an example, data created by the application 34 includes four AFDs, FileA to FileD, each having a TL of 512KByte. FileA to FileD are referred to as the first file data to the fourth file data.
[0162] <5-3. Configuration of actual data section 300C and table section 400C> The configurations of the actual data section 300C and the table section 400C will be described with reference to Figures 28A and 28B. Figure 28A shows a state in which the memory system 1 receives a write request, executes a write operation based on the write command WCMD, and Files A to D of the AFD 341 are stored in the non-volatile memory 20. The actual data section 300C includes, for example, memory blocks MB1 to MB3.
[0163] FIG. 28A is a diagram showing a schematic diagram of data arrangement in actual data section 300C after, for example, the following processing is executed. The host 30 creates data other than FileA to FileD and transmits it to the memory system 1. The memory system 1 stores the other data in pages 000 to 031 of memory block MB1. The other data is valid data stored in pages 000 to 031, and is file data in pages 000 to 031 of physical addresses associated with LBAs corresponding to valid data other than FileA to FileD in the table section 400C of FIGS. 28B, 28D, and 29. Thereafter, the host 30 creates FileA and transmits it to the memory system 1. The memory system 1 stores FileA in pages 032 to 063 of the memory block MB1. The host 30 also creates other data different from the data stored in pages 000 to 031 and transmits it to the memory system 1. The memory system 1 stores the other data received from the host 30 in pages 064 to 095 of the memory block MB1. The other data is valid data stored in pages 064 to 095, and is file data in pages 064 to 095 of physical addresses associated with LBAs corresponding to valid data other than FileA to FileD in the table section 400C of FIG. 28B, FIG. 28D, and FIG. 29. Thereafter, the host 30 creates FileB to FileD and transmits them to the memory system 1. The memory system 1 stores FileB to FileD in pages 096 to 127 of memory block MB1 and pages 128 to 223 of memory block MB2. Pages 192 to 255 of MB2 and pages 256 to 383 of MB3 are pages that have no correspondence between physical addresses and logical addresses in the real data section 300 and the table section 400, and are erased pages (EPs).
[0164] As shown in FIG. 28B, the table section 400C includes, for example, three L2P tables (a first L2P table 400a, a second L2P table 400b, and a third L2P table 400c). In the first L2P table 400a, physical addresses from page 000 to page 031 are associated with LBAs corresponding to valid data other than FileA to FileD, and the file data from page 000 to page 031 is valid data. Physical addresses from page 032 to page 063 are associated with logical addresses from 0000h to 007Fh, and FileA stored in page 032 to page 063 is valid data. Physical addresses from page 064 to page 095 are associated with LBAs corresponding to valid data other than FileA to FileD, and the file data from page 064 to page 095 is valid data. Physical addresses of pages 096 to 127 correspond to logical addresses of 0080h to 00FFh, and File B stored on pages 096 to 127 is valid data. In the second L2P table 400b, physical addresses of pages 128 to 159 correspond to logical addresses of 0100h to 017Fh, and File C stored on pages 128 to 159 is valid data. Physical addresses of pages 160 to 191 correspond to logical addresses of 0180h to 027Fh, and File D stored on pages 160 to 191 is valid data. The physical addresses of pages 192 to 256 of the second L2P table 400b and the physical addresses of each page of the third L2P table 400c are pages that are not associated with logical addresses and are reusable pages (EPs) after erasure.
[0165] <5-4. Operation method of memory system 1> A method of operating the memory system 1 according to the fifth embodiment will be described with reference to Figs. 27 to 29. Fig. 27 is a flowchart showing a method of operating the memory system 1 according to the fifth embodiment. Fig. 28C is a diagram showing a configuration of the actual data section 300C according to the fifth embodiment, and Fig. 28D is a diagram showing a configuration of the table section 400C according to the fifth embodiment. Fig. 29 is a diagram showing a configuration of the table section 400C according to the fifth embodiment.
[0166] An operation method of the memory system 1 according to the fifth embodiment will be described with reference to Fig. 27. First, the memory system 1 starts the operation method of the memory system 1 according to the fifth embodiment (step S801).
[0167] Next, based on the write operation described in "1-7. Second example (second example) of operating method of memory system 1", the memory controller 10 stores FileA in pages 032 to 063 of the non-volatile memory 20, following pages 000 to 031 of memory block MB1 in which valid data is stored (step S802).
[0168] The memory controller 10 executes steps S803 to S805 in the same manner as step S802, stores FileB in pages 096 to 127 of memory block MB1 following pages 064 to 095 of memory block MB1 in which valid data is stored, stores FileC in pages 128 to 159 of memory block MB2, and stores FileD in pages 160 to 191 of memory block MB2 following pages 160 to 191 of memory block MB2 in which valid data is stored. The states of real data section 300C and table section 400C at the end of step S805 are as shown in Figures 28A and 28B.
[0169] In step S805, the memory controller 10 receives a write command WCMD including CF data (11). Therefore, the memory controller 10 executes the ABO process based on the CF data (11) (step S806). The data management unit 110 stores FileA to FileD in pages 192 to 255 of the memory block MB2 and pages 256 to 319 of the memory block MB3 in the order of LBA 0000h to 027Fh via the memory I / F. That is, the data management unit 110 stores FileA to FileD in pages corresponding to consecutive physical addresses of the non-volatile memory 20 in the order of LBA. At this time, the data management unit 110 sets FileA stored in pages 032 to 063 of the memory block MB1, FileB stored in pages 096 to 127 of the memory block MB1, and FileC and FileD stored in pages 128 to 191 of the memory block MB2 as invalid data not associated with logical addresses. The state of the actual data section 300C at the end of step S807 is as shown in FIG. 28C.
[0170] At this time, the data management unit 110 associates LBA 0000h to 00FFh of memory block MB1 with physical addresses of pages 192 to 255 and stores them in the L2P table 400b, and associates LBA 0100h to 027Fh with physical addresses of pages 256 to 319 and stores them in the third L2P table 400c. In addition, the data management unit 110 invalidates File A stored in physical addresses of pages 032 to 065 corresponding to logical addresses of 0000h to 007Fh and File B stored in physical addresses of pages 096 to 127 corresponding to logical addresses of 0080h to 00FFh in the first L2P table 400ab. Furthermore, the data management unit 110 invalidates FileC and FileD stored in pages 128 to 191 of the physical addresses corresponding to logical addresses 0100h to 027Fh in the first L2P table 400b. The state of the table unit 400C at the end of step S807 is as shown in Fig. 28D. Note that in the fifth embodiment, there may be no correspondence between the LBAs of the invalidated data (hatched areas), and there may be no correspondence between the LBAs of the first L2P table 400a, the second L2P table 400b, and the third L2P table 400c that are EPs.
[0171] Next, upon receiving the end of the ABO processing, the data management unit 110 reads and executes the program 116, and generates the application-specific L2P table 410 in the non-volatile memory 20 (step S807).
[0172] The data management unit 110 associates LBA 0000h to 027Fh of Files A to D with pages 192 to 319 corresponding to the physical addresses, and stores them in the application-specific L2P table 410D. The state of the table unit 400 at the end of step S807 is as shown in FIG.
[0173] Next, the data management unit 110 receives a read request including the read command RCMD from the host 30, reads the application-specific L2P table 410 from the non-volatile memory 20, and develops it on the RAM 12 (step S808).
[0174] The data management unit 110 can read out the files A to D stored in pages 192 to 3196 of the non-volatile memory 20 in this order based on the application-specific L2P table 410 expanded on the RAM 12 (step S809).
[0175] When the memory system 1 executes the read operation and step S809 is completed, the operation of the memory system 1 according to the fifth embodiment ends (step S810).
[0176] The operation method of the memory system 1 according to the fifth embodiment includes, for example, managing Files A to D across two L2P tables at the end of step 806. The state in which the memory system 1 manages Files A to D across two L2P tables may occur even after the GC process. For example, when reading Files A to D at the end of step 806, the data management unit 110 needs to read the second L2P table 400b and the third L2P table 400c from the non-volatile memory 20 and develop them on the RAM 12. That is, the second L2P table 400b and the third L2P table 400c are swapped on the RAM 12. In this case, the time required to read data becomes longer, and the read operation becomes slower.
[0177] On the other hand, the operation method of the memory system 1 according to the fifth embodiment includes generating the application-specific L2P table 410 in the non-volatile memory 20 in step S807. As a result, when reading out Files A to D, the data management unit 110 reads out the application-specific L2P table 410 from the non-volatile memory 20 and expands it on the RAM 12, thereby shortening the time required to replace the L2P table. Therefore, the operation method of the memory system 1 according to the fifth embodiment can shorten the time required to read out data and can speed up the read operation.
[0178] Although several embodiments of the memory system of the present disclosure have been described above, 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 may be implemented in appropriate combinations without departing from the spirit of the invention, and various omissions, substitutions, and modifications can be made. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the invention and its equivalents described in the claims. [Explanation of symbols]
[0179] 1: memory system, 10: memory controller, 11: processor, 15: ECC, 17: host interface (host I / F), 18: host interface (memory I / F), 19: internal bus, 20: non-volatile memory, 21: memory chip, 22: die, 23: memory section, 30: host, 32: application, 33: application, 34: application, 100: logical address space, 100A: logical address space, 100B: logical address space, 110: data management section, 111: W / R management section, 115: program, 116: program, 121: file system, 122: time stamp, 300: actual data section, 300A: actual data section, 300B: actual data section, 300C: actual data section, 321: application file data, 400: table section, 400a: L2P table, 400b: L2P table , 400c: L2P table, 400d: L2P table, 400A: table section, 400B: table section, 400C: table section, 410: application-specific L2P table, 500: format, 502: operation code, 504: individual setting code, 508: continuity flag, 509: reserved area, 510: group number, 514: control byte, 550: period, 552: period, 600: format, 604: individual setting code, 610: group number, 614: control byte, 616: application code, 618: first level order, 620: second level order, 622: third level order, 630: time stamp table, 630U: time stamp table, 700: format, 704: individual setting code, 709: reserved area, 714: control byte, 719: reserved area, 724: control byte
Claims
1. A host can be connected to the a non-volatile memory each including a plurality of pages; a memory controller configured to write a plurality of data items designated by a plurality of write commands received from the host to the non-volatile memory; Equipped with the host assigns identical setting information to each of the plurality of write commands; the memory controller writes the plurality of data to a plurality of pages corresponding to a plurality of consecutive addresses among the plurality of pages based on the same setting information; Memory system.
2. The plurality of data includes at least first data and second data, The same setting information includes a first flag, the first flag indicates to the second data that the second data is consecutive data of the first data; 2. The memory system of claim 1.
3. The plurality of data further includes third data, the first flag is provided to the third data to indicate that the third data is data subsequent to the second data and that the third data is the last data; 3. The memory system of claim 2.
4. the memory controller executes a process of writing data to a plurality of pages corresponding to the plurality of consecutive addresses after executing the garbage collection; 2. The memory system of claim 1.
5. The plurality of data includes at least first data and second data, The same setting information includes a second flag, the second flag includes setting information indicating that the plurality of data belong to the same group; the second flag indicates to the second data that the second data is consecutive to the first data; 2. The memory system of claim 1.
6. the second flag includes setting information indicating an order in which the plurality of data are to be read from the non-volatile memory; 6. The memory system of claim 5.
7. The plurality of data includes at least first data and second data, the same setting information includes an operation code indicating that the first data and the second data are to be concatenated, a start address of the first data, and a start address of the second data; 2. The memory system of claim 1.
8. a start address of the first data is smaller than a start address of the second data; the non-volatile memory stores the first data before the second data and reads the first data before the second data; 8. The memory system of claim 7.
9. A host can be connected to the a non-volatile memory each including a plurality of pages; a memory controller configured to write a plurality of data items designated by a plurality of write commands received from the host to the non-volatile memory; the host assigns setting information belonging to the same group to each of the plurality of write commands; the memory controller writes the plurality of data to a plurality of pages corresponding to a plurality of consecutive addresses among the plurality of pages based on the setting information belonging to the same group, and after the writing, periodically reads out a file system stored in the non-volatile memory, analyzes the file system, and acquires a timestamp included in the file system; Memory system.
10. 10. The memory system of claim 9, wherein the memory controller stores time information corresponding to the timestamp in a non-volatile memory when the memory controller determines that the timestamp included in the file system is newly recorded or updated.
11. 11. The memory system according to claim 10, wherein the memory controller reads the time information and checks the updated data among the plurality of data and a page to which the updated data is written.
12. 1. A method of controlling a non-volatile memory, each of which includes a plurality of pages, the method comprising: execute a write operation to write a plurality of data items designated by a plurality of write commands each received from a host to the non-volatile memory; Prepare for this. The same setting information is assigned to each of the plurality of write commands, the write operation includes writing the plurality of data to a plurality of pages corresponding to a plurality of consecutive addresses among the plurality of pages based on the same setting information; method.
Citation Information
Patent Citations
Data storage devices including storage controller circuits to select data streams based on application tags and computing systems including the same
US10120606B2
Data erasure method for solid state drive, and apparatus
US20180173620A1
Application management in flash storage systems
US20210247920A1
