KR20220159268A - Host device, storage device and electronic device - Google Patents

Host device, storage device and electronic device Download PDF

Info

Publication number
KR20220159268A
KR20220159268A KR1020220060466A KR20220060466A KR20220159268A KR 20220159268 A KR20220159268 A KR 20220159268A KR 1020220060466 A KR1020220060466 A KR 1020220060466A KR 20220060466 A KR20220060466 A KR 20220060466A KR 20220159268 A KR20220159268 A KR 20220159268A
Authority
KR
South Korea
Prior art keywords
data
section
memory
log
physical
Prior art date
Application number
KR1020220060466A
Other languages
Korean (ko)
Inventor
양순열
Original Assignee
에스케이하이닉스 주식회사
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 에스케이하이닉스 주식회사 filed Critical 에스케이하이닉스 주식회사
Priority to TW111119341A priority Critical patent/TW202246985A/en
Priority to US17/752,128 priority patent/US11782617B2/en
Priority to CN202210579394.5A priority patent/CN115390746A/en
Publication of KR20220159268A publication Critical patent/KR20220159268A/en
Priority to US18/464,289 priority patent/US20230418485A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0253Garbage collection, i.e. reclamation of unreferenced memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0658Controller construction arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/10Providing a specific technical effect
    • G06F2212/1016Performance improvement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/72Details relating to flash memory management
    • G06F2212/7205Cleaning, compaction, garbage collection, erase control

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)

Abstract

An electronic device according to an embodiment of the present invention comprises: a host device including an application which requests data to be written and a file system which generates a log related to attributes of the data in response to the request of the application and allocates a section corresponding to the data based on the log; and a storage device including a memory device which includes a plurality of memory dies and a memory controller which receives the data and the log of the data from the host device and controls the memory device to sequentially store the data in a physical zone in the memory device corresponding to the section. The memory controller allocates a super block including the physical zone based on the log. The super block can include a plurality of first physical zones each including one or more memory blocks in one memory die according to the log, or a plurality of second physical zones each including a part of each of memory blocks included in different memory dies. According to the present invention, efficient management for each characteristic of data is possible.

Description

호스트 장치, 스토리지 장치 및 전자 장치{HOST DEVICE, STORAGE DEVICE AND ELECTRONIC DEVICE}HOST DEVICE, STORAGE DEVICE AND ELECTRONIC DEVICE}

본 발명은 전자 장치에 관한 것으로, 보다 상세하게는 호스트 장치, 스토리지 장치 및 이들을 포함한 전자 장치에 관한 것이다.The present invention relates to an electronic device, and more particularly, to a host device, a storage device, and an electronic device including the same.

스토리지 장치는 호스트 장치로부터 전달받은 논리 어드레스를 물리 어드레스로 변환하여 사용하며, 이에 따라 호스트 장치 내의 논리적 영역과 스토리지 장치의 물리적 영역은 서로 관련된다. 이에 전자 장치의 성능 향상을 위해서는 상호 보완적으로 호스트 장치 및 스토리지 장치를 제어할 수 있는 새로운 장치 또는 방법이 요구되는 실정이다.The storage device converts a logical address received from the host device into a physical address, and thus, a logical area within the host device and a physical area of the storage device are related to each other. Accordingly, in order to improve the performance of electronic devices, a new device or method capable of controlling the host device and the storage device in a complementary manner is required.

본 발명의 실시 예는, 데이터의 특성별로 효율적인 관리가 가능한 호스트 장치, 스토리지 장치 및 전자 장치를 제공한다.An embodiment of the present invention provides a host device, a storage device, and an electronic device capable of efficiently managing data by characteristics.

본 발명의 실시 예에 따른 전자 장치는, 데이터를 쓸 것을 요청하는 어플리케이션 및 상기 어플리케이션의 요청에 응답하여, 상기 데이터의 속성에 관한 로그를 생성하고, 상기 로그를 기초로 상기 데이터에 대응되는 섹션을 할당하는 파일 시스템을 포함하는 호스트 장치; 및 복수의 메모리 다이들을 포함하는 메모리 장치 및 상기 호스트 장치로부터 상기 데이터와 상기 데이터의 로그를 수신하고, 상기 섹션에 대응되는 상기 메모리 장치 내의 물리 구역(physical zone)에 상기 데이터를 순차적으로 저장하도록 상기 메모리 장치를 제어하는 메모리 컨트롤러를 포함하는 스토리지 장치;를 포함하고, 상기 메모리 컨트롤러는, 상기 로그를 기초로 상기 물리 구역이 포함되는 슈퍼 블록을 할당하며, 상기 슈퍼 블록은, 상기 로그에 따라 하나의 메모리 다이 내의 하나 이상의 메모리 블록들을 포함하는 제1 물리 구역을 복수 개 포함하거나, 서로 다른 메모리 다이들에 포함된 메모리 블록들 각각의 일부를 포함하는 제2 물리 구역을 복수 개 포함할 수 있다.An electronic device according to an embodiment of the present invention generates a log about properties of the data in response to an application requesting to write data and a request of the application, and a section corresponding to the data based on the log. a host device that contains an allocating file system; and receiving the data and the log of the data from a memory device including a plurality of memory dies and the host device, and sequentially storing the data in a physical zone in the memory device corresponding to the section. and a storage device including a memory controller controlling a memory device, wherein the memory controller allocates a super block including the physical zone based on the log, and the super block includes one super block according to the log. It may include a plurality of first physical zones including one or more memory blocks within the memory die or may include a plurality of second physical zones including portions of each of memory blocks included in different memory dies.

본 발명의 실시 예에 따른 호스트 장치는, 데이터를 쓸 것을 요청하는 어플리케이션; 및 상기 어플리케이션의 요청에 응답하여, 상기 데이터의 속성에 관한 로그를 생성하고, 상기 로그를 기초로 상기 데이터에 대응되는 섹션을 할당하는 파일 시스템;을 포함하고, 상기 파일 시스템은 상기 로그를 기초로 상기 섹션이 포함되는 섹션 그룹을 결정하며, 상기 섹션 그룹은, 상기 섹션 그룹 내의 섹션 순서와 무관하게 상기 섹션 그룹 내 비어있는 섹션 중 어느 하나를 새로운 섹션으로 할당하는 하나 이상의 제1 섹션 그룹; 또는 상기 섹션 그룹 내의 섹션 순서에 따라 새로운 섹션을 할당하는 하나 이상의 제2 섹션 그룹;일 수 있다.A host device according to an embodiment of the present invention includes an application requesting to write data; and a file system that generates a log of attributes of the data in response to a request of the application and allocates a section corresponding to the data based on the log, wherein the file system includes one or more first section groups for determining a section group including the section, and allocating one of empty sections in the section group as a new section regardless of the order of sections in the section group; or one or more second section groups to which new sections are assigned according to the order of sections within the section groups.

본 발명의 실시 예에 따른 스토리지 장치는, 복수의 메모리 다이들을 포함하는 메모리 장치; 및 외부 호스트로부터 데이터와 상기 데이터의 로그를 수신하고, 상기 메모리 장치 내에 데이터가 저장될 슈퍼 블록을 할당하고, 상기 슈퍼 블록에 포함된 물리 구역(physical zone)에 상기 데이터를 순차적으로 저장하도록 상기 메모리 장치를 제어하는 메모리 컨트롤러;를 포함하고, 상기 슈퍼 블록은, 상기 로그에 따라 하나의 메모리 다이 내의 하나 이상의 메모리 블록들을 포함하는 제1 물리 구역을 복수 개 포함하거나, 서로 다른 메모리 다이들에 포함된 메모리 블록들 각각의 일부를 포함하는 제2 물리 구역을 복수 개 포함할 수 있다.A storage device according to an embodiment of the present invention includes a memory device including a plurality of memory dies; and receiving data and a log of the data from an external host, allocating a super block in which data is to be stored in the memory device, and sequentially storing the data in a physical zone included in the super block. and a memory controller controlling the device, wherein the super block includes a plurality of first physical regions including one or more memory blocks in one memory die according to the log, or is included in different memory dies. A plurality of second physical zones including portions of each of the memory blocks may be included.

본 기술은 데이터의 특성별로 효율적인 관리가 가능한 호스트 장치, 스토리지 장치 및 전자 장치를 제공한다.The present technology provides a host device, a storage device, and an electronic device capable of efficiently managing data by characteristics.

도 1은 본 발명의 일 실시 예에 따른 전자 장치를 설명하기 위한 도면이다.
도 2는 도 1의 메모리 장치를 설명하기 위한 도면이다.
도 3은 도 2의 메모리 셀 어레이를 설명하기 위한 도면이다.
도 4는 본 발명의 일 실시 예에 따른 호스트 장치에서의 섹션(section) 할당 및 스토리지 장치에서의 물리 구역(physical zone) 할당을 설명하기 위한 도면이다.
도 5는 파일 시스템에 의하여 할당되는 섹션의 구조를 설명하기 위한 도면이다.
도 6은 본 발명의 일 실시 예에 따른 제1 섹션 그룹의 새로운 섹션 할당 과정을 설명하기 위한 도면이다.
도 7a 및 도 7b는 본 발명의 일 실시 예에 따른 제2 섹션 그룹의 새로운 섹션 할당 과정을 설명하기 위한 도면이다.
도 8은 본 발명의 일 실시 예에 따른 제1 섹션 그룹의 리셋 과정을 설명하기 위한 도면이다.
도 9는 본 발명의 일 실시 예에 따른 제2 섹션 그룹의 리셋 과정을 설명하기 위한 도면이다.
도 10은 본 발명의 일 실시 예에 따른 데이터의 분류를 설명하기 위한 도면이다.
도 11은 본 발명의 다른 실시 예에 따른 데이터의 분류를 설명하기 위한 도면이다.
도 12는 본 발명의 일 실시 예에 따른 스토리지 장치의 메모리 블록 관리를 설명하기 위한 도면이다.
도 13은 본 발명의 일 실시 예에 따른 전자 장치의 메모리 블록 관리 과정을 설명하기 위한 도면이다.
도 14는 본 발명의 일 실시 예에 따라, 클리닝을 위한 희생 섹션을 결정하는 과정을 설명하는 순서도이다.
도 15는 본 발명의 실시 예에 따라, 클리닝 수행 시 희생 섹션 내의 논리 어드레스들에 대응되는 유효 데이터들에 새로운 섹션을 할당하는 과정을 설명하기 위한 도면이다.
도 16은 도 1의 메모리 컨트롤러의 다른 실시 예를 나타낸 도면이다.
도 17은 본 발명의 실시 예에 따른 스토리지 장치가 적용된 메모리 카드 시스템을 보여주는 블록도이다.
도 18은 본 발명의 실시 예에 따른 스토리지 장치가 적용된 SSD(Solid State Drive) 시스템을 보여주는 블록도이다.
도 19는 본 발명의 실시 예에 따른 스토리지 장치가 적용된 사용자 시스템을 보여주는 블록도이다.
1 is a diagram for explaining an electronic device according to an embodiment of the present invention.
FIG. 2 is a diagram for explaining the memory device of FIG. 1 .
FIG. 3 is a diagram for explaining the memory cell array of FIG. 2 .
4 is a diagram for explaining section allocation in a host device and physical zone allocation in a storage device according to an embodiment of the present invention.
5 is a diagram for explaining the structure of a section allocated by a file system.
6 is a diagram for explaining a process of allocating a new section of a first section group according to an embodiment of the present invention.
7A and 7B are diagrams for explaining a process of allocating a new section of a second section group according to an embodiment of the present invention.
8 is a diagram for explaining a reset process of a first section group according to an embodiment of the present invention.
9 is a diagram for explaining a reset process of a second section group according to an embodiment of the present invention.
10 is a diagram for explaining classification of data according to an embodiment of the present invention.
11 is a diagram for explaining classification of data according to another embodiment of the present invention.
12 is a diagram for explaining memory block management of a storage device according to an embodiment of the present invention.
13 is a diagram for explaining a memory block management process of an electronic device according to an embodiment of the present invention.
14 is a flowchart illustrating a process of determining a sacrificial section for cleaning according to an embodiment of the present invention.
15 is a diagram for explaining a process of allocating a new section to valid data corresponding to logical addresses in a victim section during cleaning according to an embodiment of the present invention.
16 is a diagram illustrating another embodiment of the memory controller of FIG. 1 .
17 is a block diagram illustrating a memory card system to which a storage device according to an embodiment of the present invention is applied.
18 is a block diagram illustrating a solid state drive (SSD) system to which a storage device according to an embodiment of the present invention is applied.
19 is a block diagram illustrating a user system to which a storage device according to an embodiment of the present invention is applied.

본 명세서 또는 출원에 개시되어 있는 본 발명의 개념에 따른 실시 예들에 대해서 특정한 구조적 내지 기능적 설명들은 단지 본 발명의 개념에 따른 실시 예를 설명하기 위한 목적으로 예시된 것으로, 본 발명의 개념에 따른 실시 예들은 다양한 형태로 실시될 수 있으며 본 명세서 또는 출원에 설명된 실시 예들에 한정되는 것으로 해석되어서는 아니 된다.Specific structural or functional descriptions of the embodiments according to the concept of the present invention disclosed in the present specification or application are only exemplified for the purpose of explaining the embodiment according to the concept of the present invention, and the implementation according to the concept of the present invention Examples may be embodied in many forms and should not be construed as limited to the embodiments described in this specification or application.

도 1은 본 발명의 일 실시 예에 따른 전자 장치를 설명하기 위한 도면이다.1 is a diagram for explaining an electronic device according to an embodiment of the present invention.

도 1을 참조하면, 스토리지 장치(50)는 메모리 장치(100) 및 메모리 컨트롤러(200)를 포함할 수 있다. 스토리지 장치(50)는 휴대폰, 스마트폰, MP3 플레이어, 랩탑 컴퓨터, 데스크탑 컴퓨터, 게임기, TV, 테블릿 PC 또는 차량용 인포테인먼트(in-vehicle infotainment) 시스템 등과 같은 호스트(400)의 제어에 따라 데이터를 저장하는 장치일 수 있다. 또는 스토리지 장치(50)는 서버, 데이터 센터 등과 같이 한 곳에 고용량의 데이터를 저장하는 호스트(400)의 제어에 따라 데이터를 저장하는 장치일 수 있다. Referring to FIG. 1 , a storage device 50 may include a memory device 100 and a memory controller 200 . The storage device 50 stores data under the control of the host 400, such as a mobile phone, smart phone, MP3 player, laptop computer, desktop computer, game console, TV, tablet PC, or in-vehicle infotainment system. It may be a device that Alternatively, the storage device 50 may be a device that stores data under the control of the host 400 that stores high-capacity data in one place, such as a server or data center.

스토리지 장치(50)는 호스트(400)와의 통신 방식인 호스트 인터페이스에 따라서 다양한 종류의 스토리지 장치들 중 어느 하나로 제조될 수 있다. 예를 들면, 스토리지 장치(50)는 SSD, MMC, eMMC, RS-MMC, micro-MMC 형태의 멀티 미디어 카드(multimedia card), SD, mini-SD, micro-SD 형태의 시큐어 디지털(secure digital) 카드, USB(universal serial bus) 저장 장치, UFS(universal flash storage) 장치, PCMCIA(personal computer memory card international association) 카드 형태의 저장 장치, PCI(peripheral component interconnection) 카드 형태의 저장 장치, PCI-E(PCI express) 카드 형태의 저장 장치, CF(compact flash) 카드, 스마트 미디어(smart media) 카드, 메모리 스틱(memory stick) 등과 같은 다양한 종류의 저장 장치들 중 어느 하나로 구성될 수 있다.The storage device 50 may be manufactured as one of various types of storage devices according to a host interface, which is a communication method with the host 400 . For example, the storage device 50 may include a multimedia card in the form of SSD, MMC, eMMC, RS-MMC, and micro-MMC, secure digital in the form of SD, mini-SD, and micro-SD. card, universal serial bus (USB) storage device, universal flash storage (UFS) device, personal computer memory card international association (PCMCIA) card-type storage device, PCI (peripheral component interconnection) card-type storage device, PCI-E ( It may be configured with any one of various types of storage devices such as a PCI express card type storage device, a CF (compact flash) card, a smart media card, a memory stick, and the like.

스토리지 장치(50)는 다양한 종류의 패키지(package) 형태들 중 어느 하나로 제조될 수 있다. 예를 들면, 스토리지 장치(50)는 POP(package on package), SIP(system in package), SOC(system on chip), MCP(multi-chip package), COB(chip on board), WFP(wafer-level fabricated package), WSP(wafer-level stack package) 등과 같은 다양한 종류의 패키지 형태들 중 어느 하나로 제조될 수 있다.The storage device 50 may be manufactured in any one of various types of packages. For example, the storage device 50 may include package on package (POP), system in package (SIP), system on chip (SOC), multi-chip package (MCP), chip on board (COB), wafer- level fabricated package), wafer-level stack package (WSP), and the like.

메모리 장치(100)는 데이터를 저장할 수 있다. 메모리 장치(100)는 메모리 컨트롤러(200)의 제어에 응답하여 동작한다. 메모리 장치(100)는 데이터를 저장하는 복수의 메모리 셀들을 포함하는 메모리 셀 어레이(미도시)를 포함할 수 있다. The memory device 100 may store data. The memory device 100 operates in response to control of the memory controller 200 . The memory device 100 may include a memory cell array (not shown) including a plurality of memory cells that store data.

메모리 셀들은 각각 하나의 데이터 비트를 저장하는 싱글 레벨 셀(Single Level Cell; SLC), 두 개의 데이터 비트들을 저장하는 멀티 레벨 셀(Multi Level Cell; MLC), 세 개의 데이터 비트들을 저장하는 트리플 레벨 셀(Triple Level Cell; TLC) 또는 네 개의 데이터 비트를 저장할 수 있는 쿼드 레벨 셀(Quad Level Cell; QLC)로 구성될 수 있다.The memory cells are single-level cells (SLC) each storing one data bit, multi-level cells (MLC) storing two data bits, and triple-level cells storing three data bits. (Triple Level Cell; TLC) or Quad Level Cell (QLC) capable of storing four data bits.

메모리 셀 어레이(미도시)는 복수의 메모리 블록들을 포함할 수 있다. 각 메모리 블록은 복수의 메모리 셀들을 포함할 수 있다. 각 메모리 블록은 복수의 페이지들을 포함할 수 있다. 실시 예에서, 페이지는 메모리 장치(100)에 데이터를 저장하거나, 메모리 장치(100)에 저장된 데이터를 리드하는 단위일 수 있다. 메모리 블록은 데이터를 지우는 단위일 수 있다.A 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, a page may be a unit for storing data in the memory device 100 or reading data stored in the memory device 100 . A memory block may be a unit for erasing data.

실시 예에서, 메모리 장치(100)는 DDR SDRAM(Double Data Rate Synchronous Dynamic Random Access Memory), LPDDR4(Low Power Double Data Rate4) SDRAM, GDDR(Graphics Double Data Rate) SDRAM, LPDDR(Low Power DDR), RDRAM(Rambus Dynamic Random Access Memory), 낸드 플래시 메모리(NAND flash memory), 수직형 낸드 플래시 메모리(Vertical NAND flash memory), 노아 플래시 메모리(NOR flash memory), 저항성 램(resistive random access memory: RRAM), 상변화 메모리(phase-change RAM: PRAM), 자기저항 메모리(magnetoresistive random access memory: MRAM), 유전체 메모리(ferroelectric random access memory: FRAM), 스핀주입 자화반전 메모리(spin transfer torque random access memory: STT-RAM) 등이 될 수 있다. 본 명세서에서는 설명의 편의를 위해, 메모리 장치(100)가 낸드 플래시 메모리인 경우를 가정하여 설명한다.In an embodiment, the memory device 100 may include DDR Double Data Rate Synchronous Dynamic Random Access Memory (SDRAM), Low Power Double Data Rate 4 (LPDDR4) SDRAM, Graphics Double Data Rate (GDDR) SDRAM, Low Power DDR (LPDDR), and RDRAM. (Rambus Dynamic Random Access Memory), NAND flash memory, Vertical NAND flash memory, NOR flash memory, resistive random access memory (RRAM), phase-change RAM (PRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), spin transfer torque random access memory (STT-RAM) ) and so on. In this specification, for convenience of explanation, it is assumed that the memory device 100 is a NAND flash memory.

메모리 장치(100)는 메모리 컨트롤러(200)로부터 커맨드 및 어드레스를 수신하고, 메모리 셀 어레이 중 어드레스에 의해 선택된 영역을 액세스하도록 구성된다. 메모리 장치(100)는 어드레스에 의해 선택된 영역에 대해 커맨드가 지시하는 동작을 수행할 수 있다. 예를 들면, 메모리 장치(100)는 쓰기 동작 (프로그램 동작), 리드 동작 및 소거 동작을 수행할 수 있다. 프로그램 동작 시에, 메모리 장치(100)는 어드레스에 의해 선택된 영역에 데이터를 프로그램 할 것이다. 리드 동작 시에, 메모리 장치(100)는 어드레스에 의해 선택된 영역으로부터 데이터를 읽을 것이다. 소거 동작 시에, 메모리 장치(100)는 어드레스에 의해 선택된 영역에 저장된 데이터를 소거할 것이다.The memory device 100 is configured to receive a command and an address from the memory controller 200 and access a region selected by the address in the memory cell array. The memory device 100 may perform an operation indicated by a command with respect to an area selected by an address. For example, the memory device 100 may perform a write operation (program operation), a read operation, and an erase operation. During a program operation, the memory device 100 will program data into an area selected by an address. During a read operation, the memory device 100 will read data from an area selected by an address. During the erase operation, the memory device 100 will erase data stored in the area selected by the address.

메모리 컨트롤러(200)는 스토리지 장치(50)의 전반적인 동작을 제어할 수 있다. The memory controller 200 may control overall operations of the storage device 50 .

실시 예에서, 메모리 컨트롤러(200)는 호스트(400)로부터 데이터와 논리 어드레스(logical address, LA)를 입력 받을 수 있으며, 메모리 컨트롤러(200)는 논리 어드레스(LA)를 메모리 장치(100)에 포함된 데이터가 저장될 메모리 셀들의 주소를 나타내는 물리 어드레스(physical address, PA)로 변환할 수 있는 펌웨어(firmware; 미도시)를 포함할 수 있다. 또한 메모리 컨트롤러(200)는 논리 어드레스(LA)와 물리 어드레스(PA) 간의 맵핑(mapping) 관계를 구성하는 논리-물리 어드레스 맵핑 테이블(logical-physical address mapping table)을 버퍼 메모리에 저장할 수 있다.In an embodiment, the memory controller 200 may receive data and a logical address (LA) from the host 400, and the memory controller 200 includes the logical address LA in the memory device 100. firmware (not shown) capable of converting the stored data into a physical address (PA) indicating the addresses of memory cells to be stored. Also, the memory controller 200 may store a logical-physical address mapping table constituting a mapping relationship between the logical address LA and the physical address PA in the buffer memory.

메모리 컨트롤러(200)는 호스트(400)의 요청(request)에 따라 프로그램 동작, 리드 동작 또는 소거 동작 등을 수행하도록 메모리 장치(100)를 제어할 수 있다. 프로그램 동작 시, 메모리 컨트롤러(200)는 프로그램 커맨드, 물리 어드레스 및 데이터를 메모리 장치(100)에 제공할 수 있다. 리드 동작 시, 메모리 컨트롤러(200)는 리드 커맨드 및 물리 어드레스를 메모리 장치(100)에 제공할 수 있다. 소거 동작 시, 메모리 컨트롤러(200)는 소거 커맨드 및 물리 어드레스를 메모리 장치(100)에 제공할 수 있다. 또는, 메모리 컨트롤러(200)는 호스트(400)의 요청에 따라 메모리 장치(100) 내의 물리 구역(physical zone)을 오픈 또는 클로즈할 수 있다. 물리 구역을 오픈한다는 것은 해당 물리 구역에 대응되는 논리 어드레스 그룹, 예를 들어 호스트가 데이터에 대하여 할당하는 섹션에 대응되는 논리 어드레스들에 대한 맵 테이블을 생성하는 것일 수 있다. 물리 구역을 클로즈한다는 것은 해당 물리 구역에 대해 오픈 요청을 다시 수신하기 전까지는 해당 물리 구역에 데이터를 저장하는 쓰기 요청이 없을 것임을 나타내는 것일 수 있다. 호스트(400)는 이와 같은 물리 구역을 오픈 또는 클로즈하라는 요청을 별도의 요청으로 제공할 수 있으며, 쓰기 요청 등과 같은 다른 요청과 함께 제공할 수도 있다.The memory controller 200 may control the memory device 100 to perform a program operation, a read operation, or an erase operation according to a request of the host 400 . During a program operation, the memory controller 200 may provide a program command, a physical address, and data to the memory device 100 . During a read operation, the memory controller 200 may provide a read command and a physical address to the memory device 100 . During an erase operation, the memory controller 200 may provide an erase command and a physical address to the memory device 100 . Alternatively, the memory controller 200 may open or close a physical zone within the memory device 100 according to a request of the host 400 . Opening the physical area may be generating a map table for logical addresses corresponding to a logical address group corresponding to the physical area, for example, a section allocated to data by a host. Closing the physical area may indicate that there will be no write request for storing data in the corresponding physical area until an open request for the corresponding physical area is received again. The host 400 may provide the request to open or close the physical area as a separate request or together with other requests such as a write request.

실시 예에서, 메모리 컨트롤러(200)는 호스트(400)로부터의 요청과 무관하게 자체적으로 커맨드, 어드레스 및 데이터를 생성하고, 메모리 장치(100)에 전송할 수 있다. 예를 들면, 메모리 컨트롤러(200)는 웨어 레벨링(wear leveling), 리드 리클레임(read reclaim), 가비지 컬렉션(garbage collection) 등을 수행하는데 수반되는 프로그램 동작, 리드 동작 및 소거 동작들을 수행하기 위한 커맨드, 어드레스 및 데이터를 메모리 장치(100)로 제공할 수 있다.In an embodiment, the memory controller 200 may generate commands, addresses, and data on its own and transmit them to the memory device 100 regardless of a request from the host 400 . For example, the memory controller 200 uses commands for performing program operations, read operations, and erase operations involved in performing wear leveling, read reclaim, garbage collection, and the like. , addresses and data may be provided to the memory device 100 .

실시 예에서, 메모리 컨트롤러(200)는 플래시 변환 계층(Flash Translation Layer)을 포함할 수 있다. 플래시 변환 계층은 호스트(400)로부터 수신된 요청에 대응하는 논리 어드레스(LA)를 물리 어드레스(PA)로 변환하여 메모리 장치(100)에 출력할 수 있다.In an embodiment, the memory controller 200 may include a flash translation layer. The flash translation layer may convert a logical address LA corresponding to a request received from the host 400 into a physical address PA and output the converted physical address to the memory device 100 .

예를 들면, 위에서 설명된 바와 같이, 플래시 변환 계층은 프로그램 요청에 대응하는 논리 어드레스(LA)를 물리 어드레스(PA)로 변환하거나, 리드 요청에 대응하는 논리 어드레스(LA)를 물리 어드레스(PA)로 변환하거나, 또는 소거 요청에 대응하는 논리 어드레스(LA)를 물리 어드레스(PA)로 변환할 수 있다. 플래시 변환 계층은 변환된 물리 어드레스(PA)를 메모리 장치(100)에 출력하고, 메모리 장치(100)는 물리 어드레스(PA)에 대응하는 페이지 또는 메모리 블록에 동작을 수행할 수 있다.For example, as described above, the flash translation layer converts a logical address (LA) corresponding to a program request into a physical address (PA), or converts a logical address (LA) corresponding to a read request into a physical address (PA). , or a logical address LA corresponding to an erase request may be converted into a physical address PA. The flash translation layer outputs the converted physical address PA to the memory device 100, and the memory device 100 may perform an operation on a page or memory block corresponding to the physical address PA.

실시 예에서, 메모리 컨트롤러(200)는 파일 시스템(420)으로부터 논리 어드레스들을 수신하고, 수신된 논리 어드레스들을 연속적인 물리 어드레스들로 변환할 수 있다. 연속적인 물리 어드레스들이 메모리 장치(100)에 출력되면, 메모리 장치(100)는 연속적인 물리 어드레스들에 대응하는 연속적인 동작들을 수행할 수 있다. 이 때, 연속적인 물리 어드레스들은 할당되는 물리 구역(physical zone)의 유형에 따라 결정될 수 있다. 물리 구역의 유형에 대해서는 도 4, 도 12 및 도 13 등에서 보다 상세히 설명한다.In an embodiment, the memory controller 200 may receive logical addresses from the file system 420 and convert the received logical addresses into consecutive physical addresses. When consecutive physical addresses are output to the memory device 100, the memory device 100 may perform consecutive operations corresponding to the consecutive physical addresses. At this time, successive physical addresses may be determined according to the type of assigned physical zone. The types of physical zones will be described in more detail with reference to FIGS. 4, 12 and 13.

실시 예에서, 스토리지 장치(50)는 버퍼 메모리(미도시)를 더 포함할 수 있다. 메모리 컨트롤러(200)는 호스트(400)와 버퍼 메모리(미도시) 사이의 데이터 교환을 제어할 수 있다. 또는 메모리 컨트롤러(200)는 메모리 장치(100)의 제어를 위한 시스템 데이터를 일시적으로 버퍼 메모리에 저장할 수 있다. 예를 들어, 메모리 컨트롤러(200)는 호스트(400)로부터 입력된 데이터를 버퍼 메모리에 임시로 저장하고, 이후 버퍼 메모리에 임시 저장된 데이터를 메모리 장치(100)로 전송할 수 있다. In an embodiment, the storage device 50 may further include a buffer memory (not shown). The memory controller 200 may control data exchange between the host 400 and a buffer memory (not shown). Alternatively, the memory controller 200 may temporarily store system data for controlling the memory device 100 in the buffer memory. For example, the memory controller 200 may temporarily store data input from the host 400 in a buffer memory and then transmit the data temporarily stored in the buffer memory to the memory device 100 .

다양한 실시 예에서, 버퍼 메모리는 메모리 컨트롤러(200)의 동작 메모리, 캐시 메모리로 사용될 수 있다. 버퍼 메모리는 메모리 컨트롤러(200)가 실행하는 코드들 또는 커맨드들을 저장할 수 있다. 또는 버퍼 메모리는 메모리 컨트롤러(200)에 의해 처리되는 데이터를 저장할 수 있다. 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 the memory controller 200 . Alternatively, the buffer memory may store data processed by the memory controller 200 .

실시 예에서, 버퍼 메모리는 DDR SDRAM(Double Data Rate Synchronous Dynamic Random Access Memory), DDR4 SDRAM, LPDDR4(Low Power Double Data Rate4) SDRAM, GDDR(Graphics Double Data Rate) SDRAM, LPDDR(Low Power DDR) 또는 RDRAM(Rambus Dynamic Random Access Memory)과 같은 동적 랜덤 액세스 메모리(DRAM) 또는 정적 랜덤 액세스 메모리(SRAM)로 구현될 수 있다.In an embodiment, the buffer memory is DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory), DDR4 SDRAM, LPDDR4 (Low Power Double Data Rate 4) SDRAM, GDDR (Graphics Double Data Rate) SDRAM, LPDDR (Low Power DDR) or RDRAM It may be implemented as dynamic random access memory (DRAM) or static random access memory (SRAM) such as (Rambus Dynamic Random Access Memory).

다양한 실시 예에서, 버퍼 메모리는 스토리지 장치(50)의 외부에서 연결될 수 있다. 이 경우, 스토리지 장치(50) 외부에 연결된 휘발성 메모리 장치들이 버퍼 메모리의 역할을 수행할 수 있을 것이다.In various embodiments, the buffer memory may be connected externally to the storage device 50 . In this case, volatile memory devices connected to the outside of the storage device 50 may serve as a buffer memory.

실시 예에서, 메모리 컨트롤러(200)가 적어도 둘 이상의 메모리 장치(100)들을 제어할 수 있다. 이 경우, 메모리 컨트롤러(200)는 동작 성능의 향상을 위해 메모리 장치(100)들을 인터리빙 방식에 따라 제어할 수 있다. 인터리빙 방식은 적어도 둘 이상의 메모리 장치(100)들에 대한 동작이 중첩되도록 제어하는 방식일 수 있다. 또는 인터리빙 방식은 하나의 메모리 장치(100) 내에서 구분되는 복수의 그룹들에 대한 동작이 중첩되도록 제어하는 방식일 수 있다. 이 때 그룹은 하나 이상의 메모리 다이(memory die) 단위 또는 하나 이상의 메모리 플레인(plane) 단위일 수 있다.In an embodiment, the memory controller 200 may control at least two or more memory devices 100 . In this case, the memory controller 200 may control the memory devices 100 according to an interleaving method to improve operating performance. The interleaving method may be a method of controlling operations of at least two or more memory devices 100 to overlap. Alternatively, the interleaving method may be a method of controlling operations of a plurality of groups classified in one memory device 100 to be overlapped. In this case, the group may be a unit of one or more memory dies or a unit of one or more memory planes.

호스트(400)는 USB (Universal Serial Bus), SATA (Serial AT Attachment), SAS (Serial Attached SCSI), HSIC (High Speed Interchip), SCSI (Small Computer System Interface), PCI (Peripheral Component Interconnection), PCIe (PCI express), NVMe (NonVolatile Memory express), UFS (Universal Flash Storage), SD (Secure Digital), MMC (MultiMedia Card), eMMC (embedded MMC), DIMM (Dual In-line Memory Module), RDIMM (Registered DIMM), LRDIMM (Load Reduced DIMM) 등과 같은 다양한 통신 방식들 중 적어도 하나를 이용하여 스토리지 장치(50)와 통신할 수 있다.The host 400 is USB (Universal Serial Bus), SATA (Serial AT Attachment), SAS (Serial Attached SCSI), HSIC (High Speed Interchip), SCSI (Small Computer System Interface), PCI (Peripheral Component Interconnection), PCIe ( PCI express), NVMe (NonVolatile Memory express), UFS (Universal Flash Storage), SD (Secure Digital), MMC (MultiMedia Card), eMMC (embedded MMC), DIMM (Dual In-line Memory Module), RDIMM (Registered DIMM ), LRDIMM (Load Reduced DIMM), etc., may communicate with the storage device 50 using at least one of various communication methods.

실시 예에서, 호스트(400)는 어플리케이션(410)을 포함할 수 있다. 어플리케이션(410)은 응용프로그램(application program)이라고도 하며, 운영 체제(operation system, OS) 상에서 실행되는 소프트웨어일 수 있다. 어플리케이션(410)은 사용자 입력에 응답하여 데이터를 가공할 수 있다. 예를 들어, 어플리케이션(410)은 사용자의 입력에 응답하여 데이터를 처리하고, 처리된 데이터를 스토리지 장치(50)의 메모리 장치(100)에 저장하기 위한 요청을 파일 시스템(420)으로 전달할 수 있다.In an embodiment, the host 400 may include an application 410 . The application 410 is also referred to as an application program and may be software executed on an operating system (OS). The application 410 may process data in response to user input. For example, the application 410 may process data in response to a user's input and transfer a request to store the processed data in the memory device 100 of the storage device 50 to the file system 420 . .

파일 시스템(420)은 애플리케이션으로부터 전달된 요청에 응답하여, 데이터가 저장될 논리 어드레스(logical address, LA)를 할당할 수 있다. 실시 예에서, 파일 시스템(420)은 로그 구조 파일 시스템(Log structure File System, LFS)일 수 있다. 로그 구조 파일 시스템(LFS)은 입력되는 데이터의 속성을 고려하여 로그를 생성할 수 있으며, 로그를 기초로 데이터에 대응되는 섹션을 할당할 수 있다. 이 때 섹션은 논리 어드레스들의 집합일 수 있다. 따라서, 섹션이 할당된다는 것은 해당 데이터에 대응되는 논리 어드레스들이 할당된다는 것을 의미할 수 있다. 섹션이 할당된 데이터는 섹션에 대응되는 메모리 장치(100)의 저장 영역에 순차적으로 저장될 수 있다. 예를 들어, 로그 구조 파일 시스템(LFS)은 플래시 친화적 파일 시스템(flash friendly file system, F2FS)일 수 있다. 플래시 친화적 파일 시스템(F2FS)은 SSD(Solid State Drive)의 특성을 고려하여 설계된 로그 기반 파일 시스템으로, 멀티 헤드(Multi-Head) 로그를 사용하여 SSD 내부의 병렬성을 높일 수 있다. 서로 다른 로그가 생성된 데이터는 서로 다른 섹션이 할당될 수 있다. 로그 구조 파일 시스템(LFS)은 데이터의 오버라이트(overwrite)는 할 수 없다. 로그 구조 파일 시스템(LFS)은 데이터를 수정할 때에는 수정할 데이터에 대응되는 논리 어드레스를 새로 할당하고, 이에 대응되는 물리적 영역에 데이터를 라이트할 수 있다.The file system 420 may allocate a logical address (LA) where data is stored in response to a request transmitted from an application. In an embodiment, the file system 420 may be a log structure file system (LFS). The log structured file system (LFS) may create a log in consideration of attributes of input data, and allocate a section corresponding to the data based on the log. At this time, the section may be a set of logical addresses. Therefore, allocation of a section may mean that logical addresses corresponding to corresponding data are allocated. Data to which sections are allocated may be sequentially stored in storage areas of the memory device 100 corresponding to the sections. For example, the log structured file system (LFS) may be a flash friendly file system (F2FS). A flash-friendly file system (F2FS) is a log-based file system designed in consideration of the characteristics of a Solid State Drive (SSD), and can increase parallelism within the SSD by using a multi-head log. Data generated in different logs can be assigned different sections. The log structure file system (LFS) cannot overwrite data. When data is modified, the log structure file system (LFS) allocates a new logical address corresponding to the data to be modified and writes the data to a physical area corresponding to the new logical address.

어플리케이션(410)에 의하여 쓰기 요청된 데이터는 호스트 내의 호스트 메모리(미도시)에 저장될 수 있으며, 디바이스 인터페이스(미도시)에 의해 어플리케이션으로부터의 요청에 따라 스토리지 장치(50)로 플러쉬(flush)될 수 있다. 호스트 메모리는 DRAM, SDRAM, DDR SDRAM, LPDDR SDRAM, GRAM 등과 같은 휘발성 메모리 또는 FRAM, ReRAM, STT-MRAM, PRAM 등과 같은 불휘발성 메모리들을 포함할 수 있다.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 the storage device 50 according to a request from the application through a device interface (not shown). can The host memory may include volatile memories such as DRAM, SDRAM, DDR SDRAM, LPDDR SDRAM, and GRAM, or non-volatile memories such as FRAM, ReRAM, STT-MRAM, and PRAM.

도 2는 도 1의 메모리 장치를 설명하기 위한 도면이다.FIG. 2 is a diagram for explaining the memory device of FIG. 1 .

도 2를 참조하면, 메모리 장치(100)는 메모리 셀 어레이(110), 전압 생성부(120), 어드레스 디코더(130), 입출력 회로(140) 및 제어 로직(150)을 포함할 수 있다.Referring to FIG. 2 , the memory device 100 may include a memory cell array 110 , a voltage generator 120 , an address decoder 130 , an input/output circuit 140 and a control logic 150 .

메모리 셀 어레이(110)는 복수의 메모리 블록들(BLK1~BLKi)을 포함한다. 복수의 메모리 블록들(BLK1~BLKi)은 행 라인들(RL)을 통해 어드레스 디코더(130)에 연결된다. 복수의 메모리 블록들(BLK1~BLKi)은 열 라인들(CL)을 통해 입출력 회로(140)에 연결될 수 있다. 실시 예에서, 행 라인들(RL)은 워드라인들, 소스 선택 라인들, 드레인 선택 라인들을 포함할 수 있다. 실시 예에서, 열 라인들(CL)은 비트라인들을 포함할 수 있다. 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 the address 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.

실시 예에서, 메모리 셀 어레이(110)는 하나 이상의 메모리 다이(Memory Die)를 포함할 수 있으며, 각각의 메모리 다이는 하나 이상의 메모리 블록을 포함하는 하나 이상의 플레인(Plane)을 포함할 수 있다. 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.

