US20240231663A1 - Storage device and method of operating the same - Google Patents
Storage device and method of operating the same Download PDFInfo
- Publication number
- US20240231663A1 US20240231663A1 US18/616,171 US202418616171A US2024231663A1 US 20240231663 A1 US20240231663 A1 US 20240231663A1 US 202418616171 A US202418616171 A US 202418616171A US 2024231663 A1 US2024231663 A1 US 2024231663A1
- Authority
- US
- United States
- Prior art keywords
- data
- memory
- physical
- section
- storage device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title description 51
- 230000015654 memory Effects 0.000 claims abstract description 286
- 230000004044 response Effects 0.000 claims description 17
- 239000000872 buffer Substances 0.000 description 36
- 238000010586 diagram Methods 0.000 description 36
- 230000008569 process Effects 0.000 description 29
- 238000013519 translation Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000001276 controlling effect Effects 0.000 description 6
- 230000002093 peripheral effect Effects 0.000 description 6
- 101100481702 Arabidopsis thaliana TMK1 gene Proteins 0.000 description 5
- 238000012937 correction Methods 0.000 description 5
- 238000013507 mapping Methods 0.000 description 5
- 239000004065 semiconductor Substances 0.000 description 4
- 238000004140 cleaning Methods 0.000 description 3
- 239000007787 solid Substances 0.000 description 3
- 229920001621 AMOLED Polymers 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 2
- 238000011017 operating method Methods 0.000 description 2
- 238000005086 pumping Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 101100498818 Arabidopsis thaliana DDR4 gene Proteins 0.000 description 1
- 101000934888 Homo sapiens Succinate dehydrogenase cytochrome b560 subunit, mitochondrial Proteins 0.000 description 1
- 102100025393 Succinate dehydrogenase cytochrome b560 subunit, mitochondrial Human genes 0.000 description 1
- 230000003213 activating effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0238—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
- G06F12/0246—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/064—Management of blocks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0658—Controller construction arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1016—Performance improvement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1032—Reliability improvement, data loss prevention, degraded operation etc
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/10—Providing a specific technical effect
- G06F2212/1041—Resource optimization
- G06F2212/1044—Space efficiency improvement
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/72—Details relating to flash memory management
- G06F2212/7205—Cleaning, compaction, garbage collection, erase control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/72—Details relating to flash memory management
- G06F2212/7208—Multiple device management, e.g. distributing data over multiple flash devices
Definitions
- the present disclosure relates to an electronic device, and more particularly, to a storage device and a method of operating the same.
- a storage device converts a logical address received from a host into a physical address and uses the physical address, and thus a logical area in the host and a physical zone of the storage device are related to each other. Accordingly, in order to improve performance of an electronic device, a new device or method capable of controlling the host and the storage device is required.
- FIG. 2 is a diagram illustrating a memory device of FIG. 1 according to an embodiment of the present disclosure.
- FIG. 3 is a diagram illustrating a memory cell array of FIG. 2 according to an embodiment of the present disclosure.
- FIG. 4 is a diagram illustrating a storage device according to an embodiment of the present disclosure.
- FIG. 5 is a diagram illustrating a super block allocation process of a storage device according to an embodiment of the present disclosure.
- FIG. 6 is a diagram illustrating super block management of a storage device according to an embodiment of the present disclosure.
- FIG. 8 is a diagram illustrating a process of allocating a new section of a first section group by the file system according to an embodiment of the present disclosure.
- the storage device 50 may include a memory device 100 and a memory controller 200 .
- the storage device 50 may be a device that stores data under control of a host 400 such as a cellular phone, a smartphone, an MP3 player, a laptop computer, a desktop computer, a game player, a TV, a tablet PC, or an in-vehicle infotainment system.
- the storage device 50 may be a device that stores data under control of the host 400 that stores high-size data in one place, such as a server or a data center.
- the memory cell array 110 may include one or more memory dies, and each memory die may include one or more planes including one or more memory blocks.
- One super block may be a set of memory blocks BLK on which the read operation, the write operation, and/or the like are/is performed simultaneously or in the same time period, the read operation, the write operation, and/or the like are/is performed in conjunction with or in relation to each other, a set of memory blocks BLK on which the read operation, the write operation, and/or the like are/is performed with respect to one command, or a set of memory blocks BLK on which the read operation, the write operation, and/or the like are/is performed in conjunction with each other or simultaneously.
- a group of memory blocks BLK distinguished from each other in terms of management or an operation among the plurality of memory blocks BLK may be referred to as the super block.
- one super block may store data classified into the same data type. All sizes of each of two or more super blocks may be the same. That is, all numbers of memory blocks BLK included in each of the two or more super blocks may be the same. Alternatively, a size of at least one of the two or more super blocks may be different from that of the remaining super block. That is, the number of memory blocks BLK included in at least one super block among the plurality of super blocks may be different from the number of memory blocks BLK included in the remaining super block. In addition, all of the two or more memory blocks BLK included in each of the two or more super blocks may be positioned in the same memory die. Alternatively, the two or more memory blocks BLK included in each of the two or more super blocks may be positioned in two or more different memory dies.
- Each of the plurality of memory blocks BLK 1 to BLKi includes a plurality of memory cells.
- the plurality of memory cells may be nonvolatile memory cells. Memory cells connected to the same word line among the plurality of memory cells may be defined as one physical page. That is, the memory cell array 110 may include a plurality of physical pages.
- Each of the memory cells of the memory device 100 may be configured as a single level cell (SLC) that stores one data bit, a multi-level cell (MLC) that stores two data bits, a triple level cell (TLC) that stores three data bits, or a quad level cell (QLC) capable of storing four data bits.
- SLC single level cell
- MLC multi-level cell
- TLC triple level cell
- QLC quad level cell
- the voltage generator 120 may generate an internal power voltage by regulating the external power voltage.
- the internal power voltage generated by the voltage generator 120 is used as an operation voltage of the memory device 100 .
- the voltage generator 120 may generate the plurality of operation voltages using an external power voltage or an internal power voltage.
- the voltage generator 120 may be configured to generate various voltages required in the memory device 100 .
- the voltage generator 120 may generate a plurality of erase voltages, a plurality of program voltages, a plurality of pass voltages, a plurality of selected read voltages, and a plurality of unselected read voltages.
- the voltage generator 120 may include a plurality of pumping capacitors that receive the internal power voltage to generate the plurality of operation voltages having various voltage levels, and may generate the plurality of operation voltages by selectively activating the plurality of pumping capacitors in response to the control of the control logic 150 .
- the generated plurality of operation voltages may be supplied to the memory cell array 110 by the address decoder 130 .
- the address decoder 130 is connected to the memory cell array 110 through the row lines RL.
- the address decoder 130 is configured to operate in response to the control of the control logic 150 .
- the address decoder 130 may receive an address ADDR from the control logic 150 .
- the address decoder 130 may decode a block address among the received addresses ADDR.
- the address decoder 130 selects at least one memory block among the memory blocks BLK 1 to BLKi according to the decoded block address.
- the address decoder 130 may decode a row address among the received addresses ADDR.
- the address decoder 130 may select at least one word line among word lines of a selected memory block according to the decoded row address.
- the address decoder 130 may decode a column address among the received addresses ADDR.
- the address decoder 130 may connect the input/output circuit 140 and the memory cell array 110 to each other according to the decoded column address.
- the address decoder 130 may include components such as a row decoder, a column decoder, and an address buffer.
- the input/output circuit 140 may include a plurality of page buffers.
- the plurality of page buffers may be connected to the memory cell array 110 through the bit lines.
- data may be stored in selected memory cells according to data stored in the plurality of page buffers.
- the data stored in the selected memory cells may be sensed through the bit lines, and the sensed data may be stored in the page buffers.
- the control logic 150 may control the address decoder 130 , the voltage generator 120 , and the input/output circuit 140 .
- the control logic 150 may operate in response to the command CMD transmitted from an external device.
- the control logic 150 may generate control signals in response to the command CMD and the address ADDR to control the peripheral circuits.
- FIG. 3 is a diagram illustrating the memory cell array of FIG. 2 according to an embodiment of the present disclosure.
- the memory cell array 110 may include one or more memory dies, and each memory die may include one or more planes including one or more memory blocks.
- the memory cell array 110 includes four memory dies DIE # 0 , DIE # 1 , DIE # 2 , and DIE # 3 , but the number of memory dies is not limited thereto.
- the plurality of memory dies may perform transmission and reception with the memory controller through a plurality of channels, and each channel may be connected to one or more memory dies. For example, when one channel is connected to one memory die, one memory die may receive one command at a time, and the planes included in one memory die may process commands received by the memory die in parallel.
- FIG. 4 is a diagram illustrating a storage device according to an embodiment of the present disclosure.
- the file system 420 of the host device may generate a log for a property of data in response to a request from the application 410 requesting to write data, and allocate a section corresponding to the data based on the log.
- the section may be a group of a plurality of LAs, and allocating the section corresponding to the data may mean allocating some or all of the plurality of LAs included in the section to the corresponding data.
- the plurality of LAs corresponding to one section may be successive LAs.
- the plurality of LAs corresponding to one section may not be successive, but information on the LAs included in each section may be stored in a memory in the host, a memory on the storage device, or the like, and the LA for each section may be managed.
- the file system 420 may determine a section group including the section based on the log allocated to the data.
- the section group may include a plurality of sections, and LAs included in sections in one section group may be successive.
- the LAs included in the sections in one section group may not be successive, but information on the LAs included in each section group may be stored in the memory in the host the memory on the storage device, or the like, and the LA for each section group may be managed.
- the section group may include a first section group in which the file system allocates one of empty sections in the section group as a new section regardless of a section order in the section group, and a second section group in which the file system allocates the new section according to the section order in the section group.
- the host 400 may provide the data to which the log and the section are allocated by the file system 420 to the storage device 50 .
- the data may be provided to the storage device 50 through a device interface (not shown) in the host 400 .
- the file system 420 may divide the memory device 100 in the storage device 50 into a plurality of areas and manage the memory device 100 .
- the file system 420 may divide a storage space in the memory device 100 into a check point area, a segment information table (Segment Info. Table, SIT), a node address table (NAT), a segment summary area (SSA), and a main area.
- the check point area may store a checkpoint.
- the checkpoint may be data that preserves a state up to a logical breakpoint of a system when a system stop event such as a sudden power off occurs during an operation of a computing system, and data may be recovered using the checkpoint.
- the SIT may include valid page information in each segment.
- the NAT may include an identifier for each node configuring an indexing tree of a file stored in the memory device 100 and a PA corresponding to each node identifier.
- the SSA may include summary information of each segment of the main area to be described later.
- the main area may be a space for storing various pieces of directory information, data, file information, and the like used by an actual user. In the present specification, all data and information stored in the main area are defined as data.
- the data stored in the main area may be classified into a node or data according to a type thereof.
- the node may mean an inode or index, and the data may mean a directory or user file data.
- the stored data may be classified according to a temperature, and the temperature of the data may be classified into hot, warm, and cold, respectively.
- the temperature of the data may indicate an access frequency of the data. Accordingly, the data may be classified into a hot node, a warm node, a cold node, hot data, warm data, cold data, and the like by the file system 420 , and may be stored in the main area after the log is allocated.
- the main area may be divided into virtual zones corresponding to the sections allocated by the file system 420 , and a specific log may be allocated to each of the virtual zones.
- the virtual zones may be grouped and divided into virtual zone groups corresponding to the section group determined by the file system 420 .
- each of the virtual zones may include a plurality of segments, and data may be sequentially stored in each segment. At this time, one segment may correspond to one, two, or more LAs.
- the virtual zones may be physically implemented in a host memory (not shown) in the host or a buffer memory device (not shown) of the storage device, or physically implemented by managing information on LAs included for each section and section group in the host memory or the buffer memory device.
- the storage device 50 may include the memory controller 200 and the memory device 100 , and the memory controller 200 may include a zone manager 210 and a zone information storage 220 .
- a super block including a plurality of first physical zones may be referred to as a first super block
- a super block including a plurality of second physical zones may be referred to as a second super block.
- the data stored in the first super block may be data to which the section in the first section group is allocated by the file system 420
- the data stored in the second super block may be data to which the section in the second section group is allocated.
- the flash translation layer (not shown) may transmit the converted PA to the zone manager 210 , and the zone manager 210 may control the memory device 100 to store the data in the received PA.
- the open state may mean a physical zone in which data is currently programmed among physical zones in which data is stored only in a partial area in the physical zone
- the closed state may mean a physical zone in which data is not currently programmed among the physical zones in which data is stored in a partial area in the physical zone.
- the physical zone may further have a ready-to-reset state.
- the ready-to-reset state may mean a state in which a reset operation for causing the physical zone to be in the empty state by erasing the physical zone is performed but the reset operation is not completed according to a state of another physical zone in the super block including the physical zone. This is described in more detail with reference to FIGS. 5 , 6 , and 12 to be described later.
- the zone information storage 220 may store information on the state of each of the physical zones and a time point at which the state of each of the physical zones is switched. In an embodiment, the zone information storage 220 may store information on a time point at which the physical zone is switched to the full state.
- the zone information storage 220 may store the log of the data stored for each physical zone.
- the log of the data may be based on a property such as a type and a temperature of the data, and may be generated by the file system 420 of the host 400 . Data having the same log may be stored in the same physical zone.
- FIG. 5 is a diagram illustrating a super block allocation process of a storage device according to an embodiment of the present disclosure.
- the file system 420 of the host 400 generates the log based on the property of data with respect to the data requested to be written by the application 410 , classifies the data based on the log, and determines a section group including the section to be allocated to the data.
- the data may be divided into first type data to which a first section 422 a of a first section group 421 a is allocated and second type data to which a second section 422 b of a second section group 421 b is allocated.
- a characteristic of the first section 422 a to which a new section may be allocated regardless of a section order in the section group corresponds to a characteristic of the first physical zone 112 a managed for each memory die, and both of the first section 422 a and the first physical zone 112 a have the same characteristics that a reset or erase operation is possible in one section or zone unit.
- FIG. 6 is a diagram illustrating super block management of a storage device according to an embodiment of the present disclosure.
- the memory cell array 110 may include a plurality of memory dies, for example, four memory dies DIE # 0 to DIE # 3 .
- each memory die may include a plurality of planes each including a plurality of memory blocks, for example, four planes PLANE # 0 to PLANE # 3 .
- the memory controller 200 may control the memory cell array 110 of the memory device 100 by dividing the memory cell array 110 into a plurality of super blocks.
- the super blocks may include two or more memory blocks included in the memory cell array 110 .
- the super blocks may include a plurality of physical zones. The super block may be formed over the plurality of memory dies, and as shown in FIG.
- the super block may be formed over all memory dies.
- the super block may be classified into the first super block 111 a and the second super block 111 b according to a type of the physical zone included therein.
- the super block which is a unit by which the memory controller 200 controls the memory device 100 , may include only the first super blocks 111 a including the first physical zones 112 a, may include only the second super blocks 111 b including the second physical zones 112 b, or may include both of the first super block and the second super block.
- the second physical zone 112 b when the second physical zone 112 b is formed over all memory dies as shown in FIG. 6 , the second physical zone 112 b may be operated in a full-die interleaving method. However, different second physical zones 112 b may not be allocated and programmed simultaneously. In addition, since the second physical zone includes only a portion of each of the memory blocks, when a specific physical zone is to be erased, the specific physical zone may not be immediately erased, and when the entire page of each of the memory blocks partially included in a corresponding physical zone may be erased, that is, when the entire physical zone of the super block in which the corresponding physical zone is included may be erased, the corresponding physical zone may be erased.
- the second physical zone may have an advantage that the second physical zone may be operated in the interleaving method of a memory die unit and the second physical zone may be unsuitable for storing data of which an input/output frequency is high in consideration of a limitation during program or erasure. Accordingly, both of the first super block and the second super block are used to store data having a relatively small size or a high input/output frequency in the first physical zone in the first super block and store data having a relatively large size or a low input/output frequency in the second physical zone in the second super block, thereby improving performance of the storage device.
- the physical zones included in the super block may be divided into the full state, the empty state, and the active state, and the second physical zone may further have a ready-to-reset state.
- the reset operation on the physical zone may mean an operation for creating an empty zone by erasing the physical zone.
- the erasure may be performed in a memory block unit, and as shown in FIG. 6 , the second physical zone 112 b includes only a portion of each of the plurality of memory blocks.
- the first physical zone 112 a may include all of one or more memory blocks. Therefore, when a specific first physical zone 112 a is to be reset, a corresponding physical zone may be immediately erased.
- all second physical zones 112 b in the second super block 111 b in which the second physical zone 112 b is included are switched to the ready-to-reset state, all second physical zones 112 b in the corresponding super block may be erased at once, and may be switched to the empty state.
- FIG. 8 is a diagram illustrating a process of allocating the new section of the first section group by the file system according to an embodiment of the present disclosure.
- a third section Section # 3 may be allocated first and all LAs in the third section may be assigned. Therefore, after a full section, a first section Section # 1 may be allocated and the LA for new data may be allocated.
- the file system 420 may allocate one of a 0-th section Section # 0 or a second sections Section # 2 which is an empty section as a new section and assign an LA included therein to the data.
- FIGS. 9 and 10 are diagrams illustrating a process of allocating the new section of the second section group by the file system according to an embodiment of the present disclosure.
- FIG. 17 may be an example of a process of performing the garbage collection on the victim physical zone determined in FIG. 16 .
- data stored in the victim physical zones may be copied and stored in a super block different from the victim super block.
- the victim super block is a first super block
- the copied data may be stored in another first super block.
- the victim super block is the second super block
- the copied data may be stored in another second super block.
- the cost of each of the candidate physical zones may be calculated.
- the cost may be calculated based on the information for each of the candidate physical zones, the information being stored by the zone information storage 220 .
- the cost for each of the candidate physical zones may be calculated based on the log of the data stored in the candidate physical zones and the time point at which each of the candidate physical zones is switched to the full state.
- the host interface 1040 may exchange a command, an address, and data between the memory controller 1000 and the host 400 .
- the host interface 1040 may receive a request, an address, and data from the host 400 , and may output data read from the memory device 100 to the host 400 .
- the host interface 1040 may communicate with the host 400 using various protocols.
- FIG. 23 is a block diagram illustrating a solid state drive (SSD) system to which a storage device according to an embodiment of the present disclosure is applied.
- SSD solid state drive
- the SSD controller 3210 may control the plurality of flash memories 3221 to 322 n in response to the signal received from the host 3100 .
- the SSD controller 3210 may control the plurality of flash memories through a plurality of channels CH 1 to CHn.
- One or more memory dies may be connected to each channel.
- the signal may be signals based on an interface between the host 3100 and the SSD 3200 .
- the signal may be a signal defined by at least one of various communication standards or interfaces.
- the SSD controller 3210 may perform the garbage collection according to a garbage collection performance request received from the host 3100 , or may perform the garbage collection independently.
- the auxiliary power supply 3230 is connected to the host 3100 through the power connector 3002 .
- the auxiliary power supply 3230 may receive the power from the host 3100 and may charge the power.
- the auxiliary power supply 3230 may provide power to the SSD 3200 when power supply from the host 3100 is not smooth.
- the auxiliary power supply 3230 may be positioned in the SSD 3200 or may be positioned outside the SSD 3200 .
- the auxiliary power supply 3230 may be positioned on a main board and may provide auxiliary power to the SSD 3200 .
- the memory module 4200 may operate as a main memory, an operation memory, a buffer memory, or a cache memory of the user system 4000 .
- the memory module 4200 may include a volatile random access memory or a nonvolatile random access memory.
- the application processor 4100 and memory module 4200 may be packaged based on a package on package (POP) and provided as one semiconductor package.
- POP package on package
- the storage module 4400 may include a plurality of nonvolatile memory devices, and the plurality of nonvolatile memory devices may operate identically to the memory device 100 described with reference to FIG. 1 .
- the storage module 4400 may operate identically to the storage device 50 described with reference to FIG. 1 .
- the user interface 4500 may include interfaces for inputting data or an instruction to the application processor 4100 or for outputting data to an external device.
- the user interface 4500 may include user input interfaces such as a keyboard, a keypad, a button, a touch panel, a touch screen, a touch pad, a touch ball, a camera, a microphone, a gyroscope sensor, a vibration sensor, and a piezoelectric element.
- the user interface 4500 may include user output interfaces such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display device, an active matrix OLED (AMOLED) display device, an LED, a speaker, and a monitor.
- LCD liquid crystal display
- OLED organic light emitting diode
- AMOLED active matrix OLED
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Memory System (AREA)
Abstract
A storage device includes a memory device, and a memory controller configured to receive data and a log related to a property of the data from an external host, allocate a super block in which the data in the memory device is to be stored and a physical zone in the super block based on the log of the data, and store information for the log of the data stored for each physical zone and a time point at which a physical zone of a full state in which an empty area does not exist is switched to the full state. The memory controller controls the memory device to perform garbage collection according to the number of physical zones of an empty state, and selects a victim physical zone based on the information for the log of the data and a full state switch time point.
Description
- The present application is a continuation of U.S. patent application Ser. No. 17/752,147 filed on May 24, 2022, which claims benefit under 35 U.S.C. § 119(e) of U.S. Provisional Patent Application No. 63/192,877, filed on May 25, 2021, Korean patent application number 10-2021-0086013, filed on Jun. 30, 2021 and Korean patent application number 10-2022-0060487, filed on May 17, 2022, the entire disclosure of which is incorporated by reference herein.
- The present disclosure relates to an electronic device, and more particularly, to a storage device and a method of operating the same.
- A storage device converts a logical address received from a host into a physical address and uses the physical address, and thus a logical area in the host and a physical zone of the storage device are related to each other. Accordingly, in order to improve performance of an electronic device, a new device or method capable of controlling the host and the storage device is required.
- An embodiment of the present disclosure provides a storage device and a method of operating the same capable of efficient management for each characteristic of data.
- According to an embodiment of the present disclosure, a storage device may include a memory device including a plurality of memory dies; and a memory controller configured to receive data and a log related to a property of the data from an external host, allocate, in the memory device and based on the log, a super block, in which the data is to be stored, and a physical zone in the super block, and store information for the log of the data, which is stored in the physical zone, and a time point, at which the physical zone is switched to a full state. The memory controller may be configured to control, according to a number of physical zones of an empty state, the memory device to perform garbage collection by selecting a victim physical zone based on information for the log and the time point, and wherein a physical zone of the full state is full of data stored therein and a physical zone of the empty state has no data stored therein.
- According to an embodiment of the present disclosure, a method of operating a storage device, which includes a memory device including a plurality of memory dies, and a memory controller configured to receive data and a log related to a property of the data from an external host, allocate, in the memory device and based on the log, a super block, in which the data is to be stored, and a physical zone included in the super block, the method comprising: determining whether to perform garbage collection based on a number of physical zones of an empty state; selecting candidate physical zones from among physical zones of a full state; and determining a victim physical zone based on the log of the data, which is stored in each of the candidate physical zones, and a time point at which each of the candidate physical zones is switched to the full state, wherein a physical zone of the full state is full of data stored therein and a physical zone of the empty state has no data stored therein.
- According to an embodiment of the present disclosure, a storage device may include a memory device including a plurality of memory dies; and a memory controller configured to divide the memory device into a plurality of super blocks and control the memory device, wherein each of one or more super blocks among the plurality of super blocks includes a plurality of physical zones each including a portion of each of memory blocks included in different memory dies. The memory controller may be configured to control the memory device to perform garbage collection based on information on the physical zones.
- According to an embodiment of the present disclosure, an operating method of operating a controller may include selecting, when a number of empty storage units becomes less than a threshold, a super block only having full storage units and ready-to-reset storage units based on costs of super blocks, the cost being defined by a log and a time point of each of full storage units within the respective super blocks; and controlling a memory device to perform a garbage collection operation on the full storage units within the selected super block. The empty storage unit may be full of empty space available to store data therein, the full storage unit may be full of data stored therein, the log may be related to at least an access frequency of data stored in a corresponding full storage unit and is provided from an external, and the time point may indicate when a corresponding full storage unit becomes full of data stored therein.
- According to an embodiment of the present disclosure, an operating method of operating a controller may include selecting, when a number of empty storage units becomes between first and second thresholds, a victim storage unit. The empty storage unit may be full of empty space available to store data therein, the full storage unit may be full of data stored therein, the log may be related to at least an access frequency of data stored in a corresponding full storage unit and is provided from an external, and the time point may indicate when a corresponding full storage unit becomes full of data stored therein.
- The present technology provides a storage device and a method of operating the same capable of efficient management for each characteristic of data.
-
FIG. 1 is a diagram illustrating an electronic device including a storage device according to an embodiment of the present disclosure. -
FIG. 2 is a diagram illustrating a memory device ofFIG. 1 according to an embodiment of the present disclosure. -
FIG. 3 is a diagram illustrating a memory cell array ofFIG. 2 according to an embodiment of the present disclosure. -
FIG. 4 is a diagram illustrating a storage device according to an embodiment of the present disclosure. -
FIG. 5 is a diagram illustrating a super block allocation process of a storage device according to an embodiment of the present disclosure. -
FIG. 6 is a diagram illustrating super block management of a storage device according to an embodiment of the present disclosure. -
FIG. 7 is a diagram illustrating a structure of a section allocated by a file system according to an embodiment of the present disclosure. -
FIG. 8 is a diagram illustrating a process of allocating a new section of a first section group by the file system according to an embodiment of the present disclosure. -
FIGS. 9 and 10 are diagrams illustrating a process of allocating a new section of a second section group by the file system according to an embodiment of the present disclosure. -
FIG. 11 is a diagram illustrating a reset process of the first section group by the file system according to an embodiment of the present disclosure. -
FIG. 12 is a diagram illustrating a reset process of the second section group by the file system according to an embodiment of the present disclosure. -
FIG. 13 is a diagram illustrating classification of data according to an embodiment of the present disclosure. -
FIG. 14 is a diagram illustrating classification of data according to another embodiment of the present disclosure. -
FIG. 15 is a flowchart illustrating garbage collection of a storage device according to an embodiment of the present disclosure. -
FIG. 16 is a flowchart illustrating a process of selecting a victim physical zone of a storage device according to an embodiment of the present disclosure. -
FIG. 17 is a flowchart illustrating a process of performing garbage collection on a victim physical zone in a storage device according to an embodiment of the present disclosure. -
FIG. 18 is a flowchart illustrating a process of selecting a victim physical zone of a storage device according to another embodiment of the present disclosure. -
FIG. 19 is a flowchart illustrating a process of performing garbage collection on a victim physical zone in a storage device according to another embodiment of the present disclosure. -
FIG. 20 is a diagram illustrating a process of copying data in a victim physical zone when garbage collection is performed according to an embodiment of the present disclosure. -
FIG. 21 is a diagram illustrating a memory controller ofFIG. 1 according to another embodiment of the present disclosure. -
FIG. 22 is a block diagram illustrating a memory card system to which a storage device according to an embodiment of the present disclosure is applied. -
FIG. 23 is a block diagram illustrating a solid state drive (SSD) system to which a storage device according to an embodiment of the present disclosure is applied. -
FIG. 24 is a block diagram illustrating a user system to which a storage device according to an embodiment of the present disclosure is applied. - Specific structural or functional descriptions of embodiments according to the concept which are disclosed in the present specification are illustrated only to describe the embodiments according to the concept of the present disclosure. The embodiments according to the concept of the present disclosure may be carried out in various forms and should not be construed as being limited to the embodiments described in the present specification.
-
FIG. 1 is a diagram illustrating an electronic device including a storage device according to an embodiment of the present disclosure. - Referring to
FIG. 1 , thestorage device 50 may include amemory device 100 and amemory controller 200. Thestorage device 50 may be a device that stores data under control of ahost 400 such as a cellular phone, a smartphone, an MP3 player, a laptop computer, a desktop computer, a game player, a TV, a tablet PC, or an in-vehicle infotainment system. Alternatively, thestorage device 50 may be a device that stores data under control of thehost 400 that stores high-size data in one place, such as a server or a data center. - The
storage device 50 may be manufactured as one of various types of storage devices according to a host interface that is a communication method with thehost 400. For example, thestorage device 50 may be configured as one of various types of storage devices such as an SSD, a multimedia card in a form of an MMC, an eMMC, an RS-MMC and a micro-MMC, a secure digital card in a form of an SD, a mini-SD and a micro-SD, a universal serial bus (USB) storage device, a universal flash storage (UFS) device, a personal computer memory card international association (PCMCIA) card type storage device, a peripheral component interconnection (PCI) card type storage device, a PCI express (PCI-e or PCIe) card type storage device, a compact flash (CF) card, a smart media card, and a memory stick. - The
storage device 50 may be manufactured as one of various types of packages. For example, thestorage device 50 may be manufactured as one of various package types, such as a package on package (POP), a system in package (SIP), a system on chip (SOC), a multi-chip package (MCP), a chip on board (COB), a wafer-level fabricated package (WFP), and a wafer-level stack package (WSP). - The
memory device 100 may store data. Thememory device 100 operates under control of thememory controller 200. Thememory device 100 may include a memory cell array (not shown) including a plurality of memory cells that store data. - Each of the memory cells may be configured as a single level cell (SLC) that stores one data bit, a multi-level cell (MLC) that stores two data bits, a triple level cell (TLC) that stores three data bits, or a quad level cell (QLC) capable of storing four data bits
- The memory cell array (not shown) may include a plurality of memory blocks. Each memory block may include a plurality of memory cells. Each memory block may include a plurality of pages. In an embodiment, the page may be a unit for storing data in the
memory device 100 or reading data stored in thememory device 100. The memory block may be a unit for erasing data. - In an embodiment, the
memory device 100 may be a double data rate synchronous dynamic random access memory (DDR SDRAM), a low power double data rate4 (LPDDR4) SDRAM, a graphics double data rate (GDDR) SDRAM, a low power DDR (LPDDR), a Rambus dynamic random access memory (RDRAM), a NAND flash memory, a vertical NAND flash memory, a NOR flash memory, a resistive random access memory (RRAM), a phase-change RAM (PRAM), a magnetoresistive random access memory (MRAM), a ferroelectric random access memory (FRAM), a spin transfer torque random access memory (STT-RAM), or the like. In the present specification, for convenience of description, thememory device 100 is a NAND flash memory. - The
memory device 100 is configured to receive a command and an address from thememory controller 200 and access an area selected by the address in the memory cell array. Thememory device 100 may perform an operation instructed by the command on the area selected by the address. For example, thememory device 100 may perform a write operation (program operation), a read operation, and an erase operation. During the program operation, thememory device 100 may program data in the area selected by the address. During the read operation, thememory device 100 may read data from the area selected by the address. During the erase operation, thememory device 100 may erase data stored in the area selected by the address. - The
memory controller 200 may control an overall operation of thestorage device 50. - In an embodiment, the
memory controller 200 may receive data and a logical address (LA) from thehost 400, and thememory controller 200 may include a firmware (not shown) capable of converting the LA into a physical address (PA) indicating an address of memory cells to which data included in thememory device 100 is to be stored. In addition, thememory controller 200 may store a logical-physical address mapping table configuring a mapping relationship between the LA and the PA in a buffer memory. - The
memory controller 200 may control thememory device 100 to perform the program operation, the read operation, or the erase operation according to a request of thehost 400. During the program operation, thememory controller 200 may provide a program command, the PA, and data to thememory device 100. During the read operation, thememory controller 200 may provide a read command and the PA to thememory device 100. During the erase operation, thememory controller 200 may provide an erase command and the PA to thememory device 100. Alternatively, thememory controller 200 may open or close a physical zone in thememory device 100 according to a request of thehost 400. Opening the physical zone may be generating a map table for a logical address group corresponding to a corresponding physical zone, for example, LAs corresponding to a section allocated with respect to data by the host. Closing the physical zone may indicate that a write request storing data in a corresponding zone does not exist until an open request is received again with respect to the physical zone. Thehost 400 may provide a request to open or close such a physical zone as a separate request, or may provide the request together with another request such as a write request. - In an embodiment, the
memory controller 200 may generate a command, an address, and data independently regardless of the request from thehost 400 and transmit the command, the address, and the data to thememory device 100. For example, thememory controller 200 may provide the command, the address, and the data for performing the program operation, the read operation, and the erase operation accompanying in performing wear leveling, read reclaim, garbage collection, and the like, to thememory device 100. - In an embodiment, the
memory controller 200 may include a flash translation layer. The flash translation layer may convert the LA corresponding to the request received from thehost 400 into the PA and output the PA to thememory device 100. - For example, as described above, the flash translation layer may convert an LA corresponding to a program request into the PA, or convert an LA corresponding to a read request into the PA, or convert an LA corresponding to an erase request into the PA. The flash translation layer may output the converted PA to the
memory device 100, and thememory device 100 may perform an operation on a page or a memory block corresponding to the PA. - In an embodiment, the
memory controller 200 may receive LAs from afile system 420 and convert the received LAs into successive PAs. When the successive PAs are output to thememory device 100, thememory device 100 may perform successive operations corresponding to the successive PAs. At this time, the successive PAs may be determined according to a type of an allocated physical zone. The type of the physical zone is described in more detail with reference toFIGS. 5, 6 , and the like. - In an embodiment, the
storage device 50 may further include the buffer memory (not shown). Thememory controller 200 may control data exchange between thehost 400 and the buffer memory (not shown). Alternatively, thememory controller 200 may temporarily store system data for control of thememory device 100 in the buffer memory. For example, thememory controller 200 may temporarily store data input from thehost 400 in the buffer memory, and then transmit the data temporarily stored in the buffer memory to thememory device 100. - In various embodiments, the buffer memory may be used as an operation memory and a cache memory of the
memory controller 200. The buffer memory may store codes or commands executed by thememory controller 200. Alternatively, the buffer memory may store data processed by thememory controller 200. - In an embodiment, the buffer memory may be implemented as a dynamic random access memory (DRAM) such as a double data rate synchronous dynamic random access memory (DDR SDRAM), a DDR4 SDRAM, a low power double data rate4 (LPDDR4) SDRAM, a graphics double data rate (GDDR) SDRAM, a low power DDR (LPDDR) or a Rambus dynamic random access memory (RDRAM), or a static random access memory (SRAM).
- In various embodiments, the buffer memory may be connected from an outside of the
storage device 50. In this case, volatile memory devices connected to the outside of thestorage device 50 may serve as buffer memories. - In an embodiment, the
memory controller 200 may control at least two ormore memory devices 100. In this case, thememory controller 200 may control thememory devices 100 according to an interleaving method to improve operation performance. The interleaving method may be a method of controlling operations for at least twomemory devices 100 to overlap with each other. Alternatively, the interleaving method may be a method of controlling operations on a plurality of groups divided within onememory device 100 to overlap. At this time, a group may be one or more memory die units or one or more memory plane units. - The
host 400 may communicate with thestorage device 50 using at least one of various communication standards or interfaces such as a universal serial bus (USB), a serial AT attachment (SATA), a serial attached SCSI (SAS), a high speed interchip (HSIC), a small computer system interface (SCSI), a peripheral component interconnection (PCI), a PCI express (PCIe), a nonvolatile memory express (NVMe), a universal flash storage (UFS), a secure digital (SD), a multi-media card (MMC), an embedded MMC (eMMC), a dual in-line memory module (DIMM), a registered DIMM (RDIMM), and a load reduced DIMM (LRDIMM). - In an embodiment, the
host 400 may include anapplication 410. Theapplication 410 may be also referred to as an application program, and may be software executed on an operating system (OS). Theapplication 410 may process data in response to a user input. For example, theapplication 410 may process data in response to the user input, and transmit a request for storing the processed data in thememory device 100 of thestorage device 50 to thefile system 420. - The
file system 420 may allocate an LA to which data is to be stored, in response to the request transmitted from the application. In an embodiment, thefile system 420 may be a log structure file system (LFS). The LFS may generate a log in consideration of a property of input data, and allocate a section corresponding to data based on the log. At this time, the section may be a set of LAs. Therefore, allocation of the section may mean that LAs corresponding to corresponding data are allocated. The data to which the section is allocated may be sequentially stored in a storage area of thememory device 100 corresponding to the section. For example, the LFS may be a flash friendly file system (F2FS). The F2FS may be a log-based file system designed in consideration of a characteristic of a solid state drive (SSD), and may increase an internal parallelism of the SSD by using a multi-head log. Different sections may be allocated to data for which different logs are generated. The LFS may not overwrite data. When the LFS corrects data, the LFS may newly allocate an LA corresponding to data to be corrected and write the data to a physical zone corresponding thereto. - Data requested to be written by the
application 410 may be stored in a host memory (not shown) in the host, and may be flushed to thestorage device 50 according to a request from the application by a device interface (not shown). The host memory may include volatile memories such as a DRAM, an SDRAM, a DDR SDRAM, an LPDDR SDRAM, and a GRAM or nonvolatile memories such as an FRAM, a ReRAM, an STT-MRAM, and a PRAM. -
FIG. 2 is a diagram illustrating the memory device ofFIG. 1 according to an embodiment of the present disclosure. - Referring to
FIG. 2 , thememory device 100 may include amemory cell array 110, avoltage generator 120, anaddress decoder 130, an input/output circuit 140, and acontrol logic 150. - The
memory cell array 110 includes a plurality of memory blocks BLK1 to BLKi. The plurality of memory blocks BLK1 to BLKi are connected to theaddress decoder 130 through row lines RL. The plurality of memory blocks BLK1 to BLKi may be connected to the input/output circuit 140 through column lines CL. In an embodiment, the row lines RL may include word lines, source select lines, and drain select lines. In an embodiment, the column lines CL may include bit lines. - In an embodiment, the
memory cell array 110 may include one or more memory dies, and each memory die may include one or more planes including one or more memory blocks. - In addition, the plurality of memory blocks BLK included in the
memory cell array 110 may be grouped into two or more super blocks. The super block may be a unit in which thecontrol logic 150 manages the plurality of memory blocks BLK included in thememory cell array 110. The super block may include the plurality of memory blocks BLK. One super block may be a set of memory blocks BLK on which the read operation, the write operation, and/or the like are/is performed simultaneously or in the same time period, the read operation, the write operation, and/or the like are/is performed in conjunction with or in relation to each other, a set of memory blocks BLK on which the read operation, the write operation, and/or the like are/is performed with respect to one command, or a set of memory blocks BLK on which the read operation, the write operation, and/or the like are/is performed in conjunction with each other or simultaneously. In addition, a group of memory blocks BLK distinguished from each other in terms of management or an operation among the plurality of memory blocks BLK may be referred to as the super block. In an embodiment, one super block may store data classified into the same data type. All sizes of each of two or more super blocks may be the same. That is, all numbers of memory blocks BLK included in each of the two or more super blocks may be the same. Alternatively, a size of at least one of the two or more super blocks may be different from that of the remaining super block. That is, the number of memory blocks BLK included in at least one super block among the plurality of super blocks may be different from the number of memory blocks BLK included in the remaining super block. In addition, all of the two or more memory blocks BLK included in each of the two or more super blocks may be positioned in the same memory die. Alternatively, the two or more memory blocks BLK included in each of the two or more super blocks may be positioned in two or more different memory dies. - Each of the plurality of memory blocks BLK1 to BLKi includes a plurality of memory cells. In an embodiment, the plurality of memory cells may be nonvolatile memory cells. Memory cells connected to the same word line among the plurality of memory cells may be defined as one physical page. That is, the
memory cell array 110 may include a plurality of physical pages. Each of the memory cells of thememory device 100 may be configured as a single level cell (SLC) that stores one data bit, a multi-level cell (MLC) that stores two data bits, a triple level cell (TLC) that stores three data bits, or a quad level cell (QLC) capable of storing four data bits. - In an embodiment, the
voltage generator 120, theaddress decoder 130, and the input/output circuit 140 may be collectively referred to as a peripheral circuit. The peripheral circuit may drive thememory cell array 110 under control of thecontrol logic 150. The peripheral circuit may drive thememory cell array 110 to perform the program operation, the read operation, and the erase operation. - The
voltage generator 120 is configured to generate a plurality of operation voltages using an external power voltage supplied to thememory device 100. Thevoltage generator 120 operates in response to the control of thecontrol logic 150. - In an embodiment, the
voltage generator 120 may generate an internal power voltage by regulating the external power voltage. The internal power voltage generated by thevoltage generator 120 is used as an operation voltage of thememory device 100. - In an embodiment, the
voltage generator 120 may generate the plurality of operation voltages using an external power voltage or an internal power voltage. Thevoltage generator 120 may be configured to generate various voltages required in thememory device 100. For example, thevoltage generator 120 may generate a plurality of erase voltages, a plurality of program voltages, a plurality of pass voltages, a plurality of selected read voltages, and a plurality of unselected read voltages. - The
voltage generator 120 may include a plurality of pumping capacitors that receive the internal power voltage to generate the plurality of operation voltages having various voltage levels, and may generate the plurality of operation voltages by selectively activating the plurality of pumping capacitors in response to the control of thecontrol logic 150. - The generated plurality of operation voltages may be supplied to the
memory cell array 110 by theaddress decoder 130. - The
address decoder 130 is connected to thememory cell array 110 through the row lines RL. Theaddress decoder 130 is configured to operate in response to the control of thecontrol logic 150. Theaddress decoder 130 may receive an address ADDR from thecontrol logic 150. Theaddress decoder 130 may decode a block address among the received addresses ADDR. Theaddress decoder 130 selects at least one memory block among the memory blocks BLK1 to BLKi according to the decoded block address. Theaddress decoder 130 may decode a row address among the received addresses ADDR. Theaddress decoder 130 may select at least one word line among word lines of a selected memory block according to the decoded row address. In an embodiment, theaddress decoder 130 may decode a column address among the received addresses ADDR. Theaddress decoder 130 may connect the input/output circuit 140 and thememory cell array 110 to each other according to the decoded column address. - For example, the
address decoder 130 may include components such as a row decoder, a column decoder, and an address buffer. - The input/
output circuit 140 may include a plurality of page buffers. The plurality of page buffers may be connected to thememory cell array 110 through the bit lines. During the program operation, data may be stored in selected memory cells according to data stored in the plurality of page buffers. - During the read operation, the data stored in the selected memory cells may be sensed through the bit lines, and the sensed data may be stored in the page buffers.
- The
control logic 150 may control theaddress decoder 130, thevoltage generator 120, and the input/output circuit 140. Thecontrol logic 150 may operate in response to the command CMD transmitted from an external device. Thecontrol logic 150 may generate control signals in response to the command CMD and the address ADDR to control the peripheral circuits. -
FIG. 3 is a diagram illustrating the memory cell array ofFIG. 2 according to an embodiment of the present disclosure. - Referring to
FIG. 3 , thememory cell array 110 may include one or more memory dies, and each memory die may include one or more planes including one or more memory blocks. InFIG. 3 , thememory cell array 110 includes four memory diesDIE # 0,DIE # 1,DIE # 2, andDIE # 3, but the number of memory dies is not limited thereto. The plurality of memory dies may perform transmission and reception with the memory controller through a plurality of channels, and each channel may be connected to one or more memory dies. For example, when one channel is connected to one memory die, one memory die may receive one command at a time, and the planes included in one memory die may process commands received by the memory die in parallel. -
FIG. 4 is a diagram illustrating a storage device according to an embodiment of the present disclosure. - Referring to
FIG. 4 , thefile system 420 of the host device may generate a log for a property of data in response to a request from theapplication 410 requesting to write data, and allocate a section corresponding to the data based on the log. The section may be a group of a plurality of LAs, and allocating the section corresponding to the data may mean allocating some or all of the plurality of LAs included in the section to the corresponding data. In an embodiment, the plurality of LAs corresponding to one section may be successive LAs. Alternatively, the plurality of LAs corresponding to one section may not be successive, but information on the LAs included in each section may be stored in a memory in the host, a memory on the storage device, or the like, and the LA for each section may be managed. In addition, thefile system 420 may determine a section group including the section based on the log allocated to the data. The section group may include a plurality of sections, and LAs included in sections in one section group may be successive. Alternatively, the LAs included in the sections in one section group may not be successive, but information on the LAs included in each section group may be stored in the memory in the host the memory on the storage device, or the like, and the LA for each section group may be managed. In an embodiment, the section group may include a first section group in which the file system allocates one of empty sections in the section group as a new section regardless of a section order in the section group, and a second section group in which the file system allocates the new section according to the section order in the section group. - In addition, the
host 400 may provide the data to which the log and the section are allocated by thefile system 420 to thestorage device 50. In an example, the data may be provided to thestorage device 50 through a device interface (not shown) in thehost 400. Thefile system 420 may divide thememory device 100 in thestorage device 50 into a plurality of areas and manage thememory device 100. In an embodiment, thefile system 420 may divide a storage space in thememory device 100 into a check point area, a segment information table (Segment Info. Table, SIT), a node address table (NAT), a segment summary area (SSA), and a main area. The check point area may store a checkpoint. The checkpoint may be data that preserves a state up to a logical breakpoint of a system when a system stop event such as a sudden power off occurs during an operation of a computing system, and data may be recovered using the checkpoint. The SIT may include valid page information in each segment. The NAT may include an identifier for each node configuring an indexing tree of a file stored in thememory device 100 and a PA corresponding to each node identifier. The SSA may include summary information of each segment of the main area to be described later. The main area may be a space for storing various pieces of directory information, data, file information, and the like used by an actual user. In the present specification, all data and information stored in the main area are defined as data. At this time, the data stored in the main area may be classified into a node or data according to a type thereof. The node may mean an inode or index, and the data may mean a directory or user file data. In addition, the stored data may be classified according to a temperature, and the temperature of the data may be classified into hot, warm, and cold, respectively. Herein, the temperature of the data may indicate an access frequency of the data. Accordingly, the data may be classified into a hot node, a warm node, a cold node, hot data, warm data, cold data, and the like by thefile system 420, and may be stored in the main area after the log is allocated. Therefore, the main area may be divided into virtual zones corresponding to the sections allocated by thefile system 420, and a specific log may be allocated to each of the virtual zones. In addition, the virtual zones may be grouped and divided into virtual zone groups corresponding to the section group determined by thefile system 420. In addition, each of the virtual zones may include a plurality of segments, and data may be sequentially stored in each segment. At this time, one segment may correspond to one, two, or more LAs. The virtual zones may be physically implemented in a host memory (not shown) in the host or a buffer memory device (not shown) of the storage device, or physically implemented by managing information on LAs included for each section and section group in the host memory or the buffer memory device. - The
storage device 50 may include thememory controller 200 and thememory device 100, and thememory controller 200 may include azone manager 210 and azone information storage 220. - The
memory controller 200 may receive data from thehost 400. The data may be data to which the log and the section are allocated by thefile system 420. Thezone manager 210 may allocate a super block in which data is to be stored based on the log of the received data. The super block may include a plurality of physical zones, and a shape of the physical zone included therein is different according to a type of the super block, and thus allocating the super block may be determining the shape of the physical zone to which the data is stored. That is, it may be determined which physical zone is required to be included in a first physical zone including one or more memory blocks in one memory die and a second physical zone including a portion of each of the memory blocks included in different memory dies. At this time, a super block including a plurality of first physical zones may be referred to as a first super block, and a super block including a plurality of second physical zones may be referred to as a second super block. At this time, the data stored in the first super block may be data to which the section in the first section group is allocated by thefile system 420, and the data stored in the second super block may be data to which the section in the second section group is allocated. - The
zone manager 210 may provide information on the type of the physical zone in which data is to be stored to a flash translation layer (not shown), and the flash translation layer (not shown) may convert the LA of the data to which the section is allocated into the PA, based on the information on the type of the physical zone in which the data is to be stored. In an embodiment, the LAs included in the section may be assigned to the data to which the section is allocated, and the flash translation layer (not shown) may convert the LA of the data to be stored into successive PAs in the physical zone determined by thezone manager 210. - The flash translation layer (not shown) may transmit the converted PA to the
zone manager 210, and thezone manager 210 may control thememory device 100 to store the data in the received PA. - In addition, the
zone information storage 220 may store state information of each of the physical zones allocated by thezone manager 210. Each of the physical zones may be divided into a full state, an empty state, and an active state. The full state may mean a state in which data is stored in all areas in the physical zone and an empty area does not exist in the zone. The empty state may mean a state in which the physical zone is empty without data stored in an area in the physical zone. The active state may mean a state in which data is stored only in a partial area in the physical zone, and may be an open state or a closed state. The open state may mean a physical zone in which data is currently programmed among physical zones in which data is stored only in a partial area in the physical zone, and the closed state may mean a physical zone in which data is not currently programmed among the physical zones in which data is stored in a partial area in the physical zone. In addition, according to a type of the physical zone, the physical zone may further have a ready-to-reset state. The ready-to-reset state may mean a state in which a reset operation for causing the physical zone to be in the empty state by erasing the physical zone is performed but the reset operation is not completed according to a state of another physical zone in the super block including the physical zone. This is described in more detail with reference toFIGS. 5, 6, and 12 to be described later. Thezone information storage 220 may store information on the state of each of the physical zones and a time point at which the state of each of the physical zones is switched. In an embodiment, thezone information storage 220 may store information on a time point at which the physical zone is switched to the full state. - In addition, the
zone information storage 220 may store the log of the data stored for each physical zone. The log of the data may be based on a property such as a type and a temperature of the data, and may be generated by thefile system 420 of thehost 400. Data having the same log may be stored in the same physical zone. - The
zone information storage 220 may control to store state information for each zone and the log of the stored data in a buffer memory (not shown) existing inside or outside thememory controller 200 or a portion of thememory device 100. Thezone information storage 220 may provide the stored information for the physical zones to select a victim physical zone when the garbage collection is performed. -
FIG. 5 is a diagram illustrating a super block allocation process of a storage device according to an embodiment of the present disclosure. - Referring to
FIGS. 1 and 5 , thefile system 420 of thehost 400 generates the log based on the property of data with respect to the data requested to be written by theapplication 410, classifies the data based on the log, and determines a section group including the section to be allocated to the data. According to various criteria, the data may be divided into first type data to which afirst section 422 a of afirst section group 421 a is allocated and second type data to which asecond section 422 b of asecond section group 421 b is allocated. The data to which thefirst section 422 a in thefirst section group 421 a is allocated by the file system may be stored in a firstphysical zone 112 a in a firstsuper block 111 a of thememory device 100 and the data to which thesecond section 422 b in thesecond section group 421 b is allocated may be stored in a secondphysical zone 112 b in a secondsuper block 111 b of thememory device 100, under the control of thememory controller 200. Thefirst section group 421 a may correspond to the firstsuper block 111 a, and thus thefirst section 422 a corresponds to the firstphysical zone 112 a. A characteristic of thefirst section 422 a to which a new section may be allocated regardless of a section order in the section group corresponds to a characteristic of the firstphysical zone 112 a managed for each memory die, and both of thefirst section 422 a and the firstphysical zone 112 a have the same characteristics that a reset or erase operation is possible in one section or zone unit. In addition, a characteristic of thesecond section 422 b allocating a new section according to the section order in the section group corresponds to a characteristic of the secondphysical zone 112 b formed over the plurality of memory dies, and both of thesecond section 422 b and the secondphysical zone 112 b have the same characteristics that the reset or erase operation is impossible in one section or zone unit, and the reset or erase operation is performed in a section group or super block unit after both of thesecond section group 421 b and the secondsuper block 111 b to which each belongs are in a state in which both of thesecond section group 421 b and the secondsuper block 111 b may be reset or erased. A shape of the firstphysical zone 112 a and the secondphysical zone 112 b is described in more detail with reference toFIG. 6 , and the allocation and reset of thefirst section 422 a and thesecond section 422 b are described in more detail with reference toFIGS. 7 to 11 . - The
first sections 422 a in thefirst section group 421 a may be allocated regardless of the section order, and thememory controller 200 may allocate the firstphysical zone 112 a formed as an area in one memory die in response to a request for allocating a physical zone in which data to which the section is allocated is to be stored from thehost 400. Thesecond sections 422 b in thesecond section group 422 b may be allocated according to the section order, and thememory controller 200 may allocate the secondphysical zone 112 b formed as an area including some of the memory blocks in the plurality of memory dies in response to the request for allocating the physical zone in which the data to which the section is allocated is to be stored from thehost 400. When thememory controller 200 replies with information that an additional allocable physical zone does not exist in a currently used super block with respect to the physical zone allocation request of thehost 400, thefile system 420 may allocate a new section group, and then allocate a section in the new section group. In response to this, thememory controller 200 may allocate a new super block and a new physical zone included therein, and then store data to which the new section is allocated. Alternatively, thefile system 420 may allocate the new section group and the section included therein by itself without receiving reply information for the super block and the physical zone from thememory controller 200. -
FIG. 6 is a diagram illustrating super block management of a storage device according to an embodiment of the present disclosure. - Referring to
FIGS. 1, 4, and 6 , thememory cell array 110 may include a plurality of memory dies, for example, four memory diesDIE # 0 to DIE #3. In addition, each memory die may include a plurality of planes each including a plurality of memory blocks, for example, fourplanes PLANE # 0 to PLANE #3. Thememory controller 200 may control thememory cell array 110 of thememory device 100 by dividing thememory cell array 110 into a plurality of super blocks. The super blocks may include two or more memory blocks included in thememory cell array 110. The super blocks may include a plurality of physical zones. The super block may be formed over the plurality of memory dies, and as shown inFIG. 6 , the super block may be formed over all memory dies. The super block may be classified into the firstsuper block 111 a and the secondsuper block 111 b according to a type of the physical zone included therein. In the storage device according to an embodiment of the present disclosure, the super block, which is a unit by which thememory controller 200 controls thememory device 100, may include only the firstsuper blocks 111 a including the firstphysical zones 112 a, may include only the secondsuper blocks 111 b including the secondphysical zones 112 b, or may include both of the first super block and the second super block. - In a case of the first
physical zone 112 a included in the firstsuper block 111 a, one or more blocks may be included in one memory die. For example, as shown inFIG. 6 , a zone including one memory block included in theplanes 0 to 3 for each memory die may be designated as one zone, and thus the firstsuper block 111 a may include four firstphysical zones 112 a formed one by one for each memory die. - The second
physical zone 112 b included in the secondsuper block 111 b may include a portion of each of the blocks included in different memory dies. For example, as shown inFIG. 6 , the secondphysical zone 112 b may be formed over the entire four memory diesDIE # 0 to DIE #3, and may include only a portion of each of the memory blocks included in each plane. For example, as shown inFIG. 6 , only ¼ of pages of each of the memory blocks included in each plane may be included. Accordingly, the secondsuper block 111 b may include four secondphysical zones 112 b formed over all memory dies and formed to include only a partial page of each of the memory block. - In an embodiment, sizes of the first
super block 111 a and the secondsuper block 111 b may be the same. That is, the firstsuper block 111 a and the secondsuper block 111 b may include the same number of memory blocks. In addition, sizes of the firstphysical zone 112 a and the secondphysical zone 112 b may be the same. That is, the number of pages included in the firstphysical zone 112 a and the secondphysical zone 112 b may be the same. The firstphysical zone 112 a may be formed in one memory die. In contrast, the secondphysical zone 112 b may be formed over the plurality of memory dies. Accordingly, the secondphysical zone 112 b may be operated in a die interleaving method. In particular, when the secondphysical zone 112 b is formed over all memory dies as shown inFIG. 6 , the secondphysical zone 112 b may be operated in a full-die interleaving method. However, different secondphysical zones 112 b may not be allocated and programmed simultaneously. In addition, since the second physical zone includes only a portion of each of the memory blocks, when a specific physical zone is to be erased, the specific physical zone may not be immediately erased, and when the entire page of each of the memory blocks partially included in a corresponding physical zone may be erased, that is, when the entire physical zone of the super block in which the corresponding physical zone is included may be erased, the corresponding physical zone may be erased. Therefore, the second physical zone may have an advantage that the second physical zone may be operated in the interleaving method of a memory die unit and the second physical zone may be unsuitable for storing data of which an input/output frequency is high in consideration of a limitation during program or erasure. Accordingly, both of the first super block and the second super block are used to store data having a relatively small size or a high input/output frequency in the first physical zone in the first super block and store data having a relatively large size or a low input/output frequency in the second physical zone in the second super block, thereby improving performance of the storage device. - As described above, the physical zones included in the super block, such as the first physical zone and the second physical zone, may be divided into the full state, the empty state, and the active state, and the second physical zone may further have a ready-to-reset state. The reset operation on the physical zone may mean an operation for creating an empty zone by erasing the physical zone. The erasure may be performed in a memory block unit, and as shown in
FIG. 6 , the secondphysical zone 112 b includes only a portion of each of the plurality of memory blocks. On the other hand, the firstphysical zone 112 a may include all of one or more memory blocks. Therefore, when a specific firstphysical zone 112 a is to be reset, a corresponding physical zone may be immediately erased. On the other hand, in a case where a specific secondphysical zone 112 b is to be reset, when all pages of each of the memory blocks partially included in the corresponding physical zone may be erased, that is, when the entire physical zone of the super block in which the corresponding physical zone is included may be erased, the corresponding physical zone may be erased. Therefore, when the reset operation is performed on the secondphysical zone 112 b, the corresponding physical zone may not be immediately erased, and may be switched to the ready-to-reset state. When all secondphysical zones 112 b in the secondsuper block 111 b in which the secondphysical zone 112 b is included are switched to the ready-to-reset state, all secondphysical zones 112 b in the corresponding super block may be erased at once, and may be switched to the empty state. -
FIG. 7 is a diagram illustrating a structure of the section allocated by the file system according to an embodiment of the present disclosure. - Referring to
FIG. 7 , the section may include a plurality of LAs. The LAs included in one section may be successive addresses or non-successive addresses. Allocation of the section for data may mean that the LA in the section is allocated. Information on the addresses included in each section may be included in the memory in the host or the memory in the storage device. The LA may be sequentially allocated according to a size of data for which writing is requested. For example, when a write request for data D1 and D2 of a specific size exists, and the sections ofFIG. 7 are allocated to both of the data D1 and D2, LAs of LA1 to LA3 may be allocated to D1, and LAs of LA4 and LA5 may be allocated to D2. -
FIG. 8 is a diagram illustrating a process of allocating the new section of the first section group by the file system according to an embodiment of the present disclosure. - Referring to
FIG. 8 , a section group to which a new section may be allocated regardless of the section order in the section group may be defined as afirst section group 421 a. At this time, LAs included in the sections in the section group may be successive with each other, and as the number of section in the section group increases, the LA may increase. Therefore, the section order may mean a section number order in the section group, which may mean an order in a direction in which the LA increases. Alternatively, the LAs included in the sections in the section group may not be successive with each other. In this case, the section order may be determined based on information on a section stored in a separate memory and LAs included for each section group. In a case of thefirst section group 421 a, since the section is allocated and the LA may be allocated regardless of the section order, a thirdsection Section # 3 may be allocated first and all LAs in the third section may be assigned. Therefore, after a full section, a firstsection Section # 1 may be allocated and the LA for new data may be allocated. When all LAs of the first section, which are open sections, are assigned to the data and the first section becomes the full section, thefile system 420 may allocate one of a 0-thsection Section # 0 or a secondsections Section # 2 which is an empty section as a new section and assign an LA included therein to the data. -
FIGS. 9 and 10 are diagrams illustrating a process of allocating the new section of the second section group by the file system according to an embodiment of the present disclosure. - Referring to
FIGS. 9 and 10 , a section group to which a new section may be allocated according to the section order in the section group may be defined as asecond section group 421 b. As shown inFIG. 9 , in the second section group, the 0-thsection Section # 0 may be opened first and an LA included therein may be assigned to the data, when the 0-th section becomes the full section, a firstsection Section # 1 which is a next section may be allocated as a new section, and thus data may be stored. When all sections in thesecond section group 421 b are the full sections as shown inFIG. 10 , after thefile system 420 allocates the newsecond section group 421 b, thefile system 420 may allocate the 0-thsection Section # 0 which is a first section in the newsecond section group 421 b and assign an LA included therein to the data. At this time, in a case of thesecond section group 421 b, since the section is allocated according to the section order in the section group, and when the thirdsection Section # 3 which is a last section is the full section, the empty section may not exist among sections prior thereto. Therefore, in a case of thesecond section group 421 b, the empty section in the section group is required to be found, and when a section of a next section in thesecond section group 421 b does not exist, thefile system 420 allocates a newsecond section group 421 b. -
FIG. 11 is a diagram illustrating a reset process of the first section group by the file system according to an embodiment of the present disclosure. - Referring to
FIG. 11 , in thefirst section group 421 a, 1) when resetting the 0-thsection Section # 0, 2) when all data corresponding to the LAs in the 0-th section are discarded, the 0-th section may become the empty section, and thus a reset operation is completed. In addition, 3) when resetting the firstsection Section # 1, 4) when all data corresponding to the LAs in the first section are discarded, the first section may become the empty section, and thus the reset operation may be completed. In addition, 5) when resetting the secondsection Section # 2, 6) when all data corresponding to the LAs in the second section are discarded, the second section may become the empty section, and thus the reset operation may be completed. That is, when the reset operation is performed on one section included in thefirst section group 421 a, data corresponding to the LAs in a corresponding section may be discarded in response thereto, the corresponding section may become the empty section immediately, and thus the reset operation may be completed. At this time, discarding the data corresponding to the LAs in the reset operation on the section may mean releasing a mapping relationship between the LA and the data. The reset operation may be performed when all data corresponding to the LAs in a specific section are invalid, and when valid data exists, the valid data may be mapped to an LA of another section, and data corresponding to the LA may be invalidated, and then the reset operation may be performed. The LAs included in the section of which reset is completed may be re-assigned to new data. The reset operation may be performed by the file system. -
FIG. 12 is a diagram illustrating a reset process of the second section group by the file system according to an embodiment of the present disclosure. - Referring to
FIGS. 5 and 12 , in thesecond section group 421 b, 1) when resetting the 0-thsection Section # 0, 2) the data corresponding to the LAs in the 0-th section are not immediately discarded, information indicating that the 0-th section is in the ready-to-reset state (Ready to Reset Section) is stored in a bitmap. In addition, 3) when resetting the firstsection Section # 1, 4) the data corresponding to the LAs in the first section are not immediately discarded, and information indicating that the first section is in the ready-to-reset state (Ready to Reset Section) is stored in the bitmap. In addition, 5) when resetting the secondsection Section # 2, 6) the data corresponding to the LAs in the second section are not immediately discarded, and information indicating that the second section is in the ready-to-reset state (Ready to Reset Section) is stored in the bitmap. In addition, 7) when resetting the thirdsection Section # 3, 8) the data corresponding to the LAs in the third section are not immediately discarded, and information indicating that the third section is in the ready-to-reset state (Ready to Reset Section) is stored in the bitmap. 9) Accordingly, when the information indicating that all sections of thesecond section group 421 b is ready to reset is stored in the bitmap, all data corresponding to all LAs in all sections may be discarded, all sections in thesecond section group 421 b may become empty sections at once, and thus the reset operation may be completed. That is, in a case of thesecond section group 421 b, when only some sections are reset, the data may not be immediately discarded and the section may not become the empty section, but all sections in thesecond section group 421 b may become the empty sections simultaneously by discarding the data corresponding to the LAs of all sections included in thesecond section group 421 b after the information indicating that all sections are in the ready-to-reset state is stored. When the reset operation is completed, the information indicating that all sections in thesecond section group 421 b are in the ready-to-reset state may be deleted. At this time, the bitmap storing the information indicating that all sections in thesecond section group 421 b are in the ready-to-reset state may be included in an arbitrary position in the storage device. At this time, discarding the data corresponding to the LAs in the reset operation on the section may mean releasing the mapping relationship between the LA and the data. The reset operation may be performed when all data corresponding to the LAs in a specific section are invalid, and when valid data exists, the valid data may be mapped to an LA of another section, and data corresponding to the LA may be invalidated, and then the reset operation may be performed. The LAs included in the section of which reset is completed may be re-assigned to new data. The reset operation may be performed by the file system. That is, the reset operation of the second section corresponds to the reset operation of the secondphysical zone 112 b in the secondsuper block 111 b ofFIG. 5 . That is, when the reset operation is performed on thesecond section 422 b, the second section is in the ready-to-reset state, and thus the secondphysical zone 112 b corresponding to thesecond section 422 b is not immediately erased, and is switched to the ready-to-reset state. Later, when allsecond sections 422 b in thesection group 421 b in which thesecond section 422 b is included are switched to the ready-to-reset state, that is, when all secondphysical zones 112 b in the secondsuper block 111 b in which the secondphysical zone 112 b is included are switched to the ready-to-reset state, data corresponding to the LAs of allsecond sections 422 b in thesection group 421 b are discarded, all sections in thesecond section group 421 b become the empty section simultaneously, and all secondphysical zones 112 b in the secondsuper block 111 b corresponding thereto are erased, and become the empty state. -
FIG. 13 is a diagram illustrating classification of data according to an embodiment of the present disclosure. - In an embodiment, data requested to be written by the application may be classified into the node or the data according to the type thereof, and may be classified into hot, warm, and cold according to the temperature. Accordingly, the
file system 420 may generate the log of a hot node, a warm node, a cold node, hot data, warm data, cold data, or the like with respect to the data according to the property thereof. For example, the hot node may be an inode or direct node block for a directory, and thus the hot node may be data of which an overwrite or update frequency is very high and a probability in which the hot node becomes an object of garbage collection may also be high. The worm node may be an inode or direct node block for a regular file, and thus the worm node may be data of which the overwrite or update frequency is high and a probability in which the worm node becomes the object of the garbage collection is significant. The cold node may be an indirect node block, and thus the cold node may be data in which the overwrite and update frequency is low but a probability in which the cold node becomes the object of the garbage collection is very high. The hot data may be a directory entry block, quota, or file data of a relatively small size of 64 KB or less, and thus the hot data may be data in which the overwrite or update frequency is high compared to another data and a probability in which the hot data becomes the object of the garbage collection is high. The worm data may be a data block created by a user, and may be file data of a relatively large size of, for example, 64 KB or more. Therefore, the worm data may be data in which the update frequency is relatively high and a probability in which the worm data becomes the object of the garbage collection is relatively low. The cold data may be data moved by cleaning or garbage collection, a data block classified as the cold data by the user, or file data having a specific format (ex, .db, .jpg, or the like), for example, may be multimedia file data. Therefore, the cold data may be data in which the overwrite frequency is low and a probability in which the cold data becomes the object of the garbage collection is relatively low. However, the classification of such data is not limited to such a method, and may be modified in a method having various criteria including a method inFIG. 14 below. In the present specification, the cleaning of the file system may mean releasing the relationship between the LAs in a victim section and data corresponding thereto after allocating another section to valid data corresponding to the LA in the victim section in order to secure the empty section from the host's point of view. The garbage collection of the storage device may mean erasing a corresponding physical zone after moving the valid data among the data stored in the victim physical zone of the memory device to another physical zone. That is, the cleaning and the garbage collection may mean the same operation as a result. - Referring to
FIG. 13 , thefirst section 422 a included in the first section group may be allocated to the hot node, the warm node, the cold node, and the hot data, and thesecond section 422 b included in the second section group may be allocated to the warm data and the cold data. At this time, the hot node, the warm node, the cold node, and the hot data to which the first section included in the first section group is allocated may be defined as first type data, the warm data and the cold data to which the second section included in the second section group is allocated may be defined as second type data. However, the classification of each data included in the first section group and the second section group is not limited to that shown inFIG. 13 , and the data may be variously classified according to setting. Preferably, the first type data may be data having a relatively small size or having a high probability in which the data is updated or overwritten. In addition, the second type data may be data having a relatively large size or having a low possibility in which the data is updated or overwritten. Accordingly, the second type data may be data that is more affected by input/output performance than the first type data. At this time, the data classified as the first type data may be allocated to the sections in one first section group regardless of a specific property thereof. Alternatively, even though the same first type data, when the properties such as the data type (the node, or the data) or the temperature (hot, warm, cold) are different, sections in a plurality of different first section groups may be allocated accordingly. Similarly, the sections within one second section group may be allocated to the data classified as the second type data regardless of the specific property thereof. Alternatively, even though the same second type data, when properties such as the data type (the node, or the data) or the temperature (hot, warm, cold) are different, sections in a plurality of different second section groups may be allocated accordingly. The first type of data to which thefirst section 422 a is allocated may be stored in the firstphysical zone 112 a in the firstsuper block 111 a. In addition, the second type of data to which thesecond section 422 b is allocated may be stored in the secondphysical zone 112 b in the secondsuper block 111 b. -
FIG. 14 is a diagram illustrating classification of data according to another embodiment of the present disclosure. - Referring to
FIG. 14 , data may be classified according to a classification criterion different from that ofFIG. 13 . InFIG. 14 , data is classified into a hot node, a warm node, hot data, warm data, and cold data. The hot node may include an inode for a directory, an inode for a file, and a direct node, and the warm node may include an indirect node, a directory entry block, and a quota. In addition, the hot data may include small-sized file data, the warm data may include medium-sized file data, and the cold data may be large-sized file data or file data of all sizes having a specific format. That is, the classification of the data presented inFIG. 14 may be a reclassification of data of various properties based on the type of the data, the size of the data, a data occurrence frequency, an overwrite frequency, and the like so that dividing and managing the section group and the super blocks are more suitable. Accordingly, the hot node, the warm node, and the hot data classified according thereto may be classified as the first type data, and the sections in the first section group may be allocated to the hot node, the warm node, and the hot data, and the warm data and the cold data may be classified as the second type data, and the sections in the second section group may be allocated to the warm data and the cold data. The first type of data to which thefirst section 422 a is allocated may be stored in the firstphysical zone 112 a in the firstsuper block 111 a. In addition, the second type of data to which thesecond section 422 b is allocated may be stored in the secondphysical zone 112 b in the secondsuper block 111 b. However, the data classification criterion is not limited to the contents described with reference toFIG. 13 and the contents shown inFIG. 14 . -
FIG. 15 is a flowchart illustrating garbage collection of a storage device according to an embodiment of the present disclosure. - Referring to
FIG. 15 , in operation S1501, the storage device may check the number of physical zones having the empty state among the plurality of physical zones. Whether to perform the garbage collection and a performance method of the garbage collection may be determined based on the checked number of the physical zones of the empty state. - For example, in operation S1503, it may be checked whether the checked number of the physical zones of the empty state is less than a first threshold value. When the number of the physical zones of the empty state is not less than the first threshold value, the garbage collection may not be performed, and the number of the physical zones having the empty state may be repeatedly checked. When the number of the physical zones of the empty state is less than the first threshold value, the garbage collection may be performed. In operation S1505, it may be checked whether the number of the physical zones of the empty state checked in operation S1501 is less than a second threshold value. At this time, the second threshold value may be less than the first threshold value. When the number of the physical zones of the empty state is less than the second threshold value, it may be determined as a state in which securing the physical zone of the empty state is urgent, and in operation S1507, the garbage collection of the super block unit may be performed. When the number of the physical zones of the empty state is not less than the second threshold values, that is, the number of the physical zones of the empty state is between the first threshold value and the second threshold value, it may be determined that securing the physical zone of the empty state is relatively less urgent, and in operation S1509, the garbage collection of the physical zone unit may be performed. A process of performing the garbage collection according to operations S1507 and S1509 is described in more detail with reference to
FIGS. 16 to 19 . -
FIG. 16 is a flowchart illustrating a process of selecting a victim physical zone of a storage device according to an embodiment of the present disclosure. - The process of
FIG. 16 may be an example of operation S1507 ofFIG. 15 in which the garbage collection is performed in the super block unit. Referring toFIGS. 4 and 16 , candidate super blocks may be selected in operation S1601. The candidate super blocks may be selected from among the super blocks including only the physical zones of the full state and the physical zones of the ready-to-reset state. At this time, candidate super blocks may be selected based on the information for each of the physical zones stored by thezone information storage 220. - In operation S1603, the candidate physical zones may be selected. The candidate physical zones may be selected from among the physical zones included in the candidate super blocks. Candidate physical zones may be selected from among the physical zones having the full state among the physical zones included in the candidate super blocks. At this time, the candidate physical zones may be selected based on the information on the physical zones stored by the
zone information storage 220. - In operation S1605, a cost of each of the candidate physical zones may be calculated. At this time, the cost may be calculated based on the information on each of the candidate physical zones, the information being stored by the
zone information storage 220. The cost may be calculated for each of the candidate physical zones according to a predetermined method, and in an embodiment, zones with a high need for garbage collection to be performed can be calculated to have a low cost. In an embodiment, the cost for each of the candidate physical zones may be calculated based on the log of the data stored in each of the candidate physical zones and the time point at which each of the candidate physical zones is switched to the full state. For example, when considering the log of the data stored in the candidate physical zone, it may be determined that a possibility in which data in a corresponding candidate physical zone is invalid data is low as the temperature of the data is cold, as the type of the data is the data rather than the node, and thus the cost may be calculated so that a possibility in which the physical zone is selected as the victim physical zone is increased. In addition, when considering the time point at which the candidate physical zone is switched to the full state, it may be determined that a possibility in which data in a corresponding candidate physical zone is invalid data is low as the time point at which the candidate physical zone is switched to the full state is long, and thus the cost may be calculated so that a possibility in which the physical zone is selected as the victim physical zone is increased. - In operation S1607, the cost of each of the candidate super blocks may be calculated based on the cost of each of the candidate physical zones included in each of the candidate super blocks. For example, after calculating the cost based on the number of the physical zones that are in the ready-to-reset state in each of the candidate super blocks, the cost of each of the candidate super blocks may be calculated by adding the cost calculated in operation S1603 with respect to each of the candidate physical zones included in each of the candidate super blocks. The cost may be calculated so that a possibility in which the physical zone is selected as the victim physical zone is increased as the number of the physical zones that are in the ready-to-reset state in the candidate super blocks increases.
- In operation S1609, a victim super block may be determined by comparing the costs of the candidate super blocks. The candidate super block calculated as having the lowest cost may be determined as the victim super block.
- In operation S1611, all candidate physical zones included in the victim super block may be determined as the victim physical zone.
-
FIG. 17 is a flowchart illustrating a process of performing garbage collection on a victim physical zone in a storage device according to an embodiment of the present disclosure. -
FIG. 17 may be an example of a process of performing the garbage collection on the victim physical zone determined inFIG. 16 . Referring toFIG. 17 , in operation S1701, data stored in the victim physical zones may be copied and stored in a super block different from the victim super block. At this time, when the victim super block is a first super block, the copied data may be stored in another first super block. When the victim super block is the second super block, the copied data may be stored in another second super block. - In operation S1703, erasure may be performed on the victim superblock on which data movement is completed. Accordingly, all physical zones included in the victim super block may be switched to the empty state.
-
FIG. 18 is a flowchart illustrating a process of selecting a victim physical zone of a storage device, according to another embodiment of the present disclosure. - The process of
FIG. 18 may be an example of operation S1509 ofFIG. 15 of performing the garbage collection in the physical zone unit. Referring toFIGS. 4 and 18 , in operation S1801, the candidate physical zones may be selected. The candidate physical zones may be selected from among the physical zones having the full state. - In operation S1803, the cost of each of the candidate physical zones may be calculated. At this time, the cost may be calculated based on the information for each of the candidate physical zones, the information being stored by the
zone information storage 220. In an embodiment, the cost for each of the candidate physical zones may be calculated based on the log of the data stored in the candidate physical zones and the time point at which each of the candidate physical zones is switched to the full state. For example, when considering the log of the data stored in the candidate physical zone, it may be determined that a possibility in which data in a corresponding candidate physical zone is invalid data is low as the temperature of the data is cold, as the type of the data is the data rather than the node, and thus the cost may be calculated so that a possibility in which the physical zone is selected as the victim physical zone is increased. In addition, when considering the time point at which the candidate physical zone is switched to the full state, it may be determined that a possibility in which data in a corresponding candidate physical zone is invalid data is low as the time point at which the candidate physical zone is switched to the full state is long, and thus the cost may be calculated so that a possibility in which the physical zone is selected as the victim physical zone is increased. - In operation S1805, the victim physical zone may be determined by comparing the costs of the candidate physical zones. The candidate physical zone calculated as having the lowest cost may be determined as the victim physical zone.
-
FIG. 19 is a flowchart illustrating a process of performing garbage collection on a victim physical zone in a storage device according to another embodiment of the present disclosure. -
FIG. 19 may be an example of a process of performing the garbage collection on the victim physical zone determined inFIG. 18 . Referring toFIG. 19 , in operation S1901, the data stored in the victim physical zones may be copied and stored in a super block different from the victim super block. At this time, when the victim super block is the first super block, the copied data may be stored in another first super block. When the victim super block is the second super block, the copied data may be stored in another second super block. - In operation S1903, a physical zone type of the victim physical zone may be checked. In operation S1905, when it is checked that the victim physical zone is the first physical zone, in operation S1907, the victim physical zone may be erased, and thus a state of the victim physical zone may be changed to the empty state in operation S1909.
- In operation S1905, when it is checked that the victim physical zone is not the first physical zone, that is, when it is checked that the victim physical zone is the second physical zone, the victim physical zone may not be immediately erased, and only the state may be changed to the ready-to-reset state in operation S1911. Thereafter, when the entire physical zone in the super block including the victim physical zone is in the ready-to-reset state, the corresponding entire super block may be erased, and thus the state of all physical zones in the corresponding super block may be changed to the empty state.
- That is, since a process of the reset operation for erasing the physical zone and causing the physical zone to be in the empty state is different according to a type of the physical zone, the garbage collection may be performed in a method different for each type of the physical zone.
-
FIG. 20 is a diagram illustrating a process of copying data in a victim physical zone when garbage collection is performed according to an embodiment of the present disclosure. - Referring to
FIG. 20 , when the data stored in the victim physical zone is copied and stored in a new super block as in operations S1701 and S1901 ofFIG. 17 , a determination of the new super block may consider a type of the super block including the victim physical zone. That is, the log of the data stored in the victim physical zone may be considered. For example, the data classified as the first type data such as the hot node, the warm node, the cold node, and the hot data ofFIG. 20 and stored in the first physical zone in the first super block moves to the first physical zone in another first super block when a corresponding physical zone is determined as the victim physical zone. When the first physical zone to be allocated does not exist in the first super block, after allocating a new first super block, any first physical zone included the new first super block may be allocated as a physical zone in which the data stored in the victim physical zone is to be newly stored. In addition, the data classified as the second type data such as the warm data and the cold data ofFIG. 20 and stored in the second physical zone in the second super block moves to the second physical zone in another second super block when the corresponding physical zone is determined as the victim physical zone. When the second physical zone to be allocated does not exist in the second super block, after allocating a new second super block, a first second physical zone included the new second super block may be allocated as a physical zone in which the data stored in the victim physical zone is to be newly stored. -
FIG. 21 is a diagram illustrating the memory controller ofFIG. 1 according to another embodiment of the present disclosure. - Referring to
FIG. 21 , thememory controller 1000 may include aprocessor 1010, aninternal memory 1020, an errorcorrection code circuit 1030, ahost interface 1040, abuffer memory interface 1050, and amemory interface 1060. - The
processor 1010 may perform various operations or may generate various commands for controlling thememory device 100. When receiving a request from thehost 400, theprocessor 1010 may generate a command according to the received request and transmit the generated command to a queue controller (not shown). In addition, theprocessor 1010 may allocate the super block in the memory device in which the data received from the host is to be stored and the physical zone included therein, in response to the physical zone allocation request from thehost 400, and manage the allocated super block and the physical zone. In addition, theprocessor 1010 may perform garbage collection based on information for each of the physical zones. - The
internal memory 1020 may store various pieces of information necessary for an operation of thememory controller 1000. For example, theinternal memory 1020 may include logical and physical address map tables. Theinternal memory 1020 may be configured of at least one of a random access memory (RAM), a dynamic RAM (DRAM), a static RAM (SRAM), a cache, and a tightly coupled memory (TCM). Theinternal memory 1020 may store the information for each of the physical zones allocated by the processor. For example, information for a log of data stored in each of the physical zones, state of each of the physical zones, and the like may be stored. - The error
correction code circuit 1030 is configured to detect and correct an error of data received from thememory device 100 using an error correction code (ECC). Theprocessor 1010 may adjust a read voltage according to an error detection result of the errorcorrection code circuit 1030 and control thememory device 100 to perform re-reading. In an embodiment, an error correction block may be provided as a component of thememory controller 1000. - The
host interface 1040 may exchange a command, an address, and data between thememory controller 1000 and thehost 400. For example, thehost interface 1040 may receive a request, an address, and data from thehost 400, and may output data read from thememory device 100 to thehost 400. Thehost interface 1040 may communicate with thehost 400 using various protocols. - The
buffer memory interface 1050 may transmit data between theprocessor 1010 and the buffer memory. By theprocessor 1010, thebuffer memory interface 1050 may use the buffer memory as a read buffer, a write buffer, a map buffer, and the like. When the buffer memory is included in thememory controller 1000, thebuffer memory interface 1050 may be omitted. - The
memory interface 1060 may exchange the command, the address, and the data between thememory controller 1000 and thememory device 100. For example, thememory interface 1060 may transmit the command, the address, the data, and the like to thememory device 100 and may receive the data and the like from thememory device 100 through a channel. Thememory interface 1060 may transmit and receive the command, the address, and the data to and from thememory device 100 based on the super block and the physical zone allocated and managed by theprocessor 1010. In addition, when performing the garbage collection, the data in the physical zone selected as the victim physical zone may be moved to a super block different from the super block including the victim physical zone, and an erase operation may be performed on the victim physical zone, or a state of the victim physical zone may be changed, and information on the changed state may be provided to theinternal memory 1020. -
FIG. 22 is a block diagram illustrating a memory card system to which a storage device according to an embodiment of the present disclosure is applied. - Referring to
FIG. 22 , thememory card system 2000 includes amemory controller 2100, amemory device 2200, and aconnector 2300. - The
memory controller 2100 is connected to thememory device 2200. Thememory controller 2100 is configured to access thememory device 2200. For example, thememory controller 2100 may be configured to control read, program, erase, and background operations of thememory device 2200. Thememory controller 2100 is configured to provide an interface between thememory device 2200 and a host. Thememory controller 2100 is configured to drive firmware for controlling thememory device 2200. Thememory controller 2100 may be implemented identically to thememory controller 200 described with reference toFIG. 1 . For example, thememory controller 2100 may allocate a physical zone and a super block including the same in thememory device 2200 to control thememory device 2200 in units of the physical zone and the super block. - For example, the
memory controller 2100 may include components such as a random access memory (RAM), a processor, a host interface, a memory interface, and an error corrector. - The
memory controller 2100 may communicate with an external device through theconnector 2300. Thememory controller 2100 may communicate with an external device (for example, the host) according to a specific communication standard. For example, thememory controller 2100 is configured to communicate with an external device through at least one of various communication standards. For example, theconnector 2300 may be defined by at least one of the various communication standards described above. - For example, the
memory device 2200 may be configured of various nonvolatile memory elements. - The
memory controller 2100 and thememory device 2200 may be integrated into one semiconductor device to configure a memory card. For example, thememory controller 2100 and thememory device 2200 may be integrated into one semiconductor device to configure a memory card such as a PC card (personal computer memory card international association (PCMCIA)), a compact flash card (CF), a smart media card (SM or SMC), a memory stick, a multimedia card (MMC, RS-MMC, MMCmicro, or eMMC), an SD card (SD, miniSD, microSD, or SDHC), and a universal flash storage (UFS). -
FIG. 23 is a block diagram illustrating a solid state drive (SSD) system to which a storage device according to an embodiment of the present disclosure is applied. - Referring to
FIG. 23 , theSSD system 3000 includes ahost 3100 and anSSD 3200. TheSSD 3200 exchanges a signal with thehost 3100 through asignal connector 3001 and receives power through apower connector 3002. TheSSD 3200 includes anSSD controller 3210, a plurality offlash memories 3221 to 322 n, anauxiliary power supply 3230, and abuffer memory 3240. - According to an embodiment of the present disclosure, the
SSD controller 3210 may perform the function of thememory controller 200 described with reference toFIG. 1 . - The
SSD controller 3210 may control the plurality offlash memories 3221 to 322 n in response to the signal received from thehost 3100. TheSSD controller 3210 may control the plurality of flash memories through a plurality of channels CH1 to CHn. One or more memory dies may be connected to each channel. For example, the signal may be signals based on an interface between thehost 3100 and theSSD 3200. For example, the signal may be a signal defined by at least one of various communication standards or interfaces. TheSSD controller 3210 may perform the garbage collection according to a garbage collection performance request received from thehost 3100, or may perform the garbage collection independently. - The
auxiliary power supply 3230 is connected to thehost 3100 through thepower connector 3002. Theauxiliary power supply 3230 may receive the power from thehost 3100 and may charge the power. Theauxiliary power supply 3230 may provide power to theSSD 3200 when power supply from thehost 3100 is not smooth. For example, theauxiliary power supply 3230 may be positioned in theSSD 3200 or may be positioned outside theSSD 3200. For example, theauxiliary power supply 3230 may be positioned on a main board and may provide auxiliary power to theSSD 3200. - The
buffer memory 3240 operates as a buffer memory of theSSD 3200. For example, thebuffer memory 3240 may temporarily store data received from thehost 3100 or data received from the plurality offlash memories 3221 to 322 n, or may temporarily store meta data (for example, a mapping table) of theflash memories 3221 to 322 n. Thebuffer memory 3240 may include a volatile memory or a nonvolatile memory. -
FIG. 24 is a block diagram illustrating a user system to which a storage device according to an embodiment of the present disclosure is applied. - Referring to
FIG. 24 , theuser system 4000 includes anapplication processor 4100, amemory module 4200, anetwork module 4300, astorage module 4400, and auser interface 4500. - The
application processor 4100 may drive components, an operating system (OS), a user program, a file system, or the like included in theuser system 4000. For example, theapplication processor 4100 may include controllers, interfaces, graphics engines, and the like that control the components included in theuser system 4000. Theapplication processor 4100 may be provided as a system-on-chip (SoC). Theapplication processor 4100 may generate a log for data requested by a user to write, allocate a section group and a section based thereon, and provide the data to which the section is allocated to thestorage module 4400. - The
memory module 4200 may operate as a main memory, an operation memory, a buffer memory, or a cache memory of theuser system 4000. Thememory module 4200 may include a volatile random access memory or a nonvolatile random access memory. For example, theapplication processor 4100 andmemory module 4200 may be packaged based on a package on package (POP) and provided as one semiconductor package. - The
network module 4300 may communicate with external devices. For example, thenetwork module 4300 may support wireless communication such as code division multiple access (CDMA), global system for mobile communications (GSM), wideband CDMA (WCDMA), CDMA-2000, time division multiple access (TDMA), long term evolution, WiMAX, WLAN, UWB, Bluetooth, and Wi-Fi. For example, thenetwork module 4300 may be included in theapplication processor 4100. - The
storage module 4400 may store data. For example, thestorage module 4400 may store data received from theapplication processor 4100. Alternatively, thestorage module 4400 may transmit data stored in thestorage module 4400 to theapplication processor 4100. For example, thestorage module 4400 may be implemented with a nonvolatile semiconductor memory element such as a phase-change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a NAND flash, a NOR flash, and a three-dimensional NAND flash. For example, thestorage module 4400 may be provided as a removable storage device (removable drive), such as a memory card, and an external drive of theuser system 4000. - For example, the
storage module 4400 may include a plurality of nonvolatile memory devices, and the plurality of nonvolatile memory devices may operate identically to thememory device 100 described with reference toFIG. 1 . Thestorage module 4400 may operate identically to thestorage device 50 described with reference toFIG. 1 . - The
user interface 4500 may include interfaces for inputting data or an instruction to theapplication processor 4100 or for outputting data to an external device. For example, theuser interface 4500 may include user input interfaces such as a keyboard, a keypad, a button, a touch panel, a touch screen, a touch pad, a touch ball, a camera, a microphone, a gyroscope sensor, a vibration sensor, and a piezoelectric element. Theuser interface 4500 may include user output interfaces such as a liquid crystal display (LCD), an organic light emitting diode (OLED) display device, an active matrix OLED (AMOLED) display device, an LED, a speaker, and a monitor. - Although various embodiments have been described for illustrative purposes, it will be apparent to those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the following claims. Furthermore, the embodiments may be combined to form additional embodiments.
Claims (20)
1. A storage device comprising:
a memory device including a plurality of memory dies; and
a memory controller configured to receive data and a log information related to the data from an external host, to allocate, based on the log information, a super block including a plurality of physical zones and a selected physical zone to store the data therein among the plurality of physical zones in the super block, and to control the memory device to store the data in the selected physical zone,
wherein each of the plurality of dies includes a plurality of memory blocks, and
wherein each of the plurality of physical zones includes portions of memory blocks included different dies among the plurality of dies.
2. The storage device according to claim 1 , wherein the memory controller converts logical addresses of the data into physical addresses corresponding to the selected physical zone.
3. The storage device according to claim 1 , wherein the memory controller controls the memory device to store the log information and state information corresponding to the plurality of physical zones in a portion of the memory device.
4. The storage device according to claim 3 ,
wherein the log information includes a temperature of the data.
5. The storage device according to claim 3 ,
wherein the state information corresponding to the plurality of physical zones indicates one of a full state, an empty state, an active state or a ready-to-reset state of each of the plurality of physical zones and a time point, at which each of the plurality of physical zones is switched to the full state.
6. The storage device according to claim 5 ,
wherein the memory controller updates, in response to a reset request of the data from the external host, the state information of the selected physical zone to the ready-to-reset state.
7. The storage device according to claim 5 ,
wherein the memory controller performs, based on the log information and the state information, a garbage collection operation including copying data of a victim physical zone selected among the plurality of physical zones and storing the copied data in a physical zone in another super block.
8. The storage device according to claim 7 , wherein the memory controller selects the victim physical zone among the plurality of physical zones having the state information of the full state or the ready-to-reset state only.
9. The storage device according to claim 7 , wherein the memory controller updates the state information of the victim physical zone to the ready-to-reset state.
10. The storage device according to claim 9 , wherein the memory controller controls the memory device to erase data in a superblock where statuses of all included physical zones are ready-to-reset.
11. A storage device comprising:
a memory device including a plurality of planes which are capable of operating independently and simultaneously; and
a memory controller configured to receive data and a log information related to the data from an external host, to allocate, based on the log information, a super block including a plurality of physical zones and a selected physical zone to store the data therein among the plurality of physical zones in the super block, and to control the memory device to store the data in the selected physical zone,
wherein each of the plurality of planes includes a plurality of memory blocks, and
wherein each of the plurality of physical zones includes portions of memory blocks included different planes among the plurality of planes.
12. The storage device according to claim 11 , wherein the memory controller converts logical addresses of the data into physical addresses corresponding to the selected physical zone.
13. The storage device according to claim 11 , wherein the memory controller controls the memory device to store the log information and state information corresponding to the plurality of physical zones in a portion of the memory device.
14. The storage device according to claim 13 ,
wherein the log information includes a temperature of the data.
15. The storage device according to claim 13 ,
wherein the state information corresponding to the plurality of physical zones indicates one of a full state, an empty state, an active state or a ready-to-reset state of each of the plurality of physical zones and a time point, at which each of the plurality of physical zones is switched to the full state.
16. The storage device according to claim 15 ,
wherein the memory controller updates, in response to a reset request of the data from the external host, the state information of the selected physical zone to the ready-to-reset state.
17. The storage device according to claim 15 ,
wherein the memory controller performs, based on the log information and the state information, a garbage collection operation including copying data of a victim physical zone selected among the plurality of physical zones and storing the copied data in a physical zone in another super block.
18. The storage device according to claim 17 , wherein the memory controller selects the victim physical zone among the plurality of physical zones having the state information of the full state or the ready-to-reset state only.
19. The storage device according to claim 17 , wherein the memory controller updates the state information of the victim physical zone to the ready-to-reset state.
20. The storage device according to claim 19 , wherein the memory controller controls the memory device to erase data in a superblock where statuses of all included physical zones are ready-to-reset.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US18/616,171 US20240231663A1 (en) | 2021-05-25 | 2024-03-26 | Storage device and method of operating the same |
Applications Claiming Priority (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US202163192877P | 2021-05-25 | 2021-05-25 | |
KR10-2021-0086013 | 2021-06-30 | ||
KR20210086013 | 2021-06-30 | ||
KR1020220060487A KR20220159270A (en) | 2021-05-25 | 2022-05-17 | Storage device and operating method thereof |
KR10-2022-0060487 | 2022-05-17 | ||
US17/752,147 US11954350B2 (en) | 2021-05-25 | 2022-05-24 | Storage device and method of operating the same |
US18/616,171 US20240231663A1 (en) | 2021-05-25 | 2024-03-26 | Storage device and method of operating the same |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/752,147 Continuation US11954350B2 (en) | 2021-05-25 | 2022-05-24 | Storage device and method of operating the same |
Publications (1)
Publication Number | Publication Date |
---|---|
US20240231663A1 true US20240231663A1 (en) | 2024-07-11 |
Family
ID=84117036
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/752,147 Active US11954350B2 (en) | 2021-05-25 | 2022-05-24 | Storage device and method of operating the same |
US18/616,171 Pending US20240231663A1 (en) | 2021-05-25 | 2024-03-26 | Storage device and method of operating the same |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/752,147 Active US11954350B2 (en) | 2021-05-25 | 2022-05-24 | Storage device and method of operating the same |
Country Status (3)
Country | Link |
---|---|
US (2) | US11954350B2 (en) |
CN (1) | CN115390747A (en) |
TW (1) | TW202314471A (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20240061587A1 (en) * | 2022-08-22 | 2024-02-22 | Micron Technology, Inc. | Zone write operation techniques |
US12135904B2 (en) * | 2022-11-22 | 2024-11-05 | SanDisk Technologies, Inc. | Folding zone management optimization in storage device |
Family Cites Families (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7315894B2 (en) | 2001-07-17 | 2008-01-01 | Mcafee, Inc. | Network data retrieval and filter systems and methods |
US8799572B2 (en) * | 2009-04-20 | 2014-08-05 | Microsoft Corporation | Sliding-window multi-class striping |
US9489296B1 (en) | 2012-10-17 | 2016-11-08 | Western Digital Technologies, Inc. | Methods, devices and systems for hardware-based garbage collection in solid state drives |
US9773014B2 (en) | 2014-06-03 | 2017-09-26 | Samsung Electronics Co., Ltd. | Heterogeneous distributed file system using different types of storage mediums |
JP6450598B2 (en) | 2015-01-19 | 2019-01-09 | 東芝メモリ株式会社 | Information processing apparatus, information processing method, and program |
WO2016162981A1 (en) * | 2015-04-08 | 2016-10-13 | 株式会社日立製作所 | Computer system and database management method |
KR102653401B1 (en) | 2016-07-18 | 2024-04-03 | 에스케이하이닉스 주식회사 | Memory system and operation method for the same |
KR102681659B1 (en) | 2017-01-12 | 2024-07-05 | 에스케이하이닉스 주식회사 | Memory system and operating method of memory system |
KR102457564B1 (en) | 2017-09-20 | 2022-10-21 | 에스케이하이닉스 주식회사 | Memory system and operating method thereof |
JP2019079464A (en) | 2017-10-27 | 2019-05-23 | 東芝メモリ株式会社 | Memory system and control method |
JP7074453B2 (en) * | 2017-10-30 | 2022-05-24 | キオクシア株式会社 | Memory system and control method |
KR102524432B1 (en) * | 2018-04-09 | 2023-04-24 | 에스케이하이닉스 주식회사 | Memory system and operation method thereof |
KR102624911B1 (en) | 2018-06-13 | 2024-01-12 | 삼성전자주식회사 | Method for increasing endurance of flash memory by improved metadata management |
KR20200044460A (en) | 2018-10-19 | 2020-04-29 | 에스케이하이닉스 주식회사 | Memory system and operating method thereof |
US11341010B2 (en) * | 2020-01-15 | 2022-05-24 | EMC IP Holding Company LLC | Dynamic reclamation of storage stripes |
US11989445B2 (en) * | 2021-05-13 | 2024-05-21 | Micron Technology, Inc. | Automatic operating mode management for memory using workload profile data |
-
2022
- 2022-05-24 TW TW111119338A patent/TW202314471A/en unknown
- 2022-05-24 US US17/752,147 patent/US11954350B2/en active Active
- 2022-05-25 CN CN202210580061.4A patent/CN115390747A/en not_active Withdrawn
-
2024
- 2024-03-26 US US18/616,171 patent/US20240231663A1/en active Pending
Also Published As
Publication number | Publication date |
---|---|
US20220382454A1 (en) | 2022-12-01 |
US11954350B2 (en) | 2024-04-09 |
CN115390747A (en) | 2022-11-25 |
TW202314471A (en) | 2023-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102495910B1 (en) | Storage device and operating method thereof | |
US11599464B2 (en) | Memory controller and method of operating the same | |
US11782617B2 (en) | Host device, storage device, and electronic device | |
US20230333763A1 (en) | Memory system and method of operating the same | |
US20240231663A1 (en) | Storage device and method of operating the same | |
US11543986B2 (en) | Electronic system including host, memory controller and memory device and method of operating the same | |
US11861359B2 (en) | Storage device and method of operating the same | |
US20210200469A1 (en) | Memory controller having data compressor and method of operating the same | |
US11755476B2 (en) | Memory controller, storage device including the memory controller, and method of operating the memory controller and the storage device | |
US11614897B2 (en) | Storage device and operating method thereof | |
US11775211B2 (en) | Memory controller and method of operating the same | |
US11520519B2 (en) | Storage device and method of operating the same | |
US11960733B2 (en) | Memory controller and method of operating the same | |
US12056390B2 (en) | Memory controller, storage device, and host device | |
US20220405009A1 (en) | Storage device and operating method thereof | |
US20220129192A1 (en) | Memory controller and method of operating the same | |
US12007887B2 (en) | Method and system for garbage collection | |
US20240095181A1 (en) | Storage device, host device, and electronic device | |
US12105988B2 (en) | Memory controller for reducing the number of error bits in read data and memory system including the same | |
KR20220159269A (en) | Storage device and operating method thereof | |
US20230103797A1 (en) | Memory controller and method of operating the same | |
KR20220159270A (en) | Storage device and operating method thereof | |
US20240256177A1 (en) | Electronic device including storage device and controller and operating method thereof | |
US20240037023A1 (en) | Storage device and method of operating the same | |
US20240345729A1 (en) | Storage device, electronic device including the same, and operating method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STPP | Information on status: patent application and granting procedure in general |
Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION |