A method for classifying data by life span according to the number of data transfers to improve the performance and life span of flash memory-based SSDs

By classifying data by lifespan based on data movements during GC, the method addresses SSD performance issues by optimizing GC operations and I/O speed without additional memory or interface changes, enhancing SSD performance and lifespan.

JP2024538858AActive Publication Date: 2024-10-24UNIST (ULSAN NAT INST OF SCI & TECH)
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024508776
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-08-13
Filing Date
2021-11-16
Publication Date
2024-10-24
Estimated Expiration
2041-11-16

AI Technical Summary

Technical Problem

Existing SSDs face performance degradation due to slow garbage collection (GC) operations, which are caused by the inability to efficiently classify and manage data based on its lifespan, leading to unnecessary data copying and slowed input/output (I/O) speeds.

Method used

A method for classifying data by lifespan based on the number of data movements during GC, allowing pages to be moved to new blocks without additional memory consumption, using an OOB area to track movement counts and form taxonomic groups, thereby improving GC efficiency and I/O speed.

Benefits of technology

This method enhances GC erasure operations and I/O speed by eliminating unnecessary data copying, thereby improving SSD performance and lifespan without requiring additional memory or interface modifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024538858000001_ABST
    Figure 2024538858000001_ABST
Patent Text Reader

Abstract

The present invention provides a method for classifying data by life span according to the number of data movement for improving the performance and life span of a flash memory-based SSD, the method including: a movement number tracking step in which a number of movement numbers of a plurality of pages, in which data has been created from the time of initial creation to the time of invalidation by erasure or overwriting in the flash memory-based SSD, is tracked by software installed in a computer system; and a classification group forming step in which at least one page having the same number of movement numbers among the plurality of pages is grouped into one or more blocks by the software to form a classification group.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a method for classifying data according to its life span based on the number of data movement for improving the performance and life span of a flash memory based SSD, and more particularly, to a method for classifying data according to its life span based on the number of data movement for improving the performance and life span of a flash memory based SSD, in which data is classified according to its life span based on the number of times a plurality of pages in which data is created from the time of initial creation to the time of invalidation is moved from a given block to another block by garbage collection (GC). [Background technology]

[0002] SSD (Solid State Drive) is a storage device that consists of multiple NAND flash memories connected in parallel. Unlike HDD (Hard Disk Drive) which operates mechanically, SSD operates on a semiconductor base, so performance has improved in terms of data transmission speed and random input / output, and power consumption has been reduced, and SSD is increasingly being used as a storage device for servers, desktops, and notebook computers.

[0003] A critical characteristic of NAND flash memory that makes up SSDs is that each cell has a limit on the number of write / erase cycles, and the original storage location cannot be overwritten. SLC (Single Level Cell) has a limit of about 100,000 cycles, MLC (Multi Level Cell) has a limit of about 10,000 cycles, and TLC (Triple Level Cell) has a limit of about 1,000 cycles. If the limited number of cycles is exceeded, the cell will not function properly. Also, unlike HDDs, NAND flash memory cannot overwrite the original storage location, so write operations can only be performed on empty pages.

[0004] Valid data and invalid data in SSDs are generated by write and erase operations on SSDs. Valid data is generated by write operations when input data is stored in the SSD, and invalid data is generated by updates and deletions of valid data. Invalid data is maintained until it is completely erased by garbage collection (GC), and the space occupied by invalid data after the garbage collection process becomes free space.

[0005] Here, garbage collection (GC) is a process in which invalid data in blocks in NAND flash memory is erased to make them free blocks. Garbage collection (GC) operations complement the characteristic of SSDs that they cannot overwrite the original storage location, but they slow down the input / output (I / O) speed of SSDs due to the slow erase operation.

[0006] In recent years, research has been conducted on hot / cold or semantic classification methods described in Non-Patent Documents 1-6 to solve garbage collection (GC) problems in order to improve SSD performance, but the classification methods have limitations in that they require additional data structures or interface modifications for data classification. Therefore, there is a need for a technology that can classify data and solve the garbage collection (GC) problem without additional memory consumption or a specified interface. Summary of the Invention [Problem to be solved by the invention]

[0007] The present invention has been made to solve the above problems, and aims to provide a method for classifying data according to life span according to the number of data movement to improve the performance and life span of a flash memory-based SSD, in which a plurality of pages in which data has been created from the time of initial creation to the time of invalidation is moved from a given block to another block by garbage collection (GC), so that the speed of the garbage collection (GC) erase operation can be increased and the input / output (I / O) speed of the SSD can be improved, thereby improving the performance of the SSD.

