Memory system, memory controller and operation method thereof
By calculating the attribute value of the memory group to determine the operation mode and control the background operation of the memory controller, the problem of increased delay time of the memory controller is solved and the service quality is improved.
Patent Information
- Application Number
- CN202010134339.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-28
- Filing Date
- 2020-03-02
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-03-02
AI Technical Summary
When the memory controller performs background operations, the delay time of data read, write or erase operations increases, and the host cannot predict the delay time, affecting the quality of service (QoS).
By calculating the read attribute value, write attribute value and time attribute value of the non-volatile memory group, the operation mode is determined, and whether to perform background operations is controlled to ensure that the host can predict the delay time and optimize the service quality.
It achieves more accurate delay time prediction and service quality optimization, reduces the increase in delay time, and provides higher service quality.
Smart Images

Figure CN112148209B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Korean Patent Application No. 10-2019-0077478, filed on Jun. 28, 2019, which is hereby incorporated by reference in its entirety. Technical Field
[0003] Embodiments of the present disclosure relate to a memory system, a memory controller, and an operating method thereof. Background Art
[0004] The memory system corresponding to the storage device stores data based on a request from a host such as a computer, a mobile terminal (e.g., a smart phone, a tablet, etc.), or any of various electronic devices. The memory system may include a device for storing data in a non-volatile memory such as a solid state drive (SSD), a universal flash memory (UFS) device, an embedded MMC (eMMC) device, etc., and a device for storing data in a magnetic disk such as a hard disk drive (HDD).
[0005] The memory system may further include a memory controller for controlling the memory device. The memory controller may receive commands from the host and may, based on the received commands, perform or control a read, write, or erase operation of data from or to a volatile memory or nonvolatile memory included in the memory system.
[0006] At this time, during the operation of reading, writing, or erasing data, the memory controller may perform background operations (e.g., garbage collection, read recovery, or wear leveling) for various reasons. In this case, the background operation may increase the time required to perform the operation of reading, writing, or erasing data, thereby increasing the latency time for the memory controller to process the command received from the host. However, the host cannot predict whether the memory controller performs the background operation, so the host cannot pre-process the problem of increased latency. Summary of the invention
[0007] Embodiments of the present disclosure may provide a memory system, a memory controller, and an operating method thereof that enable a host to more accurately predict whether a memory controller will perform a background operation.
[0008] In addition, embodiments of the present disclosure may provide a memory system, a memory controller, and an operating method thereof that enable a host to pre-process a situation in which a latency time may increase.
[0009] In addition, embodiments of the present disclosure may provide a memory system, a memory controller, and an operating method thereof that provide a higher quality of service (QoS) to a host.
[0010] According to one aspect, an embodiment of the present disclosure may provide a memory system including a nonvolatile memory group including one or more nonvolatile memories and a memory controller controlling the nonvolatile memory group.
[0011] The memory controller may calculate read attribute values, write attribute values, and time attribute values of the nonvolatile memory group, and may determine an operation mode of the nonvolatile memory group based on at least one of the read attribute values, write attribute values, and time attribute values.
[0012] When the operation mode is the first operation mode, the memory controller may control not to perform a background operation on the nonvolatile memory group.
[0013] On the other hand, when the operation mode is the second operation mode, the memory controller may control the background operation to be performed on the nonvolatile memory group.
[0014] When the set target condition is satisfied while the operation mode is the second operation mode, the memory controller may stop background operations on the nonvolatile memory group and may switch to a state in which the operation mode is ready to switch to the first operation mode.
[0015] When the read attribute value is less than or equal to a first threshold read attribute value, or when the write attribute value is less than or equal to a first threshold write attribute value, or when the time attribute value is less than or equal to a first threshold time attribute value, the memory controller may switch the operation mode from the first operation mode to the second operation mode.
[0016] The target conditions may be: the read attribute value is greater than or equal to a second threshold read attribute value; the write attribute value is greater than or equal to a second threshold write attribute value; and the time attribute value is greater than or equal to a second threshold time attribute value.
[0017] The non-volatile memory group may include one or more super memory blocks. Each of the super memory blocks may include one or more memory blocks. In addition, the memory blocks included in each of the super memory blocks may be included in any one of the non-volatile memories included in the non-volatile memory group.
[0018] For example, the read attribute value may be determined based on a difference between a maximum read count value of each of the super memory blocks and a threshold read reclaim read count value of the super memory block.
[0019] As another example, the read attribute value may be determined based on a maximum read count value of each super block, a total read count value of each super block, and a threshold read reclaim read count value of the super block.
[0020] For example, the above-mentioned write attribute value may be determined based on the sum of the number of reserved super memory blocks and the number of free super memory blocks among the super memory blocks included in the nonvolatile memory group.
[0021] According to another aspect, an embodiment of the present disclosure may provide a memory controller including a memory interface configured to communicate with a nonvolatile memory group including one or more nonvolatile memories and a control circuit.
[0022] The control circuit may calculate a read attribute value, a write attribute value, and a time attribute value of the nonvolatile memory group, and may determine an operation mode of the nonvolatile memory group based on at least one of the read attribute value, the write attribute value, and the time attribute value.
[0023] When the operation mode is the first operation mode, the control circuit may control not to perform a background operation on the nonvolatile memory group.
[0024] On the other hand, when the operation mode is the second operation mode, the control circuit may control the background operation to be performed on the nonvolatile memory group.
[0025] When a set target condition is satisfied while the operation mode is the second operation mode, the control circuit may stop background operation on the nonvolatile memory group and may switch to a state in which the operation mode can be switched to the first operation mode.
[0026] When the read property value is less than or equal to a first threshold read property value, or when the write property value is less than or equal to a first threshold write property value, or when the time property value is less than or equal to a first threshold time property value, the control circuit can switch the operation mode from the first operation mode to the second operation mode.
[0027] The target conditions may be: the read attribute value is greater than or equal to a second threshold read attribute value; the write attribute value is greater than or equal to a second threshold write attribute value; and the time attribute value is greater than or equal to a second threshold time attribute value.
[0028] The non-volatile memory group may include one or more super memory blocks. Each of the super memory blocks may include one or more memory blocks. In addition, the memory blocks included in each of the super memory blocks may be included in any one of the non-volatile memories included in the non-volatile memory group.
[0029] For example, the read attribute value may be determined based on a difference between a maximum read count value of each of the super memory blocks and a threshold read reclaim read count value of the super memory block.
[0030] As another example, the read attribute value may be determined based on a maximum read count value of each super block, a total read count value of each super block, and a threshold read reclaim read count value of the super block.
[0031] For example, the write attribute value may be determined based on the sum of the number of reserved super memory blocks and the number of free super memory blocks among the super memory blocks included in the nonvolatile memory group.
[0032] According to another aspect, an embodiment of the present disclosure may provide a method of operating a memory controller for controlling a nonvolatile memory group including one or more nonvolatile memories.
[0033] The method of operating a memory controller may include the steps of calculating a read attribute value, a write attribute value, and a time attribute value of a non-volatile memory group.
[0034] The method of operating a memory controller may include the step of determining an operation mode of a non-volatile memory group based on at least one of a read attribute value, a write attribute value, and a time attribute value.
[0035] When the operation mode is the first operation mode, the memory controller may control not to perform a background operation on the nonvolatile memory group.
[0036] On the other hand, when the operation mode is the second operation mode, the memory controller may control the background operation to be performed on the nonvolatile memory group.
[0037] If the set target condition is satisfied when the operation mode is the second operation mode, the memory controller may stop the background operation on the nonvolatile memory group and may switch to a state in which the operation mode can be switched to the first operation mode.
[0038] When the read attribute value is less than or equal to a first threshold read attribute value, or when the write attribute value is less than or equal to a first threshold write attribute value, or when the time attribute value is less than or equal to a first threshold time attribute value, the memory controller may switch the operation mode from the first operation mode to the second operation mode.
[0039] The target conditions may be: the read attribute value is greater than or equal to a second threshold read attribute value; the write attribute value is greater than or equal to a second threshold write attribute value; and the time attribute value is greater than or equal to a second threshold time attribute value.
[0040] According to another aspect, an embodiment of the present disclosure may provide a memory system including: a memory device including a plurality of memory blocks; and a controller configured to control the memory device.
[0041] The controller may control the memory device to enter one of the first operation mode and the second operation mode based on one or more of a read attribute value, a write attribute value, and a time attribute value of the memory block.
[0042] When all of the read attribute value, the write attribute value, and the time attribute value are equal to or greater than respective threshold values, the controller may control to enter the first operation mode by itself.
[0043] In the first operation mode, the controller may control to perform a foreground operation without performing a background operation.
[0044] In the second operation mode, the controller may control to perform the foreground operation together with the background operation.
[0045] According to an embodiment of the present disclosure, a memory system, a memory controller, and an operating method thereof that enable a host to more accurately predict whether a memory controller will perform a background operation may be provided.
[0046] In addition, according to an embodiment of the present disclosure, a memory system, a memory controller, and an operating method thereof that enable a host to pre-process a situation in which a delay time may increase can be provided.
[0047] In addition, according to an embodiment of the present disclosure, a memory system, a memory controller, and an operating method thereof that provide a higher QoS to a host may be provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The above and other aspects, features and advantages of the present disclosure will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0049] Figure 1 is a diagram schematically showing a configuration of a memory system according to an embodiment of the present disclosure;
[0050] Figure 2 is a diagram schematically illustrating a nonvolatile memory according to an embodiment of the present disclosure;
[0051] Figure 3 is a diagram schematically showing a structure of a memory block included in a nonvolatile memory according to an embodiment of the present disclosure;
[0052] Figure 4 is a diagram schematically illustrating an operation mode of a nonvolatile memory group according to an embodiment of the present disclosure;
[0053] Figure 5 is a flowchart illustrating an operation according to an operation mode of a nonvolatile memory group according to an embodiment of the present disclosure;
[0054] Figure 6is a diagram schematically illustrating a property value for determining an operation mode of a nonvolatile memory group according to an embodiment of the present disclosure;
[0055] Figure 7 is a state diagram showing switching of an operation mode of a nonvolatile memory group according to an embodiment of the present disclosure;
[0056] Figure 8 is a diagram showing configuration of a super memory block in a nonvolatile memory group according to an embodiment of the present disclosure;
[0057] Fig. 9 is a diagram illustrating a method of calculating an available read count value of a super storage block according to an embodiment of the present disclosure;
[0058] Fig.10 is shown by applying the reference Fig. 9 The method described herein is to obtain a graph of read attribute values of a non-volatile memory bank;
[0059] Fig.11 is a diagram illustrating a method of calculating an available read count value of a super storage block according to an embodiment of the present disclosure;
[0060] Fig.12 is shown by applying the reference Fig.11 The method described herein is to obtain a graph of read attribute values of a non-volatile memory bank;
[0061] Fig.13 is a diagram schematically illustrating a bandwidth for a read operation according to an embodiment of the present disclosure;
[0062] Fig.14 is a diagram illustrating obtaining a write attribute value of a nonvolatile memory group according to an embodiment of the present disclosure;
[0063] Fig.15 is a flowchart illustrating a process of performing garbage collection by a memory controller according to an embodiment of the present disclosure;
[0064] Fig.16 is a flowchart illustrating another process of performing garbage collection by a memory controller according to an embodiment of the present disclosure;
[0065] Fig.17 is a flowchart illustrating an operating method of a memory controller according to an embodiment of the present disclosure; and
[0066] Fig.18 is a block diagram schematically illustrating a computing system according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0067] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0068] Figure 1 is a diagram schematically showing a configuration of a memory system according to an embodiment of the present disclosure.
[0069] Reference Figure 1 , a memory system 100 according to an embodiment of the present disclosure may include a nonvolatile memory group 110 and a memory controller 120 controlling the nonvolatile memory group 110 .
[0070] The nonvolatile memory group 110 may include one or more nonvolatile memories (NVMs), and each of the nonvolatile memories (NVMs) may include a plurality of memory blocks. The nonvolatile memory group 110 may operate in response to control of the memory controller 120.
[0071] The operation of the nonvolatile memory group 110 may include, for example, a read operation, a program operation (also referred to as a “write operation”), an erase operation, and the like.
[0072] Each of the nonvolatile memories (NVMs) included in the nonvolatile memory group 110 may include a memory cell array including a plurality of memory cells (hereinafter, simply referred to as “cells”) storing data. Such a memory cell array may exist inside a memory block.
[0073] For example, non-volatile memory (NVM) may be implemented in any of various types such as NAND flash memory, perpendicular NAND flash memory, NOR flash memory, phase change memory (PRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), etc.
[0074] Meanwhile, the non-volatile memory (NVM) can be implemented as a three-dimensional array structure. The embodiments of the present disclosure can be applied to a charge trap flash (CTF) whose charge storage layer is made of an insulating film and a flash memory device whose charge storage layer is made of a conductive floating gate.
[0075] The nonvolatile memory group 110 may be configured to receive a command, an address, etc. from the memory controller 120 and access a region selected by the address in the memory cell array. That is, the nonvolatile memory group 110 may perform an operation corresponding to the command on the region selected by the address.
[0076] For example, the nonvolatile memory group 110 may perform a programming operation, a read operation, an erase operation, etc. In this regard, during a programming operation, the nonvolatile memory group 110 may program data in a region selected by an address. In a read operation, the nonvolatile memory group 110 may read data from a region selected by an address. In an erase operation, the nonvolatile memory group 110 may erase data stored in a region selected by an address.
[0077] The memory controller 120 may control write (program) operations, read operations, erase operations, and background operations on the nonvolatile memory group 110. The background operations may include, for example, at least one of garbage collection GC, wear leveling WL, bad block management BBM, and the like.
[0078] The memory controller 120 may control the operation of the nonvolatile memory group 110 according to the request of the host HOST. Alternatively, the memory controller 120 may control the operation of the nonvolatile memory group 110 regardless of the request of the host HOST.
[0079] Meanwhile, the memory controller 120 and the host HOST may be separate devices. In some cases, the memory controller 120 and the host HOST may be integrated into one device. In the following description, the memory controller 120 and the host HOST are described as being separated from each other.
[0080] Reference Figure 1 The memory controller 120 may include a memory interface 122 and a control circuit 123 , and may further include a host interface 121 .
[0081] The host interface 121 provides an interface for communicating with the host HOST.
[0082] The control circuit 123 may receive a command from the host HOST through the host interface 121 and may process the received command.
[0083] The memory interface 122 is connected to the nonvolatile memory group 110 to provide an interface for communicating with the nonvolatile memory group 110. That is, the memory interface 122 may be configured to provide an interface between the nonvolatile memory group 110 and the memory controller 120 in response to the control of the control circuit 123.
[0084] The control circuit 123 performs the overall control operation of the memory controller 120, thereby controlling the operation of the nonvolatile memory group 110. To this end, for example, the control circuit 123 may include at least one of a processor 124, a working memory 125, etc. In some cases, the control circuit 123 may further include an error detection and correction circuit (ECC circuit) 126.
[0085] The processor 124 may control the overall operation of the memory controller 120 and may perform a logic operation. The processor 124 may communicate with the host HOST through the host interface 121 and may communicate with the nonvolatile memory group 110 through the memory interface 122 .
[0086] The processor 124 may perform the function of a flash translation layer (FTL). The processor 124 may convert a logical block address (LBA) provided by the host into a physical block address (PBA) through the FTL. The FTL may receive a logical block address (LBA) and may convert it into a physical block address (PBA) through a mapping table.
[0087] There are several methods of mapping addresses through the flash translation layer according to the mapping unit. Typical address mapping methods include page mapping method, block mapping method and hybrid mapping method.
[0088] The processor 124 is configured to randomize the data received from the host HOST. For example, the processor 124 may use a randomization seed to randomize the data received from the host HOST. The randomized data is provided to the non-volatile memory group 110 as data to be stored and is programmed in the memory cell array.
[0089] The processor 124 is configured to de-randomize data received from the non-volatile memory group 110 during a read operation. For example, the processor 124 may use a de-randomization seed to de-randomize data received from the non-volatile memory group 110. The de-randomized data may be output to the host HOST.
[0090] The processor 124 may execute firmware to control the operation of the memory controller 120. In other words, the processor 124 may execute (drive) firmware loaded in the working memory 125 at boot time to control the overall operation of the memory controller 120 and perform logic operations.
[0091] The firmware is a program running in the memory system 100 and may include various functional layers.
[0092] For example, the firmware may include at least one of an FTL, a host interface layer (HIL), and a flash interface layer (FIL), wherein the FTL performs conversion between a logical address requested by the host HOST to the memory system 100 and a physical address of the non-volatile memory group 110, the host interface layer (HIL) interprets a command requested by the host HOST to the memory system 100, i.e., the storage device, and transmits it to the FTL, and the flash interface layer (FIL) transmits the command indicated by the FTL to the non-volatile memory group 110.
[0093] For example, the firmware may be stored in the nonvolatile memory group 110 and then may be loaded in the working memory 125 .
[0094] The working memory 125 may store firmware, program code, commands or data required to drive the memory controller 120. For example, as a volatile memory, the working memory 125 may include at least one of static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), etc.
[0095] The error detection and correction circuit 126 may be configured to detect error bits of data to be checked using an error correction code and correct the detected error bits. Here, the data to be checked may be, for example, data stored in the working memory 125 or data read from the nonvolatile memory group 110.
[0096] The error detection and correction circuit 126 can be implemented by decoding the data using an error correction code. The error detection and correction circuit 126 can be implemented as any of a variety of code decoders. For example, a decoder that performs non-systematic code decoding or a decoder that performs systematic code decoding can be used.
[0097] For example, the error detection and correction circuit 126 can detect error bits in sector units for each read data. That is, each read data can include multiple sectors. A sector can be a data unit smaller than a page, and a page is a read unit of a flash memory. The sectors constituting each read data can be arranged relative to each other using addresses.
[0098] The error detection and correction circuit 126 may generate a bit error rate (BER) and may determine whether correction is possible in units of sectors. If the BER is higher than a reference value, the error detection and correction circuit 126 may determine that the corresponding sector is uncorrectable (or has failed). On the other hand, if the BER is lower than the reference value, the error detection and correction circuit 126 may determine that the corresponding sector is correctable (or has passed).
[0099] The error detection and correction circuit 126 may sequentially perform error detection and correction operations on all read data. If the sectors included in the read data are correctable, the error detection and correction circuit 126 may omit the error detection and correction operations on the corresponding sectors for the next read data. If the error detection and correction operations for all read data are completed as described above, the error detection and correction circuit 126 may detect sectors determined to be uncorrectable. It may be determined that one or more sectors are uncorrectable. The error detection and correction circuit 126 may transmit information (e.g., address information) about the sectors determined to be uncorrectable to the processor 124.
[0100] The bus 127 may be configured to provide a channel between the components 121, 122, 124, 125, and 126 of the memory controller 120. The bus 127 may include, for example, a control bus for transmitting various control signals, commands, etc., and a data bus for transmitting various data.
[0101] The above components 121, 122, 124, 125, and 126 of the memory controller 120 are merely examples. Some of the above components 121, 122, 124, 125, and 126 of the memory controller 120 may be excluded or may be integrated into one element. In some cases, in addition to the above components of the memory controller 120, one or more other components may be added.
[0102] In the following, reference will be made to Figure 2 The nonvolatile memory included in the nonvolatile memory group 110 is described in more detail.
[0103] Figure 2 is a diagram schematically illustrating a nonvolatile memory according to an embodiment of the present disclosure.
[0104] Reference Figure 2 , the nonvolatile memory according to an embodiment of the present disclosure may include a memory cell array 210 , an address decoder 220 , a read and write circuit 230 , a control logic 240 , a voltage generation circuit 250 , and the like.
[0105] The memory cell array 210 may include a plurality of memory blocks BLK1 to BLKz (where z is a natural number of 2 or more).
[0106] In the plurality of memory blocks BLK1 to BLKz, a plurality of word lines WL and a plurality of bit lines BL and a plurality of memory cells MC may be arranged.
[0107] The plurality of memory blocks BLK1 to BLKz may be connected to the address decoder 220 through a plurality of word lines WL. The plurality of memory blocks BLK1 to BLKz may be connected to the read and write circuit 230 through a plurality of bit lines BL.
[0108] Each of the plurality of memory blocks BLK1 to BLKz may include a plurality of memory cells. For example, the plurality of memory cells may be nonvolatile memory cells having a vertical channel structure.
[0109] The memory cell array 210 may be configured as a memory cell array having a two-dimensional structure, or in some cases, may be configured as a memory cell array having a three-dimensional structure.
[0110] Each of the plurality of memory cells included in the memory cell array 210 may store at least one bit of data. For example, each of the plurality of memory cells included in the memory cell array 210 may be a single-layer cell (SLC) storing one bit of data. As another example, each of the plurality of memory cells included in the memory cell array 210 may be a multi-layer cell (MLC) storing two bits of data. As another example, each of the plurality of memory cells included in the memory cell array 210 may be a triple-layer cell (TLC) storing three bits of data. As another example, each of the plurality of memory cells included in the memory cell array 210 may be a quad-layer cell (QLC) storing four bits of data. As another example, the memory cell array 210 may include a plurality of memory cells, each of which stores five or more bits of data.
[0111] Reference Figure 2 , the address decoder 220 , the read and write circuit 230 , the control logic 240 , and the voltage generating circuit 250 may be used as peripheral circuits for driving the memory cell array 210 .
[0112] The address decoder 220 may be connected to the memory cell array 210 through a plurality of word lines WL.
[0113] The address decoder 220 may be configured to operate in response to the control of the control logic 240 .
[0114] The address decoder 220 may receive the address through an input / output buffer inside the non-volatile memory. The address decoder 220 may be configured to decode the block address in the received address. The address decoder 220 may select at least one storage block according to the decoded block address.
[0115] The address decoder 220 may receive a read voltage Vread and a pass voltage Vpass from the voltage generating circuit 250 .
[0116] When a read voltage is applied during a read operation, the address decoder 220 may apply the read voltage Vread to a selected word line WL in a selected memory block, and may apply a pass voltage Vpass to remaining unselected word lines WL.
[0117] In a program verification operation, the address decoder 220 may apply a verification voltage generated from the voltage generation circuit 250 to a selected word line WL in a selected memory block, and may apply a pass voltage Vpass to remaining unselected word lines WL.
[0118] The address decoder 220 may be configured to decode a column address of the received address. The address decoder 220 may transmit the decoded column address to the read and write circuit 230.
[0119] A read operation and a program operation of the nonvolatile memory may be performed in units of pages. An address received when requesting a read operation and a program operation may include at least one of a block address, a row address, and a column address.
[0120] The address decoder 220 may select a memory block and a word line according to the block address and the row address. The column address may be decoded by the address decoder 220 to be provided to the read and write circuit 230.
[0121] The address decoder 220 may include at least one of a block decoder, a row decoder, a column decoder, an address buffer, and the like.
[0122] The read and write circuit 230 may include a plurality of page buffers PB. The read and write circuit 230 may function as a “read circuit” during a read operation of the memory cell array 210, and may function as a “write circuit” during a write operation thereof.
[0123] The above-mentioned read and write circuit 230 may also be referred to as a "page buffer circuit" or a "data register circuit" including a plurality of page buffers PB. Here, the read and write circuit 230 may include a data buffer for a data processing function, and in some cases, may further include a cache buffer for a cache function.
[0124] A plurality of page buffers PB may be connected to the memory cell array 210 through a plurality of bit lines BL. In order to sense the threshold voltage Vth of the memory cell during a read operation and a program verification operation, the plurality of page buffers PB may continue to supply a sensing current to the bit lines BL connected to the memory cell, and may detect a change in the amount of current flowing through the sensing node according to a programming state of the corresponding memory cell, which change is latched as sensing data.
[0125] The read and write circuit 230 may operate in response to a page buffer control signal output from the control logic 240 .
[0126] In a read operation, the read and write circuit 230 senses data of a memory cell to temporarily store the read data and then outputs the data DATA to an input / output buffer of the nonvolatile memory. In an embodiment, the read and write circuit 230 may include a column selection circuit and a page buffer PB or a page register.
[0127] The control logic 240 may be connected to the address decoder 220, the read and write circuit 230, and the voltage generating circuit 250. The control logic 240 may receive a command CMD and a control signal CTRL through an input / output buffer of the nonvolatile memory.
[0128] The control logic 240 may be configured to control the overall operation of the nonvolatile memory in response to the control signal CTRL. The control logic 240 may output a control signal for adjusting a precharge potential level of a sensing node of a plurality of page buffers PB.
[0129] The control logic 240 may control the read and write circuit 230 to perform a read operation on the memory cell array 210. The voltage generation circuit 250 may generate a read voltage Vread and a pass voltage Vpass used in a read operation in response to a voltage generation circuit control signal output by the control logic 240.
[0130] Figure 3 is a diagram schematically illustrating a structure of a memory block included in a nonvolatile memory according to an embodiment of the present disclosure.
[0131] Reference Figure 3 , a memory block BLK included in the nonvolatile memory may be configured as, for example, a plurality of pages PG and a plurality of strings STR intersecting with each other.
[0132] The plurality of pages PG correspond to the plurality of word lines WL, and the plurality of strings STR correspond to the plurality of bit lines BL.
[0133] A plurality of word lines WL and a plurality of bit lines BL may be arranged to intersect each other in a memory block BLK. For example, each word line of the plurality of word lines WL may be arranged in a row direction, and each bit line of the plurality of bit lines BL may be arranged in a column direction. As another example, each word line of the plurality of word lines WL may be arranged in a column direction, and each bit line of the plurality of bit lines BL may be arranged in a row direction.
[0134] A plurality of word lines WL and a plurality of bit lines BL intersect each other, thereby defining a plurality of memory cells MC. A transistor TR may be provided in each memory cell MC.
[0135] For example, the transistor TR provided in each memory cell MC may include a drain, a source, a gate, etc. The drain (or source) of the transistor TR may be connected to the corresponding bit line BL directly or via another transistor TR. The source (or drain) of the transistor TR may be connected to a source line (which may be a ground line) directly or via another transistor TR. The gate of the transistor TR may include a floating gate FG surrounded by an insulator and a control gate CG to which a gate voltage is applied from a word line WL.
[0136] Each of the multiple storage blocks BLK1 to BLKz may further include a first selection line (also called a “source selection line” or a “drain selection line”) arranged outside a first outermost word line closer to the read and write circuit 230 among the two outermost word lines, and a second selection line (also called a “drain selection line” or a “source selection line”) arranged outside a second outermost word line.
[0137] In some cases, one or more dummy word lines may be further arranged between the first outermost word line and the first selection line. In addition, one or more dummy word lines may be further arranged between the second outermost word line and the second selection line.
[0138] use Figure 3 The memory block structure shown can perform a read operation and a program operation (write operation) in units of pages, and can perform an erase operation in units of memory blocks.
[0139] Figure 4 2 is a diagram schematically illustrating an operation mode of the nonvolatile memory group 110 according to an embodiment of the present disclosure.
[0140] Reference Figure 4 , the operation mode OP_MODE of the nonvolatile memory group 110 may be the first operation mode OP_MODE_1 or the second operation mode OP_MODE_2.
[0141] The memory controller 120 may determine the operation mode OP_MODE of the nonvolatile memory group 110 to be one of the first operation mode OP_MODE_1 or the second operation mode OP_MODE_2 .
[0142] The memory controller 120 may manage the operation mode OP_MODE in any of various ways. For example, the memory controller 120 may manage the operation mode OP_MODE using a flag value, and in another example, the memory controller 120 may manage the operation mode OP_MODE using a status window.
[0143] The operation mode OP_MODE of the nonvolatile memory group 110 may switch from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2 over time, or may switch from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1.
[0144] In this case, the switching of the operation mode from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2 may be performed in response to a command from the memory controller 120, or if a set condition is satisfied, the switching of the operation mode from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2 may be performed without a command. On the other hand, the switching of the operation mode from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1 may be performed only in response to a command from the memory controller 120.
[0145] In the following, reference will be made to Figure 7 The switching of the operation mode OP_MODE is described in detail.
[0146] Meanwhile, the difference between the first operation mode OP_MODE_1 and the second operation mode OP_MODE_2 is as follows.
[0147] If the operation mode OP_MODE is the first operation mode OP_MODE_1, the memory controller 120 may perform control not to perform the background operation BG_OP on the nonvolatile memory group 110. The background operation BG_OP may be, for example, garbage collection GC, read reclaim RR, wear leveling WL, and the like.
[0148] In this case, there is no delay caused when the background operation is performed in the process of the memory controller 120 processing the command (e.g., read command / write command) received from the host. Therefore, the memory controller 120 can process the command received from the host HOST within the set estimated time, thereby providing a high quality of service (QoS) to the host HOST. In addition, the host can predict that the command transmitted to the memory controller 120 will be processed within the set estimated time.
[0149] On the other hand, if the operation mode OP_MODE is the second operation mode OP_MODE_2 , the memory controller 120 may perform control to perform the background operation BG_OP on the nonvolatile memory group 110 .
[0150] In this case, there may be a delay caused when the background operation BG_OP is executed in the process of the memory controller 120 processing a command (e.g., a read command / write command) received from the host. Therefore, the time taken by the memory controller 120 to process the command received from the host HOST may exceed the set estimated time.
[0151] In addition, if the current operation mode OP_MODE is the second operation mode OP_MODE_2, the host HOST may predict that the memory controller 120 may perform background operations, and may determine that processing of commands transmitted to the memory controller 120 may exceed the set estimated time. Therefore, the host HOST is able to pre-process the problem of increased latency due to background operations in the second operation mode OP_MODE_2.
[0152] That is, the memory controller 120 switches the operation mode OP_MODE to the first operation mode OP_MODE_1 or the second operation mode OP_MODE_2, and performs control so that the background operation is performed only when the operation mode OP_MODE is the second operation mode OP_MODE_2. This is different from the general case where the background operation is performed only in the idle state regardless of the operation mode.
[0153] Meanwhile, a victim memory block, which is a target of a background operation when the memory controller 120 performs the background operation in the second operation mode OP_MODE_2, may be determined in any of various manners.
[0154] As an example, a read recovery operation must be performed on a storage block whose read count value is equal to or greater than a threshold read count value of 100. In this case, the memory controller 120 may only select a storage block whose read count value is equal to or greater than the threshold read count value of 100 as a sacrifice storage block. Alternatively, the memory controller 120 may select a storage block whose difference between the read count value and the threshold read count value is equal to or less than a set value as a sacrifice storage block. For example, the memory controller 120 may also select a storage block whose read count value is less than 100 (e.g., 90) as a sacrifice storage block.
[0155] As another example, if the number of free memory blocks ready to be written with data is less than 20, garbage collection must be performed until the number of free memory blocks reaches 20 or more.
[0156] In this case, the memory controller 120 may select a victim memory block for garbage collection until the number of free memory blocks reaches 20. Alternatively, the memory controller 120 may select a victim memory block until the number of free memories is greater than 20 (eg, 25), thereby performing garbage collection.
[0157] Selecting a memory block that does not need to perform a background operation immediately as a sacrifice memory block is intended to increase the time that the operation mode OP_MODE is the first operation mode OP_MODE_1 after the background operation is completed. This is due to the fact that since a large number of sacrifice memory blocks are selected during the background operation, the time required to perform the background operation again after the background operation is completed is increased.
[0158] In the following, reference will be made to Figure 5 The flowchart in describes the switching of the above-mentioned operation modes.
[0159] Figure 5 is a flowchart illustrating an operation according to an operation mode of a nonvolatile memory group according to an embodiment of the present disclosure.
[0160] Reference Figure 5 , first, the memory controller 120 may identify a current operation mode ( S510 ).
[0161] In addition, the memory controller 120 determines whether the operation mode OP_MODE is the first operation mode OP_MODE_1 ( S520 ).
[0162] If the current operation mode OP_MODE is the first operation mode OP_MODE_1 (“YES” in S520 ), the memory controller 120 does not perform the background operation ( S530 ).
[0163] On the other hand, if the current operation mode OP_MODE is not the first operation mode OP_MODE_1 (ie, if the current operation mode is the second operation mode OP_MODE_2) (No in S520), the memory controller 120 may perform a background operation (S540).
[0164] After step S540 , the memory controller 120 determines whether the operation mode OP_MODE is ready to switch from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1 ( S550 ).
[0165] If it is determined that the operation mode OP_MODE is ready to switch to the first operation mode OP_MODE_1 ("Yes" in S550), the memory controller 120 may stop the background operation currently being executed (S560). On the other hand, if it is determined that the operation mode OP_MODE is not ready to switch to the first operation mode OP_MODE_1 ("No" in S550), the memory controller 120 repeats steps S540 and S550 until it is determined that the operation mode OP_MODE is ready to switch to the first operation mode OP_MODE_1.
[0166] The above reference can be performed in any of a variety of ways. Figure 4 and Figure 5 Hereinafter, a method for determining an operation mode using a property value according to an embodiment of the present disclosure will be described.
[0167] Figure 6is a diagram schematically illustrating an attribute value ATTR for determining an operation mode OP_MODE of a nonvolatile memory group 110 according to an embodiment of the present disclosure.
[0168] The memory controller 120 may calculate an attribute value ATTR of the nonvolatile memory group 110 , and may determine an operation mode OP_MODE based on the attribute value ATTR.
[0169] In this case, the attribute value for determining the operation mode OP_MODE of the nonvolatile memory group 110 may be a read attribute value READ_ATTR, a write attribute value WRITE_ATTR, or a time attribute value TIME_ATTR.
[0170] The memory controller 120 may calculate a read attribute value READ_ATTR, a write attribute value WRITE_ATTR, and a time attribute value TIME_ATTR of the nonvolatile memory group 110 , and may determine an operation mode OP_MODE of the nonvolatile memory group 110 based on one or more of them.
[0171] The read attribute value READ_ATTR, the write attribute value WRITE_ATTR, and the time attribute value TIME_ATTR may be defined in various ways.
[0172] For example, the read attribute value READ_ATTR may be defined as the number of read operations that the memory controller 120 may perform while maintaining the operation mode OP_MODE as the first operation mode OP_MODE_1. If the read attribute value READ_ATTR is 100, the memory controller 120 may predict that the background operation (e.g., read reclamation) on the non-volatile memory group 110 will not be performed until the read operation on the non-volatile memory group 110 is performed 100 times, i.e., while staying in the first operation mode OP_MODE_1.
[0173] For example, the write attribute value WRITE_ATTR may be defined as the number of write operations that the memory controller 120 may perform while maintaining the operation mode OP_MODE as the first operation mode OP_MODE_1. For example, if the write attribute value WRITE_ATTR is 50, the memory controller 120 may predict that before the write operation to the non-volatile memory group 110 is performed 50 times, that is, while staying in the first operation mode OP_MODE_1, no background operation (e.g., garbage collection) to the non-volatile memory group 110 may be performed.
[0174] For example, the time attribute value TIME_ATTR may be defined as the time that the memory controller 120 maintains the state of the operation mode OP_MODE as the first operation mode OP_MODE_1. As an example, if the time attribute value TIME_ATTR is 30ms, the memory controller 120 may predict that within 30ms, i.e., when staying in the first operation mode OP_MODE_1, no background operation on the non-volatile memory group 110 will be performed.
[0175] Meanwhile, the units of the above-mentioned read attribute value READ_ATTR, write attribute value WRITE_ATTR, and time attribute value TIME_ATTR may be determined in various ways.
[0176] For example, the unit of the read attribute value READ_ATTR may be the number of operations, or the size of the data to be read (e.g., page). The unit of the write attribute value WRITE_ATTR may also be the number of operations, or the size of the data to be written (e.g., page). The unit of the time attribute value TIME_ATTR may be a specific time value (e.g., ms / μs), or a specific period value (e.g., tick).
[0177] Figure 7 is a state diagram showing a change of an operation mode OP_MODE of the nonvolatile memory group 110 according to an embodiment of the present disclosure.
[0178] First, in the following cases, the memory controller 120 may switch the operation mode OP_MODE from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2. For example, when the operation mode OP_MODE is the first operation mode OP_MODE_1, the memory controller 120 may switch the operation mode OP_MODE from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2 under the following conditions: 1) if the read attribute value READ_ATTR is less than or equal to the first threshold read attribute value; 2) if the write attribute value WRITE_ATTR is less than or equal to the first threshold write attribute value; or 3) the time attribute value TIME_ATTR is less than or equal to the first threshold time attribute value.
[0179] For example, if the read attribute value READ_ATTR is less than or equal to the first threshold read attribute value, the memory controller 120 may perform a read reclamation operation on the nonvolatile memory group 110 to prevent read failure, and for the same purpose, the operation mode OP_MODE may be switched from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2.
[0180] For example, if the write attribute value WRITE_ATTR is less than or equal to the first threshold write attribute value, the memory controller 120 may perform a garbage collection operation on the nonvolatile memory group 110 to obtain a free memory block, and for the same purpose, may switch the operation mode OP_MODE from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2.
[0181] For example, if the time attribute value READ_ATTR is less than or equal to the first threshold time attribute value, because a long time has passed since the background operation was performed, the memory controller 120 can determine that it is necessary to perform the background operation again, and for the same purpose, the operation mode OP_MODE can be switched from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2.
[0182] As described above, if one of the read attribute value READ_ATTR, the write attribute value WRITE_ATTR, or the time attribute value TIME_ATTR is exhausted, the memory controller 120 may determine that background operations need to be performed to enable the nonvolatile memory group 110 to operate normally later, and may therefore switch the operating mode OP_MODE from the first operating mode OP_MODE_1 to the second operating mode OP_MODE_2.
[0183] As another example, if a command instructing to switch the operation mode OP_MODE to the second operation mode OP_MODE_2 is received from the host HOST, the memory controller 120 may also switch the operation mode OP_MODE from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2. In this case, the memory controller 120 may change the operation mode OP_MODE regardless of the read attribute value READ_ATTR, the write attribute value WRITE_ATTR, or the time attribute value TIME_ATTR.
[0184] As another example, if an error (e.g., a bad block, a read failure, or a write failure) occurs in the nonvolatile memory group 100, the memory controller 120 may switch the operation mode OP_MODE from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2. In this case, the memory controller 120 may determine the cause of the corresponding error, and may determine that a background operation needs to be performed to handle the corresponding error, thereby switching the operation mode OP_MODE to the second operation mode OP_MODE_2.
[0185] In this case, the memory controller 120 may further configure a sub-state of the second operation mode OP_MODE_2. The sub-state may be configured as one of the first sub-state SUB_1 and the second sub-state SUB_2. When the memory controller 120 switches the operation mode OP_MODE from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2, the sub-state is preferably configured as the first sub-state SUB_1.
[0186] If the sub-state is the first sub-state SUB_1, the memory controller 120 cannot directly switch the operation mode OP_MODE from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1. When the sub-state is the first sub-state SUB_1, the memory controller 120 performs background operation. In addition, the memory controller 120 maintains the first sub-state SUB_1 until the operation mode OP_MODE is ready to switch to the first operation mode OP_MODE_1 due to the background operation.
[0187] On the other hand, if the sub-state is the second sub-state SUB_2 , the memory controller 120 may switch the operation mode OP_MODE from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1 .
[0188] If the operation mode OP_MODE is the second operation mode OP_MODE_2, and if the sub-state is the second sub-state SUB_2, the memory controller 120 may stop the currently running background operation to quickly switch the operation mode OP_MODE from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1. At this time, when the operation mode OP_MODE is switched to the second operation mode OP_MODE_2 again after switching to the first operation mode OP_MODE_1, the stopped background operation may be resumed.
[0189] If the operation mode OP_MODE of the memory controller 120 is the second operation mode OP_MODE_2 and if the sub-state is the first sub-state SUB_1 , the memory controller 120 may be in the second sub-state SUB_2 if a set target condition is satisfied.
[0190] When the operation mode OP_MODE of the memory controller 120 is the second operation mode OP_MODE_2 , a target condition for switching the sub-state from the first sub-state SUB_1 to the second sub-state SUB_2 may be determined in various ways.
[0191] For example, when the operation mode OP_MODE of the memory controller 120 is the second operation mode OP_MODE_2, the memory controller 120 may be in the state of the operation mode OP_MODE ready to switch from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1 (i.e., the second sub-state SUB_2) under the following conditions: 1) if the read attribute value READ_ATTR is greater than or equal to the second threshold read attribute value, 2) if the write attribute value WRITE_ATTR is greater than or equal to the second threshold write attribute value, and 3) if the time attribute value is greater than or equal to the second threshold time attribute value.
[0192] If a background operation is performed after the operation mode OP_MODE is changed to the second operation mode OP_MODE_2, the read attribute value READ_ATTR, the write attribute value WRITE_ATTR, and the time attribute value TIME_ATTR may be increased again.
[0193] For example, if the read attribute value READ_ATTR is greater than or equal to the second threshold read attribute value, the memory controller 120 may determine that a read operation is ready to be performed in the first operation mode OP_MODE_1 due to a read reclamation operation.
[0194] For example, if the write attribute value WRITE_ATTR is greater than or equal to the second threshold write attribute value, the memory controller 120 may determine that a write operation is ready to be performed in the first operation mode OP_MODE_1 due to a garbage collection operation.
[0195] For example, if the time attribute value TIME_ATTR is greater than or equal to the second threshold time attribute value, the memory controller 120 may determine that a read operation or a write operation is ready to be performed in the first operation mode OP_MODE_1 because the background operation is performed for a setup time or more.
[0196] As described above, the memory controller 120 can determine to prepare to perform a read operation or a write operation in the first operation mode OP_MODE_1 based on the updated read attribute value READ_ATTR, write attribute value WRITE_ATTR and time attribute value TIME_ATTR. In this case, the memory controller 120 is in a state where the operation mode OP_MODE is ready to switch from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1.
[0197] However, only when the read attribute value READ_ATTR, the write attribute value WRITE_ATTR, and the time attribute value TIME_ATTR all satisfy the conditions, the memory controller 120 is in a state where the operation mode OP_MODE is ready to switch from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1.
[0198] For example, although the read attribute value READ_ATTR is greater than or equal to the second threshold read attribute value, if the write attribute value WRITE_ATTR is less than the second threshold write attribute value, the memory controller must maintain the operation mode OP_MODE as the second operation mode OP_MODE_2 because garbage collection in the background operation needs to be performed.
[0199] When the memory controller 120 is in a state where the operation mode OP_MODE is ready to be switched from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1 as described above, if the memory controller 120 receives a command from the host HOST indicating that the operation mode OP_MODE is switched to the first operation mode OP_MODE_1, the memory controller 120 may switch the operation mode OP_MODE from the second operation mode OP_MODE_2 to the first operation mode OP_MODE_1. That is, in this case, when receiving an instruction from the host HOST, the memory controller 120 may switch the operation mode OP_MODE to the first operation mode OP_MODE_1 instead of automatically switching the operation mode OP_MODE to the first operation mode OP_MODE_1.
[0200] Hereinafter, an example of a specific method of determining the above-mentioned attribute value ATTR (read attribute value READ_ATTR / write attribute value WRITE_ATTR / time attribute value TIME_ATTR) by the memory controller 120 will be described in detail.
[0201] In this case, the memory controller 120 may separate the nonvolatile memory group 110 into one or more super memory blocks SBLK, and may calculate the above-mentioned attribute value ATTR based on the state of each super memory block SBLK.
[0202] In the following, reference will be made to Figure 8 Describes the configuration of the super storage block SBLK and will refer to Figures 9 to 16 It is described that a read attribute value or a write attribute value is obtained based on a state of a super memory block SBLK included in the nonvolatile memory group 110 .
[0203] Figure 8is a diagram illustrating configuration of a super memory block SBLK in a nonvolatile memory group 110 according to an embodiment of the present disclosure.
[0204] The nonvolatile memory group 110 may include one or more super memory blocks SBLK.
[0205] Each of the super memory blocks SBLK may include one or more memory blocks BLK. Each of the memory blocks included in the super memory block SBLK may be included in any one of the nonvolatile memories (NVMs) included in the nonvolatile memory group 110 .
[0206] For all super memory blocks SBLK included in the nonvolatile memory group 110, the number of memory blocks BLK included in each super memory block SBLK may be the same or different. Figure 8 As shown, there may be super memory blocks SBLK including one, two, and three memory blocks BLK, respectively. However, all super memory blocks SBLK may have the same number of memory blocks BLK (eg, three memory blocks).
[0207] In addition, each memory block BLK included in a super memory block SBLK can be as follows Figure 8 The illustrated embodiments are included in the same non-volatile memory (NVM), or may be included in different non-volatile memories (NVM).
[0208] In the following, the configuration reference Figures 9 to 12 An example of a specific method of determining the read attribute value READ_ATTR among the attributes ATTR by the memory controller 120 in a case where the nonvolatile memory group 110 includes one or more super memory blocks SBLK is described.
[0209] For example, the read attribute value READ_ATTR may be determined based on a difference between 1) a maximum read count value of each super memory block SBLK and 2) a threshold read reclaim read count value RR_THRESHOLD of the super memory block SBLK.
[0210] The maximum read count value of the super memory block SBLK refers to a maximum value among the read count values of the memory blocks included in the corresponding super memory block SBLK.
[0211] The threshold read recovery read count value RR_THRESHOLD of the super storage block SBLK represents a threshold read count value for triggering a read recovery operation on at least one of the storage blocks included in the corresponding super storage block SBLK. If the read count value of at least one of the storage blocks included in the super storage block SBLK is equal to or greater than the threshold read recovery read count value RR_THRESHOLD, a read recovery operation on the corresponding super storage block SBLK can be triggered.
[0212] In the following, reference will be made to Fig. 9 and Fig.10 The method of obtaining the read attribute value READ_ATTR is described in detail.
[0213] Fig. 9 is a diagram illustrating a method of calculating an available read count value AVAIL_READ_CNT of a super memory block SBLK according to an embodiment of the present disclosure.
[0214] exist Fig. 9 In the embodiment, the super storage block SBLK includes four storage blocks BLK_1, BLK_2, BLK_3 and BLK_4. In this case, the read count value READ_CNT of the storage block BLK_1 is 8, the read count value READ_CNT of the storage block BLK_2 is 7, the read count value READ_CNT of the storage block BLK_3 is 4, and the read count value READ_CNT of the storage block BLK_4 is 5. In addition, the threshold read recovery read count value RR_THRESHOLD is 10.
[0215] In this case, it can be determined that the maximum read count value of the super memory block SBLK is MAX(8, 7, 4, 5)=8.
[0216] In this case, the available read count value AVAIL_READ_CNT may be determined as 2, which is a difference between the threshold read reclaim read count value RR_THRESHOLD '10' and the maximum read count value '8' of the super memory block SBLK.
[0217] In the worst case, if the read operation of the storage block BLK_1 among the storage blocks included in the super storage block SBLK is performed twice more, the read count value READ_CNT of the storage block BLK_1 becomes 8+2=10, which is the same as the threshold read recovery read count value RR_THRESHOLD "10". In this case, the read recovery operation must be performed on the corresponding super storage block SBLK. On the other hand, if a read operation is performed on a storage block other than the storage block BLK_1, two or more read operations can be performed before performing the read recovery operation. That is, this means that the read recovery operation is not performed on the super storage block SBLK before performing at least two read operations.
[0218] The memory controller 120 may obtain an available read count value AVAIL_READ_CNT of each super block included in the nonvolatile memory group 110 , and may determine a read attribute value READ_ATTR of the nonvolatile memory group 110 based on the available read count value AVAIL_READ_CNT.
[0219] Fig.10 is shown by applying Fig. 9 A diagram of obtaining a read attribute value READ_ATTR of the nonvolatile memory group 110 using the method described in .
[0220] exist Fig.10 In the embodiment, four super memory blocks SBLK#1, SBLK#2, SBLK#3 and SBLK#4 are included in the nonvolatile memory group 110. In addition, each super memory block includes three memory blocks BLK#1, BLK#2 and BLK#3. Further, the threshold read reclaim read count value RR_THRESHOLD is 10.
[0221] exist Fig.10 , the read count values READ_CNT of the memory blocks BLK#1, BLK#2, and BLK#3 of the super memory block SBLK#1 are 6, 0, and 0, respectively. In this case, the maximum read count value MAX_READ_CNT of the super memory block SBLK#1 becomes MAX(6, 0, 0)=6, and the available read count value AVAIL_READ_CNT of the super memory block SBLK#1 is 10-6=4.
[0222] When the read count values READ_CNT of the storage blocks BLK#1, BLK#2 and BLK#3 of the super storage block SBLK#2 are 8, 8 and 8 respectively, the maximum read count value MAX_READ_CNT of the super storage block SBLK#2 becomes MAX(8, 8, 8)=8, and the available read count value AVAIL_READ_CNT of the super storage block SBLK#2 is 10-8=2.
[0223] When the read count values READ_CNT of the storage blocks BLK#1, BLK#2 and BLK#3 of the super storage block SBLK#3 are 9, 4 and 5 respectively, the maximum read count value MAX_READ_CNT of the super storage block SBLK#3 becomes MAX(9, 4, 5)=9, and the available read count value AVAIL_READ_CNT of the super storage block SBLK#3 is 10-9=1.
[0224] When the read count values READ_CNT of the storage blocks BLK#1, BLK#2 and BLK#3 of the super storage block SBLK#4 are 2, 2 and 2 respectively, the maximum read count value MAX_READ_CNT of the super storage block SBLK#4 becomes MAX(2, 2, 2)=2, and the available read count value AVAIL_READ_CNT of the super storage block SBLK#4 is 10-2=8.
[0225] As described above, if the available read count values AVAIL_READ_CNT of the respective read count values of the four super memory blocks SBLK#1, SBLK#2, SBLK#3, and SBLK#4 are determined, the memory controller 120 may determine the read attribute value READ_ATTR based thereon. For example, the memory controller 120 may determine the minimum value (i.e., MIN(4, 2, 1, 8)=1) of the determined available read count values AVAIL_READ_CNT as the read attribute value READ_ATTR.
[0226] The read attribute value READ_ATTR having a value of 1 indicates that the operation mode may be changed after performing one read operation on the nonvolatile memory group 110 (in the worst case) while staying in the first operation mode OP_MODE_1.
[0227] This is intended to consider the case where, in the worst case, the read operation is continuously performed only on the memory block BLK#1 having the highest read count value READ_CNT in the super memory block SBLK#3.
[0228] The above method considering the worst case can prevent the host HOST from misjudging that the memory controller 120 is still ready to perform a read operation in the first operation mode OP_MODE_1 when the memory controller 120 must perform a read reclaim operation.
[0229] However, when using the above method, in most cases, the operation mode OP_MODE is switched from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2 before the memory controller 120 must perform a read reclaim operation. This is due to the fact that it may not necessarily be necessary to perform a read operation on the memory block with the highest read count value READ_CNT.
[0230] In this case, the time during which the operation mode OP_MODE is the first operation mode OP_MODE_1 (i.e., the time during which high QoS can be provided to the host HOST) can be reduced. Therefore, there is a possibility that the host HOST determines that the performance of the memory system 100 is low performance. In addition, since the frequency of switching the operation mode OP_MODE increases, the performance loss that occurs when the memory system 100 processes the switching of the operation mode OP_MODE may increase.
[0231] Therefore, the memory controller 120 may determine the number of read operations predicted before performing the read reclamation operation by determining changes in all read count values instead of considering only the worst case.
[0232] Compared with the case where only the worst case is considered, using this method, the number of predicted read operations increases, so that the time when the operation mode OP_MODE is the first operation mode OP_MODE_1 (i.e., the time when high QoS can be provided to the host HOST) can be increased. In addition, because the frequency of switching the operation mode OP_MODE is minimized, the performance loss that occurs when the memory system 100 processes the switching of the operation mode OP_MODE can also be minimized.
[0233] Hereinafter, another example of a method of determining the read attribute value READ_ATTR by the memory controller 120 will be described.
[0234] The read attribute value READ_ATTR may be determined based on 1) a maximum read count value of each super memory block, 2) a total read count value of each super memory block, and 3) a threshold read reclaim read count value of the super memory block.
[0235] In this case, the total read count value of the super memory block means the sum of the read count values of the respective memory blocks included in the super memory block.
[0236] In the following, reference will be made to Fig.11 and Fig.12 Another method of obtaining the read attribute value READ_ATTR is described in detail.
[0237] Fig.11is a diagram illustrating another method of calculating an available read count value of a super memory block according to an embodiment of the present disclosure.
[0238] exist Fig.11 In FIG. 1 , the super memory block SBLK includes N memory blocks BLK_1, BLK_2, BLK_3, ..., and BLK_N. In addition, it is assumed that the read count values READ_CNT of the N memory blocks BLK_1, BLK_2, BLK_3, ..., and BLK_N are READ_CNT_BLK_1, READ_CNT_BLK_2, READ_CNT_BLK_3, ..., and READ_CNT_BLK_N, respectively.
[0239] In this case, the maximum read count value MAX_READ_CNT of the super memory block SBLK may be determined as MAX (READ_CNT_BLK_1, READ_CNT_BLK_2, . . . READ_CNT_BLK_N).
[0240] The total read count value SUM_READ_CNT of the super memory block SBLK may be determined as (READ_CNT_BLK_1, READ_CNT_BLK_2, . . . READ_CNT_BLK_N).
[0241] In this case, the read count values of the memory blocks BLK_1, BLK_2, BLK_3, ... and BLK_N included in the super memory block SBLK have the same pattern of change over time. That is, the read count value of any one of the memory blocks included in the super memory block SBLK increases evenly over time, rather than increasing rapidly at a specific time.
[0242] In this case, when the maximum read count value MAX_READ_CNT of the super storage block SBLK is the threshold read recovery read count value RR_THRESHOLD, the ratio of 1) the maximum read count value MAX_READ_CNT of the current super storage block SBLK and 2) the total read count value SUM_READ_CNT of the current super storage block SBLK is the same as the ratio of 3) the threshold read recovery read count value RR_THRESHOLD of the super storage block SBLK and 4) the total read count value ALL_READ_CNT of the super storage block SBLK.
[0243] This can be expressed as the following equation.
[0244] MAX_READ_CNT: RR_THRESHOLD=SUM_READ_CNT: ALL_READ_CNT
[0245] ALL_READ_CNT=(RR_THRESHOLD*SUM_READ_CNT) / MAX_READ_CNT
[0246] Based on this, the available read count AVAIL_READ_CNT of the super storage block SBLK can be determined as follows.
[0247] AVAIL_READ_CNT=ALL_READ_CNT-SUM_READ_CNT
[0248] Fig.12 is shown by applying the reference Fig.11 A method is described to obtain a graph of read property values of a non-volatile memory group.
[0249] exist Fig.12 In FIG. 1 , the nonvolatile memory group 110 includes four super memory blocks SBLK#1, SBLK#2, SBLK#3, and SBLK#4. In addition, each of the super memory blocks includes three memory blocks BLK#1, BLK#2, and BLK#3. The threshold read reclaim read count value RR_THRESHOLD is 10.
[0250] exist Fig.12 , the read count values READ_CNT of the storage blocks BLK#1, BLK#2 and BLK#3 of the super storage block SBLK#1 are 6, 0 and 0 respectively. In this case, the maximum read count value MAX_READ_CNT of the super storage block SBLK#1 becomes MAX(6, 0, 0)=6, and its total read count value SUM_READ_CNT becomes 6+0+0=6. When the maximum read count value MAX_READ_CNT of the super storage block SBLK#1 is the threshold read recovery read count value RR_THRESHOLD, the total read count value ALL_READ_CNT of the super storage block SBLK is (10*6) / 6=10.
[0251] Therefore, it can be determined that the available read count value AVAIL_READ_CNT of the super memory block SBLK# 1 is 10-6=4.
[0252] When the read count values READ_CNT of the storage blocks BLK#1, BLK#2 and BLK#3 of the super storage block SBLK#2 are 8, 8 and 8 respectively, the maximum read count value MAX_READ_CNT of the super storage block SBLK#2 becomes MAX(8, 8, 8)=8, and its total read count value SUM_READ_CNT becomes 8+8+8=24. When the maximum read count value MAX_READ_CNT of the super storage block SBLK#2 is the threshold read recovery read count value RR_THRESHOLD, the total read count value ALL_READ_CNT of the super storage block SBLK is (10*24) / 8=30.
[0253] Therefore, it can be determined that the available read count value AVAIL_READ_CNT of the super memory block SBLK#2 is 30-24=6.
[0254] When the read count values of the storage blocks BLK#1, BLK#2 and BLK#3 of the super storage block SBLK#3 are 9, 4 and 5 respectively, the maximum read count value MAX_READ_CNT of the super storage block SBLK#3 becomes MAX(9, 4, 5)=9, and its total read count value SUM_READ_CNT becomes 9+4+5=18. When the maximum read count value MAX_READ_CNT of the super storage block SBLK#3 is the threshold read recovery read count value RR_THRESHOLD, the total read count value ALL_READ_CNT of the super storage block SBLK is (10*18) / 9=20.
[0255] Therefore, it can be determined that the available read count value AVAIL_READ_CNT of the super memory block SBLK# 3 is 20-18=2.
[0256] When the read count values of the storage blocks BLK#1, BLK#2 and BLK#3 of the super storage block SBLK#4 are 2, 2 and 2 respectively, the maximum read count value MAX_READ_CNT of the super storage block SBLK#4 becomes MAX(2, 2, 2)=2, and its total read count value SUM_READ_CNT becomes 2+2+2=6. When the maximum read count value MAX_READ_CNT of the super storage block SBLK#4 is the threshold read recovery read count value RR_THRESHOLD, the total read count value ALL_READ_CNT of the super storage block SBLK is (10*6) / 2=30.
[0257] Therefore, it can be determined that the available read count value AVAIL_READ_CNT of the super memory block SBLK#4 is 30-6=24.
[0258] If the available read count values AVAIL_READ_CNT of the four super memory blocks SBLK#1, SBLK#2, SBLK#3, and SBLK#4 are determined as described above, the memory controller 120 may determine the read attribute value READ_ATTR based thereon. For example, the memory controller 120 may determine the minimum value of the determined available read count value AVAIL_READ_CNT (i.e., MIN(4, 6, 2, 24)=2) as the read attribute value READ_ATTR.
[0259] If according to the reference Figures 9 to 12 The described method determines the read attribute value READ_ATTR, and the memory controller 120 can determine whether to perform background operations according to the read attribute value READ_ATTR. For example, if the read attribute value READ_ATTR is less than or equal to zero, the memory controller 120 can switch the operation mode OP_MODE to the second operation mode OP_MODE_2 and perform a read recovery operation.
[0260] In this case, the memory controller 120 may simultaneously perform a read recovery operation and an operation of processing a read command received from the host HOST. In this case, the memory controller 120 is required to obtain an appropriate read bandwidth for each operation. The read bandwidth refers to the maximum data size that can be read per unit time. For example, if the read bandwidth is 10MB / s, the memory controller can read up to 10MB of data per second. Hereinafter, reference will be made to Fig.13 This is described in detail.
[0261] Fig.13 is a diagram schematically illustrating a bandwidth of a read operation according to an embodiment of the present disclosure.
[0262] Reference Fig.13 When the operation mode OP_MODE is the second operation mode OP_MODE_2, if a read reclaim operation is being performed on the nonvolatile memory group 110, the memory controller 120 may maintain a minimum read bandwidth MIN_HOST_READ_BANDWIDTH for processing a read operation from the host HOST.
[0263] When the memory controller 120 performs the read reclamation operation in the second operation mode OP_MODE_2 , the memory controller 120 may use most of the read bandwidth READ_BANDWIDTH to read data in the nonvolatile memory group 110 that is a target of the read reclamation operation.
[0264] In this case, the read reclaim read bandwidth REFRESH_READ_BANDWIDTH for an operation to read data that is a target of a read reclaim operation in the nonvolatile memory group 110 may be significantly increased. Therefore, the memory controller 120 cannot obtain a bandwidth required for processing a read command received from the host HOST (i.e., the host read bandwidth HOST_READ_BANDWIDTH). In this case, the memory controller 120 cannot correctly process the read command received from the host HOST.
[0265] Therefore, even when performing a read reclaim operation on the nonvolatile memory group 110 , the memory controller 120 can maintain the minimum read bandwidth MIN_HOST_READ_BANDWIDTH for performing a read operation from the host HOST, thereby processing a read command received from the host HOST while the read reclaim operation is being performed within the memory system 100 .
[0266] Meanwhile, the minimum read bandwidth MIN_HOST_READ_BANDWIDTH value may be expressed as a ratio (eg, 20:1) of the host read bandwidth HOST_READ_BANDWIDTH to the read reclaim bandwidth REFRESH_READ_BANDWIDTH, rather than an absolute bandwidth value.
[0267] At the same time, the minimum read bandwidth MIN_HOST_READ_BANDWIDTH value can be configured by the host HOST instead of remaining at a fixed value.
[0268] In the above drawings, a method of determining the read attribute value READ_ATTR among the above attribute values ATTR by the memory controller 120 in the case of configuring one or more super memory blocks SBLK included in the nonvolatile memory group 110 has been described.
[0269] In the following, reference will be made to Figures 14 to 16 A method of determining the write attribute value WRITE_ATTR among the above-mentioned attribute values ATTR by the memory controller 120 in a case where one or more super memory blocks SBLK included in the nonvolatile memory group 110 are configured is described.
[0270] Fig.14 is a diagram illustrating obtaining a write attribute value WRITE_ATTR of a nonvolatile memory group 110 according to an embodiment of the present disclosure.
[0271] First, the super memory blocks included in the nonvolatile memory group 110 may be roughly classified into a reserved super memory block RESERVED_SBLK, a free super memory block FREE_SBLK, and a closed super memory block CLOSED_SBLK.
[0272] The reserved super memory block RESERVED_SBLK is a super memory block that replaces some of the super memory blocks currently storing data when some of the super memory blocks need to be replaced due to the occurrence of bad memory blocks or problems such as read failure or write failure.
[0273] The reserved super storage block RESERVED_SBLK may be determined in various ways. For example, the reserved super storage block RESERVED_SBLK may include a storage block present in the OP area. At the same time, the memory controller 120 may determine the number (e.g., ten or more) of the reserved super storage blocks RESERVED_SBLK among the super storage blocks included in the non-volatile memory group 110 based on the setting policy.
[0274] The free super storage block FREE_SBLK is a super storage block to which data is to be written.
[0275] The closed super memory block CLOSED_SBLK is a super memory block to which data has been written so that new data cannot be written before erasing the data.
[0276] The memory controller 120 may determine the write attribute value WRITE_ATTR in various ways based on the number of reserved super memory blocks RESERVED_SBLK, the number of free super memory blocks FREE_SBLK, and the number of closed super memory blocks CLOSED_SBLK.
[0277] For example, the write attribute value WRITE_ATTR can be determined based on the number FREE_SBLK_NUM of free super storage blocks FREE_SBLK among the super storage blocks. The write attribute value WRITE_ATTR can be determined by multiplying the number FREE_SBLK_NUM of free super storage blocks FREE_SBLK by the number of valid storage blocks VALID_BLKN_PER_SBLK included in each super storage block. If the number of free super storage blocks FREE_SBLK is 5, and if the number of valid storage blocks VALID_BLKN_PER_SBLK included in each super storage block is 10, the write attribute value WRITE_ATTR can be determined as 5*10=50.
[0278] As another example, the write attribute value WRITE_ATTR may be determined based on the sum of the number of free super memory blocks FREE_SBLK FREE_SBLK_NUM and the number of reserved super memory blocks RESERVED_SBLK RESERVED_SBLK_NUM. If the number of free super memory blocks FREE_SBLK FREE_SBLK_NUM is 6, and if the number of reserved super memory blocks RESERVED_SBLK RESERVED_SBLK_NUM is 10, the write attribute value WRITE_ATTR may be determined as 10+6=16.
[0279] Based on the write attribute value WRITE_ATTR determined as described above, if garbage collection is required, the memory controller 120 can perform garbage collection in the second operation mode OP_MODE_2. In addition, if the write attribute value WRITE_ATTR is restored due to garbage collection so that a write operation is ready to be performed in the first operation mode OP_MODE_1, the memory controller 120 can stop garbage collection.
[0280] In the following, reference will be made to Figure 15 to Figure 16 1 is used to describe the process of the memory controller 120 performing garbage collection when determining the write attribute value WRITE_ATTR based on the sum of the number of free super memory blocks FREE_SBLK FREE_SBLK_NUM and the number of reserved super memory blocks RESERVED_SBLK RESERVED_SBLK_NUM.
[0281] Fig.15 is a flowchart illustrating a process in which the memory controller 120 performs garbage collection according to an embodiment of the present disclosure.
[0282] If garbage collection is determined to be required because the write attribute value WRITE_ATTR becomes less than or equal to the first threshold write attribute value, the memory controller 120 may initiate garbage collection (S1510). In this case, the memory controller 120 may switch the operation mode OP_MODE to the second operation mode OP_MODE_2.
[0283] When the operation mode OP_MODE is the second operation mode OP_MODE_2, the memory controller 120 may calculate a sum T of 1) the number of reserved super memory blocks RESERVED_SBLK included in the nonvolatile memory group 110 and 2) the number of free super memory blocks FREE_SBLK included in the nonvolatile memory group 110 (S1520).
[0284] The memory controller 120 determines whether the value T calculated in step S1520 is greater than a first threshold number of super memory blocks (S1530).
[0285] If the value T is greater than the first threshold number of super memory blocks ("Yes" in S1530), the memory controller 120 may switch the operation mode OP_MODE to the first operation mode OP_MODE_1. To this end, the memory controller 120 stops the currently executed garbage collection (S1540) and switches the operation mode OP_MODE to the first operation mode OP_MODE_1 (S1550).
[0286] However, as described above, the memory controller 120 may switch the operation mode OP_MODE to the first operation mode OP_MODE_1 only when receiving a command instructing to switch the operation mode OP_MODE to the first operation mode OP_MODE_1 from the host HOST as described above.
[0287] On the other hand, if the value T is less than or equal to the first threshold number of super memory blocks ("No" in S1530), this indicates that it is necessary to obtain an additional free super memory block FREE_SBLK to switch the operation mode OP_MODE to the first operation mode OP_MODE_1. Therefore, the memory controller 120 may perform garbage collection (S1560) to obtain a free super memory block, and then the value T may be calculated again in step S1520.
[0288] Fig.16 is a flowchart illustrating another process in which the memory controller 120 performs garbage collection according to an embodiment of the present disclosure.
[0289] If garbage collection is determined to be required because the write attribute value WRITE_ATTR becomes less than or equal to the first threshold write attribute value, the memory controller 120 may initiate garbage collection (S1610). In this case, the memory controller 120 may switch the operation mode OP_MODE to the second operation mode OP_MODE_2.
[0290] When the operation mode OP_MODE is the second operation mode OP_MODE_2, the memory controller 120 may calculate a sum T of 1) the number of reserved super memory blocks RESERVED_SBLK included in the nonvolatile memory group 110 and 2) the number of free super memory blocks FREE_SBLK included in the nonvolatile memory group 110 (S1620).
[0291] The memory controller 120 determines whether the value T calculated in step S1620 is less than a second threshold number of super memory blocks (S1630).
[0292] If the value T is less than the second threshold number of super memory blocks ("Yes" in S1630), the memory controller 120 may not switch the operation mode OP_MODE to the first operation mode OP_MODE_1 (S1640). That is, in this case, even if the host HOST transmits a command instructing to switch the operation mode OP_MODE to the first operation mode OP_MODE_1 to the memory controller 120, the memory controller 120 does not switch the operation mode OP_MODE to the first operation mode OP_MODE_1.
[0293] After performing step S1640, the memory controller 120 may perform garbage collection to obtain a free super memory block (S1650), and may calculate the value T again in step S1620.
[0294] On the other hand, if the value T is greater than or equal to the second threshold number of super memory blocks (No in S1630), the memory controller 120 may switch the operation mode OP_MODE to the first operation mode OP_MODE_1 (S1660). In this case, if a command instructing to switch the operation mode OP_MODE to the first operation mode OP_MODE_1 is received from the host HOST, the memory controller 120 may switch the operation mode OP_MODE to the first operation mode OP_MODE_1.
[0295] Fig.17 is a flowchart illustrating an operating method of the memory controller 120 according to an embodiment of the present disclosure.
[0296] The operating method of the memory controller 120 may include a step of calculating attribute values of the nonvolatile memory group 110 (S1710). In this case, the attribute values may be 1) a read attribute value READ_ATTR, 2) a write attribute value WRITE_ATTR, and 3) a time attribute value TIME_ATTR.
[0297] The operating method of the memory controller 120 may include a step of determining an operation mode OP_MODE of the nonvolatile memory group 110 based on at least one of 1) a read attribute value READ_ATTR, 2) a write attribute value WRITE_ATTR, and 3) a time attribute value TIME_ATTR ( S1720 ).
[0298] In step S1720 , the memory controller 120 may determine the operation mode OP_MODE of the nonvolatile memory group 110 in various ways.
[0299] For example, as referenced Figure 7As described, when the operation mode OP_MODE is the first operation mode OP_MODE_1, the memory controller 120 can switch the operation mode OP_MODE from the first operation mode OP_MODE_1 to the second operation mode OP_MODE_2 under the following conditions: 1) if the read attribute value READ_ATTR is less than or equal to the first threshold read attribute value; 2) if the write attribute value WRITE_ATTR is less than or equal to the first threshold write attribute value; or 3) if the time attribute value TIME_ATTR is less than or equal to the first threshold time attribute value.
[0300] Meanwhile, in operation S1720 , if the set target condition is satisfied when the operation mode OP_MODE is the second operation mode OP_MODE_2 , the memory controller 120 may stop background operations on the nonvolatile memory group and may switch to a state where the operation mode OP_MODE is ready to switch to the first operation mode OP_MODE_1 .
[0301] In this case, as referenced Figure 7 The target condition may be: 1) the read attribute value READ_ATTR is greater than or equal to the second threshold read attribute value; 2) the write attribute value WRITE_ATTR is greater than or equal to the second threshold write attribute value and 3) the time attribute value is greater than or equal to the second threshold time attribute value, and if the target condition is met, the operating mode OP_MODE may be switched from the second operating mode OP_MODE_2 to the first operating mode OP_MODE_1.
[0302] In this case, if the operation mode is the first operation mode, the memory controller 120 may control not to perform background operations on the nonvolatile memory group, and if the operation mode is the second operation mode, the memory controller 120 may control to perform background operations on the nonvolatile memory group.
[0303] Meanwhile, the operation of the above-described memory controller 120 may be controlled by the control circuit 123 , and may be performed in a manner that the processor 124 executes (drives) firmware in which the entire operation of the memory controller 120 is programmed.
[0304] Fig.18 is a block diagram schematically illustrating a computing system 1800 according to an embodiment of the present disclosure.
[0305] Reference Fig.18According to an embodiment of the present disclosure, a computing system 1800 may include a memory system 100 electrically connected to a system bus 1860, a central processing unit (CPU) 1810 for controlling the overall operation of the computing system 1800, a RAM 1820 for storing data and information related to the operation of the computing system 1800, a user interface / user experience (UI / UX) module 1830 for providing a user environment to a user, a communication module 1840 for communicating with an external device via wired and / or wireless communication, and a power management module 1850 for managing power used by the computing system 1800.
[0306] The computing system 1800 according to an embodiment of the present disclosure may be a personal computer (PC), or may include a mobile terminal such as a smart phone, a tablet PC, etc., or various electronic devices.
[0307] The computing system 1800 may further include a battery for supplying an operating voltage, and may further include an application chipset, a graphic-related module, a camera image processor (CIS), DRAM, etc. In addition, the configuration of the computing system will be apparent to those skilled in the art.
[0308] Meanwhile, the above-mentioned memory system 100 may include a device for storing data in a non-volatile memory such as a solid state drive (SSD), a universal flash memory (UFS) device, an embedded MMC (eMMC) device, and a device for storing data in a disk such as a hard disk drive (HDD). The non-volatile memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, a phase change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a ferroelectric RAM (FRAM), and the like. In addition, the memory system 100 may be implemented as any one of various types of storage devices and may be installed in various electronic devices.
[0309] According to the embodiments of the present disclosure described above, a memory system, a memory controller, and an operation method thereof that enable a host to more accurately predict whether a memory controller can perform a background operation can be provided.
[0310] Furthermore, according to an embodiment of the present disclosure, a memory system, a memory controller, and an operating method thereof that enable a host to pre-process a situation in which a delay time may increase can be provided.
[0311] Furthermore, according to an embodiment of the present disclosure, a memory system, a memory controller, and an operating method thereof that provide a higher QoS to a host may be provided.
[0312] Although various embodiments of the present disclosure have been described for illustrative purposes, it will be understood by those skilled in the art that various modifications, additions and substitutions may be made without departing from the scope and spirit of the present disclosure as disclosed in the appended claims. Therefore, embodiments of the present disclosure have been described for brevity and clarity. The scope of the present disclosure should be interpreted based on the appended claims in a manner that all technical ideas included within the scope of the claims belong to the present disclosure.
Claims
1. A memory system, include: a non-volatile memory group, comprising one or more non-volatile memories; as well as a memory controller controlling the nonvolatile memory group, Wherein, the memory controller: Calculating a read attribute value, a write attribute value, and a time attribute value of the nonvolatile memory group; determining an operating mode of the nonvolatile memory bank based on all of the read attribute value, the write attribute value, and the time attribute value; When the operation mode is the first operation mode, controlling not to perform background operations on the nonvolatile memory group; When the operation mode is the second operation mode, controlling to perform a background operation on the nonvolatile memory group; and When the operation mode is the second operation mode and the set target condition is satisfied, the background operation of the non-volatile memory group is stopped, and the operation mode is switched to a state ready to switch to the first operation mode. wherein the target condition is that the read attribute value is greater than or equal to a second threshold read attribute value, the write attribute value is greater than or equal to a second threshold write attribute value, and the time attribute value is greater than or equal to a second threshold time attribute value, The read attribute value is defined as the number of read operations that the memory controller can perform while maintaining the operating mode as the first operating mode, the write attribute value is defined as the number of write operations that the memory controller can perform while maintaining the operating mode as the first operating mode, and the time attribute value is defined as the time that the memory controller maintains the operating mode in the first operating mode.
2. A memory system according to claim 1, wherein when a read attribute value is less than or equal to a first threshold read attribute value, or when a write attribute value is less than or equal to a first threshold write attribute value, or when a time attribute value is less than or equal to a first threshold time attribute value, the memory controller switches the operation mode from the first operation mode to the second operation mode. 3 . The memory system according to claim 1 , wherein the memory controller switches the operation mode from the second operation mode to the first operation mode when receiving a command instructing to switch the operation mode to the first operation mode from a host.
4. The memory system according to claim 1, wherein the non-volatile memory group comprises one or more super memory blocks, Each of the super memory blocks includes one or more memory blocks, and The memory block included in each of the super memory blocks is included in any one of the nonvolatile memories included in the nonvolatile memory group. 5 . The memory system of claim 4 , wherein the read attribute value is determined based on a difference between a maximum read count value of each of the super memory blocks and a threshold read reclaim read count value of the super memory block.
6. The memory system of claim 4 , wherein the read attribute value is determined based on a maximum read count value of each of the super memory blocks, a total read count value of each of the super memory blocks, and a threshold read reclaim read count value of the super memory block.
7. The memory system of claim 1, wherein when the operation mode is the second operation mode, while a read reclaim operation is being performed on the nonvolatile memory group, the memory controller maintains a minimum read bandwidth for processing a read command received from a host.
8. The memory system according to claim 4, wherein the write attribute value is determined based on a sum of the number of reserved super memory blocks and the number of free super memory blocks among the super memory blocks included in the nonvolatile memory group.
9. The memory system of claim 8, wherein when the operation mode is the second operation mode, the sum of the number of the reserved super storage blocks and the number of the free super storage blocks is greater than a first threshold number of super storage blocks, the memory controller is capable of switching the operation mode to the first operation mode.
10. The memory system according to claim 8, wherein when the operation mode is the second operation mode, when the sum of the number of the reserved super storage blocks and the number of the free super storage blocks included in the non-volatile memory group is less than a second threshold number of super storage blocks, the memory controller does not switch the operation mode to the first operation mode.
11. A memory controller, include: a memory interface in communication with a nonvolatile memory bank including one or more nonvolatile memories; as well as Control circuit: Calculating a read attribute value, a write attribute value, and a time attribute value of the nonvolatile memory group; determining an operating mode of the nonvolatile memory bank based on all of the read attribute value, the write attribute value, and the time attribute value; When the operation mode is the first operation mode, controlling not to perform background operations on the nonvolatile memory group; When the operation mode is the second operation mode, controlling to perform background operation on the nonvolatile memory group; as well as When the operation mode is the second operation mode and the set target condition is satisfied, the background operation of the non-volatile memory group is stopped, and the operation mode is switched to a state ready to switch to the first operation mode. wherein the target condition is that the read attribute value is greater than or equal to a second threshold read attribute value, the write attribute value is greater than or equal to a second threshold write attribute value, and the time attribute value is greater than or equal to a second threshold time attribute value, The read attribute value is defined as the number of read operations that the memory controller can perform while maintaining the operating mode as the first operating mode, the write attribute value is defined as the number of write operations that the memory controller can perform while maintaining the operating mode as the first operating mode, and the time attribute value is defined as the time that the memory controller maintains the operating mode in the first operating mode.
12. A memory controller according to claim 11, wherein the operating mode is switched from the first operating mode to the second operating mode when the read attribute value is less than or equal to a first threshold read attribute value, or when the write attribute value is less than or equal to a first threshold write attribute value, or when the time attribute value is less than or equal to a first threshold time attribute value.
13. The memory controller according to claim 11, wherein the non-volatile memory group comprises one or more super memory blocks, Each of the super memory blocks includes one or more memory blocks, and The memory block included in each of the super memory blocks is included in any one of the nonvolatile memories included in the nonvolatile memory group.
14. The memory controller of claim 13, wherein the read attribute value is determined based on a maximum read count value of each of the super memory blocks, a total read count value of each of the super memory blocks, and a threshold read reclaim read count value of the super memory block. 15 . The memory controller according to claim 13 , wherein the write attribute value is determined based on a sum of the number of reserved super memory blocks and the number of free super memory blocks among the super memory blocks included in the nonvolatile memory group.
16. A method of operating a memory controller, the memory controller controlling a non-volatile memory group including one or more non-volatile memories, the method include: Calculating a read attribute value, a write attribute value, and a time attribute value of the nonvolatile memory group; determining an operating mode of the nonvolatile memory bank based on all of the read attribute value, the write attribute value, and the time attribute value; When the operation mode is the first operation mode, controlling not to perform background operations on the nonvolatile memory group; When the operation mode is the second operation mode, controlling to perform background operation on the nonvolatile memory group; as well as When the operation mode is the second operation mode and the set target condition is satisfied, the background operation of the non-volatile memory group is stopped, and the operation mode is switched to a state ready to switch to the first operation mode. wherein the target condition is that the read attribute value is greater than or equal to a second threshold read attribute value, the write attribute value is greater than or equal to a second threshold write attribute value, and the time attribute value is greater than or equal to a second threshold time attribute value, The read attribute value is defined as the number of read operations that the memory controller can perform while maintaining the operating mode as the first operating mode, the write attribute value is defined as the number of write operations that the memory controller can perform while maintaining the operating mode as the first operating mode, and the time attribute value is defined as the time that the memory controller maintains the operating mode in the first operating mode.
17. A method according to claim 16, wherein determining the operating mode of the non-volatile memory group includes switching the operating mode from the first operating mode to the second operating mode when the read attribute value is less than or equal to a first threshold read attribute value, when the write attribute value is less than or equal to a first threshold write attribute value, or when the time attribute value is less than or equal to a first threshold time attribute value.
