Controller and its operation methods

By setting up multiple memory areas and spare areas in the memory system, and dynamically adjusting the data location according to the number of accesses, the problem of low data management efficiency in the existing technology is solved, and the life of the memory device is extended and the data access efficiency is improved.

CN112486850BActive Publication Date: 2024-10-01SK HYNIX INC +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010956014.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-07-31
Filing Date
2020-09-11
Publication Date
2024-10-01
Estimated Expiration
2040-09-11

AI Technical Summary

Technical Problem

Existing memory systems have low efficiency in data management with high access frequency. Especially when the number of data accesses changes, it is difficult to effectively classify and manage hot data and cold data, resulting in a shortened life of the memory device.

Method used

A controller is designed that sets multiple memory areas and spare areas in the memory system, uses the number of accesses as a reference value, dynamically adjusts the storage location of data, performs starting interval loss leveling operations, and ensures data migration with high access frequency. To the hot data area, data with low access frequency is migrated to the cold data area, thereby extending the life of the memory device.

Benefits of technology

By dynamically adjusting the data storage location, the life of the memory device is improved, the data access efficiency is improved, the wear and tear of the memory device is reduced, and the service life of the device is extended.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112486850B_ABST
    Figure CN112486850B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a controller for controlling a non-volatile memory device, the controller may include: a first memory configured to temporarily store user data; a second memory including a plurality of memory areas, the plurality of memory areas including at least one meta area for storing metadata and at least one spare area; and a processor configured to control the first memory and the second memory, and perform a first starting interval wear leveling on the at least one meta area using the at least one spare area as an interval.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Korean Application No. 10-2019-0112907 filed on September 11, 2019, in the Korean Intellectual Property Office and Korean Application No. 10-2020-0095883 filed on July 31, 2020, in the Korean Intellectual Property Office, which are incorporated herein by reference in their entirety. Technical Field

[0003] Various embodiments generally relate to a semiconductor device, and more particularly, to a controller and an operating method thereof. Background Art

[0004] Recently, the paradigm of computer environments has changed to ubiquitous computing, where computer systems are used almost anywhere, anytime. As a result, the use of portable electronic devices such as mobile phones, digital cameras, and notebook computers has increased rapidly. Such portable electronic devices typically use a memory system that employs a memory device. The memory system is used to store data used in the portable electronic device.

[0005] The advantages of a memory system using a memory device are that it has excellent stability and durability due to the absence of a mechanical drive unit, a high information access speed, and low power consumption. Memory systems having these advantages include a universal serial bus (USB) memory device, a memory card having various interfaces, a universal flash memory (UFS) device, and a solid state drive (SSD). Summary of the invention

[0006] In an embodiment, a controller for controlling a non-volatile memory device may include: a first memory configured to temporarily store user data; a second memory including multiple memory areas, the multiple memory areas including at least one meta area for storing metadata and at least one spare area; and a processor configured to control the first memory and the second memory, and use the at least one spare area as a gap to perform a first start-gap wear leveling on the at least one meta area.

[0007] In an embodiment, an operating method of a controller, the controller comprising: a first memory configured to temporarily store user data; and a second memory comprising a plurality of memory areas, the plurality of memory areas comprising at least one meta area for storing metadata and at least one spare area, the operating method comprising: determining, by the controller, whether the number of accesses to at least one meta area storing metadata is equal to or greater than a first reference value; and when the sum of the number of accesses to the metadata is equal to or greater than the first reference value, performing, by the controller, first starting interval wear leveling on the at least one meta area using the at least one spare area as an interval.

[0008] In an embodiment, a storage system may include: a data storage area having one or more data spaces, each data space being configured to store a data piece; a spare storage area having one or more spare spaces, each spare space being configured to store a data piece; and a controller configured to: shift a first data segment stored in one or more of the data spaces for the first data segment to a group within the data storage area, the number of accesses to each of the first data segments being a first threshold or greater, and migrate a second data segment from one of the data spaces to the spare storage area, the number of accesses to the second data segment being a second threshold or greater. The data storage area includes a cold data area and a hot data area, and the controller is further configured to: when it is detected that the sum of the number of accesses to the data storage area is less than a first reference value, move a third data piece in the data space having an access number equal to or greater than a third reference value to a group within the hot data area. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 is a diagram illustrating a configuration of a memory system according to an embodiment of the present disclosure.

[0010] Figures 2 to 6C is a diagram for describing a start interval wear leveling operation of a second memory according to an embodiment of the present disclosure.

[0011] Figure 7 and Figure 8 is a flowchart for describing a start-interval wear leveling operation of a second memory according to an embodiment of the present disclosure.

[0012] Fig. 9 is a diagram illustrating a data processing system including a solid state drive (SSD) according to an embodiment of the present disclosure;

[0013] Fig.10 Such as Fig. 9 A diagram of the configuration of the controller shown;

[0014] Fig.11is a diagram showing a configuration of a data processing system including a memory system according to an embodiment of the present disclosure;

[0015] Fig.12 is a diagram showing a configuration of a data processing system including a memory system according to an embodiment of the present disclosure;

[0016] Fig.13 is a diagram showing a configuration of a network system including a memory system according to an embodiment of the present disclosure; and

[0017] Fig.14 is a block diagram illustrating a nonvolatile memory device included in a memory system. DETAILED DESCRIPTION

[0018] Hereinafter, a controller and an operating method thereof will be described through various examples of embodiments with reference to the accompanying drawings.

[0019] Figure 1 is a diagram showing a configuration of a memory system 10 according to an embodiment.