또한, 메모리 셀 어레이(110)에 포함된 다수의 메모리 블록(BLK)은, 둘 이상의 슈퍼 블록(SB: Super Block)으로 그룹화 될 수 있다. 슈퍼 블록(SB)은 제어 로직(150)이 메모리 셀 어레이(110)에 포함된 다수의 메모리 블록(BLK)을 관리하는 단위일 수 있다. 하나의 슈퍼 블록(SB)은, 읽기 동작 및/또는 쓰기 동작 등이 동시에 또는 동일 시간대에 이루어지거나 읽기 동작 및/또는 쓰기 동작 등이 연계되거나 관련되어 이루어지는 메모리 블록들(BLK)의 집합이거나, 하나의 커맨드에 대하여 읽기 동작 및/또는 쓰기 동작 등이 이루어지는 메모리 블록들(BLK)의 집합이거나, 메모리 셀 어레이(110)에서 읽기 동작 및/또는 쓰기 동작 등이 연계되어 이루어지거나 동시에 이루어지는 메모리 블록들(BLK)의 집합일 수 있다. 뿐만 아니라, 여러 메모리 블록(BLK) 중에서 관리 또는 동작 관점에서 서로 구별되는 메모리 블록들(BLK)의 그룹을 슈퍼 블록(SB)이라고 할 수 있다. 둘 이상의 슈퍼 블록(SB) 각각의 크기는 모두 동일할 수도 있다. 즉, 둘 이상의 슈퍼 블록(SB) 각각에 포함되는 메모리 블록들(BLK)의 개수는 모두 동일할 수도 있다. 또는, 둘 이상의 슈퍼 블록(SB) 중 적어도 하나는 나머지와 크기가 다를 수도 있다. 즉, 다수의 슈퍼 블록(SB) 중 적어도 하나의 슈퍼 블록(SB)에 포함되는 메모리 블록들(BLK)의 개수는 나머지 슈퍼 블록(SB)에 포함되는 메모리 블록들(BLK)의 개수와 다를 수도 있다. 또한, 둘 이상의 슈퍼 블록(SB) 각각에 포함되는 둘 이상의 메모리 블록(BLK)은 모두 동일한 하나의 메모리 다이에 위치할 수 있다. 이와 다르게, 둘 이상의 슈퍼 블록(SB) 각각에 포함되는 둘 이상의 메모리 블록(BLK)은 서로 다른 2개 이상의 메모리 다이(Die)들에 위치할 수도 있다.Also, the plurality of memory blocks BLK included in the memory cell array 110 may be grouped into two or more super blocks (SBs). The super block SB may be a unit in which the control logic 150 manages a plurality of memory blocks BLK included in the memory cell array 110 . One super block (SB) is a set of memory blocks (BLK) in which a read operation and/or a write operation are performed simultaneously or at the same time, or a read operation and/or a write operation are linked or related, or one A set of memory blocks BLK in which a read operation and/or a write operation are performed in response to a command of , or memory blocks in which a read operation and/or a write operation are performed in conjunction with or simultaneously in the memory cell array 110 ( BLK). In addition, among several memory blocks BLK, a group of memory blocks BLK that are distinguished from each other in terms of management or operation may be referred to as a super block SB. Each of the two or more super blocks SB may have the same size. That is, the number of memory blocks BLK included in each of two or more super blocks SB may be the same. Alternatively, at least one of the two or more super blocks SB may have a different size from the rest. That is, the number of memory blocks BLK included in at least one super block SB among the plurality of super blocks SB may be different from the number of memory blocks BLK included in the other super blocks SB. have. Also, two or more memory blocks BLK included in each of the two or more super blocks SB may be located on the same memory die. Alternatively, the two or more memory blocks BLK included in each of the two or more super blocks SB may be located on two or more different memory dies.

복수의 메모리 블록들(BLK1~BLKi) 각각은 복수의 메모리 셀들을 포함한다. 실시 예에서, 복수의 메모리 셀들은 불휘발성 메모리 셀들일 수 있다. 복수의 메모리 셀들 중 동일 워드라인에 연결된 메모리 셀들은 하나의 물리 페이지로 정의될 수 있다. 즉 메모리 셀 어레이(110)는 복수의 물리 페이지들을 포함할 수 있다. 메모리 장치(100)의 메모리 셀들은 각각 하나의 데이터 비트를 저장하는 싱글 레벨 셀(Single Level Cell; SLC), 두 개의 데이터 비트들을 저장하는 멀티 레벨 셀(Multi Level Cell; MLC), 세 개의 데이터 비트들을 저장하는 트리플 레벨 셀(Triple Level Cell; TLC) 또는 네 개의 데이터 비트를 저장할 수 있는 쿼드 레벨 셀(Quad Level Cell; QLC)로 구성될 수 있다.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. Among the plurality of memory cells, memory cells connected to the same word line may be defined as one physical page. That is, the memory cell array 110 may include a plurality of physical pages. The memory cells of the memory device 100 include a single level cell (SLC) storing one data bit, a multi-level cell (MLC) storing two data bits, and three data bits. It may be configured as a triple level cell (TLC) that stores . or a quad level cell (QLC) that can store four data bits.

실시 예에서, 전압 생성부(120), 어드레스 디코더(130) 및 입출력 회로(140)는 주변 회로(peripheral circuit)로 통칭될 수 있다. 주변 회로는 제어 로직(150)의 제어에 따라 메모리 셀 어레이(110)를 구동할 수 있다. 주변 회로는 프로그램 동작, 리드 동작 및 소거 동작을 수행하도록 메모리 셀 어레이(110)를 구동할 수 있다.In an embodiment, the voltage generator 120, the address decoder 130, and the input/output circuit 140 may be collectively referred to as a peripheral circuit. The peripheral circuit may drive the memory cell array 110 under the control of the control logic 150 . A peripheral circuit may drive the memory cell array 110 to perform a program operation, a read operation, and an erase operation.

전압 생성부(120)는 메모리 장치(100)에 공급되는 외부 전원 전압을 이용하여 복수의 동작 전압들을 발생하도록 구성된다. 전압 생성부(120)는 제어 로직(150)의 제어에 응답하여 동작한다.The voltage generator 120 is configured to generate a plurality of operating voltages using an external power supply voltage supplied to the memory device 100 . The voltage generator 120 operates in response to control of the control logic 150 .

실시 예로서, 전압 생성부(120)는 외부 전원 전압을 레귤레이팅하여 내부 전원 전압을 생성할 수 있다. 전압 생성부(120)에서 생성된 내부 전원 전압은 메모리 장치(100)의 동작 전압으로서 사용된다.As an example embodiment, the voltage generator 120 may generate an internal power voltage by regulating an external power voltage. The internal power supply voltage generated by the voltage generator 120 is used as an operating voltage of the memory device 100 .

실시 예로서, 전압 생성부(120)는 외부 전원 전압 또는 내부 전원 전압을 이용하여 복수의 동작 전압들을 생성할 수 있다. 전압 생성부(120)는 메모리 장치(100)에서 요구되는 다양한 전압들을 생성하도록 구성될 수 있다. 예를 들어, 전압 생성부(120)는 복수의 소거 전압들, 복수의 프로그램 전압들, 복수의 패스 전압들, 복수의 선택 읽기 전압들, 복수의 비선택 읽기 전압들을 생성할 수 있다.As an embodiment, the voltage generator 120 may generate a plurality of operating voltages using an external power supply voltage or an internal power supply voltage. The voltage generator 120 may be configured to generate various voltages required by the memory device 100 . For example, the voltage generator 120 may generate a plurality of erase voltages, a plurality of program voltages, a plurality of pass voltages, a plurality of select read voltages, and a plurality of non-select read voltages.

전압 생성부(120)는 다양한 전압 레벨들을 갖는 복수의 동작 전압들을 생성하기 위해서, 내부 전원 전압을 수신하는 복수의 펌핑 커패시터들을 포함하고, 제어 로직(150)의 제어에 응답하여 복수의 펌핑 커패시터들을 선택적으로 활성화하여 복수의 동작 전압들을 생성할 것이다.The voltage generator 120 includes a plurality of pumping capacitors receiving an internal power supply voltage in order to generate a plurality of operating voltages having various voltage levels, and generates a plurality of pumping capacitors in response to the control of the control logic 150. It will selectively activate to generate a plurality of operating voltages.

생성된 복수의 동작 전압들은 어드레스 디코더(130)에 의해 메모리 셀 어레이(110)에 공급될 수 있다.The generated operating voltages may be supplied to the memory cell array 110 by the address decoder 130 .

어드레스 디코더(130)는 행 라인들(RL)을 통해 메모리 셀 어레이(110)에 연결된다. 어드레스 디코더(130)는 제어 로직(150)의 제어에 응답하여 동작하도록 구성된다. 어드레스 디코더(130)는 제어 로직(150)으로부터 어드레스(ADDR)를 수신할 수 있다. 어드레스 디코더(130)는 수신된 어드레스(ADDR) 중 블록 어드레스를 디코딩할 수 있다. 어드레스 디코더(130)는 디코딩된 블록 어드레스에 따라 메모리 블록들(BLK1~BLKi) 중 적어도 하나의 메모리 블록을 선택한다. 어드레스 디코더(130)는 수신된 어드레스(ADDR) 중 로우 어드레스를 디코딩할 수 있다. 어드레스 디코더(130)는 디코딩된 로우 어드레스에 따라 선택된 메모리 블록의 워드라인들 중 적어도 하나의 워드라인을 선택할 수 있다. 실시 예에서, 어드레스 디코더(130)는 수신된 어드레스(ADDR) 중 컬럼 어드레스를 디코딩할 수 있다. 어드레스 디코더(130)는 디코딩된 컬럼 어드레스에 따라 입출력 회로(140)와 메모리 셀 어레이(110)를 연결할 수 있다.The address decoder 130 is connected to the memory cell array 110 through row lines RL. The address decoder 130 is configured to operate in response to control of the control logic 150 . The address decoder 130 may receive the 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 BLK1 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 the selected memory block according to the decoded row address. In an embodiment, 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 according to the decoded column address.

예시적으로, 어드레스 디코더(130)는 로우 디코더, 컬럼 디코더, 어드레스 버퍼 등과 같은 구성 요소들을 포함할 수 있다.Illustratively, the address decoder 130 may include components such as a row decoder, a column decoder, and an address buffer.

입출력 회로(140)는 복수의 페이지 버퍼들을 포함할 수 있다. 복수의 페이지 버퍼들은 비트 라인들을 통해 메모리 셀 어레이(110)에 연결될 수 있다. 프로그램 동작 시, 복수의 페이지 버퍼들에 저장된 데이터에 따라 선택된 메모리 셀들에 데이터가 저장될 수 있다.The input/output circuit 140 may include a plurality of page buffers. A plurality of page buffers may be connected to the memory cell array 110 through bit lines. During a program operation, data may be stored in memory cells selected according to data stored in a plurality of page buffers.

리드 동작 시, 선택된 메모리 셀들에 저장된 데이터가 비트라인들을 통해서 센싱되고, 센싱된 데이터는 페이지 버퍼들에 저장될 수 있다.During a read operation, data stored in selected memory cells may be sensed through bit lines, and the sensed data may be stored in page buffers.

제어 로직(150)은 어드레스 디코더(130), 전압 생성부(120) 및 입출력 회로(140)를 제어할 수 있다. 제어 로직(150)은 외부 장치로부터 전달되는 커맨드(CMD)에 응답하여 동작할 수 있다. 제어 로직(150)은 커맨드(CMD) 및 어드레스(ADDR)에 응답하여 제어 신호들을 생성하여 주변 회로들을 제어할 수 있다.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 a command CMD transmitted from an external device. The control logic 150 may control peripheral circuits by generating control signals in response to the command CMD and the address ADDR.

도 3은 도 2의 메모리 셀 어레이를 설명하기 위한 도면이다.FIG. 3 is a diagram for explaining the memory cell array of FIG. 2 .

도 3을 참조하면, 메모리 셀 어레이(110)는 하나 이상의 메모리 다이(Memory Die)를 포함할 수 있으며, 각각의 메모리 다이는 하나 이상의 메모리 블록을 포함하는 하나 이상의 플레인(Plane)을 포함할 수 있다. 도 3에서는 메모리 셀 어레이(110)가 4개의 메모리 다이(DIE#0, DIE#1, DIE#2, DIE#3)를 포함하는 것으로 도시되었으나, 메모리 다이의 수가 이에 제한되는 것은 아니다. 복수의 메모리 다이들은 복수의 채널을 통해 메모리 컨트롤러와 송수신할 수 있는데, 각각의 채널은 하나 이상의 메모리 다이들과 연결될 수 있다. 예를 들어, 하나의 채널이 하나의 메모리 다이와 연결된다면, 하나의 메모리 다이는 한 번에 하나의 커맨드를 수신할 수 있으며, 하나의 메모리 다이에 포함된 플레인들은 메모리 다이가 수신한 커맨드를 병렬로 처리할 수 있다.Referring to FIG. 3 , 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. . Although the memory cell array 110 is illustrated in FIG. 3 as including four memory dies (DIE#0, DIE#1, DIE#2, and DIE#3), the number of memory dies is not limited thereto. The plurality of memory dies may transmit/receive data to and from the memory controller through a plurality of channels, and each channel may be connected to one or more memory dies. For example, if one channel is connected to one memory die, one memory die can receive one command at a time, and the planes included in one memory die transmit the commands received by the memory die in parallel. can be dealt with

도 4는 본 발명의 일 실시 예에 따른 호스트 장치에서의 섹션(section) 할당 및 스토리지 장치에서의 물리 구역(physical zone) 할당을 설명하기 위한 도면이다.4 is a diagram for explaining section allocation in a host device and physical zone allocation in a storage device according to an embodiment of the present invention.

도 4를 참조하면, 호스트 장치의 파일 시스템(420)은 데이터를 쓸 것을 요청하는 어플리케이션(410)으로부터의 요청에 응답하여, 데이터의 속성에 대한 로그를 생성하고, 로그를 기초로 데이터에 대응되는 섹션을 할당할 수 있다. 섹션은 복수의 논리 어드레스들의 그룹일 수 있으며, 데이터에 대응되는 섹션을 할당한다는 것은 섹션에 포함된 복수의 논리 어드레스들 중 일부 또는 전부를 해당 데이터에 할당한다는 의미일 수 있다. 일 실시 예에서, 하나의 섹션에 대응되는 복수의 논리 어드레스들은 연속되는 논리 어드레스들일 수 있다. 또는, 하나의 섹션에 대응되는 복수의 논리 어드레스들은 연속하지 않을 수 있으나, 섹션별로 포함하는 논리 어드레스에 대한 정보가 호스트 내의 메모리 또는 스토리지 장치 상의 메모리 등에 저장되어, 섹션별 논리 어드레스를 관리할 수 있다. 또한, 파일 시스템(420)은 데이터에 할당된 로그에 기초하여, 섹션이 포함되는 섹션 그룹을 결정할 수 있다. 섹션 그룹은 복수의 섹션들을 포함할 수 있으며, 하나의 섹션 그룹 내의 섹션들에 포함된 논리 어드레스들은 연속할 수 있다. 또는, 하나의 섹션 그룹 내의 섹션들에 포함된 논리 어드레스들은 연속하지 않을 수 있으나, 섹션 그룹별로 포함하는 논리 어드레스에 대한 정보가 호스트 내의 메모리 또는 스토리지 장치 상의 메모리 등에 저장되어, 섹션 그룹별 논리 어드레스를 관리할 수 있다. 일 실시 예에서, 섹션 그룹은 파일 시스템이 섹션 그룹 내의 섹션 순서와 무관하게 섹션 그룹 내 비어있는 섹션 중 어느 하나를 새로운 섹션으로 할당하는 제1 섹션 그룹 및 파일 시스템이 섹션 그룹 내의 섹션 순서에 따라 새로운 섹션을 할당하는 제2 섹션 그룹을 포함할 수 있다. Referring to FIG. 4 , the file system 420 of the host device generates a log of attributes of the data in response to a request from the application 410 requesting to write data, and based on the log, a log corresponding to the data is generated. section can be assigned. A section may be a group of a plurality of logical addresses, and allocating a section corresponding to data may mean allocating some or all of the plurality of logical addresses included in the section to corresponding data. In one embodiment, a plurality of logical addresses corresponding to one section may be consecutive logical addresses. Alternatively, a plurality of logical addresses corresponding to one section may not be contiguous, but information on logical addresses included in each section may be stored in a memory in a host or a memory on a storage device, and the logical addresses in each section may be managed. . Also, the file system 420 may determine a section group including a section based on a log allocated to data. A section group may include a plurality of sections, and logical addresses included in sections in one section group may be consecutive. Alternatively, logical addresses included in sections within one section group may not be contiguous, but information on logical addresses included in each section group is stored in a memory in a host or a memory on a storage device to obtain a logical address for each section group. can manage In one embodiment, the section group includes a first section group in which the file system allocates any one of empty sections in the section group as a new section regardless of the order of sections in the section group, and the file system allocates a new section according to the order of sections in the section group. A second section group for allocating sections may be included.

또한, 호스트(400)는 파일 시스템(420)에 의하여 로그 및 섹션이 할당된 데이터를 스토리지 장치(50)에 제공할 수 있다. 일 예에서, 호스트(400) 내의 디바이스 인터페이스(미도시)에 의해 스토리지 장치(50)에 데이터를 제공할 수 있다. 파일 시스템(420)은 스토리지 장치(50) 내 메모리 장치(100)를 복수의 영역으로 분할하여 관리할 수 있다. 일 실시 예에서, 파일 시스템(420)은 메모리 장치 (100) 내의 저장 공간을 체크 포인트 영역(Check Point Area), 세그먼트 정보 테이블(Segment Info. Table, SIT), 노드 어드레스 테이블(Node Address Table, NAT), 세그먼트 요약 영역(Segment Summary Area, SSA) 및 메인 영역(Main Area)으로 구분할 수 있다. 체크 포인트 영역은 체크포인트를 저장할 수 있다. 체크포인트는 컴퓨팅 시스템의 동작 중에 서든 파워 오프(Sudden Power Off) 등과 같은 시스템 중단 이벤트가 발생하는 경우, 시스템의 논리적 중단점까지의 상태를 보존하는 데이터로, 이를 이용하여 데이터를 복구할 수 있다. 세그먼트 정보 테이블(SIT)은 각 세그먼트 내 유효 페이지 정보를 포함할 수 있다. 노드 어드레스 테이블(NAT)은 메모리 장치(100) 내에 저장된 파일의 인덱싱 트리를 구성하는 각 노드들에 대한 식별자와, 노드 식별자 각각에 대응되는 물리 어드레스를 포함할 수 있다. 세그먼트 요약 영역(SSA)은 후술할 메인 영역의 각 세그먼트의 요약 정보를 포함할 수 있다. 메인 영역은 실제 사용자가 사용하고 있는 각종 디렉터리 정보, 데이터, 파일 정보 등을 저장하는 공간일 수 있다. 본 명세서에서는 메인 영역에 저장되는 모든 데이터 및 정보들을 포괄하여 데이터로 정의한다. 이 때, 메인 영역에 저장되는 데이터는 그 유형에 따라 노드 또는 데이터로 분류될 수 있다. 노드는 아이노드(inode) 또는 인덱스(index), 데이터는 디렉터리(directory) 또는 사용자 파일 데이터(user file data)를 의미할 수 있다. 또한 저장되는 데이터는 온도에 따라 분류될 수 있으며, 각각 데이터의 온도를 핫, 웜, 및 콜드로 분류할 수 있다. 이에 따라, 데이터는 파일 시스템(420)에 의해 핫 노드, 웜 노드, 콜드 노드, 핫 데이터, 웜 데이터, 콜드 데이터 등으로 분류되어 로그가 할당된 후 메인 영역에 저장될 수 있다. 따라서, 메인 영역은 파일 시스템(420)이 할당한 섹션들에 대응되는 가상의 구역들로 구분될 수 있으며, 가상의 구역들 각각은 특정 로그가 할당되어 있을 수 있다. 또한, 이러한 가상의 구역들은 파일 시스템(420)에 의해 결정된 섹션 그룹에 대응되는 가상의 구역 그룹들로 그룹핑되어 구분될 수 있다. 또한, 가상의 구역들 각각은 복수의 세그먼트들을 포함할 수 있으며, 각 세그먼트에 데이터가 순차적으로 저장될 수 있다. 이 때 하나의 세그먼트는 하나 또는 둘 이상의 논리 어드레스에 대응될 수 있다. 이러한 가상의 구역들은 호스트 내의 호스트 메모리(미도시) 또는 스토리지 장치의 버퍼 메모리 장치(미도시) 등에 물리적으로 구현되거나, 섹션 및 섹션 그룹별로 포함하는 논리 어드레스들에 대한 정보를 호스트 메모리 도는 버퍼 메모리 장치에서 관리함으로써 논리적으로 구현될 수 있다.In addition, the host 400 may provide logs and section-allocated data by the file system 420 to the storage device 50 . In one example, data may be provided to the storage device 50 by a device interface (not shown) in the host 400 . The file system 420 may manage the memory device 100 in the storage device 50 by dividing it into a plurality of areas. In one embodiment, the file system 420 stores the storage space in the memory device 100 as a check point area, a segment information table (SIT), and a node address table (NAT). ), a segment summary area (SSA), and a main area. The checkpoint area may store checkpoints. A checkpoint is data that preserves a state up to a logical breakpoint of the system when a system interruption event such as sudden power off occurs during operation of the computing system, and the checkpoint can be used to recover the data. The segment information table (SIT) may include valid page information within each segment. The node address table (NAT) may include identifiers for each node constituting the indexing tree of a file stored in the memory device 100 and a physical address corresponding to each node identifier. The segment summary area SSA may include summary information of each segment of the main area, which will be described later. The main area may be a space for storing various directory information, data, file information, and the like actually used by users. In this specification, all data and information stored in the main area are comprehensively defined as data. At this time, the data stored in the main area may be classified into nodes or data according to its type. A node may mean an inode or an index, and data may mean a directory or user file data. In addition, stored data may be classified according to temperature, and the temperature of each data may be classified into hot, warm, and cold. Accordingly, the data may be classified into hot nodes, warm nodes, cold nodes, hot data, warm data, cold data, etc. by the file system 420, logs may be allocated, and then stored in the main area. Accordingly, the main area may be divided into virtual areas corresponding to sections allocated by the file system 420, and a specific log may be allocated to each of the virtual areas. Also, these virtual zones may be grouped and divided into virtual zone groups corresponding to the section groups determined by the file system 420 . Also, each of the virtual zones may include a plurality of segments, and data may be sequentially stored in each segment. In this case, one segment may correspond to one or more logical addresses. These virtual zones are physically implemented in a host memory (not shown) in a host or a buffer memory device (not shown) of a storage device, or information about logical addresses included by sections and section groups is stored in a host memory or buffer memory device. It can be logically implemented by managing in