[0008] Another object of the present invention is to provide a method for classifying data according to life span based on the number of data movement to improve the performance and life span of a flash memory-based SSD in which a number of pages are moved from one block to another block by garbage collection (GC) so that it can be realized at the software level of the SSD without additional memory consumption or a specified interface, and the number of movement counts is stored in an OOB section, which is an additional space provided on one side of the plurality of pages. [Means for solving the problem]

[0009] In order to achieve the above object, the method of classifying data according to life span based on the number of data movement for improving the performance and life span of a flash memory based SSD of the present invention includes a movement number tracking step in which software installed in a computer system tracks the number of times that a plurality of pages in which data has been created from the time of initial creation to the time of invalidation by erasure or overwriting is moved from any block to another block by garbage collection (GC), and a taxonomy formation step in which the software groups at least one page among the plurality of pages having the same number of movement into one or more blocks to form a taxonomy. Effect of the Invention

[0010] As described above, according to the present invention, a plurality of pages in which data has been created from the time of initial creation to the time of invalidation are classified according to the life span of the data according to the number of times the data is moved from a given block to another block by garbage collection (GC), and blocks including pages in which data, excluding cold data, has been created can be erased without a separate copy process. This has the effect of improving the speed of the garbage collection (GC) erase operation and improving the SSD's input / output (I / O) speed, thereby improving the SSD's performance.

[0011] In addition, the present invention has an advantage that it can be implemented at the software level of the SSD without additional memory consumption or a specified interface by providing a plurality of pages to be moved from one block to another block by garbage collection (GC) and storing the number of times the pages are moved in an OOB section, which is an additional space provided on one side of the plurality of pages. [Brief description of the drawings]

[0012] [Figure 1] 4 is a flowchart of a method for classifying data according to life span according to the number of data movement in order to improve the performance and life span of a flash memory-based SSD according to the present invention. [Diagram 2] FIG. 1 illustrates a conventional garbage collection (GC). [Diagram 3] FIG. 1 shows a conventional case where data is not classified (a) and an embodiment of the present invention where data is classified by life span according to the number of movements (b). [Figure 4] FIG. 1 illustrates the taxon formation stages according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] The terms used in this specification are selected as general terms currently widely used as much as possible while taking into consideration the functions of the present invention, but these may change depending on the intentions of those skilled in the art, precedents, the emergence of new technologies, etc. In addition, in certain cases, there are terms arbitrarily selected by the applicant, and in such cases, the meanings are described in detail in the description of the relevant invention. Therefore, the terms used in this specification are defined based on the meanings of the terms and the overall content of the present invention, rather than simply the names of the terms. Unless otherwise defined, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by a person of ordinary skill in the art to which the present invention pertains. Terms as defined in commonly used dictionaries are to be interpreted as having a meaning consistent with the meaning they have in the context of the relevant art, and are not to be interpreted in an idealized or overly formal sense unless expressly defined in this application.

[0014] Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. Fig. 1 is a flowchart of a method for classifying data by life span according to the number of data movement for improving the performance and life span of a flash memory-based SSD 100 according to the present invention. Fig. 2 is a diagram illustrating a conventional garbage collection (GC). Fig. 3 is a diagram illustrating a conventional case where data is not classified (a) and a case where data is classified by life span according to the number of movement according to an embodiment of the present invention (b). Fig. 4 is a diagram illustrating a classification group formation step S200 according to an embodiment of the present invention.

[0015] Generally, a flash memory is composed of a block including a number of pages, a plane including a number of blocks, and a die including a number of planes. In addition, read and write commands in a flash memory can be performed in units of pages, whereas data can only be erased in units of blocks, which are higher units than pages.

[0016] Also, in general, garbage collection (GC) is a process of moving pages containing internal valid data in a block to other blocks before erasing the block. More specifically, referring to FIG. 2(a), garbage collection (GC) is used to create invalid data of data that has already been invalidated together with valid data that has not yet been invalidated in block 1. Block 2 contains free pages with no data.

[0017] 2(b), only the valid data is copied to block 2, and the valid data already copied to block 1 is invalidated. Then, referring to FIG. 2(c), since block 1 contains only invalid data, block 1 is erased in units of blocks so that it can be reused.

[0018] However, in conventional garbage collection (GC), block 2, which consists only of valid data, is created with an unclassified mix of hot data (which is the easiest to invalidate, i.e., is updated more frequently), cool data (which is easier to invalidate than cold data), and cold data (which is the least easy to invalidate).