[0020] Reference Figure 1 The memory system 10 according to the embodiment may store data accessed by a host computer 20 such as a mobile phone, an MP3 player, a laptop computer, a desktop computer, a game console, a television, or an in-vehicle infotainment system.

[0021] The memory system 10 may be manufactured as any of various types of storage devices according to an interface protocol electrically connected to the host 20. For example, the memory system 10 may be configured as any of various types of storage devices such as a solid state drive (SSD), a multimedia card in the form of MMC, eMMC, RS-MMC, or micro-MMC, a secure digital card in the form of SD, mini-SD, or micro-SD, a universal serial bus (USB) storage device, a universal flash memory (UFS) device, a storage device in the form of a personal computer memory card international association (PCMCIA) card, a storage device in the form of a peripheral component interconnect (PCI) card, a storage device in the form of a high-speed PCI (PCI-E) card, a compact flash (CF) card, a smart media card, and a memory stick.

[0022] The memory system 10 may be manufactured as any of various types of packages. For example, the memory system 10 may be manufactured as any of various types of packages such as package on package (POP), system in package (SIP), system on chip (SOC), multi-chip package (MCP), chip on board (COB), wafer-level fabrication package (WFP), and wafer-level stacked package (WSP).

[0023] The memory system 10 may include a nonvolatile memory device 100 and a controller 200 .

[0024] The nonvolatile memory device 100 may operate as a storage medium of the memory system 10. Depending on the type of memory cell, the nonvolatile memory device 100 may be configured as any of various types of nonvolatile memory devices such as a NAND flash memory device, a NOR flash memory device, a ferroelectric random access memory (FRAM) using a ferroelectric capacitor, a magnetic random access memory (MRAM) using a tunneling magnetoresistive (TMR) film, a phase change random access memory (PRAM) using a chalcogenide alloy, and a resistive random access memory (ReRAM) using a transition metal oxide.

[0025] Figure 1 The memory system 10 is shown to include one nonvolatile memory device 100. However, this is for convenience of description, and the memory system 10 may include a plurality of nonvolatile memory devices, and the embodiments may also be equally applied to the memory system 10 including a plurality of nonvolatile memory devices.

[0026] The nonvolatile memory device 100 may include a memory cell array (not shown) having a plurality of memory cells arranged in an intersection region of a plurality of bit lines (not shown) and a plurality of word lines (not shown). The memory cell array may include a plurality of memory blocks, and each of the plurality of memory blocks may include a plurality of pages.

[0027] Each memory cell of the memory cell array may operate as a single-level cell (SLC) storing one bit of data or a multi-level cell (MLC) capable of storing two or more bits of data.

[0028] The memory cell array may include at least one of an SLC and an MLC. In addition, the memory cell array may further include memory cells having a two-dimensional horizontal structure or memory cells having a three-dimensional vertical structure.

[0029] The controller 200 may control all operations of the memory system 10 by driving the firmware or software loaded on the first memory 230. The controller 200 may decode and drive instructions or algorithms of a code type such as firmware or software. The controller 200 may be implemented in hardware or a combination of hardware and software.

[0030] The controller 200 may include a host interface 210, a processor 220, a first memory 230, a second memory 240, and a memory interface 250. Figure 1, but the controller 200 may further include an error correction code (ECC) engine that generates a parity code by ECC encoding the write data provided from the host 20, and performs ECC decoding on the read data read from the nonvolatile memory device 100 using the parity code.

[0031] The host interface 210 may be used as an interface between the host 20 and the memory system 10 corresponding to a protocol of the host 20. For example, the host interface 210 may communicate with the host 20 through any one of the following protocols, such as Universal Serial Bus (USB), Universal Flash Storage (UFS), Multimedia Card (MMC), Parallel Advanced Technology Attachment (PATA), Serial Advanced Technology Attachment (SATA), Small Computer System Interface (SCSI), Serial SCSI (SAS), Peripheral Component Interconnect (PCI), and PCI-Express (PCI-E).

[0032] The processor 220 may be configured in the form of a microcontroller unit (MCU) or a central processing unit (CPU). The processor 220 may process a request transmitted from the host 20. In order to process the request transmitted from the host 20, the processor 220 may drive a code type instruction or algorithm loaded on the first memory 230, i.e., firmware, and control internal functional blocks such as the host interface 210, the first memory 230, the second memory 240, and the memory interface 250 and the nonvolatile memory device 100.

[0033] The processor 220 may generate a control signal for controlling the operation of the nonvolatile memory device 100 based on a request transmitted from the host 20 , and provide the generated control signal to the nonvolatile memory device 100 through the memory interface 250 .

[0034] The first memory 230 may store user data and is used as an area for: a command queue (CMDQ) for queuing commands corresponding to requests provided by the host 20; a write data buffer for temporarily storing write data; and a read data buffer for temporarily storing read data. User data may also be stored in the second memory 240.

[0035] In an embodiment, the first memory 230 may be composed of a random access memory such as a dynamic random access memory (DRAM) or a static random access memory (SRAM).

[0036] In an embodiment, the first memory 230 may have a higher integration level than the second memory 240. That is, the first memory 230 may have a larger data storage capacity than the second memory 240.

[0037] In an embodiment, the first memory 230 may have a higher data throughput than the second memory 240 , and thus may operate at a higher speed than the second memory 240 .

[0038] The second memory 240 may store firmware driven by the processor 220. In addition, the second memory 240 may store data required to drive the firmware, such as metadata. That is, the second memory 240 may operate as a working memory of the processor 220. In addition, the second memory 240 may be used as a mapping cache buffer for caching mapping data.