스토리지 장치(50)는 메모리 컨트롤러(200) 및 메모리 장치(100)를 포함할 수 있으며, 메모리 컨트롤러(200)는 구역 관리부(210) 및 플래시 변환 계층(220)을 포함할 수 있다.The storage device 50 may include a memory controller 200 and the memory device 100 , and the memory controller 200 may include a zone manager 210 and a flash conversion layer 220 .

메모리 컨트롤러(200)는 호스트(400)로부터 데이터를 수신할 수 있다. 데이터는 파일 시스템(420)에 의해 로그 및 섹션이 할당된 데이터일 수 있다. 구역 관리부(210)는 수신한 데이터의 로그를 기초로 데이터가 저장될 슈퍼 블록을 할당할 수 있다. 슈퍼 블록은 복수의 물리 구역(physical zone)을 포함하며, 슈퍼 블록의 종류에 따라 이에 포함되는 물리 구역의 형태가 상이하기에, 슈퍼 블록을 할당하는 것은 데이터가 저장되는 물리 구역의 형태를 결정하는 것일 수 있다. 즉, 하나의 메모리 다이 내의 하나 이상의 메모리 블록들을 포함하는 제1 물리 구역 및 서로 다른 메모리 다이들에 포함된 메모리 블록들 각각의 일부를 포함하는 제2 물리 구역 중 어느 물리 구역에 포함되어야 하는지 결정할 수 있다. 이 때, 제1 물리 구역들을 복수 개 포함하는 슈퍼 블록을 제1 슈퍼 블록, 제2 물리 구역들을 복수 개 포함하는 슈퍼 블록을 제2 슈퍼 블록으로 칭할 수 있다. 이 때, 제1 슈퍼 블록에 저장되는 데이터는 파일 시스템(420)에 의해 제1 섹션 그룹 내의 섹션이 할당된 데이터일 수 있으며, 제2 슈퍼 블록에 저장되는 데이터는 제2 섹션 그룹 내의 섹션이 할당된 데이터일 수 있다.The memory controller 200 may receive data from the host 400 . The data may be data allocated to logs and sections by the file system 420 . The zone management unit 210 may allocate a super block in which data is stored based on the log of the received data. A super block includes a plurality of physical zones, and the shape of the physical zones included in the super block is different depending on the type of super block, so assigning a super block determines the shape of the physical zone in which data is stored. it could be That is, 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 memory blocks included in different memory dies may be determined in which physical zone should be included. have. In this case, 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. In this case, the data stored in the first super block may be data to which sections in the first section group are allocated by the file system 420, and data stored in the second super block are allocated to sections in the second section group. may be data.

구역 관리부(210)는 데이터가 저장될 물리 구역 유형에 대한 정보를 플래시 변환 계층(220)에 제공할 수 있으며, 플래시 변환 계층(220)은 이를 기초로 섹션이 할당된 데이터의 논리 어드레스를 물리 어드레스로 변환할 수 있다. 일 실시 예에서, 섹션이 할당된 데이터는 섹션에 포함된 논리 어드레스들이 부여될 수 있으며, 플래시 변환 계층(220)은 저장할 데이터의 논리 어드레스를 구역 관리부(210)에 의해 결정된 물리 구역 내에서의 연속적인 물리 어드레스로 변환할 수 있다.The zone management unit 210 may provide the flash conversion layer 220 with information on the type of physical zone in which data is to be stored, and the flash conversion layer 220 converts the logical address of the data to which the section is allocated to the physical address based on this information. can be converted to In one embodiment, logical addresses included in the section may be assigned to the data allocated to the section, and the flash translation layer 220 assigns the logical address of the data to be stored consecutively within the physical area determined by the area management unit 210. can be converted to a physical address.

플래시 변환 계층(220)은 변환된 물리 어드레스를 구역 관리부(210)에 전달할 수 있으며, 구역 관리부(210)는 수신한 물리 어드레스에 데이터를 저장하도록 메모리 장치(100)를 제어할 수 있다. The flash conversion layer 220 may transmit the converted physical address to the zone manager 210, and the zone manager 210 may control the memory device 100 to store data at the received physical address.

도 5는 파일 시스템에 의하여 할당되는 섹션의 구조를 설명하기 위한 도면이다.5 is a diagram for explaining the structure of a section allocated by a file system.

도 5를 참조하면, 섹션은 복수의 논리 어드레스를 포함할 수 있다. 하나의 섹션 내에 포함되는 논리 어드레스들은 연속적인 어드레스들이거나 연속하지 않은 어드레스들일 수 있다. 데이터에 대해 섹션이 할당된다는 것은 섹션 내의 논리 어드레스가 할당된다는 의미일 수 있다. 섹션별 포함하는 어드레스들에 대한 정보가 호스트 내의 메모리 또는 스토리지 장치 내의 메모리에 포함될 수 있다. 쓰기 요청된 데이터의 크기에 따라 논리 어드레스가 순차적으로 할당될 수 있다. 예를 들어, 특정 크기의 데이터 D1 및 D2에 대한 쓰기 요청이 있으며, 데이터 D1 및 D2에 대해 모두 도 5의 섹션이 할당된 경우, D1에 대해서 LA1 내지 LA3의 논리 어드레스가 할당될 수 있고, D2에 대해서 LA4 및 LA5의 논리 어드레스가 할당될 수 있다.Referring to FIG. 5 , a section may include a plurality of logical addresses. Logical addresses included in one section may be contiguous addresses or non-contiguous addresses. Allocating a section to data may mean allocating a logical address within the section. Information on addresses included in each section may be included in a memory in a host or a memory in a storage device. Logical addresses may be sequentially allocated according to the size of write-requested data. For example, if there is a write request for data D1 and D2 of a specific size, and the section of FIG. 5 is allocated to both data D1 and D2, logical addresses LA1 to LA3 may be allocated for D1, and D2 Logical addresses of LA4 and LA5 may be allocated for .

도 6은 본 발명의 일 실시 예에 따른 제1 섹션 그룹의 새로운 섹션 할당 과정을 설명하기 위한 도면이다.6 is a diagram for explaining a process of allocating a new section of a first section group according to an embodiment of the present invention.

