Memory system
Patent Information
- Application Number
- JP2023037805
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
Smart Images

Figure 2024128681000001
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to a memory system. [Background technology]
[0002] 2. Description of the Related Art Memory systems such as solid state drives (SSDs) are widely used as storage for information processing devices such as servers and personal computers (PCs).
[0003] Furthermore, in recent years, there has been an increase in cases in which companies are forced to store large amounts of data for purposes such as data mining, and as a result, memory systems with the ability to compress and expand data are becoming more widespread.
[0004] In the case of an SSD equipped with a NAND type flash memory (NAND memory), the controller that controls the NAND memory manages a table that holds the correspondence between logical addresses that logically indicate positions in the NAND memory and physical addresses that indicate physical positions in the NAND memory, which are used by the host (information processing device) to specify the storage location of data when issuing a write command or a read command. This table is called a logical-physical conversion table or a LUT (Look Up Table). The controller caches the necessary part of the logical-physical conversion table in a DRAM (Dynamic RAM [Random Access Memory]) or the like for use. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent No. 6553566 Summary of the Invention [Problem to be solved by the invention]
[0006] One embodiment of the present invention provides a memory system that can improve I / O performance. [Means for solving the problem]
[0007] According to an embodiment, a memory system includes a nonvolatile memory and a controller. The controller is capable of communicating with a host and controls the nonvolatile memory. The controller manages a first table that holds a correspondence between an address specified by the host and an address indicating a physical location of the nonvolatile memory. The controller compresses first data corresponding to a first address specified by a write command received from the host, specifies a size of second data obtained by compressing the first data, and determines an arrangement of the second data on the nonvolatile memory based on the size of the second data. The controller stores a second address, which is an address corresponding to a physical area where the beginning of the second data is stored, and the number of physical areas used to store the second data, in an entry of the first table that corresponds to the first address, and stores the first address and information that can obtain the position and size of the beginning of the second data in the physical area in a first area of the physical area where the second data is stored. The nonvolatile memory is a memory that cannot overwrite data to the physical area where data has already been written, and is a memory that erases data in blocks constituted by a first number of the physical areas. The controller manages the number of valid logical areas in each block of the non-volatile memory, and holds for each block a first coefficient related to the compression rate of each block, which is generated based on the total size of valid compressed logical area data at a predetermined timing in the past and the number of valid logical areas, and when performing garbage collection to move data of the valid logical areas of N (N is a natural number of 2 or more) blocks to M (M is a natural number of 1 or more and smaller than N) blocks to create NM free blocks, the controller estimates the total size of data of the valid logical areas of each block using the number of valid logical areas held and the first coefficient held for each block, and selects blocks to be subject to garbage collection based on the total size of data of the valid logical areas. [Brief description of the drawings]
[0008] [Figure 1] FIG. 2 is a diagram showing a configuration example of a memory system according to the first embodiment. [Diagram 2] FIG. 1 is a diagram for explaining a memory system of a comparative example having a function of compressing and decompressing data. [Diagram 3] 3A and 3B are diagrams showing an example of data arrangement in physical clusters of a NAND memory and a configuration of a logical-physical translation table (LUT) in the memory system of the first embodiment. [Figure 4] FIG. 13 shows an example of WAF evaluation when garbage collection target blocks are selected based on the number of logical clusters and when garbage collection target blocks are selected based on physical size. [Diagram 5] 11 is a flowchart illustrating a process for selecting a block to be subjected to garbage collection in the memory system according to the first embodiment. [Figure 6] 11 is a flowchart showing an average compression ratio update of blocks in the memory system of the first embodiment. [Figure 7] 6A and 6B are diagrams showing the effect of periodically updating the block average compression ratio in the memory system of the first embodiment. [Figure 8] FIG. 13 is a diagram for explaining a case in which it is possible to erroneously determine where the data of a target logical cluster is located within a physical cluster. [Figure 9] 13 is a diagram for explaining an operation for preventing erroneous determination of whether a cluster is valid or invalid by the memory system according to the second embodiment. [Figure 10] 13 is a flowchart of a log cluster writing process in the memory system according to the second embodiment. [Figure 11] 13A and 13B are diagrams for explaining an operation for preventing erroneous determination of whether a cluster is valid or invalid in garbage collection by the memory system of the third embodiment. [Figure 12] 13 is a flowchart showing a process for determining whether a cluster is valid or invalid in a memory system according to a third embodiment. [Figure 13]13 is a diagram for explaining an operation at the time of writing an ECC frame in the memory system according to the fourth embodiment. [Figure 14] 13 is a flowchart for writing an ECC frame in the memory system according to the fourth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, embodiments will be described with reference to the drawings.
[0010] (First embodiment) First, the first embodiment will be described.
[0011] Fig. 1 is a diagram showing an example of the configuration of a memory system 1 according to the first embodiment. Fig. 1 also shows an example of the configuration of an information processing system including the memory system 1 and a host 2 to which the memory system 1 is connected as storage. The host 2 is an information processing device such as a server or a PC.
[0012] The memory system 1 has a controller 11, a DRAM 12, and a NAND type flash memory (NAND memory) 13. Here, an example is shown in which the memory system 1 is realized as an SSD. The memory system 1 is not limited to an SSD, and various types of non-volatile memory can be mounted instead of the NAND memory 13. Also, here, an example is shown in which the memory system 1 is mounted with a DRAM 12 as a working area for the controller 11, but instead of mounting the DRAM 12, for example, an SRAM (STATIC RAM) may be built into or added to the controller 11.
[0013] The controller 11 controls the operation of the memory system 1. The controller 11 includes a CPU (Central Processing Unit) 111, a host interface 112, a DRAM interface 113, a NAND interface 114, a compression / decompression unit 115, and an ECC (Error Check and Correct) .
[0014] The CPU 111 executes a control program (firmware) to realize various processes executed by the controller 11. The various processes executed by the controller 11 include a write process for writing data to the NAND memory 13 in response to a write command from the host 2, and a read process for reading data stored in the NAND memory 13 in response to a read command from the host 2. Here, an example is shown in which the various processes executed by the controller 11 are realized by the CPU 111 executing firmware, but they may also be realized by dedicated hardware built into the controller 11.
[0015] The host interface 112 controls communication with the host 2 in accordance with a predetermined communication standard. The DRAM interface 113 controls writing of data to the DRAM 12 and reading of data from the DRAM 12. The NAND interface 114 controls writing of data to the NAND memory 13 and reading of data from the NAND memory 13.
[0016] The compression / decompression unit 115 compresses write data requested to be written to the NAND memory 13 by a write command to generate compressed data, or decompresses compressed data corresponding to read data requested to be read from the NAND memory 13 by a read command to obtain read data. In other words, the memory system 1 of the first embodiment is a memory system having a function of compressing and decompressing data.
[0017] The ECC 116 executes error correction processing on the compressed data generated by the compression / decompression unit 115. Specifically, when a write command is received, the ECC 116 generates an error correction code for detecting and correcting errors in case an error occurs in the compressed data to be written to the NAND memory 13 in the future. Also, when a read command is received, the ECC 116 uses the error correction code to check whether an error has occurred in the compressed data read from the NAND memory 13, and if an error is detected, corrects the error.
[0018] For example, when a write command is issued from the host 2, the write command is received by the host interface 112. When the write command is received, the CPU 111 receives write data via the host interface 112 and temporarily stores the write data in the DRAM 12 via the DRAM interface 113.
[0019] The CPU 111 supplies the write data on the DRAM 12 to the compression / decompression unit 115 and instructs the compression / decompression unit 115 to compress the write data. When the compression / decompression unit 115 generates compressed data, the CPU 111 supplies the compressed data to the ECC 116 and instructs the ECC 116 to generate an error correction code. The CPU 111 attaches the error correction code generated by the ECC 116 to the compressed data, and stores the compressed data with the error correction code attached in the NAND memory 13 via the NAND interface 114.
[0020] Furthermore, for example, when a read command is issued from the host 2, the read command is received by the host interface 112. When the read command is received, the CPU 111 reads compressed data corresponding to the read data specified by the read command from the NAND memory 13 via the NAND interface 114. The CPU 111 temporarily stores the compressed data read from the NAND memory 13 in the DRAM 12 via the DRAM interface 113. An error correction code generated when the compressed data was written to the NAND memory 13 is added to this compressed data.
[0021] The CPU 111 supplies the compressed data on the DRAM 12 to the ECC 116, and instructs the ECC 116 to detect and correct errors that may have occurred in the compressed data using an error correction code. The CPU 111 supplies the compressed data for which errors have been detected and corrected by the ECC 116 to the compression / decompression unit 115, and instructs the compression / decompression unit 115 to decompress the compressed data. The CPU 111 transmits read data acquired by the compression / decompression unit 115 decompressing the compressed data to the host 2 via the host interface 112.
[0022] Incidentally, a write command or a read command issued by the host 2 includes a logical address that specifies a storage location of data. The logical address is an address that indicates a location in the logical address space of the memory system 1 provided to the host 2. In other words, the logical address is an address that logically indicates a location on the NAND memory 13.
[0023] On the other hand, the CPU 111 writes data to the NAND memory 13 and reads data from the NAND memory 13 via the NAND interface 114 using a physical address that indicates a location in a physical address space that is dynamically mapped to a logical address space. The physical address indicates a physical location on the NAND memory 13.
[0024] Therefore, the CPU 111 needs to perform address conversion to convert logical addresses into physical addresses. This address conversion is also called address resolution. For this address conversion, the CPU 111 manages a table that holds the correspondence between logical addresses and physical addresses. This table is called a logical-physical conversion table or LUT. The CPU 111 stores the logical-physical conversion table in the NAND memory 13, and caches a predetermined portion of the logical-physical conversion table stored in the NAND memory 13 in the DRAM 12 for use.
[0025] A logical address and a physical address are assigned to each of a logical area of a predetermined size in a logical address space and a physical area of a predetermined size in a physical address space. A logical area of a predetermined size is called a logical cluster, and a physical area of a predetermined size is called a physical cluster. By managing a logical-physical conversion table that holds the correspondence between logical addresses and physical addresses, the memory system 1 can dynamically associate logical clusters with physical clusters. The predetermined size is a unit by which the host 2 manages data on the memory system 1. The host 2 requests the memory system 1 to write or read data that is an integer multiple of the predetermined size.
[0026] On the other hand, the memory system 1 can write data to the NAND memory 13 and read data from the NAND memory 13 in units of pages, which are finer than a physical cluster. The memory system 1 also erases data from the NAND memory 13 in units of blocks including a plurality of physical clusters. A block from which data has been erased is called a free block or the like. The memory system 1 secures a free block and writes data to the physical clusters of the free block, and when data has been written to all the physical clusters, secures a new free block.
[0027] The NAND memory 13 is a non-volatile storage medium that does not allow data to be overwritten in an area where data has already been written. Data is updated by invalidating the original data stored in a certain area and writing new data in another area. As a result, there is a possibility that a block in which the majority of the data in the area has been invalidated may occur over time. Therefore, the CPU 111 periodically or sequentially executes a process of moving valid data in such a block to generate a free block. The process of generating a free block is called garbage collection or the like.
[0028] For example, when writing write data to the NAND memory 13, the host 2 specifies a logical address and a data length in a write command and transmits write data of that data length to the memory system 1. When data compression is not performed, the number of logical clusters in the logical address space used in the write data matches the number of physical clusters in the physical address space. In other words, there is a one-to-one correspondence between logical clusters and physical clusters. Therefore, when data compression is not performed, the logical-physical conversion table only needs to record a physical address associated with each logical address in each entry for the number of logical addresses.
[0029] On the other hand, when compressing data, the number of logical clusters in the logical address space used by the write data does not match the number of physical clusters in the physical address space used by the compressed data generated by compressing the write data. It may also happen that compressed data of two or more logical clusters is mixed in one physical cluster. Therefore, when compressing data, the logical-physical conversion table needs to record, for example, in each entry of the number of logical addresses, in addition to the physical address, information for extracting compressed data corresponding to the data of the logical cluster indicated by the logical address from the compressed data stored in the physical cluster indicated by the physical address.
[0030] Now, with reference to FIG. 2, a memory system having a function of compressing and decompressing data as a comparative example will be described.
[0031] 2A shows an example of a memory system according to a comparative example compressing data received from a host and writing the data to a NAND memory, while FIG. 2B shows an example of various information that the memory system according to the comparative example records in a logical-physical conversion table.
[0032] For example, it is assumed that the memory system of the comparative example stores compressed data corresponding to the data of the logical cluster indicated by logical address "10" up to the middle of the physical cluster indicated by physical address "36". Here, it is assumed that the inside of the physical cluster is managed in units of subpages obtained by dividing the physical cluster into 16, and that 10 subpages out of the 16 subpages (0 to 15) have been used. In other words, it is assumed that the end of this compressed data is located in the 9th subpage.
[0033] Next, it is assumed that the memory system of the comparative example stores compressed data corresponding to the data of the logical cluster indicated by the logical address "11" from the middle of the physical cluster indicated by the physical address "36" following the compressed data corresponding to the data of the logical cluster indicated by the logical address "10" stored immediately before. More specifically, it is assumed that the compressed data is stored from the 10th subpage. It is also assumed that this compressed data does not fit in the remaining 6 subpages and is stored across two physical clusters. The physical cluster indicated by the physical address "36" and the physical cluster indicated by the physical address "37" are physical clusters included in the same block. It is also assumed that the data length of this compressed data is 17000 bytes. The data length varies depending on the content of the data before compression, even if the data length of the data before compression is constant for a logical cluster.
[0034] In the memory system of the comparative example, for compressed data corresponding to the data of the logical cluster indicated by the logical address "11", as shown in FIG. 2(B), in the entry corresponding to the logical address "11" among all entries of the logical-physical conversion table, in addition to the physical address "36", offset information (a1) indicating the 10th subpage out of 16 subpages and the data length (a2) are stored.
[0035] By additionally storing the offset information (a1) and the data length (a2) in the logical-physical conversion table, the memory system of the comparative example can acquire the compressed data stored front-justified in the physical cluster without excess or deficiency. Specifically, for example, in the case of compressed data corresponding to the data of the logical cluster indicated by the logical address "11", the memory system of the comparative example can read 17000 bytes of data from the 10th subpage of the physical cluster indicated by the physical address "36" based on the logical-physical conversion table.
[0036] However, in the memory system of the comparative example, if we assume that offset information is recorded in 4 bits and that the data length is recorded in the logical-physical conversion table in 16 bits, the logical-physical conversion table will increase by 20 bits per entry. If we assume that the physical address is recorded in 28 bits, the table will increase by 20 bits from 28 bits to 48 (28+4+16) bits, which is an increase of 71.4%.
[0037] The logical-physical conversion table is used with the necessary parts cached in DRAM or the like. It would be ideal if the capacity of the cache area could be increased as the logical-physical table increases, but if the capacity of the cache area cannot be increased due to cost or other reasons, the cache hit rate of the logical-physical conversion table decreases. A decrease in the cache hit rate of the logical-physical conversion table leads to a decrease in the I / O performance of the memory system.
[0038] In the memory system 1 of the first embodiment, when the data compression / decompression function is operated, the increase in the size of the logical / physical conversion table is suppressed more than in the memory system of the comparative example, and the cache hit rate of the logical / physical conversion table is improved while suppressing the increase in the capacity of the cache area for the logical / physical conversion table, thereby improving I / O performance. This point will be described in detail below.
[0039] FIG. 3 is a diagram showing an example of data arrangement in physical clusters of the NAND memory 13 and a configuration of a logical-physical translation table (LUT) in the memory system 1 of the first embodiment.
[0040] FIG. 3(A) shows an example in which compressed data corresponding to data of a logical cluster indicated by logical address "11" is stored in a physical cluster indicated by physical address "36", following compressed data corresponding to data of a logical cluster indicated by logical address "10", as in the case of the memory system of the comparative example described above.
[0041] In the memory system 1 of the first embodiment, the CPU 111 that performs address conversion (address resolution) to convert a logical address into a physical address stores offset information and data length of compressed data, which are stored in a logical-physical conversion table in the memory system of the comparative example, in the head region (header) of a physical cluster together with the logical address (b1). Here, an example is shown in which the region for storing this information is provided at the head of the physical cluster, but the position may be other than the head of the physical cluster.
[0042] On the other hand, Fig. 3(B) shows an example of various information recorded in the logical-physical conversion table when the data shown in Fig. 3(A) is written. The CPU 111 stores the offset information and data length of the compressed data in the physical clusters instead of the logical-physical conversion table, and when the compressed data is arranged across multiple physical clusters, stores the physical cluster number of the multiple physical clusters in which the compressed data is arranged as the read cluster number (b2) in the logical-physical conversion table. For example, since the compressed data corresponding to the data of the logical cluster indicated by the logical address "11" is stored across two physical clusters, the CPU 111 stores the read cluster number "2" in addition to the first physical address "36" in the entry corresponding to the logical address "11" among all the entries of the logical-physical conversion table.
[0043] When reading compressed data corresponding to the data of the logical cluster indicated by this logical address "11" from the NAND memory 13, the CPU 111 first reads all data of two physical clusters including the compressed data based on the physical address "36" and the read cluster number "2" stored in the logical-physical conversion table. Next, the CPU 111 extracts compressed data corresponding to the data of the logical cluster indicated by the logical address "11" from the data of the two read physical clusters based on the offset information and data length of the compressed data stored in the head area of the physical cluster indicated by the physical address "36".
[0044] Since the bit string indicating the number of read clusters (b2) of the logical-physical conversion table is sufficiently small compared to the bit strings indicating the offset information and data length, the increase in size of the logical-physical conversion table can be kept to a minimum, and the impact on the cache hit rate is small.
[0045] In other words, when operating the function of compressing and decompressing data, the memory system 1 of the first embodiment suppresses an increase in the size of the logical-physical conversion table, suppresses an increase in the capacity of the cache area for the logical-physical conversion table, improves the cache hit rate of the logical-physical conversion table, and achieves improved I / O performance.
[0046] In the memory system 1 of the first embodiment, in order to suppress an increase in the size of the logical-physical conversion table, the data length of the compressed data corresponding to the data of the logical cluster is not stored in the logical-physical conversion table. If the logical-physical conversion table does not have physical size information, it becomes difficult to grasp the size of the valid physical data of each block. This is because when a cluster of a certain logical address is overwritten, if the physical size of the overwritten cluster is not known, the valid physical data size information of the block to which the cluster belongs cannot be updated. Reading the header of the data body just to update the data size information is not realistic from the viewpoint of performance.
[0047] Normally, size information of valid physical data is required to select a garbage collection target block. By selecting a block with the least valid data as a garbage collection target block, it is possible to reduce the WAF (Write Amplification Factor). The WAF is an index of write efficiency expressed as the ratio of the amount of data actually written to the NAND memory 13 to the amount of data requested to be written from the host 2. If there is no size information of valid physical data, the garbage collection target block will instead be selected based on the number of valid logical clusters. In this case, the optimal block selection may not be achieved, and the WAF tends to deteriorate.
[0048] FIG. 4 shows an example of evaluating the WAF when garbage collection target blocks are selected based on the number of logical clusters and when garbage collection target blocks are selected based on their physical size.
[0049] In this example, there is a bias in the compression ratio distribution depending on the block, and there is a large difference in the results between selecting by the number of logical clusters (a1) and selecting by physical size (a2). When OP (Over Provisioning) = 40%, the WAF is doubled, and the difference is even larger when OP = 20%. OP is the ratio of the storage capacity held as surplus by memory system 1 to the storage capacity provided to host 2. In this way, when there is a bias in the compression ratio distribution, the WAF deteriorates significantly.
[0050] Therefore, the memory system 1 of the first embodiment is provided with a mechanism for estimating the effective physical size from the number of effective logical clusters using the block average compression ratio, and further, for selecting an appropriate block to be garbage collected by periodically updating the block average compression ratio, which will be described in detail below. Note that the number of effective logical clusters of each block and the average compression ratio of each block are managed, for example, as a table.
[0051] User data to be written is transferred from the host interface 112 into the controller 11 and divided into logical cluster units. Then, each logical cluster is compressed by the compression / decompression unit 115 to become a compressed cluster of variable length. The compressed cluster is re-divided into fixed-length ECC frame (synonymous with physical cluster) units and written to the NAND memory 13. The controller 11 groups several thousand to tens of thousands of physical clusters into blocks. Garbage collection (GC) is performed in units of these blocks.
[0052] FIG. 5 is an example of a flowchart for selecting a block to be garbage collected in the memory system 1 of the first embodiment.
[0053] The operation of selecting a block to be garbage collected in the memory system 1 of the first embodiment is basically an operation of searching for a block with the smallest evaluation value (size). Here, the evaluation value is a value obtained by multiplying the number of valid logical clusters in a block (VCC[i]) by the reciprocal of the average compression ratio (CR[i]) of the block. Also, the average compression ratio of a block is a value obtained by dividing the total amount of data of the valid logical clusters in the block by the total amount of valid physical data in the block.
[0054] First, the controller 11 initializes the minimum evaluation value (min_size) and the value of a counter (i) for sequentially inspecting each block (S101). Here, min_size is set to an infinity value (high-value) and i is set to 0. Each block is assigned a unique value (natural number) in ascending order starting from 0.
[0055] The controller 11 obtains an evaluation value of the block to be inspected (S102). The controller 11 compares the evaluation value (size) obtained in S102 with the minimum value (min_size) up to that point (S103), and if it is smaller (S103: Yes), it updates the minimum value (min_size) to the evaluation value (size) and updates the value of the counter (min_block) indicating the block with the smallest evaluation value to the value of the counter (i) indicating the block currently being inspected from which the evaluation value (size) was obtained (S104).
[0056] If the evaluation value (size) calculated in S102 is equal to or greater than the minimum value (min_size) up to that point (S103: No), the controller 11 skips the process of S104. The controller 11 increments the value of counter (i) (S105) and compares the value of counter (i) with the total number of blocks (S106).
[0057] If the value of counter (i) is smaller than the total number of blocks (S106: Yes), the controller 11 repeats the process from S102 for the newly inspected block indicated by the incremented counter (i). That is, in the loop from S102 to S106, the evaluation value (size) is calculated for each block, and compared with the minimum value (min_size) up to that point. If it is smaller, the minimum value (min_size) is updated to the evaluation value (size).
[0058] On the other hand, if the value of the counter (i) reaches the total number of blocks (S106: No), the controller 11 selects the block indicated by the counter (min_block) as the target for garbage collection (S107).
[0059] As a result, in the memory system 1 of the first embodiment, rather than simply using the number of logical clusters as an evaluation value to select blocks, an evaluation value that more closely reflects the actual amount of valid data is selected, thereby improving the efficiency of garbage collection and WAF.
[0060] Moreover, the memory system 1 of the first embodiment can further improve the efficiency of garbage collection by periodically updating the block average compression ratio (CR[i]), thereby enabling further improvement of the WAF.
[0061] In the memory system 1 of the first embodiment, the block average compression ratio is calculated when writing to a block is completed, and even after writing to the block is completed, updates are performed to the extent that does not affect performance.
[0062] FIG. 6 is an example of a flowchart for updating the average compression ratio of blocks in the memory system 1 of the first embodiment. Here, an example is shown in which, every time one garbage collection target block is selected, another block is selected and the average compression ratio is updated. Block A in FIG. 6 is a garbage collection target block, and block B is a block whose average compression ratio is updated. The selection rule for block B is a block whose average compression ratio has not been updated for the longest period of time. The timing for updating the average compression ratio is not limited to this, and may be when a block occurs whose number of invalidated logical clusters since the previous update of the average compression ratio exceeds a certain amount. The selection rule for block B is also not limited to this, and may be the block whose number of invalidated logical clusters since the previous update of the average compression ratio is the largest, etc.
[0063] The controller 11 determines the block to be garbage collected as block A (S201), and judges whether all clusters in block A are valid or invalid (S202). The controller 11 moves the valid clusters in block A (S203). More specifically, the controller 11 stores the data of the valid clusters in the clusters of the block to be written at that time. After completing the movement of the valid clusters, the controller 11 erases block A, i.e., the block to be garbage collected (S204).
[0064] Next, the controller 11 selects the block whose average compression ratio has not been updated for the longest period as block B (S205), and updates the average compression ratio of block B (CR[block B]) from the user log of block B. The user log is a log that holds the history of data writing for each block. The user log accumulates, for example, pairs of logical addresses and physical addresses of written data in chronological order.
[0065] FIG. 7 is a diagram showing the effect of the memory system 1 of the first embodiment.
[0066] In Fig. 7, the graph indicated by symbol b1 corresponds to a1 in Fig. 4 when the evaluation value is the number of logical clusters. The graph indicated by symbol b2 corresponds to the product of the number of valid logical clusters and the inverse of the block average compression ratio when the evaluation value is the number of valid logical clusters. Furthermore, the flag indicated by symbol b3 corresponds to the flag when the average compression ratio of other blocks is updated each time a garbage collection target block is selected. The graph indicated by symbol b4 corresponds to a2 in Fig. 4 when the evaluation value is the actual valid data size (physical data size).
[0067] 7, the memory system 1 of the first embodiment can greatly improve the WAF by estimating the effective physical size from the number of effective logical clusters using the block average compression ratio (b11). In addition, the memory system 1 of the first embodiment can make the block average compression ratio almost equal to the ideal by periodically updating the block average compression ratio, thereby achieving further improvement in the WAF (b12).
[0068] As described above, the memory system 1 of the first embodiment can improve the I / O performance.
[0069] Second embodiment Next, a second embodiment will be described. In the description of the second embodiment, a memory system having the same configuration as in the first embodiment will be taken as an example, and the same components will be denoted by the same reference numerals.
[0070] In the explanation of the memory system of the second embodiment, we will mainly explain the mechanism for solving the problem that when reading data of a logical cluster from NAND memory 13, there is a possibility of misjudging the location of the data of the logical cluster to be read within the physical cluster.
[0071] First, with reference to FIG. 8, a case in which it is possible to erroneously determine where in a physical cluster the data of the logical cluster to be accessed is located will be described.
[0072] The header of the ECC frame holds a table showing the correspondence between logical addresses and offsets. As mentioned above, the ECC frame is synonymous with a physical cluster. In FIG. 8, the logical address is represented as an LCA (Logical Cluster Address) and the physical address is represented as an MCA (Media Cluster Address). Hereinafter, the logical address and the physical address may be represented in the same manner.
[0073] The controller 11 obtains the offset of the data for each logical cluster from a table stored in the header of the ECC frame, but if there are multiple identical logical addresses, there will be multiple corresponding offsets, making it impossible to determine from which offset the data should be read.
[0074] 8 shows that first, data of the logical cluster of logical address 201 is written (c1) into the physical cluster of physical address 101, then data of the logical clusters of logical addresses 202 and 203 is written, and then data of the logical cluster of logical address 201 is written again (c2). The data of the logical cluster of logical address 201 is overwritten, and the initially written data (c1) is invalidated by this second write data (c2).
[0075] The controller 11 judges whether the write data is valid or invalid for each entry of the user log 302 that holds a pair of a physical address and a logical address by referring to the logical-physical translation table (LUT) 301 (c11). Specifically, it judges whether the pair of the logical address and the physical address held in the logical-physical translation table matches or does not match. Note that, although an example in which the user log 302 holds a pair of a physical address and a logical address is shown here, the present invention is not limited to this example. For example, the user log 302 may hold only the logical address, and the physical address may be obtained by a calculation using the logical address.
[0076] Here, the data (c1) of the logical cluster of the logical address 201, which was written in the physical cluster of the physical address 101, is updated by writing new data (c2) in the physical cluster of the same physical address 101, so that no update of the logical-physical conversion table appears to occur. In other words, the logical address 201 remains associated with the physical address 101 in the logical-physical conversion table, just as it was before the data update.
[0077] Therefore, when the controller 11 determines whether the data (c1) of the logical cluster of the logical address 201 written first in the physical cluster of the physical address 101 is valid or invalid, the pair of the logical address and the physical address in the user log matches the pair of the logical address and the physical address in the logical-physical conversion table, so there is a possibility that the controller 11 may erroneously determine that the data is valid. As a result, there is a possibility that the controller 11 may obtain the data (c1) by extracting the compressed data from the offset 1 of the physical cluster of the physical address 101, instead of obtaining the data (c2) by extracting the compressed data from the offset 12. Note that in the case where the updated data is written to a physical cluster different from the physical cluster in which the data before the update is stored, the logical-physical conversion table is updated, so such a problem does not occur.
[0078] Taking this into consideration, we will explain a mechanism provided in the memory system 1 of the second embodiment that prevents the pre-update data from being mistakenly determined to be valid even in cases where the updated data is written to the same physical cluster in which the pre-update data is stored.
[0079] When writing a log cluster to the NAND memory 13, if an entry with the same logical address exists within the same physical address range, the controller 11 in the memory system 1 of the second embodiment invalidates entries other than the last entry. A log cluster is data whose size is a unit for collectively writing user logs to the NAND memory 13. User logs are usually collectively written to the NAND memory 13 in the size of a physical cluster.
[0080] In other words, in the memory system 1 of the second embodiment, when an entry with the same logical address exists within the same physical address range at the time when a certain amount of user logs are accumulated and made non-volatile, the controller 11 invalidates all entries except for the rearmost entry, thereby preventing erroneous judgment in the cluster validity / invalidity judgment.
[0081] With reference to FIG. 9, an operation for preventing erroneous determination in determining whether a cluster is valid or invalid by the controller 11 of the memory system 1 of the second embodiment will be described.
[0082] In the example shown in FIG. 9, the physical cluster of the physical address 101 contains two logical clusters (d1, d2) of the logical address 201, and according to the normal valid / invalid determination rule, the first logical cluster (d1) of the logical address 201 may be erroneously determined to be a valid cluster even though it has been overwritten (user log 302: (A)). (A) shows the user log 302 in the case where the cluster valid / invalid determination method of the memory system 1 of the second embodiment is not applied. Note that the logical cluster of the logical address 202 is also written in the physical cluster of the physical address 101 and then overwritten by writing to the physical cluster of the physical address 102. However, since this update involves an update of the logical-physical conversion table, there is no possibility of erroneous determination.
[0083] On the other hand, before writing a log cluster to the NAND memory 13, the controller 11 of the memory system 1 of the second embodiment searches for an identical logical address within the same physical address range as each entry of the log cluster, and if an entry with the same logical address is found later, invalidates the entry (d1'). For example, the controller 11 invalidates an entry by writing a specific value such as an invalid value (NULL) to an area where the logical address is stored.
[0084] 9, the entry corresponding to the first logical address 201 in the physical address 101 on the log cluster is invalidated (user log 302:(B)), and there are no more entries with the same logical address in the same physical address, so that erroneous determination can be prevented in the memory system 1 of the second embodiment.(B) shows the user log 302 when the cluster valid / invalid determination method of the memory system 1 of the second embodiment is applied.
[0085] 10 is an example of a flowchart of a log cluster write in the memory system 1 of the second embodiment. Here, an example is described in which two pointers PA and PB pointing to entries in a log cluster (user log) are used to search for the presence of the same logical address within the same physical address range.
[0086] First, the controller 11 sets a pointer to the first entry of the log cluster in the PA (S301).
[0087] The controller 11 matches PB with PA (S302), and then increments PB by 1 (S303). As a result, immediately after the start of operation, PA points to the first entry in the log cluster, and PB points to the second entry in the log cluster.
[0088] The controller 11 judges whether PB does not exceed the last entry of the log cluster and whether the physical address of the entry pointed to by PA is the same as the physical address of the entry pointed to by PA (S304). If PB does not exceed the last entry of the log cluster and whether the physical address of the entry pointed to by PA is the same as the physical address of the entry pointed to by PB (S304: Yes), the controller 11 then judges whether the logical address of the entry pointed to by PA is the same as the logical address of the entry pointed to by PB (S305).
[0089] If the logical address of the entry pointed to by PA and the logical address of the entry pointed to by PB are not the same (S305: No), the controller 11 returns to S303, increments PB by 1, and repeats the determinations of S304 and S305.
[0090] If the logical address of the entry pointed to by PA is the same as the logical address of the entry pointed to by PB (S305: Yes), the controller 11 invalidates the logical address of the entry pointed to by PA (S306). After invalidating the logical address of the entry pointed to by PA, the controller 11 increments PA by 1 (S307) and determines whether PA exceeds the end entry of the log cluster (S308). If it does not exceed it (S308: No), the controller 11 returns to S302, matches PB with PA (S302), increments PB by 1 (S303), and repeats the determinations of S304 and S305.
[0091] Also, if PB exceeds the end entry of the log cluster, or if the physical address of the entry pointed to by PA is not the same as the physical address of the entry pointed to by PA (S304: No), the controller 11 proceeds to S307 and increments PA by 1. Then, the controller 11 determines whether PA exceeds the end entry of the log cluster (S308), and if not (S308: No), returns to S302, matches PB with PA (S302), increments PB by 1, and repeats the determinations of S304 and S305.
[0092] For example, if there is no identical logical address within a certain physical address range, the determination in S305 will never be Yes while PA is pointing to an entry in that physical address range. Also, if there are three identical logical addresses within a certain physical address range, when PA points to the entry for the first logical address and PB points to the entry for the second logical address, the determination in S305 will be Yes and the first logical address will be invalid. Next, when PA points to the entry for the second logical address and PB points to the entry for the third logical address, the determination in S305 will be Yes and the second logical address will be invalid. As a result, only the third logical address will remain valid.
[0093] If the increment in S307 causes the PA to exceed the last entry of the log cluster (S308: Yes), the controller 11 executes writing of the log cluster to the NAND memory 13 (S309).
[0094] In this way, when the memory system 1 of the second embodiment writes a user log to the NAND memory 13, it checks whether an entry with the same logical address exists within the same physical address range, and if so, invalidates all entries other than the last entry in the user log.
[0095] In the memory system according to the second embodiment, for example, when the controller 11 writes a user log to the NAND memory 13, if there are entries with the same logical address within the same physical address range, the controller 11 invalidates all entries except the last one, thereby preventing erroneous determination of whether a cluster is valid or invalid.
[0096] As a result, the memory system 1 of the second embodiment can prevent erroneous determination of the location in the physical cluster of the data of the accessed logical cluster, thereby improving I / O performance.
[0097] Third embodiment Next, a third embodiment will be described. In the description of the third embodiment, a memory system having the same configuration as in the first and second embodiments will be used as an example, and the same components will be denoted by the same reference numerals.
[0098] In the memory system according to the third embodiment, for example, in the cluster validity determination process in garbage collection, if there are entries with the same logical address within the same physical address range, the controller 11 determines that all entries other than the last entry are invalid clusters, thereby preventing erroneous determination in the cluster validity determination.
[0099] With reference to FIG. 11, an operation for preventing erroneous determination of whether a cluster is valid or invalid in garbage collection by the controller 11 of the memory system 1 of the third embodiment will be described.
[0100] 11, there are two logical clusters (e1, e2) of logical address 201 in the physical cluster of physical address 101, and under normal valid / invalid determination rules, the logical cluster (e1) of the first logical address 201 may be erroneously determined to be a valid cluster even though it has been overwritten (valid / invalid determination result (A)). (A) is the valid / invalid determination result when the cluster valid / invalid determination method of the memory system 1 of the third embodiment is not applied.
[0101] In garbage collection, when the controller 11 of the memory system 1 of the third embodiment reads the log cluster from the NAND memory 13 and judges whether the cluster is valid or invalid, it searches for each entry of the physical address (MCA) of the user log 302 for an identical logical address within the same physical address range as the entry. If an entry with the same logical address is found, the controller 11 judges data corresponding to entries other than the last entry among the entries with the same logical address as invalid (valid / invalid judgment result (B)), and excludes the data from the garbage collection transfer. The data that is not transferred in the garbage collection is erased as a result of erasing the block that stores the data without being saved in another block. This erasure can also prevent the data from being read erroneously thereafter. (B) is the valid / invalid judgment result when the cluster valid / invalid judgment method of the memory system 1 of the third embodiment is applied.
[0102] In this manner, the memory system 1 of the third embodiment can prevent erroneous determination of whether a cluster is valid or invalid, similarly to the second embodiment.
[0103] 12 is an example of a flowchart for determining whether a cluster is valid or invalid in the memory system 1 of the third embodiment. Here, too, an example will be described in which a search is performed to see if the same logical address exists within the same physical address range using two pointers PA and PB that point to an entry in a user log.
[0104] First, the controller 11 sets a pointer PA to the first entry of the user log (S401).
[0105] The controller 11 matches PB with PA (S402), and then increments PB by 1 (S403).
[0106] The controller 11 judges whether PB does not exceed the last entry of the user log and whether the physical address of the entry pointed to by PA is the same as the physical address of the entry pointed to by PA (S404). If PB does not exceed the last entry of the user log and whether the physical address of the entry pointed to by PA is the same as the physical address of the entry pointed to by PB (S404: Yes), the controller 11 then judges whether the logical address of the entry pointed to by PA is the same as the logical address of the entry pointed to by PB (S405).
[0107] If the logical address of the entry pointed to by PA and the logical address of the entry pointed to by PB are not the same (S405: No), the controller 11 returns to S403, increments PB by 1, and repeats the determinations of S404 and S405.
[0108] If the logical address of the entry pointed to by PA and the logical address of the entry pointed to by PB are the same (S405: Yes), the controller 11 determines that the logical cluster indicated by the logical address of the entry pointed to by PA is an invalid cluster (S406).
[0109] On the other hand, if PB exceeds the last entry in the user log, or if the physical address of the entry pointed to by PA is not identical to the physical address of the entry pointed to by PA (S404: No), the controller 11 determines whether the physical address of the entry pointed to by PA is identical to the physical address of the entry in the logical-physical conversion table indicated by the logical address of the entry pointed to by PA (S407).
[0110] If they are not the same (S407: No), the controller 11 judges the logical cluster indicated by the logical address of the entry pointed to by PA to be an invalid cluster (S406). If they are the same (S407: Yes), the controller 11 judges the logical cluster indicated by the logical address of the entry pointed to by PA to be a valid cluster (S408). When it is judged that the logical cluster indicated by the logical address of the entry pointed to by PA is valid or invalid, the controller 11 increments PB by 1 (S409) and judges whether PA exceeds the last entry of the user log (S410). If it does not exceed it (S410: No), the controller 11 returns to S402, matches PB with PA (S402), increments PB by 1 (S403), and repeats the judgment of S404, the judgment of S405, or the judgment of S407.
[0111] If the increment in S409 causes the PA to exceed the last entry in the user log (S410: Yes), the controller 11 ends the cluster valid / invalid determination process.
[0112] In this way, in the memory system 1 of the third embodiment, when determining whether a cluster is valid or invalid during garbage collection, it checks whether there is an entry with the same logical address within the same physical address range in the user log, and if there is, it invalidates all entries other than the last entry.
[0113] As a result, in the memory system 1 of the third embodiment as well, it is possible to prevent an erroneous determination of the location in a physical cluster of data of an access target logical cluster, thereby improving I / O performance.
[0114] (Fourth embodiment) Next, a fourth embodiment will be described. In the description of the fourth embodiment, a memory system having the same configuration as in the first to third embodiments will be used as an example, and the same components will be denoted by the same reference numerals.
[0115] In the memory system of the fourth embodiment, for example, when the controller 11 creates a table showing the correspondence between logical addresses and offsets to be recorded in the header when writing an ECC frame, if there are multiple entries with the same logical address in the same ECC frame, the controller 11 invalidates all entries other than the rearmost entry, thereby preventing erroneous selection of the position to read in the ECC frame when reading a cluster.
[0116] The operation of the controller 11 of the memory system 1 of the fourth embodiment when writing an ECC frame will be described with reference to FIG.
[0117] In the example shown in Figure 13, there are two logical clusters (f1, f2) for logical address 201 within the physical cluster (ECC frame) of the same physical address, and if a table showing the correspondence between logical addresses and offsets is created as is, the table will have two entries for logical address 201.
[0118] If this ECC frame is written to the NAND memory 13 as is, when reading the cluster of logical address 201, there are two corresponding offsets on the header, 1 and 12 (ECC frame header example (A)), and if offset 1 is selected, the overwritten data will be read, leading to malfunction. (A) is an example of a header when the entry invalidation method of the memory system 1 of the fourth embodiment is not applied.
[0119] The controller 11 of the memory system 1 of the fourth embodiment creates an ECC frame by grouping together multiple clusters (after compression) to be written, and before writing to the NAND memory 13, creates a table showing the correspondence between logical addresses and offsets in the header. If there are multiple entries with the same logical address, the controller 11 invalidates all entries except the last one written (ECC frame header example (B)). (B) is an example of a header when the entry invalidation method of the memory system 1 of the fourth embodiment is applied.
[0120] In this way, the memory system 1 of the fourth embodiment can eliminate duplication of logical addresses in the same table and prevent erroneous selection of offsets.
[0121] FIG. 14 is an example of a flowchart when an ECC frame is written in the memory system 1 of the fourth embodiment.
[0122] Here again, an example will be described in which a search is performed to see if the same logical address exists within the same physical address range, using two pointers PA and PB that point to entries in a table created in the header of an ECC frame.
[0123] First, the controller 11 sets a pointer indicating the first entry of the header in the PA (S501).
[0124] The controller 11 matches PB with PA (S502), and then increments PB by 1 (S503).
[0125] The controller 11 judges whether or not the PB exceeds the entry at the end of the header (S504). If it does not exceed the entry (S504: Yes), the controller 11 then judges whether or not the logical address of the entry pointed to by the PA is the same as the logical address of the entry pointed to by the PB (S505).
[0126] If the logical address of the entry pointed to by PA and the logical address of the entry pointed to by PB are not the same (S505: No), the controller 11 returns to S503, increments PB by 1, and repeats the determinations of S504 and S505.
[0127] If the logical address of the entry pointed to by PA is the same as the logical address of the entry pointed to by PB (S505: Yes), the controller 11 invalidates the offset of the entry pointed to by PA (S506). After invalidating the offset of the entry pointed to by PA, the controller 11 increments PA by 1 (S507) and determines whether PA exceeds the entry at the end of the header (S508). If it does not exceed it (S508: No), the controller 11 returns to S502, matches PB with PA (S502), increments PB by 1 (S503), and repeats the determinations of S504 and S505.
[0128] On the other hand, if PB exceeds the last entry of the user log (S504: No), the controller 11 proceeds to S507 and increments PA by 1. Then, the controller 11 judges whether PA exceeds the last entry of the header (S508), and if it does not exceed it (S508: No), the controller 11 returns to S502, matches PB with PA (S502), increments PB by 1, and repeats the judgments of S504 and S505.
[0129] If the increment in S507 causes the PA to exceed the entry at the end of the header (S508: Yes), the controller 11 executes writing of the ECC frame to the NAND memory 13 (S509).
[0130] In this way, when the memory system 1 of the fourth embodiment writes an ECC frame to the NAND memory 13, it checks whether there are multiple entries with the same logical address in the same ECC frame, and if there are, it invalidates all entries other than the last entry.
[0131] As a result, the memory system 1 of the fourth embodiment can prevent erroneous data from being read when reading the target logical cluster, thereby improving I / O performance.
[0132] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0133] 1...memory system, 2...host, 11...controller, 12...DRAM, 13...NAND memory, 111...CPU, 112...host interface, 113...DRAM interface, 114...NAND interface, 115...compression / decompression unit, 116...ECC, 301...logical-physical conversion table, 302...user log.
Claims
1. A non-volatile memory; A controller capable of communicating with a host and controlling the non-volatile memory; Equipped with The controller: managing a first table that holds a correspondence relationship between an address designated by the host and an address indicating a physical location of the non-volatile memory; compressing first data corresponding to a first address specified in a write command received from the host; Identifying a size of second data obtained by compressing the first data; determining an arrangement of the second data in the non-volatile memory based on a size of the second data; storing a second address, which is an address corresponding to a physical area in which a beginning of the second data is stored, and the number of physical areas used to store the second data, in an entry corresponding to the first address among the entries of the first table; storing, in a first area of a physical area in which the second data is stored, the first address and information capable of acquiring a position of a start end of the second data in the physical area and a size of the second data; the non-volatile memory is a memory that cannot overwrite data to the physical area in which data has already been written, and is a memory that erases data in block units including a first number of the physical areas; The controller: Manage the number of valid logic areas in each block of the non-volatile memory; A first coefficient related to a compression ratio of each block is stored for each block, the first coefficient being generated based on a total size of data of the logical areas after valid compression at a predetermined timing in the past and the number of the logical areas that are valid; When performing garbage collection to move the valid data of the logical area of N (N is a natural number equal to or greater than 2) blocks to M (M is a natural number equal to or greater than 1 but smaller than N) blocks to create N-M free blocks, estimating a total size of data of the valid logical areas of each block using the number of valid logical areas stored and the first coefficient stored for each block; selecting a block to be subjected to the garbage collection based on a total size of data in the valid logical area; Memory system.
2. The controller, at the predetermined timing, Search for blocks that meet predefined conditions, Calculating and updating the first coefficient at the predetermined timing of the searched block; 2. The memory system of claim 1.
3. 3. The memory system according to claim 2, wherein the predetermined timing is each time the garbage collection is executed.
4. 3. The memory system according to claim 2, wherein the predetermined timing is a time when a block occurs in which the number of the logical areas invalidated since the previous update of the first coefficient exceeds a certain amount.
5. 3. The memory system according to claim 2, wherein the block that satisfies the predetermined condition is a block in which the first coefficient has not been updated for the longest period of time.
6. 3. The memory system according to claim 2, wherein the block that satisfies the predetermined condition is a block having the largest number of the logic regions that have been invalidated since the previous predetermined timing.
7. A non-volatile memory; A controller capable of communicating with a host and controlling the non-volatile memory; Equipped with The controller: managing a first table that holds a correspondence relationship between an address designated by the host and an address indicating a physical location of the non-volatile memory; compressing first data corresponding to a first address specified in a write command received from the host; Identifying a size of second data obtained by compressing the first data; determining an arrangement of the second data in the non-volatile memory based on a size of the second data; storing a second address, which is an address corresponding to a physical area in which a beginning of the second data is stored, and the number of physical areas used to store the second data, in an entry corresponding to the first address among the entries of the first table; storing, in a first area of a physical area in which the second data is stored, the first address and information capable of acquiring a position of a start end of the second data in the physical area and a size of the second data; managing a log in which the first addresses are stored in chronological order as a history of data writing to the non-volatile memory in units of blocks corresponding to the first number of physical areas; When the log is stored in the non-volatile memory, Searching whether a plurality of identical first addresses are associated with the same second address; when a plurality of identical first addresses are associated with a same second address, invalidating entries of the log that hold the first addresses other than the chronologically last first address among the plurality of identical first addresses; Memory system.
8. The memory system of claim 7 , wherein the controller invalidates an entry in the log by updating the first address to a particular value.
9. A non-volatile memory; A controller capable of communicating with a host and controlling the non-volatile memory; Equipped with The controller: managing a first table that holds a correspondence relationship between an address designated by the host and an address indicating a physical location of the non-volatile memory; compressing first data corresponding to a first address specified in a write command received from the host; Identifying a size of second data obtained by compressing the first data; determining an arrangement of the second data in the non-volatile memory based on a size of the second data; storing a second address, which is an address corresponding to a physical area in which a beginning of the second data is stored, and the number of physical areas used to store the second data, in an entry corresponding to the first address among the entries of the first table; storing, in a first area of a physical area in which the second data is stored, the first address and information capable of acquiring a position of a start end of the second data in the physical area and a size of the second data; the non-volatile memory is a memory that cannot overwrite data to the physical area in which data has already been written, and is a memory that erases data in block units constituted by a first number of the physical areas; The controller: managing a log that chronologically stores the first addresses as a history of data writing to the nonvolatile memory for each block; When performing garbage collection to move valid logical area data from N (N is a natural number equal to or greater than 2) blocks to M (M is a natural number equal to or greater than 1 but smaller than N) blocks and create N-M free blocks, Searching the log of the block selected as the garbage collection target for whether a plurality of identical first addresses are associated with the same second address; when a plurality of identical first addresses are associated with a same second address, determining that data corresponding to an entry of the log that holds a first address other than the last first address in chronological order among the plurality of identical first addresses is invalid data; Memory system.
10. A non-volatile memory; A controller capable of communicating with a host and controlling the non-volatile memory; Equipped with The controller: managing a first table that holds a correspondence relationship between an address designated by the host and an address indicating a physical location of the non-volatile memory; compressing first data corresponding to a first address specified in a write command received from the host; Identifying a size of second data obtained by compressing the first data; determining an arrangement of the second data in the non-volatile memory based on a size of the second data; storing a second address, which is an address corresponding to a physical area in which a beginning of the second data is stored, and the number of physical areas used to store the second data, in an entry corresponding to the first address among the entries of the first table; storing, in a first area of a physical area in which the second data is stored, the first address and information capable of acquiring a position and a size of a start end of the second data in the physical area; When creating a second table having an entry for holding a pair of a position of a start end of the second data in the physical area and the first address to be stored in the first area, Searching for multiple entries that hold the same first address; When a plurality of entries exist, invalidating all of the entries other than the last entry in chronological order among the plurality of entries. Memory system.
11. The memory system of claim 10 , wherein the controller invalidates an entry in the second table by updating the first address to a particular value.
Citation Information
Patent Citations
MEMORY SYSTEM AND CONTROL METHOD
JP6553566B2