[0039] In an embodiment, the second memory 240 may be composed of a memory such as a phase change RAM (PCRAM).

[0040] The memory interface 250 may control the nonvolatile memory device 100 under the control of the processor 220. The memory interface 250 may be referred to as a memory controller. The memory interface 250 may provide a control signal to the nonvolatile memory device 100. The control signal may include a command, an address, etc. for controlling the nonvolatile memory device 100. The memory interface 250 may provide the data stored in the data buffer to the nonvolatile memory device 100, or may store data transmitted from the nonvolatile memory device 100 in the data buffer. The data buffer may be an area allocated to the first memory 230.

[0041] Figure 2 Is used to describe Figure 1 A diagram of the second memory 240 is shown.

[0042] The second memory 240 may temporarily store user data to be stored in the nonvolatile memory device 100, or store metadata for managing the nonvolatile memory device 100. The second memory 240 may include a plurality of memory regions "memory region_01" to "memory region_M" to store user data and metadata, and each of the memory regions "memory region_01" to "memory region_M" may include a plurality of sub regions "subregion_01" to "sub region_N".

[0043] In an embodiment, the plurality of memory regions “memory region_01” to “memory region_M” included in the second memory 240 may include a meta region and at least one spare region used as an interval for performing a start-interval wear leveling operation.

[0044] In another embodiment, the sub-regions "sub region_01" to "sub region_N" included in each of the multiple memory regions included in the second memory 240 may include a sub-meta region for storing metadata and at least one sub-spare region used as an interval for performing a start interval wear leveling operation.

[0045] In an embodiment, each of the plurality of memory regions "memory region_01" to "memory region_M" included in the second memory 240 may include a cold region storing metadata having an access count less than a first reference value and a hot region storing metadata having an access count equal to or greater than the first reference value. In addition, the first reference value may be set or changed during manufacture or use of the memory system 10. In an embodiment, the first reference value may be a reference value for classifying memory regions into hot regions and cold regions.

[0046] FIG. 3A to FIG. 3C is a diagram for describing a start interval wear leveling operation of a second memory according to an embodiment of the present disclosure.

[0047] Reference Figure 3A , the second memory 240 may include, for example, six memory regions "memory region_01" to "memory region_06". Among the six memory regions, five memory regions "memory region_01" to "memory region_05" may be meta regions for storing metadata, and the remaining memory region "memoryregion_06" may be a spare region (Gap spare). In this case, it is assumed that memory region 05 "memory region_05" among the memory regions "memoryregion_01" to "memory region_05" is the memory region that will start the start gap wear leveling operation, and memory region 06 "memory region_06" is the gap region.

[0048] Reference Figure 3B, when the sum of the number of accesses to the metadata stored in the memory regions "memory region_01" to "memory region_05" is equal to or greater than the first reference value, the controller 200 may start a start-interval wear leveling operation. For example, the controller 200 may migrate the metadata stored in the memory region 05 "memoryregion_05" which will start the start-interval wear leveling operation to the memory region 06 "memory region_06" which is the interval region. As a result of the start-interval wear leveling operation, the memory region 05 "memory region_05" may be switched to a spare region, and the memory region 06 "memory region_06" may be switched to a meta region. In addition, the memory region 04 "memory region_04" may be selected as the meta region which will start a subsequent start-interval wear leveling operation, and the memory region "memory region_05" may be selected as the interval region of a subsequent start-interval wear leveling operation.

[0049] That is, by sequentially decreasing or increasing the address of the memory region 05 “memory region_05” where the starting interval wear leveling operation will be started, or by calculating the address of the memory region 05 “memory region_05” using the set address calculation formula, one of the remaining memory regions “memory region_01” to “memory region_04” (for example, memory region 04 “memoryregion_04”) except for the memory region (for example, memory region 05 “memoryregion_05”) on which the starting interval wear leveling operation has been performed and thus becomes an interval region can be selected as the target meta region where the subsequent starting interval wear leveling operation will be started, and one of the memory regions (for example, memory region 05 “memoryregion_05”) on which the starting interval wear leveling operation has been performed can be selected as the interval region for the subsequent starting interval wear leveling operation.

[0050] Reference Figure 3C, the controller 200 may migrate metadata stored in the memory region 04 "memory region_04" which is the target meta-region of the starting interval wear leveling operation to the interval region, i.e., to the memory region 05 "memory region_05" which is the interval region. Therefore, the memory region 04 "memory region_04" may be switched to a spare region (i.e., the interval region) for subsequent starting interval wear leveling operations, and the memory region 05 "memory region_05" may become the target meta-region for subsequent starting interval wear leveling operations. In addition, a subsequent starting interval wear leveling operation may be performed on the memory region 03 "memory region_03", and the memory region 04 "memory region_04" may be the interval region for subsequent starting interval wear leveling operations.

[0051] FIG. 3A to FIG. 3C An example of performing a start interval wear leveling operation by selecting the addresses of the memory regions "memory region_01" to "memory region_05" in descending order to become spare regions is shown. However, the present disclosure is not limited thereto, and various changes and modifications may be made, such as using two or more spare regions as intervals, or performing a start interval wear leveling operation by selecting the addresses of the spare regions in ascending order.

[0052] Because the access is performed based on the sum of the number of accesses to the metadata stored in the memory regions "memory region_01" to "memory region_05". FIG. 3A to FIG. 3C The starting interval wear leveling shown, which can be called global starting interval wear leveling.

[0053] FIG. 4A to FIG. 4C is a diagram for describing a starting interval wear leveling method of a second memory according to an embodiment, and illustrates starting interval wear leveling for a sub-region.