도 6을 참조하면, 섹션 그룹 내 섹션 순서와 무관하게 새로운 섹션이 할당될 수 있는 섹션 그룹을 제1 섹션 그룹(421a)으로 정의할 수 있다. 이 때, 섹션 그룹 내 섹션들에 포함된 논리 어드레스는 서로 연속할 수 있으며, 섹션 그룹 내 섹션의 번호가 증가할수록 논리 어드레스가 증가할 수 있다. 따라서, 섹션 순서란 섹션 그룹 내의 섹션 번호 순서를 의미할 수 있으며, 이는 논리 어드레스가 증가하는 방향으로의 순서를 의미할 수 있다. 또는 섹션 그룹 내 섹션들에 포함된 논리 어드레스는 서로 연속하지 않을 수 있다. 이 경우, 별도의 메모리에 저장된 섹션 및 섹션 그룹별 포함된 논리 어드레스들에 대한 정보를 기초로 섹션 순서가 결정될 수 있다. 제1 섹션 그룹(421a)의 경우, 섹션 순서와 무관하게 섹션이 할당되어 논리 어드레스가 부여될 수 있기에, 제3 섹션(Section#3)이 먼저 할당되어 제3 섹션 내 모든 논리 어드레스가 부여됨으로써, 풀 섹션(Full Section)이 된 후, 제1 섹션(Section#1)이 할당되어 새로운 데이터에 대한 논리 어드레스가 부여될 수 있다. 오픈 섹션(Open Section)인 제1 섹션의 모든 논리 어드레스가 데이터에 부여되어 제1 섹션이 풀 섹션이 되면, 파일 시스템(420)은 비어있는 섹션(Empty Section)인 제0 섹션(Section#0) 또는 제2 섹션(Section#2) 중 어느 하나를 새로운 섹션으로 할당하고 이에 포함된 논리 어드레스를 데이터에 부여할 수 있다.Referring to FIG. 6 , a section group to which a new section can be allocated may be defined as a first section group 421a regardless of the order of sections within the section group. In this case, the logical addresses included in the sections in the section group may be consecutive to each other, and the logical addresses may increase as the number of sections in the section group increases. Accordingly, the section order may mean the order of section numbers in a section group, which may mean the order in the direction of increasing logical addresses. Alternatively, logical addresses included in sections in a section group may not be consecutive to each other. In this case, the section order may be determined based on information about sections stored in a separate memory and logical addresses included in each section group. In the case of the first section group 421a, since the sections are allocated and logical addresses can be assigned regardless of the section order, the third section (Section#3) is assigned first and all logical addresses in the third section are assigned. After becoming a full section, a first section (Section#1) may be allocated and a logical address for new data may be assigned. When all the logical addresses of the first section, which is an open section, are assigned to data and the first section becomes a full section, the file system 420 creates an empty section, section 0 (Section#0). Alternatively, any one of the second sections (Section#2) may be allocated as a new section and a logical address included therein may be assigned to data.

도 7a 및 도 7b는 본 발명의 일 실시 예에 따른 제2 섹션 그룹의 새로운 섹션 할당 과정을 설명하기 위한 도면이다.7A and 7B are diagrams for explaining a process of allocating a new section of a second section group according to an embodiment of the present invention.

도 7a 및 도 7b를 참조하면, 섹션 그룹 내 섹션 순서에 따라 새로운 섹션이 할당될 수 있는 섹션 그룹을 제2 섹션 그룹(421b)으로 정의할 수 있다. 도 7a에서와 같이, 제2 섹션 그룹에서는 제0 섹션(Section#0)이 제일 먼저 오픈되어 이에 포함된 논리 어드레스를 데이터에 부여하며, 제0 섹션이 풀 섹션이 되는 경우에는, 다음 순서의 섹션인 제1 섹션(Section#1)이 새로운 섹션으로 할당되어 데이터가 저장될 수 있다. 만약 도 7b와 같이 제2 섹션 그룹(421b) 내 모든 섹션이 풀 섹션인 경우, 파일 시스템(420)은 새로운 제2 섹션 그룹(421b)을 할당한 후, 새로운 제2 섹션 그룹 내 첫 번째 섹션인 제0 섹션(Section#0)을 새로운 섹션으로 할당하고 이에 포함된 논리 어드레스를 데이터에 부여할 수 있다. 이 때 제2 섹션 그룹(421b)의 경우, 섹션 그룹 내 섹션 순서에 따라 섹션이 할당되는 바, 마지막 섹션인 제3 섹션(Section#3)이 풀 섹션인 경우 그보다 앞선 섹션 중에는 비어있는 섹션(Empty Section)이 존재할 수 없다. 따라서 제2 섹션 그룹(421b)의 경우, 섹션 그룹 내 비어있는 섹션을 찾을 필요는 없으며, 제2 섹션 그룹(421b) 내 다음 순서의 섹션이 존재하지 않는다면, 파일 시스템(420)은 새로운 제2 섹션 그룹(421b)을 할당하게 된다.Referring to FIGS. 7A and 7B , a section group to which new sections can be allocated according to the order of sections within the section group may be defined as a second section group 421b. As shown in FIG. 7A, in the second section group, the 0th section (Section#0) is opened first and logical addresses included therein are given to data. The first section (Section#1) may be allocated as a new section to store data. If all the sections in the second section group 421b are full sections as shown in FIG. 7B, the file system 420 allocates a new second section group 421b, and then the first section in the new second section group The 0th section (Section#0) may be allocated as a new section, and a logical address included therein may be assigned to data. At this time, in the case of the second section group 421b, sections are allocated according to the order of sections within the section group. If the last section, the third section (Section#3), is a full section, among the previous sections, empty sections (Empty Section) cannot exist. Therefore, in the case of the second section group 421b, there is no need to find an empty section in the section group, and if the next section in the second section group 421b does not exist, the file system 420 starts a new second section. The group 421b is assigned.

도 8은 본 발명의 일 실시 예에 따른 제1 섹션 그룹의 리셋 과정을 설명하기 위한 도면이다.8 is a diagram for explaining a reset process of a first section group according to an embodiment of the present invention.

도 8을 참조하면, 제1 섹션 그룹(421a)에서, 1) 제0 섹션(Section#0)을 리셋하는 경우, 2) 제0 섹션 내의 논리 어드레스들에 대응되는 데이터를 모두 폐기(discard)함으로써, 제0 섹션은 비어있는(empty) 섹션이 되어 리셋 동작이 완료된다. 또한, 3) 제1 섹션(Section#1)을 리셋하는 경우, 4) 제1 섹션 내의 논리 어드레스들에 대응되는 데이터를 모두 폐기(discard)함으로써, 제1 섹션은 비어있는(empty) 섹션이 되어 리셋 동작이 완료된다. 또한, 5) 제2 섹션(Section#2)을 리셋하는 경우, 6) 제2 섹션 내의 논리 어드레스들에 대응되는 데이터를 모두 폐기(discard)함으로써, 제2 섹션은 비어있는(empty) 섹션이 되어 리셋 동작이 완료된다. 즉, 제1 섹션 그룹(421a)에 포함된 하나의 섹션에 대해 리셋 동작을 수행하는 경우, 이에 응답하여 해당 섹션 내의 논리 어드레스들에 대응되는 데이터들은 폐기(discard)되어 해당 섹션은 바로 비어있는(empty) 섹션이 될 수 있으며, 이에 따라 리셋 동작이 완료될 수 있다. 이 때, 논리 어드레스들에 대응되는 데이터들이 폐기된다는 것은 논리 어드레스와 데이터 간의 맵핑 관계를 해제한다는 것을 의미할 수 있다. 리셋 동작은 특정 섹션 내의 논리 어드레스들에 대응되는 데이터들이 모두 무효(invalid)인 경우 수행되며, 유효한 데이터가 존재한다면 이를 다른 섹션의 논리 어드레스에 맵핑하고, 해당 논리 어드레스에 대응되는 데이터는 무효(invalid)처리 한 후, 리셋 동작이 수행될 수 있다. 리셋이 완료된 섹션에 포함된 논리 어드레스들은 새로운 데이터들에 대해 다시 부여될 수 있다. 이러한 리셋 동작은 파일 시스템에 의하여 수행될 수 있다.Referring to FIG. 8 , in the first section group 421a, 1) when the 0th section (Section#0) is reset, 2) by discarding all data corresponding to logical addresses in the 0th section. , the 0th section becomes an empty section and the reset operation is completed. In addition, 3) when resetting the first section (Section#1), 4) by discarding all data corresponding to logical addresses in the first section, the first section becomes an empty section. The reset operation is complete. In addition, 5) when the second section (Section#2) is reset, 6) by discarding all data corresponding to logical addresses in the second section, the second section becomes an empty section. The reset operation is complete. That is, when a reset operation is performed on one section included in the first section group 421a, in response to this, data corresponding to logical addresses in the corresponding section are discarded, and the corresponding section is immediately empty ( empty) section, and thus the reset operation can be completed. At this time, discarding the data corresponding to the logical addresses may mean releasing the mapping relationship between the logical addresses and the data. The reset operation is performed when all data corresponding to logical addresses in a specific section are invalid. If there is valid data, it is mapped to a logical address in another section, and the data corresponding to the corresponding logical address is invalid. ) After processing, a reset operation may be performed. Logical addresses included in the reset-completed section may be assigned again for new data. This reset operation may be performed by a file system.

도 9는 본 발명의 일 실시 예에 따른 제2 섹션 그룹의 리셋 과정을 설명하기 위한 도면이다.9 is a diagram for explaining a reset process of a second section group according to an embodiment of the present invention.

도 4 및 도 9를 참조하면, 제2 섹션 그룹(421b)에서, 1) 제0 섹션(Section#0)을 리셋하는 경우, 2) 제0 섹션 내의 논리 어드레스들에 대응되는 데이터는 바로 폐기되지 않고, 제0 섹션은 리셋 준비 중(Ready to Reset)임을 나타내는 정보가 비트맵에 저장된다. 또한, 3) 제1 섹션(Section#1)을 리셋하는 경우, 4) 제1 섹션 내의 논리 어드레스들에 대응되는 데이터는 바로 폐기되지 않고, 제1 섹션은 리셋 준비 중(Ready to Reset)임을 나타내는 정보가 비트맵에 저장된다. 또한, 5) 제2 섹션(Section#2)을 리셋하는 경우, 6) 제2 섹션 내의 논리 어드레스들에 대응되는 데이터는 바로 폐기되지 않고, 제2 섹션은 리셋 준비 중(Ready to Reset)임을 나타내는 정보가 비트맵에 저장된다. 또한, 7) 제3 섹션(Section#3)을 리셋하는 경우, 8) 제3 섹션 내의 논리 어드레스들에 대응되는 데이터는 파로 폐기되지 않고, 제3 섹션은 리셋 준비 중(Ready to Reset)임을 나타내는 정보가 비트맵에 저장된다. 9) 이에 따라 제2 섹션 그룹(421b)의 모든 섹션들에 대하여 리셋 준비 중임을 나타내는 정보가 비트맵에 저장되면, 상기 모든 섹션 내의 모든 논리 어드레스들에 대응되는 데이터들이 모두 폐기(discard)되고, 제2 섹션 그룹(421b) 내의 모든 섹션들은 한꺼번에 비어있는 섹션이 됨으로써, 리셋 동작이 완료될 수 있다. 즉, 제2 섹션 그룹(421b)의 경우, 일부의 섹션만이 리셋되는 경우에는 바로 데이터들이 폐기되지 않아 섹션이 비어있는 섹션이 되지 않고, 제2 섹션 그룹(421b) 내의 모든 섹션들에 대해 리셋 동작이 수행된 후, 즉 모든 섹션들에 대해 리셋 준비 중이라는 정보가 저장된 후에, 제2 섹션 그룹(421b)에 포함된 모든 섹션들의 논리 어드레스들에 대응되는 데이터들이 폐기됨으로써 제2 섹션 그룹(421b) 내의 모든 섹션들은 동시에 비어있는 섹션이 될 수 있다. 리셋 동작이 완료되면, 제2 섹션 그룹(421b) 내의 모든 섹션들에 대하여, 리셋 준비 중임을 나타내는 정보는 삭제될 수 있다. 이 때, 리셋 준비 중임을 나타내는 정보를 저장하는 비트맵은 스토리지 장치 내의 임의의 위치에 포함될 수 있다. 이 때, 논리 어드레스들에 대응되는 데이터들이 폐기된다는 것은 논리 어드레스와 데이터 간의 맵핑 관계를 해제한다는 것을 의미할 수 있다. 리셋 동작은 특정 섹션 내의 논리 어드레스들에 대응되는 데이터들이 모두 무효(invalid)인 경우 수행되며, 유효한 데이터가 존재한다면 이를 다른 섹션의 논리 어드레스에 맵핑하고, 해당 논리 어드레스에 대응되는 데이터는 무효(invalid)처리 한 후, 리셋 동작이 수행될 수 있다. 리셋이 완료된 섹션에 포함된 논리 어드레스들은 새로운 데이터들에 대해 다시 부여될 수 있다. 이러한 리셋 동작은 파일 시스템에 의하여 수행될 수 있다.4 and 9, in the second section group 421b, 1) when the 0th section (Section#0) is reset, 2) data corresponding to logical addresses in the 0th section are not immediately discarded. and information indicating that the 0th section is ready to reset is stored in the bitmap. In addition, 3) when the first section (Section#1) is reset, 4) data corresponding to logical addresses in the first section are not immediately discarded, indicating that the first section is preparing for reset (Ready to Reset). Information is stored in a bitmap. In addition, 5) when the second section (Section#2) is reset, 6) data corresponding to logical addresses in the second section are not immediately discarded, indicating that the second section is preparing for reset (Ready to Reset). Information is stored in a bitmap. In addition, 7) when the third section (Section#3) is reset, 8) data corresponding to logical addresses in the third section are not discarded as waves, indicating that the third section is preparing for reset (Ready to Reset). Information is stored in a bitmap. 9) Accordingly, when information indicating that resetting is being prepared for all sections of the second section group 421b is stored in the bitmap, all data corresponding to all logical addresses in all sections are discarded, All sections in the second section group 421b become empty sections at once, so that the reset operation can be completed. That is, in the case of the second section group 421b, when only some of the sections are reset, data is not immediately discarded and the section does not become an empty section, and all sections in the second section group 421b are reset. After an operation is performed, that is, after information indicating that resetting is being prepared for all sections is stored, data corresponding to logical addresses of all sections included in the second section group 421b are discarded, thereby discarding the second section group 421b. ) can be empty at the same time. When the reset operation is completed, information indicating that resetting is being prepared may be deleted for all sections in the second section group 421b. At this time, a bitmap storing information indicating that resetting is being prepared may be included in an arbitrary location in the storage device. At this time, discarding the data corresponding to the logical addresses may mean releasing the mapping relationship between the logical addresses and the data. The reset operation is performed when all data corresponding to logical addresses in a specific section are invalid. If there is valid data, it is mapped to a logical address in another section, and the data corresponding to the corresponding logical address is invalid. ) After processing, a reset operation may be performed. Logical addresses included in the reset-completed section may be assigned again for new data. This reset operation may be performed by a file system.

도 10은 본 발명의 일 실시 예에 따른 데이터의 분류를 설명하기 위한 도면이다.10 is a diagram for explaining classification of data according to an embodiment of the present invention.

일 실시 예에서, 어플리케이션에 의해 쓰기 요청된 데이터는 그 유형에 따라 노드 또는 데이터로 분류될 수 있으며, 온도에 따라 핫, 웜 및 콜드로 분류할 수 있다. 이에 따라, 파일 시스템(420)은 데이터에 대해 그 속성에 따라 핫 노드, 웜 노드, 콜드 노드, 핫 데이터, 웜 데이터, 콜드 데이터 등의 로그를 생성할 수 있다. 예를 들어, 핫 노드는 디렉터리(directory)에 대한 아이노드(inode) 또는 다이렉트 노드 블록(direct node block)일 수 있으며, 따라서 핫 노드는, 오버라이트 또는 업데이트 빈도가 매우 높고, 가비지 컬렉션 대상이 될 확률도 높은 데이터일 수 있다. 웜 노드는 일반 파일(regular file)에 대한 아이노드(inode) 또는 다이렉트 노드 블록일 수 있으며, 따라서 웜 노드는, 오버라이트 또는 업데이트 빈도가 높고, 가비지 컬렉션 대상이 될 확률도 상당한 데이터일 수 있다. 콜드 노드는 인다이렉트 노드 블록(indirect node block)일 수 있으며, 따라서 콜드 노드는, 오버라이트 및 업데이트 빈도는 낮으나, 가비지 컬렉션 대상이 될 확률이 매우 높은 데이터일 수 있다. 핫 데이터는 디렉터리 엔트리 블록(directory entry block), 할당량(quota) 또는 64 KB 이하의 비교적 작은 용량의 파일 데이터일 수 있으며, 따라서 핫 데이터는, 다른 데이터에 비해 오버라이트 또는 업데이트 빈도가 높고, 가비지 컬렉션 대상이 될 확률이 높은 데이터일 수 있다. 웜 데이터는 사용자에 의해 만들어진 데이터 블록일 수 있으며, 예를 들어, 64 KB 이상의 비교적 큰 용량의 파일 데이터일 수 있고, 따라서 웜 데이터는, 업데이트 빈도는 비교적 높으나 가비지 컬렉션 대상이 될 확률은 비교적 낮은 데이터일 수 있다. 콜드 데이터는 클리닝(cleaning) 또는 가비지 컬렉션(garbage collection)에 의해 이동된 데이터, 사용자에 의해 콜드 데이터로 분류된 데이터 블록 또는 특정 형식을 갖는(ex, .db, .jpg 등) 파일 데이터, 예를 들면 멀티미디어 파일 데이터(multimedia file data)일 수 있고, 따라서 콜드 데이터는, 오버라이트 빈도가 낮으며, 가비지 컬렉션 대상이 될 확률도 비교적 낮은 데이터일 수 있다. 다만, 이러한 데이터의 분류는 이러한 방법으로 제한되는 것은 아니고, 아래 도 11에서의 방식을 포함한 다양한 기준을 가지는 방법으로 수정될 수 있다. 본 명세서에서, 파일 시스템의 클리닝(cleaning)은 호스트의 입장에서 비어있는 섹션을 확보하기 위하여, 희생 섹션 내의 논리 어드레스에 대응되는 유효 데이터들에 대해 다른 섹션을 할당한 후, 희생 섹션 내의 논리 어드레스들과 이에 대응되는 데이터 간의 관계를 해제하는 것을 의미하며, 가비지 컬렉션(garbage collection)은 스토리지 장치의 입장에서 비어있는 물리 구역을 확보하기 위하여, 또는 비어있는 메모리 블록을 확보하기 위하여, 메모리 장치의 희생 물리 구역에 저장된 데이터들 중 유효 데이터를 다른 물리 구역으로 이동시킨 후, 해당 물리 구역을 소거하는 것을 의미할 수 있다. 즉, 클리닝 및 가비지 컬렉션은 결과적으로 동일한 동작을 의미하는 것일 수 있다. In an embodiment, data requested to be written by an application may be classified into nodes or data according to its type, and may be classified into hot, warm, and cold according to temperature. Accordingly, the file system 420 may generate logs such as hot node, warm node, cold node, hot data, warm data, and cold data according to data attributes. For example, a hot node can be an inode or direct node block for a directory, so a hot node is overwritten or updated very frequently and is not subject to garbage collection. It can also be data with high probability. A warm node may be an inode or direct node block for a regular file, and thus, a warm node may be data that is overwritten or updated frequently and has a considerable probability of being subject to garbage collection. A cold node may be an indirect node block, and therefore, a cold node may be data that has a low overwrite and update frequency, but is highly likely to be subject to garbage collection. Hot data can be a directory entry block, quota, or relatively small file data of 64 KB or less. Therefore, hot data is overwritten or updated more frequently than other data, and is not subject to garbage collection. It may be data with a high probability of being a target. The worm data may be a data block created by a user, and may be, for example, file data with a relatively large capacity of 64 KB or more. Therefore, the worm data is data with a relatively high update frequency but a relatively low probability of being subject to garbage collection. can be Cold data is data moved by cleaning or garbage collection, data blocks classified as cold data by users, or file data having a specific format (eg, .db, .jpg, etc.), for example. For example, it may be multimedia file data, and therefore, cold data may be data that has a low overwrite frequency and a relatively low probability of being subject to garbage collection. However, the classification of such data is not limited to this method, and may be modified in a method having various criteria including the method in FIG. 11 below. In this specification, the cleaning of the file system allocates another section for valid data corresponding to the logical address in the victim section in order to secure an empty section from the host's point of view, and then the logical addresses in the victim section It means releasing the relationship between the data and the data corresponding thereto, and garbage collection is a victim physical area of a memory device to secure an empty physical area or an empty memory block from the point of view of a storage device. It may refer to moving valid data among data stored in a zone to another physical zone and then erasing the corresponding physical zone. That is, cleaning and garbage collection may mean the same operation as a result.

도 10을 참고하면, 핫 노드, 웜 노드, 콜드 노드 및 핫 데이터에 대해서는 제1 섹션 그룹에 포함되는 섹션이, 웜 데이터 및 콜드 데이터에 대해서는 제2 섹션 그룹에 포함되는 섹션이 할당될 수 있다. 이 때, 제1 섹션 그룹에 포함되는 제1 섹션이 할당되는 핫 노드, 웜 노드, 콜드 노드 및 핫 데이터를 제1 유형 데이터로, 제2 섹션 그룹에 포함되는 제2 섹션이 할당되는 웜 데이터 및 콜드 데이터를 제2 유형 데이터로 정의할 수 있다. 그러나, 제1 섹션 그룹 및 제2 섹션 그룹에 포함되는 각 데이터의 분류는 도 10에 도시된 것으로 제한되는 것은 아니고, 데이터는 설정에 따라 다양하게 분류될 수 있다. 바람직하게는 제1 유형 데이터는 비교적 작은 용량을 갖거나, 업데이트 또는 오버라이트가 될 가능성이 높은 데이터일 수 있다. 또한 제2 유형 데이터는 비교적 큰 용량을 갖거나, 업데이트 또는 오버라이트가 될 가능성이 작은 데이터일 수 있다. 이에 따라 제2 유형 데이터는 제1 유형 데이터에 비하여 비교적 인풋/아웃풋 성능에 영향을 많이 받는 데이터일 수 있다. 이 때, 제1 유형 데이터로 분류되는 데이터는 그 구체적인 속성과 무관하게 하나의 제1 섹션 그룹 내의 섹션들이 할당될 수 있다. 또는, 동일한 제1 유형 데이터라 하더라도, 데이터의 종류(노드 또는 데이터) 또는 온도(핫, 웜, 콜드) 등과 같은 속성이 상이한 경우, 이에 따라 서로 다른 복수의 제1 섹션 그룹 내의 섹션들이 할당될 수 있다. 마찬가지로, 제2 유형 데이터로 분류되는 데이터는 그 구체적인 속성과 무관하게 하나의 제2 섹션 그룹 내의 섹션들이 할당될 수 있다. 또는, 동일한 제2 유형 데이터라 하더라도, 데이터의 종류(노드 또는 데이터) 또는 온도(핫, 웜, 콜드) 등과 같은 속성이 상이한 경우, 이에 따라 서로 다른 복수의 제2 섹션 그룹 내의 섹션들이 할당될 수 있다.Referring to FIG. 10 , sections included in a first section group may be allocated to hot nodes, warm nodes, cold nodes, and hot data, and sections included in a second section group may be allocated to warm data and cold data. At this time, the hot node, warm node, cold node, and hot data to which the first section included in the first section group is allocated are the first type data, and the warm data to which the second section included in the second section group is allocated, and Cold data may be defined as the second type of data. However, the classification of each data included in the first section group and the second section group is not limited to that shown in FIG. 10, and data may be classified in various ways according to settings. Preferably, the data of the first type may have a relatively small capacity or may be data with a high possibility of being updated or overwritten. Also, the second type data may have a relatively large capacity or data that is unlikely to be updated or overwritten. Accordingly, the second type data may be data that is relatively more affected by input/output performance than the first type data. In this case, the data classified as the first type data may be allocated to sections within one first section group regardless of specific attributes thereof. Alternatively, even for the same first type of data, if attributes such as data type (node or data) or temperature (hot, warm, cold) are different, sections in a plurality of different first section groups may be allocated accordingly. have. Similarly, data classified as the second type data may be allocated to sections within one second section group regardless of specific attributes thereof. Alternatively, even for the same second type data, if attributes such as data type (node or data) or temperature (hot, warm, cold) are different, sections in a plurality of different second section groups may be allocated accordingly. have.

도 11은 본 발명의 다른 실시 예에 따른 데이터의 분류를 설명하기 위한 도면이다.11 is a diagram for explaining classification of data according to another embodiment of the present invention.

도 11을 참조하면, 도 10과는 다른 분류 기준으로 데이터를 분류할 수 있다. 도 11의 경우, 데이터를 핫 노드, 웜 노드, 핫 데이터, 웜 데이터, 콜드 데이터로 분류한다. 핫 노드에는 디렉터리에 대한 아이노드, 파일에 대한 아이노드 및 다이렉트 노드가 포함될 수 있고, 웜 노드에는 인다이렉트 노드, 디렉터리 엔트리 블록, 할당량이 포함될 수 있다. 또한 핫 데이터에는 작은 사이즈의 파일 데이터가, 웜 데이터에는 중간 사이즈의 파일 데이터가 포함될 수 있으며, 콜드 데이터는 큰 사이즈의 파일 데이터 또는 특정 형식을 갖는 모든 크기의 파일 데이터일 수 있다. 즉, 도 11에서 제시하는 데이터의 분류는, 섹션 그룹 및 슈퍼 블록을 나누어 관리하는데 보다 적합할 수 있도록 데이터의 종류, 데이터의 크기, 데이터 발생 빈도, 오버라이트 빈도 등을 기준으로 하여 여러 속성의 데이터를 재분류한 것일 수 있다. 이에 따라 분류된 핫 노드, 웜 노드, 핫 데이터는 제1 유형 데이터로 분류되어 제1 섹션 그룹 내의 섹션이 할당되며, 웜 데이터 및 콜드 데이터는 제2 유형 데이터로 분류되어 제2 섹션 그룹 내의 섹션이 할당될 수 있다. 다만 데이터 분류 기준이 도 10에 대하여 설명한 내용 및 도 11에 도시된 내용으로 제한되는 것은 아니다.Referring to FIG. 11 , data may be classified according to a classification criterion different from that of FIG. 10 . In the case of FIG. 11 , data is classified into hot node, warm node, hot data, warm data, and cold data. Hot nodes can include inodes for directories, inodes for files, and direct nodes. Warm nodes can include indirect nodes, directory entry blocks, and quotas. In addition, hot data may include small-sized file data, warm data may include medium-sized file data, and cold data may include large-sized file data or file data of any size having a specific format. That is, the classification of data presented in FIG. 11 is based on the type of data, size of data, frequency of data occurrence, frequency of overwrite, etc. so that it can be more suitable for dividing and managing section groups and super blocks. may have been reclassified. The hot nodes, warm nodes, and hot data classified accordingly are classified as first type data and assigned sections in the first section group, and warm data and cold data are classified as second type data and sections in the second section group can be assigned However, the data classification criterion is not limited to the contents described with respect to FIG. 10 and the contents shown in FIG. 11 .

도 12는 본 발명의 일 실시 예에 따른 스토리지 장치의 메모리 블록 관리를 설명하기 위한 도면이다.12 is a diagram for explaining memory block management of a storage device according to an embodiment of the present invention.

도 3, 도 4 및 도 12를 참조하면, 메모리 셀 어레이(110)는 복수 개의 메모리 다이들을 포함할 수 있으며, 예를 들어 4개의 메모리 다이들(DIE#0~DIE#3)을 포함할 수 있다. 또한, 각 메모리 다이는 각각 복수 개의 메모리 블록들을 포함하는 복수 개의 플레인들을 포함할 수 있으며, 예를 들어 4개의 플레인들(PLANE#0~PLANE#3)을 포함할 수 있다. 구역 관리부(210)는 메모리 셀 어레이 내의 복수 개의 메모리 블록들을 슈퍼 블록으로 분류하여 관리할 수 있다. 슈퍼 블록은 하나 이상의 물리 구역(physical zone)을 포함할 수 있다. 슈퍼 블록은 복수 개의 메모리 다이들에 걸쳐 형성될 수 있으며, 예를 들어, 도 12에서와 같이, 슈퍼 블록은 모든 메모리 다이들에 걸쳐 형성될 수 있다. 슈퍼 블록은 포함되는 물리 구역의 형태에 따라 제1 슈퍼 블록(111a) 및 제2 슈퍼 블록(111b)으로 분류될 수 있다.Referring to FIGS. 3, 4, and 12 , the memory cell array 110 may include a plurality of memory dies, for example, four memory dies (DIE#0 to DIE#3). have. Also, each memory die may include a plurality of planes each including a plurality of memory blocks, and may include, for example, four planes (PLANE#0 to PLANE#3). The zone management unit 210 classifies and manages a plurality of memory blocks in the memory cell array as super blocks. A super block may include one or more physical zones. A super block may be formed across a plurality of memory dies, eg, as shown in FIG. 12 , a super block may be formed across all memory dies. The super block may be classified into a first super block 111a and a second super block 111b according to the shape of the included physical zone.

제1 슈퍼 블록(111a)에 포함되는 제1 물리 구역(112a)의 경우, 하나의 메모리 다이 내의 하나 이상의 블록들을 포함할 수 있다. 예를 들어, 도 12에서와 같이, 메모리 다이 별로 플레인 0 내지 플레인 3에 포함된 메모리 블록 1개씩을 포함한 구역을 하나의 물리 구역으로 지정할 수 있으며, 이에 따라 제1 슈퍼 블록(111a)은 각 메모리 다이 별로 하나씩 형성된 4개의 제1 물리 구역(112a)을 포함할 수 있다.The first physical zone 112a included in the first super block 111a may include one or more blocks in one memory die. For example, as shown in FIG. 12 , an area including one memory block included in plane 0 to plane 3 for each memory die may be designated as one physical area. Four first physical zones 112a, one formed for each die, may be included.

제2 슈퍼 블록(111b)에 포함되는 제2 물리 구역(112b)은, 서로 다른 메모리 다이들에 포함된 블록들 각각의 일부를 포함할 수 있다. 예를 들어, 도 12에서와 같이, 제2 물리 구역(112b)은 4개의 메모리 다이들(DIE#0~DIE#3) 전체에 걸쳐 형성되되, 각 플레인에 포함된 메모리 블록들 각각의 일부만을 포함할 수 있다. 예를 들어, 도 12와 같이, 각 플레인에 포함된 각 메모리 블록들의 페이지들 중 1/4씩만을 포함할 수 있다. 이에 따라, 제2 슈퍼 블록(111b)은 전체 메모리 다이에 걸쳐 형성되되, 각각의 메모리 블록들의 일부 페이지만을 포함하도록 형성되는 4개의 제2 물리 구역(112b)을 포함할 수 있다.The second physical zone 112b included in the second super block 111b may include portions of blocks included in different memory dies. For example, as shown in FIG. 12 , the second physical zone 112b is formed throughout the four memory dies (DIE#0 to DIE#3), but only a part of each of the memory blocks included in each plane. can include For example, as shown in FIG. 12 , only 1/4 of the pages of each memory block included in each plane may be included. Accordingly, the second super block 111b may include four second physical regions 112b formed over the entire memory die and including only some pages of each memory block.

일 실시 예에서, 제1 슈퍼 블록(111a) 및 제2 슈퍼 블록(111b)의 크기는 동일할 수 있다. 즉, 제1 슈퍼 블록(111a) 및 제2 슈퍼 블록(111b)은 동일한 개수의 메모리 블록을 포함할 수 있다. 또한 제1 물리 구역(112a) 및 제2 물리 구역(112b)의 크기는 동일할 수 있다. 즉, 제1 물리 구역(112a) 및 제2 물리 구역(112b)에 포함된 페이지의 수는 동일할 수 있다. 제1 물리 구역(112a)은 하나의 메모리 다이 내에 형성되는 반면, 제2 물리 구역(112b)은 복수의 메모리 다이에 걸쳐 형성될 수 있다. 이에 제2 물리 구역(112b)의 경우, 다이 인터리빙 방식으로 동작이 가능하며, 특히 도 12에서와 같이 제2 물리 구역(112b)이 전체 메모리 다이에 걸쳐 형성되는 경우, 풀 다이(full-die) 인터리빙 방식으로 동작이 가능하다. 다만, 서로 다른 제2 물리 구역(112b)들을 동시에 할당하고 프로그램할 수는 없다. 또한, 제2 물리 구역이 메모리 블록들 각각의 일부만을 포함하기에, 특정 물리 구역을 소거하고자 할 때 즉시 소거할 수는 없으며, 해당 물리 구역이 일부 포함하고 있는 메모리 블록들 각각의 전체 페이지가 소거가 가능할 때, 즉 해당 물리 구역이 포함된 슈퍼 블록의 전체 물리 구역의 소거가 가능할 때, 해당 물리 구역이 소거될 수 있다. 따라서, 제2 물리 구역의 경우, 메모리 다이 단위의 인터리빙 방식으로 동작이 가능하다는 이점이 있으나, 프로그램 및 소거 시의 제한을 고려할 때, 인풋/아웃풋 빈도가 높은 데이터를 저장하기에는 부적합할 수 있다. 이에, 제1 슈퍼 블록 및 제2 슈퍼 블록을 모두 사용함으로써, 제1 슈퍼 블록 내의 제1 물리 구역에는 비교적 용량이 작거나 인풋/아웃풋 빈도가 높은 데이터를 저장하고, 제2 슈퍼 블록 내의 제2 물리 구역에는 비교적 용량이 크거나, 인풋/아웃풋 빈도가 낮은 데이터를 저장하여, 전자 장치의 성능 향상을 기대할 수 있다.In an embodiment, the first super block 111a and the second super block 111b may have the same size. That is, the first super block 111a and the second super block 111b may include the same number of memory blocks. Also, the size of the first physical zone 112a and the second physical zone 112b may be the same. That is, the number of pages included in the first physical zone 112a and the second physical zone 112b may be the same. While the first physical zone 112a is formed within one memory die, the second physical zone 112b may be formed across multiple memory dies. Accordingly, in the case of the second physical zone 112b, it is possible to operate in a die interleaving manner. In particular, as shown in FIG. 12, when the second physical zone 112b is formed over the entire memory die, a full-die It is possible to operate in an interleaved manner. However, it is not possible to simultaneously allocate and program different second physical zones 112b. In addition, since the second physical zone includes only a part of each of the memory blocks, when a specific physical zone is to be erased, it cannot be erased immediately, and all pages of each of the memory blocks partially included in the corresponding physical zone are erased. is possible, that is, when the entire physical area of the super block including the corresponding physical area can be erased, the corresponding physical area can be erased. Therefore, in the case of the second physical zone, there is an advantage that it is possible to operate in an interleaved manner in units of memory dies, but considering limitations in programming and erasing, it may not be suitable for storing data with high input/output frequency. Therefore, by using both the first super block and the second super block, data having a relatively small capacity or high input/output frequency is stored in the first physical zone in the first super block, and the second physical zone in the second super block By storing data with a relatively large capacity or low input/output frequency in the zone, performance improvement of the electronic device can be expected.

도 13은 본 발명의 일 실시 예에 따른 전자 장치의 메모리 블록 관리 과정을 설명하기 위한 도면이다.13 is a diagram for explaining a memory block management process of an electronic device according to an embodiment of the present invention.

도 4, 도 12 및 도 13을 참조하면, 호스트(400)의 파일 시스템(420)은 어플리케이션(410)으로부터 쓰기를 요청 받은 데이터에 대해 데이터의 속성을 기초로 로그를 생성하고, 이를 기초로 데이터를 분류하여 데이터에 대해 할당할 섹션이 포함되는 섹션 그룹을 결정한다. 다양한 기준에 따라, 데이터는 제1 섹션 그룹(421a)의 제1 섹션(422a)이 할당되는 제1 유형 데이터 및 제2 섹션 그룹(421b)의 제2 섹션(422b)이 할당되는 제2 유형 데이터로 구분될 수 있다. 파일 시스템에 의하여 제1 섹션 그룹(421a) 내 제1 섹션(422a)이 할당된 데이터는 메모리 컨트롤러(200)의 제어에 따라 메모리 장치(100)의 제1 슈퍼 블록(111a) 내 제1 물리 구역(112a)에 저장되며, 제2 섹션 그룹(421b) 내 제2 섹션(422b)이 할당된 데이터는 메모리 장치(100)의 제2 슈퍼 블록(111b) 내 제2 물리 구역(112b)에 저장될 수 있다. 제1 섹션 그룹(421a)은 제1 슈퍼 블록(111a)에 대응되며, 이에 따라 제1 섹션(422a)은 제1 물리 구역(112a)에 대응된다. 섹션 그룹 내 섹션 순서와 무관하게 새로운 섹션이 할당될 수 있는 제1 섹션(422a)의 특성은 하나의 메모리 다이 별로 관리되는 제1 물리 구역(112a)의 특성에 부합하고, 제1 섹션 및 제1 물리 구역 모두 하나의 섹션 또는 물리 구역 단위로 리셋 또는 소거 동작이 가능하다는 특성이 일치한다. 또한, 섹션 그룹 내 섹션 순서에 따라 새로운 섹션을 할당하는 제2 섹션(422b)의 특성은 다수의 메모리 다이에 걸쳐 형성되는 제2 물리 구역(112b)의 특성에 부합하고, 제2 섹션 및 제2 물리 구역 모두 하나의 섹션 또는 물리 구역 단위로는 리셋 또는 소거 동작이 불가능하며, 각각이 속하는 제2 섹션 그룹 및 제2 슈퍼 블록이 모두 리셋 또는 소거가 가능한 상태가 된 후에, 섹션 그룹 및 슈퍼 블록 단위로 리셋 또는 소거 동작을 수행한다는 특성이 일치한다.4, 12, and 13 , the file system 420 of the host 400 generates a log based on attributes of the data for data requested to be written by the application 410, and based on this log data to determine the section group that contains the section to be allocated for data. According to various criteria, data is first type data to which the first section 422a of the first section group 421a is assigned and second type data to which the second section 422b of the second section group 421b is assigned. can be distinguished by Data allocated to the first section 422a in the first section group 421a by the file system is stored in the first physical area in the first super block 111a of the memory device 100 under the control of the memory controller 200. Data stored in 112a and allocated to the second section 422b in the second section group 421b will be stored in the second physical zone 112b in the second super block 111b of the memory device 100. can The first section group 421a corresponds to the first super block 111a, and thus the first section 422a corresponds to the first physical zone 112a. The characteristics of the first section 422a to which new sections can be allocated regardless of the order of sections in the section group match the characteristics of the first physical zone 112a managed for each memory die, and the first section and the first section 422a Both physical zones have the same characteristics that a reset or erase operation can be performed in units of one section or physical zone. In addition, the characteristics of the second section 422b for allocating new sections according to the section order within the section group match the characteristics of the second physical zone 112b formed over a plurality of memory dies, and the second section and the second section 422b All physical zones cannot be reset or erased in units of one section or physical zone, and after the second section group and the second super block to which each belongs are reset or erased, the unit of the section group and super block The characteristics of performing a reset or erase operation are consistent with .

제1 섹션 그룹(421a) 내의 제1 섹션(422a)들은, 섹션 순서와 무관하게 할당되며, 호스트(400)로부터의 섹션이 할당된 데이터가 저장될 물리 구역 할당 요청에 응답하여 구역 관리부(210)는 하나의 메모리 다이 내의 영역으로 형성된 제1 물리 구역(112a)을 할당할 수 있다. 제2 섹션 그룹(421b) 내의 제2 섹션(422b)들은, 섹션 순서에 따라 할당되며, 호스트(400)로부터의 섹션이 할당된 데이터가 저장될 물리 구역 할당 요청에 응답하여 구역 관리부(210)는 복수의 메모리 다이들 내의 메모리 블록들의 일부를 포함하는 영역으로 형성된 제2 물리 구역(112b)을 할당할 수 있다. 호스트(400)의 물리 구역 할당 요청에 대해, 구역 관리부(210)가 현재 사용 중인 슈퍼 블록 내에 추가로 할당 가능한 물리 구역이 없다는 정보를 회신하는 경우, 파일 시스템(420)은 새로운 섹션 그룹을 할당 후, 새로운 섹션 그룹 내 섹션을 할당할 수 있고, 이에 응답하여, 구역 관리부(210)는 새로운 슈퍼 블록 및 이에 포함되는 새로운 물리 구역을 할당 후, 새로운 섹션이 할당된 데이터를 저장할 수 있다. 또는, 파일 시스템(420)은 구역 관리부(210)로부터 슈퍼 블록 및 물리 구역에 대한 정보를 회신받지 않고, 자체적으로 새로운 섹션 그룹 및 이에 포함되는 섹션을 할당할 수도 있다.The first sections 422a in the first section group 421a are allocated regardless of the section order, and the zone management unit 210 responds to a physical zone allocation request from the host 400 in which section-allocated data is to be stored. may allocate a first physical zone 112a formed as an area within one memory die. The second sections 422b in the second section group 421b are allocated according to the section order, and in response to a physical zone allocation request from the host 400 in which section-allocated data is to be stored, the zone management unit 210 A second physical zone 112b formed of an area including some of memory blocks in a plurality of memory dies may be allocated. In response to the physical zone allocation request of the host 400, when the zone management unit 210 returns information indicating that there is no additionally allocable physical zone in the super block currently in use, the file system 420 allocates a new section group and then , Sections within the new section group may be allocated, and in response to this, the zone management unit 210 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, the file system 420 may allocate a new section group and sections included therein without receiving information on the super block and the physical zone from the zone management unit 210 as a reply.

도 14는 본 발명의 일 실시 예에 따라, 클리닝을 위한 희생 섹션을 결정하는 과정을 설명하는 순서도이다.14 is a flowchart illustrating a process of determining a sacrificial section for cleaning according to an embodiment of the present invention.

도 4 및 도 14를 참조하면, S1401 단계에서 후보 섹션들의 비용(cost)을 계산할 수 있다. 이 때의 비용은 기존에 희생 섹션 선정을 위해 사용되는 방식으로 계산될 수 있다. 예를 들어, 그리디(greedy) 방식 또는 비용-이익(cost-benefit) 방식으로 수행될 수 있다. 그리디 방식은 섹션 내에 포함된 논리 어드레스들에 대응되는 유효 블록의 수가 가장 적을수록 작은 값의 비용을 설정하여, 유효 블록의 수가 가장 적은 섹션을 희생 섹션으로 선정하는 방식이다. 비용-이익 방식은 각 섹션 내의 논리 어드레스들에 대응되는 데이터의 수정 시간과 섹션 내의 논리 어드레스에 대응되는 유효 블록의 수를 모두 고려하여 비용 값을 설정하는 것으로, 섹션이 비교적 오랜 시간 전에 수정되었거나, 섹션 내의 유효 블록 수가 적을수록 낮은 비용을 부여하여, 이러한 섹션을 희생 섹션으로 선정할 수 있다. 일 실시 예에서, 포어그라운드(foreground) 클리닝의 경우 그리디 방식으로, 백그라운드(background) 클리닝의 경우 비용 이익 방식으로 희생 섹션의 비용을 계산할 수 있다.Referring to FIGS. 4 and 14 , costs of candidate sections may be calculated in step S1401. The cost at this time may be calculated in a manner conventionally used for selecting the sacrificial section. For example, it may be performed in a greedy manner or a cost-benefit manner. The greedy method is a method of selecting a section having the smallest number of valid blocks as a victim section by setting a cost that is smaller as the number of valid blocks corresponding to the logical addresses included in the section is the smallest. The cost-benefit method sets the cost value by considering both the modification time of data corresponding to the logical addresses in each section and the number of valid blocks corresponding to the logical addresses in the section. As the number of effective blocks in a section decreases, a lower cost is assigned, and such a section may be selected as a victim section. In one embodiment, the cost of the sacrificial section may be calculated in a greedy manner in the case of foreground cleaning and in a cost-benefit manner in the case of background cleaning.

S1403 단계에서, 비용을 계산한 후보 섹션의 섹션 타입을 확인할 수 있다. 즉, 해당 섹션이 제1 섹션 그룹에 속하는 제1 섹션인지 또는 제2 섹션 그룹에 속하는 제2 섹션인지 확인할 수 있다.In step S1403, the section type of the cost-calculated candidate section can be checked. That is, it may be determined whether the corresponding section is a first section belonging to the first section group or a second section belonging to the second section group.

S1405 단계에서, 제2 섹션이 아니라고 판단된 경우, 즉 제1 섹션이라고 판단된 경우, S1411 단계와 같이 S1401 단계에서 계산한 비용을 변경하지 않고 유지할 수 있다. 반면, S1405 단계에서 제2 섹션이라고 판단된 경우, S1407 단계 및 S1409 단계와 같이, 리셋 준비 중(“Ready to Reset”)이라는 정보가 저장된 섹션의 수를 기초로 비용을 수정할 수 있다. 제2 섹션 그룹에 속한 특정 섹션에 대해 리셋 동작을 수행하고자 하나, 해당 섹션 그룹 내에 리셋 동작 수행 준비가 되지 않은 다른 섹션이 존재하여, 리셋 동작이 완료되지 못하는 상태를 리셋 준비 중 상태라고 정의할 수 있다. 이 때 리셋 준비 중 상태인 섹션은 별도의 비트맵에 이를 나타내는 정보를 저장할 수 있다. S1407 단계에서는 파일 시스템(420)이 할당한 전체 섹션들 중 리셋 준비 중인 모든 섹션의 수를 고려할 수 있다. 예를 들어, 전체 섹션들 중 리셋 준비 중인 섹션의 수가 임계값을 초과하는 경우, 비용을 낮추어 제2 섹션 그룹에 포함된 후보 섹션이 희생 섹션으로 선정될 확률을 높일 수 있고, 임계값을 초과하지 못하는 경우 비용을 유지할 수 있다. 또는, 전체 섹션들 중 리셋 준비 중인 섹션의 수에 따라 서로 다른 가중치를 부여할 수 있다. 또는, 전체 섹션들 중 리셋 준비 중인 섹션의 수가 임계값을 초과하는 경우, S1409 단계에서 해당 섹션이 속하는 제2 섹션 그룹 내의 리셋 준비 중인 섹션 수를 확인할 수 있다. 전체 섹션들 중 리셋 준비 중인 섹션 수가 임계값을 초과하지 않는 경우, S1409 단계를 수행하지 않을 수 있다. S1409 단계에서 해당 섹션이 속하는 제2 섹션 그룹 내의 리셋 준비 중인 섹션 수가 임계값을 초과할 경우, 비용을 낮추어 해당 섹션이 희생 섹션으로 선정될 확률을 높일 수 있고, 임계값을 초과하지 못하는 경우 비용을 유지할 수 있다. 또는 제2 섹션 그룹 내의 리셋 준비 중인 섹션 수에 따라 서로 다른 가중치를 부여할 수 있다. 이 때, S1407 단계 및 S1409 단계는 모두 수행되거나 둘 중 하나의 단계만이 수행될 수도 있다.In step S1405, when it is determined that the second section is not, that is, when it is determined that it is the first section, the cost calculated in step S1401 may be maintained without change as in step S1411. On the other hand, when it is determined that the second section is the second section in step S1405, the cost may be corrected based on the number of sections in which reset preparation (“Ready to Reset”) information is stored, as in steps S1407 and S1409. A state in which a reset operation is not completed because a reset operation is intended to be performed on a specific section belonging to the second section group, but another section that is not ready to perform the reset operation exists in the corresponding section group can be defined as a reset preparation state. have. At this time, the section in preparation for resetting state may store information indicating this in a separate bitmap. In step S1407, the number of all sections being prepared for reset among all sections allocated by the file system 420 may be considered. For example, when the number of sections being prepared for reset among all sections exceeds a threshold, the probability that a candidate section included in the second section group is selected as a victim section may be increased by lowering the cost, and the threshold is not exceeded. If you can't, you can keep the cost. Alternatively, different weights may be assigned according to the number of sections being prepared for reset among all sections. Alternatively, when the number of sections being prepared for reset among all sections exceeds the threshold value, the number of sections being prepared for reset in the second section group to which the corresponding section belongs may be checked in step S1409. If the number of sections being prepared for reset among all sections does not exceed the threshold value, step S1409 may not be performed. In step S1409, if the number of sections being prepared for reset in the second section group to which the corresponding section belongs exceeds the threshold value, the probability that the corresponding section is selected as a victim section may be increased by lowering the cost, and if the cost does not exceed the threshold value, the cost may be reduced. can keep Alternatively, different weights may be assigned according to the number of sections being prepared for reset in the second section group. At this time, both steps S1407 and S1409 may be performed, or only one of them may be performed.

이와 같은 비용의 계산 및 수정을 거쳐, S1413 단계에서 최종 비용 값을 비교하고 섹션들의 클리닝을 위한 희생 섹션을 결정할 수 있다.After calculating and correcting the cost, a final cost value may be compared in step S1413 and a sacrifice section for cleaning the sections may be determined.

일 실시 예에서, 클리닝 수행 시, 전체 섹션들에 포함된 논리 어드레스 중 무효 데이터(invalid data)에 대응되는 논리 어드레스의 비율을 고려하여, 다음 클리닝 수행 시점을 조정할 수 있다. 이 때, 제2 섹션 그룹의 경우, 리셋 준비 중인 섹션들에 포함된 논리 어드레스들은 새로운 데이터에 부여될 수 있는 논리 어드레스들이 아니므로, 리셋 준비 중인 섹션 내의 논리 어드레스들에 대응되는 데이터는 무효 데이터로 취급하여 다음 클리닝 수행 시점을 조정할 수 있다.In one embodiment, when cleaning is performed, a next cleaning time may be adjusted in consideration of a ratio of logical addresses corresponding to invalid data among logical addresses included in all sections. At this time, in the case of the second section group, since the logical addresses included in the sections being prepared for reset are not logical addresses that can be assigned to new data, the data corresponding to the logical addresses in the section being prepared for reset are invalid data. You can adjust the timing of the next cleaning by handling it.

도 15는 본 발명의 실시 예에 따라, 클리닝 수행 시 희생 섹션 내의 논리 어드레스들에 대응되는 유효 데이터들에 새로운 섹션을 할당하는 과정을 설명하기 위한 도면이다.15 is a diagram for explaining a process of allocating a new section to valid data corresponding to logical addresses in a victim section during cleaning according to an embodiment of the present invention.

도 15를 참조하면, 도 14와 같은 과정을 거쳐 희생 섹션을 선정한 경우, 희생 섹션 내의 논리 어드레스들에 대응되는 유효 데이터에 대해 새로운 섹션이 할당될 수 있다. 이 때 유효 데이터들이 새로 할당받는 섹션은 기존에 할당되었던 섹션이 포함된 섹션 그룹과 동일한 타입의 섹션 그룹에 포함된 섹션일 수 있다. 예를 들어, 도 15의 핫 노드, 웜 노드, 콜드 노드, 핫 데이터와 같이 제1 유형 데이터로 분류되어 제1 섹션 그룹 내의 제1 섹션이 할당되었던 데이터는 동일하게 제1 섹션 그룹 내의 제1 섹션으로 이동하게 된다. 만약, 제1 섹션 그룹 내에 할당할 제1 섹션이 존재하지 않는다면, 새로운 제1 섹션 그룹을 할당한 후, 이에 포함된 어느 하나의 섹션을 희생 섹션 내의 논리 어드레스들에 대응되는 유효 데이터에 할당할 수 있다. 또한, 도 15의 웜 데이터 및 콜드 데이터와 같이 제2 유형 데이터로 분류되어 제2 섹션 그룹 내의 제2 섹션이 할당되었던 데이터는 동일하게 제2 섹션 그룹 내의 제2 섹션으로 이동하게 된다. 만약, 제2 섹션 그룹 내에 할당할 제2 섹션이 존재하지 않는다면, 새로운 제2 섹션 그룹을 할당한 후, 이에 포함된 어느 하나의 섹션을 희생 섹션 내의 논리 어드레스들에 대응되는 유효 데이터에 할당할 수 있다.Referring to FIG. 15 , when a victim section is selected through the same process as in FIG. 14 , a new section may be allocated to valid data corresponding to logical addresses in the victim section. In this case, the section to which the valid data is newly allocated may be a section included in a section group of the same type as the section group including the previously allocated section. For example, data classified as the first type data and allocated to the first section in the first section group, such as hot node, warm node, cold node, and hot data in FIG. will move to If the first section to be allocated in the first section group does not exist, after allocating a new first section group, any one section included in the first section group may be allocated to valid data corresponding to logical addresses in the victim section. have. In addition, data classified as the second type data and allocated to the second section in the second section group, such as warm data and cold data in FIG. 15, are moved to the second section in the second section group. If there is no second section to be allocated in the second section group, after allocating a new second section group, any one section included in the second section group may be allocated to valid data corresponding to logical addresses in the victim section. have.

도 16은 도 1의 메모리 컨트롤러의 다른 실시 예를 나타낸 도면이다. 16 is a diagram illustrating another embodiment of the memory controller of FIG. 1 .

도 16을 참조하면, 메모리 컨트롤러(1000)는 프로세서(Processor; 1010), 내부 메모리(Internal Memory; 1020), 에러 정정 코드 회로(Error Correction Code Circuit; 1030), 호스트 인터페이스(Host Interface; 1040), 버퍼 메모리 인터페이스(Buffer Memory Interface; 1050) 및 메모리 인터페이스(Memory Interface; 1060)를 포함할 수 있다. Referring to FIG. 16 , a memory controller 1000 includes a processor 1010, an internal memory 1020, an error correction code circuit 1030, a host interface 1040, A buffer memory interface (Buffer Memory Interface) 1050 and a memory interface (Memory Interface; 1060) may be included.

프로세서(1010)는 메모리 장치(100)를 제어하기 위한 각종 연산을 수행하거나, 다양한 커맨드들(commands)을 생성할 수 있다. 프로세서(1010)는 호스트(400)로부터 요청(request)을 수신하면, 수신된 요청에 따라 커맨드를 생성하고, 생성된 커맨드를 큐 컨트롤러(미도시)로 전송할 수 있다. 또한 프로세서(1010)는 호스트(400)로부터의 물리 구역 할당 요청에 응답하여, 호스트로부터 수신하는 데이터가 저장될 메모리 장치 내 슈퍼 블록 및 이에 포함되는 물리 구역을 할당할 수 있으며, 할당된 슈퍼 블록 및 물리 구역을 관리할 수 있다.The processor 1010 may perform various operations for controlling the memory device 100 or generate various commands. Upon receiving a request from the host 400, the processor 1010 may generate a command according to the received request and transmit the generated command to a queue controller (not shown). In response to a physical zone allocation request from the host 400, the processor 1010 may allocate a super block in a memory device in which data received from the host is to be stored and a physical zone included in the super block. You can manage physical zones.

내부 메모리(1020)는 메모리 컨트롤러(1000)의 동작에 필요한 다양한 정보들을 저장할 수 있다. 예를 들면, 내부 메모리(1020)는 논리, 물리(logical, physical) 어드레스 맵 테이블들(address map tables)을 포함할 수 있다. 내부 메모리(1020)는 RAM(random access memory), DRAM(dynamic RAM), SRAM(static RAM), 캐시(cache) 및 강하게 결합된 메모리(tightly coupled memory; TCM) 중 적어도 하나 이상으로 구성될 수 있다. The internal memory 1020 may store various pieces of information necessary for the operation of the memory controller 1000 . For example, internal memory 1020 may include logical and physical address map tables. The internal memory 1020 may include at least one of random access memory (RAM), dynamic RAM (DRAM), static RAM (SRAM), cache, and tightly coupled memory (TCM). .

에러 정정 코드 회로(1030)는 에러 정정 코드(ECC, Error Correcting Code)를 이용하여 메모리 장치(100)로부터 수신된 데이터의 에러를 검출하고, 정정하도록 구성된다. 프로세서(1010)는 에러 정정 코드 회로(1030)의 에러 검출 결과에 따라 읽기 전압을 조절하고, 재 읽기를 수행하도록 메모리 장치(100)를 제어할 수 있다. 예시적인 실시 예로서, 에러 정정 블록은 메모리 컨트롤러(1000)의 구성 요소로서 제공될 수 있다.The error correction code circuit 1030 is configured to detect and correct an error in data received from the memory device 100 using an error correction code (ECC). The processor 1010 may adjust a read voltage according to an error detection result of the error correction code circuit 1030 and control the memory device 100 to perform re-reading. As an exemplary embodiment, the error correction block may be provided as a component of the memory controller 1000 .

호스트 인터페이스(1040)는 메모리 컨트롤러(1000)와 호스트(400) 사이에서 커맨드, 어드레스 및 데이터 등을 주고받을 수 있다. 예를 들면, 호스트 인터페이스(1040)는 호스트(400)로부터 요청(request), 어드레스 및 데이터 등을 수신할 수 있고, 메모리 장치(100)로부터 리드된 데이터를 호스트(400)로 출력할 수 있다. 호스트 인터페이스(1040)는 USB (Universal Serial Bus), SATA (Serial AT Attachment), SAS (Serial Attached SCSI), HSIC (High Speed Interchip), SCSI (Small Computer System Interface), PCI (Peripheral Component Interconnection), PCIe (PCI express), NVMe (NonVolatile Memory express), UFS (Universal Flash Storage), SD (Secure Digital), MMC (MultiMedia Card), eMMC (embedded MMC), DIMM (Dual In-line Memory Module), RDIMM (Registered DIMM), LRDIMM (Load Reduced DIMM), ESDI(Enhanced Small Disk Interface), 또는 IDE(Integrated Drive Electronics) 등과 같은 프로토콜을 사용하여 호스트(400)와 통신할 수 있다. 호스트 인터페이스(1040)는 호스트(400)가 데이터에 대하여 할당한 섹션에 대응되는 물리 구역을 할당하라는 요청을 수신할 수 있다.The host interface 1040 may exchange commands, addresses, and data between the memory controller 1000 and the host 400 . For example, the host interface 1040 may receive a request, address, data, etc. from the host 400 and output data read from the memory device 100 to the host 400 . The host interface 1040 includes USB (Universal Serial Bus), SATA (Serial AT Attachment), SAS (Serial Attached SCSI), HSIC (High Speed Interchip), SCSI (Small Computer System Interface), PCI (Peripheral Component Interconnection), PCIe (PCI express), NVMe (NonVolatile Memory express), UFS (Universal Flash Storage), SD (Secure Digital), MMC (MultiMedia Card), eMMC (embedded MMC), DIMM (Dual In-line Memory Module), RDIMM (Registered DIMM), LRDIMM (Load Reduced DIMM), ESDI (Enhanced Small Disk Interface), or IDE (Integrated Drive Electronics) protocols may be used to communicate with the host 400 . The host interface 1040 may receive a request to allocate a physical zone corresponding to a section allocated for data by the host 400 .

버퍼 메모리 인터페이스(1050)는 프로세서(1010)와 버퍼 메모리 사이에서 데이터를 전송할 수 있다. 버퍼 메모리는 메모리 컨트롤러(1000)의 동작 메모리 또는 캐시 메모리로 사용될 수 있으며, 스토리지 장치(50) 내에서 사용되는 데이터를 저장할 수 있다. 프로세서(1010)에 의해 버퍼 메모리 인터페이스(1050)는 버퍼 메모리를 리드 버퍼, 라이트 버퍼, 맵 버퍼 등으로 사용할 수 있다. 실시 예에 따라, 버퍼 메모리는 DDR SDRAM(Double Data Rate Synchronous Dynamic Random Access Memory), DDR4 SDRAM, LPDDR4(Low Power Double Data Rate4) SDRAM, GDDR(Graphics Double Data Rate) SDRAM, LPDDR(Low Power DDR) 또는 RDRAM(Rambus Dynamic Random Access Memory)을 포함할 수 있다. 버퍼 메모리가 메모리 컨트롤러(1000) 내부에 포함되는 경우에는 버퍼 메모리 인터페이스(1050)는 생략될 수 있다.The buffer memory interface 1050 may transmit data between the processor 1010 and the buffer memory. The buffer memory may be used as an operation memory or cache memory of the memory controller 1000 and may store data used in the storage device 50 . The buffer memory interface 1050 by the processor 1010 may use the buffer memory as a read buffer, a write buffer, a map buffer, and the like. Depending on the embodiment, the buffer memory is DDR SDRAM (Double Data Rate Synchronous Dynamic Random Access Memory), DDR4 SDRAM, LPDDR4 (Low Power Double Data Rate 4) SDRAM, GDDR (Graphics Double Data Rate) SDRAM, LPDDR (Low Power DDR), or It may include Rambus Dynamic Random Access Memory (RDRAM). When the buffer memory is included in the memory controller 1000, the buffer memory interface 1050 may be omitted.

메모리 인터페이스(1060)는 메모리 컨트롤러(1000)와 메모리 장치(100) 사이에서 커맨드, 어드레스 및 데이터 등을 주고받을 수 있다. 예를 들면, 메모리 인터페이스(1060)는 채널(channel)을 통해 메모리 장치(100)에 커맨드, 어드레스 및 데이터 등을 전송할 수 있고, 메모리 장치(100)로부터 데이터 등을 수신할 수 있다. 메모리 인터페이스(1060)는 프로세서(1010)가 할당 및 관리하는 슈퍼 블록 및 물리 구역을 기초로 메모리 장치(100)에 또는 메모리 장치(100)로부터 커맨드, 어드레스 및 데이터 등을 송수신할 수 있다.The memory interface 1060 may exchange commands, addresses, and data between the memory controller 1000 and the memory device 100 . For example, the memory interface 1060 may transmit commands, addresses, and data to the memory device 100 through a channel and may receive data from the memory device 100 . The memory interface 1060 may transmit/receive commands, addresses, data, etc. to or from the memory device 100 based on super blocks and physical areas allocated and managed by the processor 1010 .

도 17은 본 발명의 실시 예에 따른 스토리지 장치가 적용된 메모리 카드 시스템을 보여주는 블록도이다.17 is a block diagram showing a memory card system to which a storage device according to an embodiment of the present invention is applied.

도 17을 참조하면, 메모리 카드 시스템(2000)은 메모리 컨트롤러(2100), 메모리 장치(2200), 및 커넥터(2300)를 포함한다.Referring to FIG. 17 , a memory card system 2000 includes a memory controller 2100 , a memory device 2200 , and a connector 2300 .

메모리 컨트롤러(2100)는 메모리 장치(2200)와 연결된다. 메모리 컨트롤러(2100)는 메모리 장치(2200)를 액세스하도록 구성된다. 예를 들어, 메모리 컨트롤러(2100)는 메모리 장치(2200)의 리드, 프로그램, 소거, 그리고 배경(background) 동작을 제어하도록 구성될 수 있다. 메모리 컨트롤러(2100)는 메모리 장치(2200) 및 호스트(Host) 사이에 인터페이스를 제공하도록 구성된다. 메모리 컨트롤러(2100)는 메모리 장치(2200)를 제어하기 위한 펌웨어(firmware)를 구동하도록 구성된다. 메모리 컨트롤러(2100)는 도 1을 참조하여 설명된 메모리 컨트롤러(200)와 동일하게 구현될 수 있다. 예를 들어, 메모리 컨트롤러(2100)는 메모리 장치(2200) 내에 물리 구역 및 이를 포함하는 슈퍼 블록을 할당하여, 물리 구역 및 슈퍼 블록 단위로 메모리 장치(2200)를 제어할 수 있다.The memory controller 2100 is connected to the memory device 2200 . The memory controller 2100 is configured to access the memory device 2200 . For example, the memory controller 2100 may be configured to control read, program, erase, and background operations of the memory device 2200 . The memory controller 2100 is configured to provide an interface between the memory device 2200 and a host. The memory controller 2100 is configured to drive firmware for controlling the memory device 2200 . The memory controller 2100 may be implemented identically to the memory controller 200 described with reference to FIG. 1 . For example, the memory controller 2100 may allocate a physical area and a super block including the physical area within the memory device 2200 and control the memory device 2200 in units of the physical area and the super block.

예시적으로, 메모리 컨트롤러(2100)는 램(RAM, Random Access Memory), 프로세싱 유닛(processing unit), 호스트 인터페이스(host interface), 메모리 인터페이스(memory interface), 에러 정정부와 같은 구성 요소들을 포함할 수 있다.Illustratively, the memory controller 2100 may include components such as a random access memory (RAM), a processing unit, a host interface, a memory interface, and an error correction unit. can

메모리 컨트롤러(2100)는 커넥터(2300)를 통해 외부 장치와 통신할 수 있다. 메모리 컨트롤러(2100)는 특정한 통신 규격에 따라 외부 장치(예를 들어, 호스트)와 통신할 수 있다. 예시적으로, 메모리 컨트롤러(2100)는 USB (Universal Serial Bus), MMC (multimedia card), eMMC (embedded MMC), PCI (peripheral component interconnection), PCI-E (PCI-express), ATA (Advanced Technology Attachment), Serial-ATA, Parallel-ATA, SCSI (small computer system interface), ESDI (enhanced small disk interface), IDE (Integrated Drive Electronics), 파이어와이어 (Firewire), UFS(Universal Flash Storage), WIFI, Bluetooth, NVMe 등과 같은 다양한 통신 규격들 중 적어도 하나를 통해 외부 장치와 통신하도록 구성된다. 예시적으로, 커넥터(2300)는 상술된 다양한 통신 규격들 중 적어도 하나에 의해 정의될 수 있다.The memory controller 2100 may communicate with an external device through the connector 2300 . The memory controller 2100 may communicate with an external device (eg, a host) according to a specific communication standard. For example, the memory controller 2100 may include universal serial bus (USB), multimedia card (MMC), embedded MMC (eMMC), peripheral component interconnection (PCI), PCI-express (PCI-E), and advanced technology attachment (ATA). ), Serial-ATA, Parallel-ATA, SCSI (small computer system interface), ESDI (enhanced small disk interface), IDE (Integrated Drive Electronics), Firewire, UFS (Universal Flash Storage), WIFI, Bluetooth, It is configured to communicate with an external device through at least one of various communication standards such as NVMe. Illustratively, the connector 2300 may be defined by at least one of the above-described various communication standards.

예시적으로, 메모리 장치(2200)는 EEPROM (Electrically Erasable and Programmable ROM), 낸드 플래시 메모리, 노어 플래시 메모리, PRAM (Phase-change RAM), ReRAM (Resistive RAM), FRAM (Ferroelectric RAM), STT-MRAM(Spin Transfer Torque Magnetic RAM) 등과 같은 다양한 불휘발성 메모리 소자들로 구성될 수 있다.For example, the memory device 2200 may include electrically erasable and programmable ROM (EEPROM), NAND flash memory, NOR flash memory, phase-change RAM (PRAM), resistive RAM (ReRAM), ferroelectric RAM (FRAM), and STT-MRAM. (Spin Transfer Torque Magnetic RAM) and the like.

메모리 컨트롤러(2100) 및 메모리 장치(2200)는 하나의 반도체 장치로 집적되어, 메모리 카드를 구성할 수 있다. 예를 들면, 메모리 컨트롤러(2100) 및 메모리 장치(2200)는 하나의 반도체 장치로 집적되어 PC 카드(PCMCIA, personal computer memory card international association), 컴팩트 플래시 카드(CF), 스마트 미디어 카드(SM, SMC), 메모리 스틱, 멀티미디어 카드(MMC, RS-MMC, MMCmicro, eMMC), SD 카드(SD, miniSD, microSD, SDHC), 범용 플래시 기억장치(UFS) 등과 같은 메모리 카드를 구성할 수 있다.The memory controller 2100 and the memory device 2200 may be integrated into a single semiconductor device to form a memory card. For example, the memory controller 2100 and the memory device 2200 are integrated into a single semiconductor device such as a personal computer memory card international association (PCMCIA), a compact flash card (CF), or a smart media card (SM, SMC). ), memory sticks, multimedia cards (MMC, RS-MMC, MMCmicro, eMMC), SD cards (SD, miniSD, microSD, SDHC), and universal flash memory (UFS).

도 18은 본 발명의 실시 예에 따른 스토리지 장치가 적용된 SSD(Solid State Drive) 시스템을 보여주는 블록도이다.18 is a block diagram illustrating a solid state drive (SSD) system to which a storage device according to an embodiment of the present invention is applied.

도 18을 참조하면, SSD 시스템(3000)은 호스트(3100) 및 SSD(3200)를 포함한다. SSD(3200)는 신호 커넥터(3001)를 통해 호스트(3100)와 신호를 주고 받고, 전원 커넥터(3002)를 통해 전원을 입력 받는다. SSD(3200)는 SSD 컨트롤러(3210), 복수의 플래시 메모리들(3221~322n), 보조 전원 장치(3230), 및 버퍼 메모리(3240)를 포함한다.Referring to FIG. 18 , an SSD system 3000 includes a host 3100 and an SSD 3200 . The SSD 3200 exchanges signals with the host 3100 through the signal connector 3001 and receives power through the power connector 3002 . The SSD 3200 includes an SSD controller 3210, a plurality of flash memories 3221 to 322n, an auxiliary power supply 3230, and a buffer memory 3240.

본 발명의 실시 예에 따르면, SSD 컨트롤러(3210)는 도 1을 참조하여 설명된 메모리 컨트롤러(200)의 기능을 수행할 수 있다.According to an embodiment of the present invention, the SSD controller 3210 may perform the function of the memory controller 200 described with reference to FIG. 1 .

SSD 컨트롤러(3210)는 호스트(3100)로부터 수신된 신호에 응답하여 복수의 플래시 메모리들(3221~322n)을 제어할 수 있다. SSD 컨트롤러(3210)는 이러한 복수의 플래시 메모리들을 복수의 채널(CH1~CHn)을 통해 제어할 수 있다. 각각의 채널에는 하나 이상의 메모리 다이들이 연결될 수 있다. 예시적으로, 신호는 호스트(3100) 및 SSD(3200)의 인터페이스에 기반된 신호들일 수 있다. 예를 들어, 신호는 USB (Universal Serial Bus), MMC (multimedia card), eMMC (embedded MMC), PCI (peripheral component interconnection), PCI-E (PCI-express), ATA (Advanced Technology Attachment), Serial-ATA, Parallel-ATA, SCSI (small computer system interface), ESDI (enhanced small disk interface), IDE (Integrated Drive Electronics), 파이어와이어 (Firewire), UFS(Universal Flash Storage), WIFI, Bluetooth, NVMe 등과 같은 인터페이스들 중 적어도 하나에 의해 정의된 신호일 수 있다. The SSD controller 3210 may control the plurality of flash memories 3221 to 322n in response to a signal received from the host 3100 . The SSD 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 signals may be signals based on an interface between the host 3100 and the SSD 3200 . For example, signals include Universal Serial Bus (USB), multimedia card (MMC), embedded MMC (eMMC), peripheral component interconnection (PCI), PCI-express (PCI-E), Advanced Technology Attachment (ATA), Serial- Interfaces such as ATA, Parallel-ATA, SCSI (small computer system interface), ESDI (enhanced small disk interface), IDE (Integrated Drive Electronics), Firewire, UFS (Universal Flash Storage), WIFI, Bluetooth, NVMe, etc. It may be a signal defined by at least one of

보조 전원 장치(3230)는 전원 커넥터(3002)를 통해 호스트(3100)와 연결된다. 보조 전원 장치(3230)는 호스트(3100)로부터 전원을 입력 받고, 충전할 수 있다. 보조 전원 장치(3230)는 호스트(3100)로부터의 전원 공급이 원활하지 않을 경우, SSD(3200)의 전원을 제공할 수 있다. 예시적으로, 보조 전원 장치(3230)는 SSD(3200) 내에 위치할 수도 있고, SSD(3200) 밖에 위치할 수도 있다. 예를 들면, 보조 전원 장치(3230)는 메인 보드에 위치하며, SSD(3200)에 보조 전원을 제공할 수도 있다.The auxiliary power supply 3230 is connected to the host 3100 through a power connector 3002 . The auxiliary power supply 3230 can receive power from the host 3100 and charge it. The auxiliary power supply 3230 may provide power to the SSD 3200 when power supply from the host 3100 is not smooth. For example, the auxiliary power supply 3230 may be located inside the SSD 3200 or outside the SSD 3200 . For example, the auxiliary power supply 3230 is located on the main board and may provide auxiliary power to the SSD 3200.

버퍼 메모리(3240)는 SSD(3200)의 버퍼 메모리로 동작한다. 예를 들어, 버퍼 메모리(3240)는 호스트(3100)로부터 수신된 데이터 또는 복수의 플래시 메모리들(3221~322n)로부터 수신된 데이터를 임시 저장하거나, 플래시 메모리들(3221~322n)의 메타 데이터(예를 들어, 매핑 테이블)를 임시 저장할 수 있다. 버퍼 메모리(3240)는 DRAM, SDRAM, DDR SDRAM, LPDDR SDRAM, GRAM 등과 같은 휘발성 메모리 또는 FRAM, ReRAM, STT-MRAM, PRAM 등과 같은 불휘발성 메모리들을 포함할 수 있다.The buffer memory 3240 operates as a buffer memory of the SSD 3200. For example, the buffer memory 3240 temporarily stores data received from the host 3100 or data received from the plurality of flash memories 3221 to 322n, or metadata (metadata) of the flash memories 3221 to 322n. For example, a mapping table) may be temporarily stored. The buffer memory 3240 may include volatile memories such as DRAM, SDRAM, DDR SDRAM, LPDDR SDRAM, and GRAM, or non-volatile memories such as FRAM, ReRAM, STT-MRAM, and PRAM.

도 19는 본 발명의 실시 예에 따른 스토리지 장치가 적용된 사용자 시스템을 보여주는 블록도이다. 19 is a block diagram illustrating a user system to which a storage device according to an embodiment of the present invention is applied.

도 19를 참조하면, 사용자 시스템(4000)은 애플리케이션 프로세서(4100), 메모리 모듈(4200), 네트워크 모듈(4300), 스토리지 모듈(4400), 및 사용자 인터페이스(4500)를 포함한다.Referring to FIG. 19 , a user system 4000 includes an application processor 4100, a memory module 4200, a network module 4300, a storage module 4400, and a user interface 4500.

애플리케이션 프로세서(4100)는 사용자 시스템(4000)에 포함된 구성 요소들, 운영체제(OS; Operating System), 사용자 프로그램 또는 파일 시스템 등을 구동시킬 수 있다. 예시적으로, 애플리케이션 프로세서(4100)는 사용자 시스템(4000)에 포함된 구성 요소들을 제어하는 컨트롤러들, 인터페이스들, 그래픽 엔진 등을 포함할 수 있다. 애플리케이션 프로세서(4100)는 시스템-온-칩(SoC; System-on-Chip)으로 제공될 수 있다. 애플리케이션 프로세서(4100)는 사용자가 쓰기 요청한 데이터에 대하여 로그를 생성하고, 이를 기초로 섹션 그룹 및 섹션을 할당할 수 있으며, 섹션이 할당된 데이터를 스토리지 모듈(4400)에 제공할 수 있다.The application processor 4100 may drive components included in the user system 4000, an operating system (OS), a user program, or a file system. Illustratively, the application processor 4100 may include controllers, interfaces, graphic engines, and the like that control components included in the user system 4000 . The application processor 4100 may be provided as a System-on-Chip (SoC). The application processor 4100 may generate a log for data requested by a user to write, allocate section groups and sections based on the logs, and provide data to which the sections are allocated to the storage module 4400 .

메모리 모듈(4200)은 사용자 시스템(4000)의 주 메모리, 동작 메모리, 버퍼 메모리, 또는 캐쉬 메모리로 동작할 수 있다. 메모리 모듈(4200)은 DRAM, SDRAM, DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM, LPDDR SDARM, LPDDR2 SDRAM, LPDDR3 SDRAM 등과 같은 휘발성 랜덤 액세스 메모리 또는 PRAM, ReRAM, MRAM, FRAM 등과 같은 불휘발성 랜덤 액세스 메모리를 포함할 수 있다. 예시적으로 애플리케이션 프로세서(4100) 및 메모리 모듈(4200)은 POP(Package on Package)를 기반으로 패키지화되어 하나의 반도체 패키지로 제공될 수 있다.The memory module 4200 may operate as a main memory, working memory, buffer memory, or cache memory of the user system 4000 . The memory module 4200 includes volatile random access memory such as DRAM, SDRAM, DDR SDRAM, DDR2 SDRAM, DDR3 SDRAM, LPDDR SDARM, LPDDR2 SDRAM, and LPDDR3 SDRAM, or non-volatile random access memory such as PRAM, ReRAM, MRAM, FRAM, and the like. can do. For example, the application processor 4100 and the memory module 4200 may be packaged based on a package on package (POP) and provided as a single semiconductor package.

네트워크 모듈(4300)은 외부 장치들과 통신을 수행할 수 있다. 예시적으로, 네트워크 모듈(4300)은 CDMA(Code Division Multiple Access), GSM(Global System for Mobile communication), WCDMA(wideband CDMA), CDMA-2000, TDMA(Time Division Multiple Access), LTE(Long Term Evolution), Wimax, WLAN, UWB, 블루투스, Wi-Fi 등과 같은 무선 통신을 지원할 수 있다. 예시적으로, 네트워크 모듈(4300)은 애플리케이션 프로세서(4100)에 포함될 수 있다.The network module 4300 may communicate with external devices. Illustratively, the network module 4300 may include code division multiple access (CDMA), global system for mobile communication (GSM), wideband CDMA (WCDMA), CDMA-2000, time division multiple access (TDMA), and long term evolution (LTE). ), wireless communication such as Wimax, WLAN, UWB, Bluetooth, Wi-Fi, etc. may be supported. For example, the network module 4300 may be included in the application processor 4100 .