[0019] More specifically, in blocks 2 and 3 shown in FIG. 3(a), hot data, cool data, and cold data, which are expressed as temperatures according to the degree to which they can be invalidated, are created together without being classified, and after all the hot data and cool data are invalidated, the cold data is distributed and created in blocks 2 and 3, respectively.

[0020] That is, to reuse a block, a process must be added to copy and merge the distributed cold data to one of blocks 2 and 3. As a result, conventional garbage collection (GC) has limitations in improving SSD performance because the deletion operation slows down due to the continued unnecessary copying of data and the input / output (I / O) speed of the SSD.

[0021] However, in the present invention, the movement count tracking step S100 and classification group forming step S200 result in the block 2 consisting of only pages including cold data that is least likely to be invalidated as shown in Fig. 3(b), and the block 3 can be immediately erased for block reuse without a separate process of copying valid data. Therefore, the speed of the garbage collection (GC) erase operation can be improved, and the input / output (I / O) speed of the SSD 100 is improved, which has a significant effect on improving the performance of the SSD 100.

[0022] To embody this, first referring to FIG. 1, the method for classifying data according to the number of data transfers to improve the performance and lifespan of a flash memory-based SSD 100 of the present invention includes a transfer number tracking step S100 and a classification group forming step S200.

[0023] The present invention may be implemented by software within the operating system, by configuration to manage firmware or flash memory.

[0024] More specifically, the migration count tracking step 100 tracks the number of times that multiple pages in which data is created in the flash memory-based SSD (Solid State Drive) 100 from the time of initial creation to the time of invalidation when the pages are erased or overwritten, by garbage collection (GC), using software 210 installed in the computer system 200.

[0025] Here, the number of moves can be stored in the OOB (Out-of-Band) section 110, which is additional space provided on one side of the pages when the pages are moved from one block to another block by garbage collection (GC).

[0026] That is, at the time of initial creation, the number of moves is 0, and whenever a number of pages are moved from a given block to another block by garbage collection (GC), a number incremented by 1 is stored. For example, referring to Fig. 4, the OOB section 110, which is an additional space provided on one side of each of the pages, is shown in gray. Also, it can be seen that whenever a number of pages are moved from a given block to another block by garbage collection (GC), a number incremented by 1 is stored, such as 0, 1, 2, 3.

[0027] Next, in the taxonomic group forming step S200, the software 210 groups at least one page having the same number of moves among the plurality of pages into one or more blocks to form a taxonomic group.

[0028] That is, when at least one page having the same number of moves among a plurality of pages is grouped into a block as many times as the number of pages that can be accommodated therein, the remaining pages are further grouped into other blocks as many times as the number of pages that can be accommodated therein. Thus, there is one or more blocks having the same number of moves, and these one or more blocks can be formed into a taxonomic group.

[0029] For example, referring to FIG. 4, the number of pages with the number of transfers being 0 is 20 or more, and each of the blocks can contain only 4 pages. Therefore, the taxonomy formation step S200 may group the 4 pages with the number of transfers being 0 into one block, and may form 5 or more such blocks. Then, 5 or more blocks each including the 4 pages with the number of transfers being 0 can be formed into a "taxonomy 0". Also, the taxonomy formation step S200 may group the 4 pages with the number of transfers being 1 into one block, and may form 3 or more such blocks. Then, 3 or more blocks each including the 4 pages with the number of transfers being 1 can be formed into a "taxonomy 1".

[0030] Furthermore, the taxonomy formation step S200 may group the six pages with the number of moves being 2 into groups of four and two, and may form two blocks including these. The two blocks each including the page with the number of moves being 2 may then be formed into "taxonomy 2". Finally, the taxonomy formation step S200 may group the two pages with the number of moves being 3 into one block, and may form one such block. The block including the page with the number of moves being 3 may then be formed into "taxonomy 3".

[0031] Here, the taxonomic group forming step S200 is performed by the OOB unit 110 based on n-bit units. n The number of transfers can be 2 n Data that has been created in the at least one page one or more times can be classified as cold data, where n is a positive integer, which is the least easily invalidated.

[0032] For example, if the OOB unit 110 is based on a 2-bit unit, four taxa can be formed, and as described above, taxonomy 0, taxonomy 1, taxonomy 2, and taxonomy 3 can be formed. Each taxonomy can have a transfer count of 0, 1, 2, and 3, respectively. In addition, the taxonomy forming step S200 can classify data created in at least one page in a block included in taxonomy 3, which has a transfer count of 3 or more, as cold data, which is the least easy to invalidate.