[0054] Figure 4AAn example of a memory region including 10 sub-regions "sub region_01" to "sub region_10" is shown. In the memory region, each of the 10 sub-regions "sub region_01" to "sub region_10" may include a sub-meta region storing metadata "meta data_01" to "meta data_09" and a spare region Gap (spare), respectively. It is assumed that the sub-region "sub region_09" among the multiple sub-regions "sub region_01" to "sub region_10" is a sub-region where the start interval wear leveling operation will be started, and the sub-region "sub region_10" is a gap region.

[0055] Reference Figure 4B , when the sum of the number of accesses to the metadata stored in the sub-regions "sub region_01" to "sub region_09" is equal to or greater than the second reference value, the controller 200 may start a start-interval wear leveling operation. For example, the controller 200 may migrate the metadata "meta data_09" stored in the sub-region "sub region_09" that will start the start-interval wear leveling operation to the sub-region "sub region_10". Therefore, the sub-region "sub region_09" may be switched to a spare for a subsequent start-interval wear leveling operation, and the sub-region "sub region_08" may be a target sub-meta region for a subsequent start-interval wear leveling operation. In an embodiment, the second reference value may be set or changed during the manufacture or use of the memory system 10.

[0056] That is, by sequentially decreasing or increasing the address of subregion 09 "subregion_09" where the starting interval wear leveling operation will be started, or by calculating the address of subregion 09 "sub region_09" using the set address calculation formula, one of the remaining subregions "sub region_01" to "sub region_08" (for example, subregion 08 "sub region_08") except for the subregion that has performed the starting interval wear leveling and thus becomes the interval region (for example, subregion 09 "sub region_09") can be selected as the target meta-region for the subsequent starting interval wear leveling operation, and one of the subregions that have performed the starting interval wear leveling operation (for example, subregion 09 "subregion_09") can be selected as the interval region for the subsequent starting interval wear leveling operation.

[0057] Reference Figure 4C, the controller 200 may migrate metadata "meta data 08" stored in the sub-region "sub region_08" as the target sub-region of the start-interval wear leveling operation to the sub-region "subregion_9" as the interval region. Therefore, the sub-region "sub region_08" may be selected as the interval region for the subsequent start-interval wear leveling operation, and the sub-region "sub region_07" may become the target sub-region for the subsequent start-interval wear leveling operation.

[0058] FIG. 4A to FIG. 4C An example of performing a start interval wear leveling operation by selecting addresses of sub-regions "sub region_01" to "sub region_09" in descending order is shown. However, the present disclosure is not limited thereto, and various changes and modifications may be made, such as selecting two or more sub-regions as intervals or selecting addresses of sub-regions in ascending order.

[0059] Because for each of the memory regions "memory region_01" to "memory region_05", the access count is performed based on the sum of the number of accesses to the metadata stored in the sub regions "sub region_01" to "sub region_09". FIG. 4A to FIG. 4B The starting interval wear leveling operation is shown, so this can be called local starting interval wear leveling.

[0060] FIG. 5A to FIG. 6C is a diagram for describing a starting interval wear leveling method of a second memory according to an embodiment.

[0061] FIG. 5A to FIG. 6C Three memory regions “memory region_01” to “memory region_03” among the multiple memory regions “memory region_01” to “memory region_M” of the second memory 240 are shown. Each of the memory regions “memory region_01” to “memory region_03” may include 9 subregions “subregion_01” to “sub region_09”. Hereinafter, a description will be given for the following case: the memory region “memory region_01” and the memory region “memory region_02” are cold meta regions for storing metadata having an access count less than a first reference value, and the memory region “memory region_03” includes at least one sub spare region. Figure 5AA case is shown in which the memory area "memory region_03" includes one sub-meta region "sub region_01" and eight sub-spare regions "sub region_02" to "sub region_09", and metadata "meta data_A" accessed a third reference value or more times is stored in the sub-meta region "sub region_01"; however, the present disclosure is not limited to this, and the memory area "memory region_03" may also be composed only of sub-spare regions.

[0062] In this case, a method of collecting hot data in the cold cell regions "memory region_01" and "memory region_02" into another memory region 03 "memory region_03" will be described.

[0063] Hot data may refer to data that is continuously and frequently accessed. Therefore, a sub-region that is continuously and intensively accessed among the sub-regions included in a specific memory area may be determined as an area for storing hot metadata. In an embodiment, a sub-region whose number of accesses to a sub-region of each memory area is equal to or greater than a third reference value may be determined as a hot region. In order to determine whether the third reference value is met, when a memory region whose sum of the number of accesses is equal to or greater than a first set value is detected, it may be checked whether the number of accesses to a specific sub-region in the memory region is equal to or greater than a third reference value (= first set value * α, α is a real number, where 0<α<1). Here, α may be set or changed according to a hot data classification standard during manufacture or use of the memory system 10.

[0064] For example, when the first setting value is 10000 and α is 0.6, metadata in a sub-region having an access count equal to or greater than 6000 as the third reference value may be classified as hot data.

[0065] When the total number of accesses to the memory region 01 “memory region_01” is 10000, and the number of accesses to the metadata “meta data_B” stored in the sub region 04 “sub region_04” is 6000, the number of accesses to the remaining sub regions “sub region_01” to “sub region_03” and sub regions “subregion_05” to “sub region_09” except the sub region 04 “sub region_04” is 4000. Therefore, the metadata “meta data_B” stored in the sub region 04 “sub region_04” can be classified as hot data.