스토리지 모듈(4400)은 데이터를 저장할 수 있다. 예를 들어, 스토리지 모듈(4400)은 애플리케이션 프로세서(4100)로부터 수신한 데이터를 저장할 수 있다. 또는 스토리지 모듈(4400)은 스토리지 모듈(4400)에 저장된 데이터를 애플리케이션 프로세서(4100)로 전송할 수 있다. 예시적으로, 스토리지 모듈(4400)은 PRAM(Phase-change RAM), MRAM(Magnetic RAM), RRAM(Resistive RAM), NAND flash, NOR flash, 3차원 구조의 NAND 플래시 등과 같은 불휘발성 반도체 메모리 소자로 구현될 수 있다. 예시적으로, 스토리지 모듈(4400)은 사용자 시스템(4000)의 메모리 카드, 외장형 드라이브 등과 같은 탈착식 저장 매체(removable drive)로 제공될 수 있다.The storage module 4400 may store data. For example, the storage module 4400 may store data received from the application processor 4100 . Alternatively, the storage module 4400 may transmit data stored in the storage module 4400 to the application processor 4100 . For example, the storage module 4400 is a non-volatile semiconductor memory device such as a phase-change RAM (PRAM), a magnetic RAM (MRAM), a resistive RAM (RRAM), a NAND flash, a NOR flash, a 3D NAND flash, and the like. can be implemented For example, the storage module 4400 may be provided as a removable storage medium such as a memory card or an external drive of the user system 4000 .