[0033] Next, the present invention may further include a data classification step S300 in which the software 210 classifies the data created on the plurality of pages according to the number of times of movement.

[0034] That is, the data classification step S300 can classify data formed in "taxonomy 0'" from the taxonomy formation step S200 and created in at least one page with the number of moves being 0 into hot data, which is the easiest to invalidate. Data formed in "taxonomy 1" and created in at least one page with the number of moves being 1 into warm data, which is the second easiest to invalidate after the hot data. Data formed in "taxonomy 2" and created in at least one page with the number of moves being 2 into cool data, which is the second easiest to invalidate after warm data.

[0035] However, since the above classification groups are created based on 2 bits, the data can be classified according to the number of movements in proportion to the temperature range of the four data lifespans. Furthermore, if the OOB unit 110 creates the group based on 3 bits or more, the data can be classified by further subdividing at least 8 data lifes according to the temperature range. Therefore, the classification groups are not limited to a specific temperature range.

[0036] Here, the data lifespan refers to the amount of data created from the time of initial creation to the time of invalidation when the data is erased or overwritten in the flash memory based SSD (Solid State Drive) 100. That is, the shorter the data lifespan, the closer it is to hot data, which is easily invalidated, and the longer the data lifespan, the closer it is to cold data, which is not easily invalidated.

[0037] Therefore, as shown in Fig. 3(b), the present invention can classify a plurality of data into blocks containing only cold data, which is the least easily invalidated, and blocks that do not contain cold data.The present invention has a remarkable effect that blocks containing data other than cold data can be erased without a separate copy process, and blocks containing only the cold data as valid data can be erased without a separate copy process, and blocks having free pages can be erased.

[0038] In addition, the present invention provides a method for moving a plurality of pages from one block to another block by garbage collection (GC), and stores the number of times the pages are moved in the OOB section 110, which is an additional space provided on one side of the plurality of pages, thereby providing a significant effect that the method can be implemented at the software level of the SSD 100 without consuming additional memory or requiring a specified interface, and that the problem of slower speed of the garbage collection (GC) erase operation can be solved by classifying data as described above.

[0039] Although the embodiments have been described above with reference to limited examples and drawings, those skilled in the art will appreciate that various modifications and variations may be made from the above description. For example, the disclosed technology may be performed in an order different from that described, and / or the components of the described systems, structures, devices, circuits, etc. may be combined or combined in a different manner from that described, or may be replaced or substituted by other components or their equivalents, and still achieve suitable results. Therefore, other embodiments, examples, and equivalents of the claims are intended to fall within the scope of the following claims.

Claims

1. A migration count tracking step in which a number of pages in which data is created from an initial creation time to an invalidation time when the pages are erased or overwritten in a flash memory-based solid state drive (SSD) are tracked by software installed in the computer system, the number of times the pages are moved from an arbitrary block to another block by garbage collection (GC); and a taxonomic group forming step in which at least one page having the same number of moves among the plurality of pages is grouped into one or more blocks by the software to form a taxonomic group. A method for classifying data according to life span based on the number of data transfers in order to improve the performance and life span of a flash memory-based SSD, comprising:

2. The number of movements is A number of pages are moved from one block to another by garbage collection (GC) and are stored in an out-of-band (OOB) area, which is an additional space provided on one side of the number of pages.

2. The method for classifying data according to life span according to the number of data movement for improving the performance and life span of a flash memory-based SSD according to claim 1.

3. The taxon formation step includes: If the OOB part is based on an n-bit unit, 2n classification groups can be formed, The number of moves is 2 n Classify data that has been created in the at least one page one or more times as cold data, which is the least easily invalidated.

3. The method for classifying data by life span according to the number of data migrations to improve the performance and life span of a flash memory-based SSD according to claim 2, where n is a positive integer.

4. The method further includes a step of: classifying the data created on the plurality of pages by the number of times of movement by the software.

2. The method for classifying data according to life span according to the number of data movement for improving the performance and life span of a flash memory-based SSD according to claim 1.

5. The number of movements is It is set to 0 at the time of the initial creation, and is incremented by 1 each time it is moved from any block to another block by the garbage collection (GC); The data classification step includes: The data created in at least one page with a transfer count of 0 is classified as hot data, which is the easiest to invalidate, and the data created in at least one page with a transfer count of the most is classified as cold data, which is the least easy to invalidate.

5. The method for classifying data according to life span according to the number of data movement times for improving the performance and life span of a flash memory-based SSD according to claim 4.

Citation Information

Patent Citations

  • Memory system and control method

    JP2017111476A

  • Flash file system

    KR1020120131579A