[0066] Reference Figure 5A When the number of accesses to metadata B "meta data_B" stored in sub-region 04 "sub region_04" of memory region 01 "memory region_01" and the number of accesses to metadata C "meta data_C" stored in sub-region "sub region_02" of memory region "memory region_02" are both equal to or greater than a third reference value, the controller 200 may determine metadata B "meta data_B" and metadata C "meta data_C" as targets to be migrated to memory region "memory region_03".

[0067] exist Figure 5B , the controller 200 may migrate metadata B “meta data_B” stored in the subregion “subregion_04” of the memory region “memory region_01” to the subregion “sub region_02” of the memory region “memory region_03”, and release the subregion “sub region_04” of the memory region “memory region_01”. In addition, the controller 200 may migrate metadata C “meta data_C” stored in the subregion “sub region_02” of the memory region “memory region_02” to the subregion “subregion_03” of the memory region “memory region_03”, and release the subregion “sub region_02” of the memory region “memory region_02”.

[0068] Through such a migration operation, hot metadata for which write operations or read operations are frequently performed may be collected in one memory region 03 “memory region_03”, so that the memory region 03 “memory region_03” becomes a hot metadata region.

[0069] Reference Fig. 6A, when the sum of the number of accesses to metadata stored in sub-regions "sub region_01" to "sub region_09" in memory region 03 "memory region_03" as a hot region is equal to or greater than a second reference value, local start-interval wear leveling may be started. In this case, it is assumed that sub-regions "sub region_01" to "sub region_03" are target sub-regions where a start-interval wear leveling operation will be started, and sub-regions "subregion_04" to "sub region_06" are interval regions.

[0070] Reference Figure 6B , the controller 200 may migrate metadata "meta data_A" to "meta data_C" stored in each sub-region "sub region_01" to "sub region_03" to each sub-region "sub region_04" to "subregion_06". Then, the controller 200 may determine sub-regions "subregion_04" to "sub region_06" of the memory region "memory region_03" as target sub-regions for subsequent start-interval wear leveling operations, and determine sub-regions "sub region_07" to "sub region_09" as interval regions for subsequent start-interval wear leveling operations.

[0071] Reference Figure 6C , the controller 200 may migrate metadata “meta data_A” to “meta data_C” stored in each of the sub regions “sub region_04” to “sub region_06” to each of the sub regions “sub region_07” to “subregion_09”.

[0072] According to various embodiments of the present disclosure, the lifespan of the second memory 240 may be increased by performing a wear leveling operation on metadata having a relatively high number of access times.

[0073] On the other hand, when the sum of the number of accesses to metadata stored in the memory regions 'memory region_01' to 'memory region_M' is equal to or greater than the first reference value, the controller 200 may start the global start interval wear leveling operation.

[0074] Figure 7 is a flowchart for describing a start-interval wear leveling operation of a second memory according to an embodiment.

[0075] Reference Figure 7 In operation S710, the controller 200 may count the number of accesses to metadata stored in the second memory 240.

[0076] In an embodiment, the controller 200 may count the number of accesses to metadata in each memory area on which the start interval wear leveling operation is to be performed among a plurality of memory areas included in the second memory 240 .

[0077] In an embodiment, the controller 200 may count the total number of accesses to metadata stored in each sub-region (e.g., "sub region_01" to "sub region_09") of each memory region (e.g., "memory region_01" to "memory region_M"), and count the total number of accesses to metadata of all memory regions (e.g., "memory region_01" to "memory region_M").

[0078] In operation S720, the controller 200 may determine whether the number of accesses to metadata is equal to or greater than a set reference value.

[0079] In an embodiment, the controller 200 may determine whether the sum of the number of accesses to metadata stored in the memory regions (eg, “memory region_01” to “memory region_M”) is equal to or greater than a first reference value.

[0080] In an embodiment, the controller 200 may determine whether the sum of the number of accesses to metadata stored in each of the sub-regions (e.g., "sub region_01" to "sub region_09") of each of the memory regions "memory region_01" to "memoryregion_M" is equal to or greater than a second reference value.

[0081] In operation S730 , when the number of accesses is equal to or greater than the set reference value, the controller 200 may perform a start interval wear leveling operation.

[0082] In an embodiment, when the total number of accesses to metadata included in a memory region (e.g., "memory region_01" to "memory region_M") is equal to or greater than a first reference value, the controller 200 may perform a global start interval wear leveling operation to migrate metadata stored in the memory region where the start interval wear leveling operation is to be performed to a spare region.

[0083] In an embodiment, when the total number of accesses to metadata included in each of the sub-memory regions (e.g., "sub region_01" to "sub region_09") of each of the memory regions (e.g., "memory region_01" to "memory region_M") is equal to or greater than a second reference value, the controller 200 may migrate the metadata stored in the sub-memory region where a start interval wear leveling operation is to be performed to a sub-spare region.

[0084] In operation S720, when the sum of the number of access times is less than the set reference value, the controller 200 may return to operation S710.

[0085] Figure 8 is a flowchart for describing a start-interval wear leveling operation of a second memory according to an embodiment of the present disclosure.

[0086] Reference Figure 8 In operation S810, the controller 200 may count the number of accesses to metadata stored in each sub-memory region of each cold cell region among the plurality of memory regions included in the second memory 240. In an embodiment, the controller 200 may count the total number of accesses to each sub-memory region included in each of the cold cell regions and the number of accesses to each of the cold cell regions.

[0087] In operation S820, the controller 200 may determine whether the number of accesses to the metadata stored in each sub-meta region of the cold cell region is equal to or greater than a third reference value. In an embodiment, when it is detected that the sum of the number of accesses to the cold cell region is equal to or greater than a first setting value, the controller 200 may check whether a sub-meta region whose number of accesses to the sub-meta region in the cold cell region is equal to or greater than a third reference value (=first setting value*α, α is a real number, where 0<α<1) is detected among the sub-meta regions in the cold cell region.