예시적으로, 스토리지 모듈(4400)은 복수의 불휘발성 메모리 장치들을 포함할 수 있고, 복수의 불휘발성 메모리 장치들은 도 1을 참조하여 설명된 메모리 장치(100)와 동일하게 동작할 수 있다. 스토리지 모듈(4400)은 도 1을 참조하여 설명된 스토리지 장치(50)와 동일하게 동작할 수 있다.For example, the storage module 4400 may include a plurality of nonvolatile memory devices, and the plurality of nonvolatile memory devices may operate in the same way as the memory device 100 described with reference to FIG. 1 . The storage module 4400 may operate in the same way as the storage device 50 described with reference to FIG. 1 .

사용자 인터페이스(4500)는 애플리케이션 프로세서(4100)에 데이터 또는 명령어를 입력하거나 또는 외부 장치로 데이터를 출력하는 인터페이스들을 포함할 수 있다. 예시적으로, 사용자 인터페이스(4500)는 키보드, 키패드, 버튼, 터치 패널, 터치 스크린, 터치 패드, 터치 볼, 카메라, 마이크, 자이로스코프 센서, 진동 센서, 압전 소자 등과 같은 사용자 입력 인터페이스들을 포함할 수 있다. 사용자 인터페이스(4500)는 LCD (Liquid Crystal Display), OLED (Organic Light Emitting Diode) 표시 장치, AMOLED (Active Matrix OLED) 표시 장치, LED, 스피커, 모니터 등과 같은 사용자 출력 인터페이스들을 포함할 수 있다.The user interface 4500 may include interfaces for inputting data or commands to the application processor 4100 or outputting data to an external device. For example, the user interface 4500 may include user input interfaces such as a keyboard, keypad, button, touch panel, touch screen, touch pad, touch ball, camera, microphone, gyroscope sensor, vibration sensor, piezoelectric element, and the like. have. 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.