[0088] In operation S830, the controller 200 may migrate metadata having an access count equal to or greater than a third reference value among metadata stored in the sub-meta region of the cold meta region to the hot meta region.

[0089] In operation S840, the controller 200 may count the sum of the number of access times of metadata stored in the hot metadata area.

[0090] In operation S850, when the total number of accesses to the metadata stored in the hot meta-region is equal to or greater than the second reference value, in operation S860, the controller 200 may perform a start-interval wear leveling operation, for example, a local start-interval wear leveling operation, on the metadata stored in the sub-region where the start-interval wear leveling operation is to be performed.

[0091] Although various embodiments have been described above, those skilled in the art will appreciate that the described embodiments are merely examples. Therefore, the controller and the operating method thereof described herein should not be limited based on the described embodiments.

[0092] Fig. 9 is a diagram showing a configuration of a data processing system including a solid state drive (SSD) according to an embodiment of the present disclosure. Fig. 9 , the data processing system 2000 may include a host 2100 and a solid state drive (SSD) 2200 .

[0093] The SSD 2200 may include a controller 2210 , a buffer memory device 2220 , nonvolatile memory devices 2231 to 223 n , a power supply 2240 , a signal connector 2250 , and a power connector 2260 .

[0094] The controller 2210 may control the overall operation of the SSD 2200. The controller 2210 may be configured to Figure 1 The controller 200 is implemented and operates in substantially the same manner.

[0095] The buffer memory device 2220 may temporarily store data to be stored in the nonvolatile memory devices 2231 to 223n. Further, the buffer memory device 2220 may temporarily store data read from the nonvolatile memory devices 2231 to 223n. The data temporarily stored in the buffer memory device 2220 may be transmitted to the host 2100 or the nonvolatile memory devices 2231 to 223n according to the control of the controller 2210.

[0096] The nonvolatile memory devices 2231 to 223n may be used as storage media of the SSD 2200. The nonvolatile memory devices 2231 to 223n may be electrically coupled to the controller 2210 through a plurality of channels CH1 to CHn, respectively. One or more nonvolatile memory devices may be coupled to a single channel. The nonvolatile memory devices coupled to a single channel may be coupled to the same signal bus and data bus.

[0097] The power supply 2240 may provide power to the inside of the SSD 2200 using the power PWR input through the power connector 2260. The power supply 2240 may include an auxiliary power supply 2241. The auxiliary power supply 2241 may provide power to allow the SSD 2200 to terminate normally when a sudden power outage (SPO) occurs. The auxiliary power supply 2241 may include a large-capacity capacitor capable of charging the power PWR.

[0098] The controller 2210 may exchange a signal SGL with the host 2100 through the signal connector 2250. The signal SGL may include a command, an address, data, etc. The signal connector 2250 may be configured as any one of various types of connectors according to an interface scheme between the host 2100 and the SSD 2200.

[0099] Fig.10 It is shown Fig. 9 The configuration of the controller is shown in FIG. Fig.10 , the controller 2210 may include a host interface 2211 , a control component 2212 , a random access memory 2213 , an error correction code (ECC) component 2214 , and a memory interface 2215 .

[0100] The host interface 2211 may perform an interface connection between the host 2100 and the SSD 2200 according to a protocol of the host 2100. For example, the host interface 2211 may communicate with the host 2100 through any of the following protocols: secure digital (SD), universal serial bus (USB), multimedia card (MMC), embedded MMC (eMMC), personal computer memory card international association (PCMCIA), parallel advanced technology attachment (PATA), serial advanced technology attachment (SATA), small computer system interface (SCSI), serial SCSI (SAS), peripheral component interconnect (PCI), high-speed PCI (PCI-E) and / or universal flash memory (UFS). In addition, the host interface 2211 may perform a disk emulation function to support the host 2100 to identify the SSD 2200 as a universal memory system such as a hard disk drive (HDD).

[0101] The control component 2212 may parse and process a signal SGL provided from the host 2100. The control component 2212 may control operations of internal functional blocks according to firmware or software driving the SSD 2200. The random access memory 2213 may operate as a working memory driving such firmware or software.

[0102] The ECC component 2214 may generate parity data for data to be transmitted to the nonvolatile memory devices 2231 to 223n. The generated parity data may be stored in the nonvolatile memory devices 2231 to 223n together with the data. The ECC component 2214 may detect an error of the data read out from the nonvolatile memory devices 2231 to 223n based on the parity data. When the detected error is within a correctable range, the ECC component 2214 may correct the detected error.

[0103] The memory interface 2215 may provide control signals such as commands and addresses to the nonvolatile memory devices 2231 to 223n according to the control of the control component 2212. The memory interface 2215 may exchange data with the nonvolatile memory devices 2231 to 223n according to the control of the control component 2212. For example, the memory interface 2215 may provide data stored in the buffer memory device 2220 to the nonvolatile memory devices 2231 to 223n, or provide data read from the nonvolatile memory devices 2231 to 223n to the buffer memory device 2220.

[0104] Fig.11 is a diagram showing a configuration of a data processing system including a memory system according to an embodiment of the present disclosure. Fig.11 , the data processing system 3000 may include a host 3100 and a memory system 3200 .

[0105] The host 3100 may be configured in the form of a board such as a printed circuit board. Fig.11 , but the host 3100 may include internal functional blocks for performing the functions of the host.

[0106] The host 3100 may include a connection terminal 3110 such as a socket, a slot, or a connector. The memory system 3200 may be mounted on the connection terminal 3110 .

[0107] The memory system 3200 may be configured in a board form such as a printed circuit board. The memory system 3200 may be referred to as a memory module or a memory card. The memory system 3200 may include a controller 3210, a buffer memory device 3220, nonvolatile memory devices 3231 and 3232, a power management integrated circuit (PMIC) 3240, and a connection terminal 3250.

[0108] The controller 3210 may control the overall operation of the memory system 3200. The controller 3210 may be configured to Fig.10 The controller 2210 shown is configured in substantially the same manner

[0109] The buffer memory device 3220 may temporarily store data to be stored in the nonvolatile memory devices 3231 and 3232. Further, the buffer memory device 3220 may temporarily store data read from the nonvolatile memory devices 3231 and 3232. The data temporarily stored in the buffer memory device 3220 may be transmitted to the host 3100 or the nonvolatile memory devices 3231 and 3232 according to the control of the controller 3210.

[0110] The nonvolatile memory devices 3231 and 3232 may be used as storage media of the memory system 3200 .

[0111] The PMIC 3240 may provide power to the inside of the memory system 3200 using power input through the connection terminal 3250. The PMIC 3240 may manage power of the memory system 3200 according to the control of the controller 3210.

[0112] The connection terminal 3250 may be electrically connected to the connection terminal 3110 of the host 3100. Through the connection terminal 3250, signals such as commands, addresses, data, and power may be transmitted between the host 3100 and the memory system 3200. The connection terminal 3250 may be configured in any of various types according to an interface scheme between the host 3100 and the memory system 3200. The connection terminal 3250 may be disposed on or in any side of the memory system 3200.

[0113] Fig.12 is a diagram showing a configuration of a data processing system including a memory system according to an embodiment of the present disclosure. Fig.12 , the data processing system 4000 may include a host 4100 and a memory system 4200 .

[0114] The host 4100 may be configured in the form of a board such as a printed circuit board. Fig.12 , but the host 4100 may include internal functional blocks for performing the functions of the host.

[0115] The memory system 4200 may be configured in the form of a surface mount type package. The memory system 4200 may be mounted on the host 4100 through solder balls 4250. The memory system 4200 may include a controller 4210, a buffer memory device 4220, and a nonvolatile memory device 4230.

[0116] The controller 4210 may control the overall operation of the memory system 4200. The controller 4210 may be configured to Fig.10 The controller 2210 shown is configured in substantially the same manner

[0117] The buffer memory device 4220 may temporarily store data to be stored in the nonvolatile memory device 4230. Further, the buffer memory device 4220 may temporarily store data read from the nonvolatile memory device 4230. The data temporarily stored in the buffer memory device 4220 may be transmitted to the host 4100 or the nonvolatile memory device 4230 according to the control of the controller 4210.

[0118] The nonvolatile memory device 4230 may be used as a storage medium of the memory system 4200 .

[0119] Fig.13 is a diagram showing a configuration of a network system 5000 including a memory system according to an embodiment of the present disclosure. Fig.13 , the network system 5000 may include a server system 5300 and a plurality of client systems 5410 to 5430 electrically coupled to each other through a network 5500 .

[0120] The server system 5300 may serve data in response to requests from the plurality of client systems 5410 to 5430. For example, the server system 5300 may store data provided from the plurality of client systems 5410 to 5430. In another example, the server system 5300 may provide data to the plurality of client systems 5410 to 5430.

[0121] The server system 5300 may include a host 5100 and a memory system 5200. The memory system 5200 may be configured as Figure 1 The memory system 10 shown, Fig. 9 The memory system 2200 shown, Fig.11 The memory system 3200 or Fig.12 Memory system 4200 is shown.

[0122] Fig.14 is a block diagram showing a nonvolatile memory device 300 included in a memory system according to an embodiment of the present disclosure. Fig.14 , the nonvolatile memory device 300 may include a memory cell array 310 , a row decoder 320 , a data read / write block 330 , a column decoder 340 , a voltage generator 350 , and a control logic 360 .

[0123] The memory cell array 310 may include memory cells MC arranged at regions where word lines WL1 to WLm and bit lines BL1 to BLn intersect each other.

[0124] The row decoder 320 may be coupled to the memory cell array 310 through the word lines WL1 to WLm. The row decoder 320 may operate according to the control of the control logic 360. The row decoder 320 may decode an address from an external device (not shown). The row decoder 320 may select and drive the word lines WL1 to WLm based on the decoding result. For example, the row decoder 320 may provide a word line voltage provided by the voltage generator 350 to the word lines WL1 to WLm.

[0125] The data read / write block 330 may be connected to the memory cell array 310 through the bit lines BL1 to BLn. The data read / write block 330 may include read / write circuits RW1 to RWn corresponding to the word lines BL1 to BLn, respectively. The data read / write block 330 may operate according to the control of the control logic 360. The data read / write block 330 may operate as a write driver or a sense amplifier according to the operation mode. For example, the data read / write block 330 may operate as a write driver that stores data provided from an external device in the memory cell array 310 in a write operation. For another example, the data read / write block 330 may operate as a sense amplifier that reads data from the memory cell array 310 in a read operation.

[0126] The column decoder 340 may operate according to the control of the control logic 360. The column decoder 340 may decode an address from an external device. The column decoder 340 may connect the read / write circuits RW1 and RWn of the data read / write block 330, respectively corresponding to the bit lines BL1 to BLn, to the data input / output lines or the data input / output buffers based on the decoding result.