50: 스토리지 장치
100: 메모리 장치
200: 메모리 컨트롤러
400: 호스트
50: storage device
100: memory device
200: memory controller
400: host

Claims (20)

데이터를 쓸 것을 요청하는 어플리케이션 및 상기 어플리케이션의 요청에 응답하여, 상기 데이터의 속성에 관한 로그를 생성하고, 상기 로그를 기초로 상기 데이터에 대응되는 섹션을 할당하는 파일 시스템을 포함하는 호스트 장치; 및
복수의 메모리 다이들을 포함하는 메모리 장치 및 상기 호스트 장치로부터 상기 데이터와 상기 데이터의 로그를 수신하고, 상기 섹션에 대응되는 상기 메모리 장치 내의 물리 구역(physical zone)에 상기 데이터를 순차적으로 저장하도록 상기 메모리 장치를 제어하는 메모리 컨트롤러를 포함하는 스토리지 장치;를 포함하고,
상기 메모리 컨트롤러는,
상기 로그를 기초로 상기 물리 구역이 포함되는 슈퍼 블록을 할당하며,
상기 슈퍼 블록은,
상기 로그에 따라 하나의 메모리 다이 내의 하나 이상의 메모리 블록들을 포함하는 제1 물리 구역을 복수 개 포함하거나, 서로 다른 메모리 다이들에 포함된 메모리 블록들 각각의 일부를 포함하는 제2 물리 구역을 복수 개 포함하는 전자 장치.
a host device including an application requesting to write data and a file system that generates a log of properties of the data in response to the request of the application and allocates a section corresponding to the data based on the log; and
Receive the data and the log of the data from a memory device including a plurality of memory dies and the host device, and sequentially store the data in a physical zone in the memory device corresponding to the section. A storage device including a memory controller for controlling the device; includes,
The memory controller,
Allocating a super block including the physical zone based on the log;
The super block,
According to the log, a plurality of first physical zones including one or more memory blocks in one memory die or a plurality of second physical zones including portions of each of memory blocks included in different memory dies are provided. electronic devices, including
제 1항에 있어서,
상기 파일 시스템은 상기 로그를 기초로 할당된 상기 섹션이 포함되는 섹션 그룹을 결정하고,
상기 섹션 그룹은 상기 제1 물리 구역에 저장되는 데이터가 할당받은 제1 섹션이 포함되는 제1 섹션 그룹 또는 상기 제2 물리 구역에 저장되는 데이터가 할당받은 제2 섹션이 포함되는 제2 섹션 그룹인 전자 장치.
According to claim 1,
The file system determines a section group including the allocated section based on the log,
The section group is a first section group including a first section allocated with data stored in the first physical zone or a second section group including a second section allocated with data stored in the second physical zone. electronic device.
제 2항에 있어서, 상기 로그는,
상기 데이터의 종류 및 온도에 따라 할당되는 전자 장치.
The method of claim 2, wherein the log,
An electronic device allocated according to the type and temperature of the data.
제 3항에 있어서,
상기 제1 물리 구역에 저장되는 데이터는 상기 제2 물리 구역에 저장되는 데이터에 비하여 용량이 작거나, 인풋/아웃풋 빈도가 높은 전자 장치.
According to claim 3,
Data stored in the first physical zone has a smaller capacity or higher input/output frequency than data stored in the second physical zone.
제 4항에 있어서, 상기 제1 물리 구역에 저장되는 데이터의 로그는,
핫 노드, 웜 노드, 콜드 노드 및 핫 데이터 중 어느 하나인 전자 장치.
The method of claim 4, wherein the log of data stored in the first physical zone,
An electronic device that is either a hot node, warm node, cold node, and hot data.
제 4항에 있어서, 상기 제2 물리 구역에 저장되는 데이터의 로그는,
웜 데이터 및 콜드 데이터 중 어느 하나인 전자 장치.
The method of claim 4, wherein the log of data stored in the second physical zone,
An electronic device that is either warm data or cold data.
데이터를 쓸 것을 요청하는 어플리케이션; 및
상기 어플리케이션의 요청에 응답하여, 상기 데이터의 속성에 관한 로그를 생성하고, 상기 로그를 기초로 상기 데이터에 대응되는 섹션을 할당하는 파일 시스템;을 포함하고,
상기 파일 시스템은 상기 로그를 기초로 상기 섹션이 포함되는 섹션 그룹을 결정하며,
상기 섹션 그룹은,
상기 섹션 그룹 내의 섹션 순서와 무관하게 상기 섹션 그룹 내 비어있는 섹션 중 어느 하나를 새로운 섹션으로 할당하는 하나 이상의 제1 섹션 그룹; 또는
상기 섹션 그룹 내의 섹션 순서에 따라 새로운 섹션을 할당하는 하나 이상의 제2 섹션 그룹;인 호스트 장치.
applications requesting to write data; and
In response to the request of the application, a file system that generates a log related to the attributes of the data and allocates a section corresponding to the data based on the log;
The file system determines a section group including the section based on the log;
The section group is
one or more first section groups allocating one of the empty sections in the section group as a new section regardless of the order of the sections in the section group; or
one or more second section groups to which new sections are allocated according to the order of sections in the section groups;
제 7항에 있어서, 상기 파일 시스템은,
특정 섹션에 대응되는 데이터가 모두 무효(invalid)인 경우, 상기 섹션을 비어있는(empty) 섹션으로 전환하는 리셋(reset) 동작을 수행하는 호스트 장치.
The method of claim 7, wherein the file system,
A host device that performs a reset operation of converting the section into an empty section when all data corresponding to a specific section is invalid.
제 8항에 있어서, 상기 파일 시스템은,
상기 제1 섹션 그룹에 포함된 특정 섹션에 대응되는 데이터가 모두 무효인 경우, 상기 데이터를 모두 폐기(discard)함으로써 리셋 동작을 완료하는 호스트 장치.
The method of claim 8, wherein the file system,
When all data corresponding to the specific section included in the first section group is invalid, the host device completes the reset operation by discarding all the data.
제 9항에 있어서, 상기 파일 시스템은,
상기 제2 섹션 그룹에 포함된 특정 섹션에 대응되는 데이터가 모두 무효인 경우, 상기 특정 섹션이 리셋 준비 중(Ready to Reset)임을 나타내는 정보를 저장하며,
상기 제2 섹션 그룹에 포함된 모든 섹션들에 대하여 리셋 준비 중임을 나타내는 정보가 저장된 후, 상기 모든 섹션들에 대응되는 데이터를 모두 폐기(discard)함으로써 리셋 동작을 완료하는 호스트 장치.
The method of claim 9, wherein the file system,
When all data corresponding to the specific section included in the second section group is invalid, storing information indicating that the specific section is ready to reset;
The host device completes a reset operation by discarding all data corresponding to all sections after storing information indicating that resetting is being prepared for all sections included in the second section group.
제 10항에 있어서, 상기 파일 시스템은,
비어있는 섹션을 확보하기 위하여, 희생 섹션을 결정하고, 상기 희생 섹션에 대해 상기 리셋 동작을 수행하는 클리닝을 수행하는 호스트 장치.
11. The method of claim 10, wherein the file system,
A host device that performs cleaning by determining a victim section and performing the reset operation on the victim section in order to secure an empty section.
제 11항에 있어서, 상기 희생 섹션은,
상기 리셋 준비 중임을 나타내는 정보가 저장된 섹션들의 수를 이용하여 결정되는 호스트 장치.
The method of claim 11, wherein the sacrificial section,
The host device determined using the number of sections in which information indicating that the reset is being prepared is stored.
제 12항에 있어서,
상기 희생 섹션에 대응되는 데이터 중 유효(valid) 데이터는 상기 희생 섹션이 포함된 섹션 그룹과 동일한 타입의 섹션 그룹 내의 섹션으로 이동되는 호스트 장치.
According to claim 12,
Among data corresponding to the victim section, valid data is moved to a section in a section group having the same type as a section group including the victim section.
복수의 메모리 다이들을 포함하는 메모리 장치; 및
외부 호스트로부터 데이터와 상기 데이터의 로그를 수신하고, 상기 메모리 장치 내에 데이터가 저장될 슈퍼 블록을 할당하고, 상기 슈퍼 블록에 포함된 물리 구역(physical zone)에 상기 데이터를 순차적으로 저장하도록 상기 메모리 장치를 제어하는 메모리 컨트롤러;를 포함하고,
상기 슈퍼 블록은,
상기 로그에 따라 하나의 메모리 다이 내의 하나 이상의 메모리 블록들을 포함하는 제1 물리 구역을 복수 개 포함하거나, 서로 다른 메모리 다이들에 포함된 메모리 블록들 각각의 일부를 포함하는 제2 물리 구역을 복수 개 포함하는 스토리지 장치.
a memory device including a plurality of memory dies; and
The memory device receives data and a log of the data from an external host, allocates a super block in which data is to be stored in the memory device, and sequentially stores the data in a physical zone included in the super block. Including; a memory controller for controlling;
The super block,
According to the log, a plurality of first physical zones including one or more memory blocks in one memory die or a plurality of second physical zones including portions of each of memory blocks included in different memory dies are provided. A storage device containing
제 14항에 있어서, 상기 메모리 컨트롤러는,
상기 외부 호스트로부터 저장할 데이터의 로그를 수신하고, 상기 로그에 따라 상기 슈퍼 블록을 할당하는 스토리지 장치.
15. The method of claim 14, wherein the memory controller,
A storage device that receives a log of data to be stored from the external host and allocates the super block according to the log.
제 15항에 있어서, 상기 메모리 컨트롤러는,
상기 호스트로부터 데이터에 대한 쓰기 요청을 수신하면, 할당된 상기 슈퍼 블록에 따라, 상기 데이터에 대응되는 논리 어드레스를 상기 슈퍼 블록에 포함된 물리 구역 내의 연속적인 물리 어드레스로 변환하는 스토리지 장치.
16. The method of claim 15, wherein the memory controller,
When a write request for data is received from the host, the storage device converts a logical address corresponding to the data into a continuous physical address within a physical area included in the super block according to the allocated super block.
제 14항에 있어서, 상기 제2 물리 구역은,
모든 메모리 다이들에 걸쳐 형성되는 스토리지 장치.
The method of claim 14, wherein the second physical zone,
A storage device formed across all memory dies.
제 14항에 있어서,
상기 제1 물리 구역에 포함된 페이지들의 수 및 상기 제2 물리 구역에 포함된 페이지들의 수는 동일한 스토리지 장치.
According to claim 14,
The number of pages included in the first physical zone and the number of pages included in the second physical zone are the same.
제 14항에 있어서,
상기 슈퍼 블록은 상기 제1 물리 구역을 복수 개 포함하는 제1 슈퍼 블록 또는 상기 제2 물리 구역을 복수 개 포함하는 제2 슈퍼 블록이며,
상기 제1 슈퍼 블록 및 상기 제2 슈퍼 블록에 포함되는 메모리 블록들의 수는 서로 동일한 스토리지 장치.
According to claim 14,
The super block is a first super block including a plurality of first physical zones or a second super block including a plurality of second physical zones,
The storage device of claim 1 , wherein the number of memory blocks included in the first super block and the second super block are the same.
제 19항에 있어서, 상기 제1 슈퍼 블록 및 상기 제2 슈퍼 블록은,
모든 메모리 다이들에 걸쳐 형성되며, 상기 모든 메모리 다이들 각각에 포함되는 하나 이상의 메모리 블록들을 포함하는 스토리지 장치.

The method of claim 19, wherein the first super block and the second super block,
A storage device comprising one or more memory blocks formed across all memory dies and included in each of all the memory dies.

KR1020220060466A 2021-05-25 2022-05-17 Host device, storage device and electronic device KR20220159268A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
TW111119341A TW202246985A (en) 2021-05-25 2022-05-24 Host device, storage device, and electronic device
US17/752,128 US11782617B2 (en) 2021-05-25 2022-05-24 Host device, storage device, and electronic device
CN202210579394.5A CN115390746A (en) 2021-05-25 2022-05-25 Host device, storage device, and electronic device
US18/464,289 US20230418485A1 (en) 2021-05-25 2023-09-11 Host device, storage device, and electronic device

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US202163192877P 2021-05-25 2021-05-25
US63/192,877 2021-05-25
KR20210086013 2021-06-30
KR1020210086013 2021-06-30

Publications (1)

Publication Number Publication Date
KR20220159268A true KR20220159268A (en) 2022-12-02

Family

ID=84417865

Family Applications (2)

Application Number Title Priority Date Filing Date
KR1020220060466A KR20220159268A (en) 2021-05-25 2022-05-17 Host device, storage device and electronic device
KR1020220060487A KR20220159270A (en) 2021-05-25 2022-05-17 Storage device and operating method thereof

Family Applications After (1)

Application Number Title Priority Date Filing Date
KR1020220060487A KR20220159270A (en) 2021-05-25 2022-05-17 Storage device and operating method thereof

Country Status (1)

Country Link
KR (2) KR20220159268A (en)

Also Published As

Publication number Publication date
KR20220159270A (en) 2022-12-02

Similar Documents

Publication Publication Date Title
KR102495910B1 (en) Storage device and operating method thereof
US11861359B2 (en) Storage device and method of operating the same
US20230418485A1 (en) Host device, storage device, and electronic device
US20240176738A1 (en) Memory controller, storage device including the memory controller, and method of operating the memory controller and the storage device
KR102596964B1 (en) Data storage device capable of changing map cache buffer size
US11520519B2 (en) Storage device and method of operating the same
US11954350B2 (en) Storage device and method of operating the same
US11768625B2 (en) Storage device managing a multi-tier cache memory and operating method thereof
US11775211B2 (en) Memory controller and method of operating the same
US11436148B2 (en) Memory controller and method of operating the same
KR20220005322A (en) Memory controller and operating method thereof
KR20220159268A (en) Host device, storage device and electronic device
US20220382673A1 (en) Storage device and method of operating the same
US20240095181A1 (en) Storage device, host device, and electronic device
KR20220159269A (en) Storage device and operating method thereof
US20230384936A1 (en) Storage device, electronic device including storage device, and operating method thereof
US11455249B2 (en) Storage device for performing dump operation, method of operating storage device, computing system including storage device and host device for controlling storage device, and method of operating computing system
US20240020252A1 (en) Computing system and operating method thereof
KR20230063857A (en) Storage device and electronic device
KR20230011214A (en) Storage device and operating method thereof
KR20240019429A (en) Storage device, electronic device including storage device and operating method thereof
KR20230041570A (en) Memory controller, storage device and host device