[0127] The voltage generator 350 may generate a voltage to be used for internal operations of the nonvolatile memory device 300. The voltage generated by the voltage generator 350 may be applied to the memory cells of the memory cell array 310. For example, the program voltage generated in the programming operation may be applied to the word line of the memory cell to be programmed. For another example, the erase voltage generated in the erase operation may be applied to the well region of the memory cell to be erased. For another example, the read voltage generated in the read operation may be applied to the word line of the memory cell to be read.

[0128] The control logic 360 may control general operations of the nonvolatile memory device 300 based on control signals provided by an external device. For example, the control logic 360 may control operations of the nonvolatile memory device 300, such as read operations, write operations, and erase operations of the nonvolatile memory device 300.

[0129] The above embodiments of the present teachings are intended to illustrate rather than limit the present teachings. Various alternatives and equivalents are possible. The present teachings are not limited to the embodiments described herein. The present teachings are also not limited to any particular type of semiconductor device. In view of this disclosure, other additions, deletions, or modifications are obvious and are intended to fall within the scope of the appended claims.

Claims

1. A controller, the controller controlling a non-volatile memory device, the controller comprising: A first memory for temporarily storing user data; a second memory including a plurality of memory areas, the plurality of memory areas including at least one meta area for storing metadata and at least one spare area; as well as a processor that controls the first memory and the second memory and performs first start-interval wear leveling on the at least one meta area using the at least one spare area as an interval, wherein when a sum of the number of accesses to the metadata is equal to or greater than a first reference value, the processor performs the first start-interval wear leveling by moving the metadata of the at least one meta area to the at least one spare area.

2. The controller according to claim 1, wherein each meta-area in the at least one meta-area comprises a plurality of sub-areas, the plurality of sub-areas comprising at least one sub-meta-area for storing the metadata and at least one sub-spare area, and The processor further performs a second starting interval wear leveling on the at least one sub-meta region using the at least one sub-spare region as an interval.

3. The controller of claim 2 , wherein when the sum of the number of accesses to the metadata stored in the sub-meta-regions of each meta-region is equal to or greater than a second reference value, the processor performs the second start interval wear leveling by moving the metadata of the at least one sub-meta-region to the at least one sub-spare region.

4. The controller according to claim 2, wherein each of the at least one meta-region comprises a cold meta-region and a hot meta-region, and The processor migrates metadata stored in the cold meta-region and having an access count equal to or greater than a third reference value to the hot meta-region, and performs the second start interval wear leveling on the hot meta-region.

5. A controller according to claim 4, wherein when it is detected that the total number of accesses to the cold element area is equal to or greater than a first set value, the processor migrates metadata of the sub-element areas of the detected cold element area whose access times are equal to or greater than the third reference value to the hot element area.

6. The controller according to claim 1, wherein the first memory has a larger data storage capacity than the second memory. 7 . The controller according to claim 1 , wherein the first memory has a higher data processing speed than the second memory.

8. The controller of claim 1, wherein the first memory is a dynamic random access memory (DRAM), and the second memory is a phase change random access memory (PCRAM).

9. A method for operating a controller, the controller comprising: A first memory for temporarily storing user data; and a second memory including a plurality of memory areas, the plurality of memory areas including at least one meta area for storing metadata and at least one spare area, the operating method comprising: determining a number of accesses to the at least one meta-area storing the metadata; and When the sum of the number of accesses to the metadata is equal to or greater than a first reference value, performing first start interval wear leveling on the at least one meta area using the at least one spare area as an interval, Wherein performing the first starting interval wear leveling includes moving the metadata of the at least one meta-region to the at least one spare region.

10. The operating method according to claim 9, wherein each meta-area in the at least one meta-area comprises a plurality of sub-areas, the plurality of sub-areas comprising at least one sub-meta-area for storing the metadata and at least one sub-spare area, and Further including: determining whether a sum of the number of accesses to the metadata stored in each of the at least one sub-meta-region is equal to or greater than a second reference value; and When the sum of the number of accesses is equal to or greater than the second reference value, a second start interval wear leveling is performed on the at least one sub-meta region using the at least one sub-spare region as an interval. 11 . The operating method according to claim 10 , wherein performing the second start interval wear leveling comprises moving the metadata of the at least one sub-meta area to the at least one sub-spare area.

12. The operating method according to claim 10, wherein each of the at least one meta-region comprises a cold meta-region and a hot meta-region, and Further including: Migrating metadata stored in the cold metadata area and having an access count equal to or greater than a third reference value to the hot metadata area; and Perform the second start interval loss leveling on the thermal element area.

13. The operating method according to claim 12, wherein migrating the metadata comprises: Detecting a cold cell area where the sum of the access times is equal to or greater than a first set value; and Metadata of sub-meta regions whose access times are equal to or greater than the third reference value among the sub-meta regions of the detected cold meta region are migrated to the hot meta region.

14. A storage system comprising: a data storage area having one or more data spaces, each data space storing a metadata entry; A spare memory area having one or more spare spaces, each spare space storing a data strip; as well as Controller: When the sum of the number of accesses to the metadata stripe is equal to or greater than a first reference value, the first metadata stripe stored in a data space for the first metadata stripe among one or more data spaces is moved to a group within the data storage area, and When the sum of the number of accesses to the second metadata stripe is equal to or greater than a second reference value, the second metadata stripe is migrated from one of the data spaces to the spare memory area.

15. The storage system according to claim 14, The data storage area includes a cold data area and a hot data area, and The controller further moves a third metadata entry in the metadata space having an access count equal to or greater than a third reference value to a group within the hot data area when detecting that the total number of accesses to the data memory area is less than the first reference value.