KR20120045422A - Memory system and user device, and data management method thereof - Google Patents

Memory system and user device, and data management method thereof Download PDF

Info

Publication number
KR20120045422A
KR20120045422A KR1020100106947A KR20100106947A KR20120045422A KR 20120045422 A KR20120045422 A KR 20120045422A KR 1020100106947 A KR1020100106947 A KR 1020100106947A KR 20100106947 A KR20100106947 A KR 20100106947A KR 20120045422 A KR20120045422 A KR 20120045422A
Authority
KR
South Korea
Prior art keywords
information
deleted
file
storage device
host
Prior art date
Application number
KR1020100106947A
Other languages
Korean (ko)
Other versions
KR101893897B1 (en
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 KR1020100106947A priority Critical patent/KR101893897B1/en
Priority to TW100139384A priority patent/TWI579692B/en
Priority to US13/283,866 priority patent/US11232022B2/en
Priority to CN201110338409.0A priority patent/CN102467455B/en
Publication of KR20120045422A publication Critical patent/KR20120045422A/en
Priority to US14/470,500 priority patent/US20140372685A1/en
Application granted granted Critical
Publication of KR101893897B1 publication Critical patent/KR101893897B1/en
Priority to US17/570,848 priority patent/US11636032B2/en
Priority to US17/570,780 priority patent/US11640353B2/en
Priority to US17/570,816 priority patent/US20220129374A1/en
Priority to US18/314,669 priority patent/US20230273876A1/en

Links

Images

Classifications

    • 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
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • 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/0643Management of files
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/46Caching storage objects of specific type in disk cache
    • G06F2212/466Metadata, control data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE: A memory system and a user device, and a data management method thereof are provided to eliminate a mismatch between a file management unit of a hard disk and a data management unit of a flash memory, thereby preventing lifetime reduction of the flash memory. CONSTITUTION: A file system manages a file by a unit different from a data management unit of a data storage device and changes information about metadata of a file to be deleted. A trim management module(113) provides information about a storage area to the data storage device wherein the storage area is matched with a data management unit of the data storage device. A change of information about the metadata of the file to be deleted is deleted at an upper level.

Description

메모리 시스템 및 사용자 장치 그리고 그것의 데이터 관리 방법{MEMORY SYSTEM AND USER DEVICE, AND DATA MANAGEMENT METHOD THEREOF} MEMORY SYSTEM AND USER DEVICE, AND DATA MANAGEMENT METHOD THEREOF

본 발명은 메모리 시스템 및 그것의 데이터 관리 방법에 관한 것으로, 좀 더 구체적으로는 플래시 메모리 시스템 및 그것의 데이터 관리 방법에 관한 것이다. The present invention relates to a memory system and a data management method thereof, and more particularly to a flash memory system and a data management method thereof.

플래시 메모리(flash memory)는 하드 디스크와 달리 겹쳐 쓰기(overwrite)를지원하지 않기 때문에, 다시 쓰기 위해서는 소거 동작이 선행되어야 한다. 플래시 메모리의 소거 동작은 메모리 블록 단위로 수행된다. 이러한 플래시 메모리의 특성으로 인해, 하드 디스크용 파일 시스템을 플래시 메모리에 그대로 적용하는데 어려움이 있다. 이를 해결하기 위한 방안으로 하드 디스크용 파일 시스템과 플래시 메모리 사이에 미들웨어인 플래시 변환 계층(FTL)이 사용되고 있다. 플래시 변환 계층은 플래시 메모리를 기존의 하드 디스크처럼 자유롭게 읽고 쓸 수 있도록 한다.Since flash memory does not support overwriting unlike a hard disk, an erase operation must be preceded to write again. The erase operation of the flash memory is performed in units of memory blocks. Due to the characteristics of the flash memory, it is difficult to apply the file system for the hard disk to the flash memory as it is. To solve this problem, a middleware flash translation layer (FTL) is used between the hard disk file system and the flash memory. The flash translation layer allows flash memory to be freely read and written like traditional hard disks.

한편, 파일 시스템에서 파일을 관리하는 단위와 플래시 변환 계층에서 플래시 메모리에 저장된 데이터를 관리하는 단위는 서로 다르다. 이러한 관리 단위의 불일치는 플래시 메모리에 불필요한 데이터의 복사 동작 및 대량의 병합 동작을 야기 할 수 있다. 이러한 복사 및 병합 동작은 플래시 메모리의 수명을 단축하는 주요한 원인이 된다. On the other hand, a unit for managing a file in a file system and a unit for managing data stored in a flash memory in a flash translation layer are different. Such inconsistency in the management unit can cause unnecessary copying operation and large amount of merging operation in the flash memory. This copy and merge operation is a major cause of shortening the life of flash memory.

본 발명은 하드 디스크 관점의 관리 단위와 플래시 메모리 관점의 관리 단위 사이의 불일치를 해소함으로써, 플래시 메모리의 수명 단축을 방지하고, 플래시 메모리 시스템의 전체적인 성능을 향상시키는 것을 목적으로 한다. An object of the present invention is to eliminate the inconsistency between the management unit from the hard disk perspective and the management unit from the flash memory perspective, thereby preventing shortening the life of the flash memory and improving the overall performance of the flash memory system.

본 발명의 실시 예에 따른 데이터 저장 장치에 파일의 데이터를 저장하며, 데이터 저장 장치와 다른 데이터 관리 단위를 갖는 사용자 장치의 데이터 관리 방법은 파일 삭제 요청에 응답하여, 삭제 요청된 파일의 메타 데이터를 변경하는 단계; 상기 삭제 요청된 파일의 저장 영역에 관한 정보가 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는지를 판단하는 단계; 및 상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는 영역에 관한 정보를 상기 데이터 저장 장치에 전송하는 단계를 포함한다.According to an embodiment of the present invention, a data storage method of a user device which stores data of a file in a data storage device and has a data management unit different from that of the data storage device, may respond to a file deletion request, and transmit metadata of the file requested to be deleted. Changing; Determining whether information about a storage area of the file requested to be deleted corresponds to a data management unit of the data storage device; And transmitting information on an area corresponding to a data management unit of the data storage device, to the data storage device, from among information on a storage area of the file requested to be deleted.

실시 예로써, 상기 삭제 요청된 파일의 메타 데이터의 변경은 상기 삭제 요청된 파일이 상위 레벨에서 삭제되었음을 나타낸다.In an embodiment, the change of the metadata of the file requested to be deleted indicates that the file to be deleted is deleted at a higher level.

실시 예로써, 상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하지 않는 영역에 관한 정보를 관리하는 트림 관리 테이블을 생성하는 단계를 더 포함한다.The method may further include generating a trim management table that manages information about an area that does not match a data management unit of the data storage device among information about a storage area of the file requested to be deleted.

실시 예로써, 상기 삭제 요청된 파일의 저장 영역에 관한 정보는 상기 데이터 저장 장치의 맵핑 테이블로부터 제공된다.In an embodiment, information about a storage area of the file requested to be deleted is provided from a mapping table of the data storage device.

본 발명의 실시 예에 따른 데이터 저장 장치에 파일의 데이터를 저장하는 사용자 장치는 상기 데이터 저장 장치의 데이터 관리 단위와 다른 단위로 파일을 관리하며, 삭제 요청된 파일의 메타 데이터에 관한 정보를 변경하는 파일 시스템; 및 상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는 저장 영역에 관한 정보를 상기 데이터 저장 장치에 제공하는 트림 관리 모듈을 포함한다.A user device for storing data of a file in a data storage device according to an embodiment of the present invention manages the file in a unit different from that of the data management unit of the data storage device, and changes information on metadata of the file requested to be deleted. File system; And a trim management module configured to provide the data storage device with information about a storage area corresponding to a data management unit of the data storage device among information about a storage area of the file requested to be deleted.

실시 예로써, 상기 삭제 요청된 파일의 메타 데이터에 관한 정보의 변경은 상기 삭제 요청된 파일이 상위 레벨에서 삭제되었음을 나타낸다.In an embodiment, the change of the information about the metadata of the file requested to be deleted indicates that the file to be deleted is deleted at a higher level.

실시 예로써, 상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하지 않는 영역에 관한 정보를 관리하는 트림 관리 테이블을 더 포함한다.The trim management table may further include a trim management table that manages information about an area that does not match a data management unit of the data storage device among information about a storage area of the file requested to be deleted.

실시 예로써, 상기 트림 관리 테이블을 저장하는 호스트 메모리를 더 포함하며, 상기 호스트 메모리에 저장된 트림 관리 테이블은 밀어내기 방식에 의하여 관리된다.In an embodiment, the apparatus further includes a host memory that stores the trim management table, and the trim management table stored in the host memory is managed by a push method.

실시 예로써, 적어도 두 개의 삭제 요청된 파일들의 저장 영역에 관한 정보를 저장하는 호스트 메모리를 더 포함한다.In an embodiment, the apparatus may further include a host memory configured to store information regarding a storage area of at least two files requested to be deleted.

실시 예로써, 상기 트림 관리 모듈은 상기 호스트 메모리에 저장된 상기 적어도 두 개의 삭제 요청된 파일들의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는 영역에 관한 정보를 상기 데이터 저장 장치에 제공한다.In example embodiments, the trim management module may be configured to transmit, to the data storage device, information on an area corresponding to a data management unit of the data storage device among information on a storage area of the at least two files requested to be deleted stored in the host memory. to provide.

실시 예로써, 상기 삭제 요청된 파일의 저장 영역에 관한 정보는 상기 데이터 저장 장치의 맵핑 테이블로부터 제공된다.In an embodiment, information about a storage area of the file requested to be deleted is provided from a mapping table of the data storage device.

본 발명의 실시 예에 따른 메모리 시스템은 트림 동작을 지원하는 호스트; 및 상기 호스트로부터의 트림 명령에 응답하여, 소거 동작을 수행하는 데이터 저장 장치를 포함하며, 상기 호스트는 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는 저장 영역에 관한 정보만을 상기 데이터 저장 장치에 제공한다.In an embodiment, a memory system may include a host supporting a trim operation; And a data storage device that performs an erase operation in response to a trim command from the host, wherein the host corresponds to a storage area that matches a data management unit of the data storage device among information about a storage area of a file requested to be deleted. Only information relating to the data storage device is provided.

실시 예로써, 상기 호스트는 상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하지 않는 영역에 관한 정보를 별도로 관리한다.In an embodiment, the host separately manages information about an area that does not match a data management unit of the data storage device among information about a storage area of the file requested to be deleted.

실시 예로써, 상기 호스트는 섹터 단위로 파일을 관리하고, 상기 데이터 저장 장치는 페이지 단위로 파일의 데이터를 관리하며, 각 페이지는 복수 개의 섹터들로 구분된다.In an embodiment, the host manages a file on a sector basis, the data storage device manages data of a file on a page basis, and each page is divided into a plurality of sectors.

실시 예로써, 상기 호스트는 섹터 단위로 파일을 관리하며, 삭제 요청된 파일의 메타 데이터에 관한 정보를 변경하는 파일 시스템; 및 상기 삭제 요청된 파일의 섹터들 중 상기 데이터 저장 장치의 데이터 관리 단위인 페이지 단위에 일치하는 섹터들에 관한 정보를 선택하는 트림 관리 모듈을 포함한다.According to an embodiment of the present disclosure, the host may manage a file on a sector basis and change the information on metadata of a file requested to be deleted; And a trim management module for selecting information on sectors corresponding to a page unit which is a data management unit of the data storage device, among sectors of the file to be deleted.

실시 예로써, 상기 삭제 요청된 파일의 메타 데이터에 관한 정보의 변경은 상기 삭제 요청된 파일이 상위 레벨에서 삭제되었음을 나타낸다.In an embodiment, the change of the information about the metadata of the file requested to be deleted indicates that the file to be deleted is deleted at a higher level.

실시 예로써, 상기 호스트는 상기 삭제 요청된 파일의 섹터들 중 상기 페이지 단위에 일치하지 않는 섹터(이하, 부분 섹터)에 관한 정보를 관리하는 트림 관리 테이블을 더 포함한다.In example embodiments, the host further includes a trim management table that manages information on sectors (hereinafter, partial sectors) that do not match the page unit among sectors of the file requested to be deleted.

실시 예로써, 상기 트림 관리 테이블은 상기 부분 섹터에 관한 정보 및 상기 부분 섹터와 동일한 페이지에 속하는 섹터에 관한 정보를 관리한다.In an embodiment, the trim management table manages information about the partial sector and information about a sector belonging to the same page as the partial sector.

실시 예로써, 상기 호스트는 서로 다른 시간에 삭제 요청된 적어도 두 개의 파일들의 섹터들에 관한 정보를 저장하는 호스트 메모리를 더 포함한다.In an embodiment, the host further includes a host memory that stores information about sectors of at least two files requested to be deleted at different times.

실시 예로써, 상기 트림 관리 모듈은 상기 호스트 메모리에 저장된 상기 서로 다른 시간에 삭제 요청된 적어도 두 개의 파일들의 섹터들에 관한 정보 중 상기 데이터 저장 장치의 관리 단위에 일치하는 섹터 어드레스에 관한 정보를 선택한다.In example embodiments, the trim management module may select information on a sector address corresponding to a management unit of the data storage device from among information about sectors of at least two files requested to be deleted at different times stored in the host memory. do.

본 발명의 실시 예에 따른 메모리 시스템은 하디 디스크 관점의 파일 관리 단위와 플래시 메모리 관점의 데이터 관리 단위의 불일치를 해소함으로써, 데이터 관리 단위의 불일치에 의하여 야기되는 유효한 데이터의 카피 및 대량의 병합 동작의 발생을 방지한다. 따라서, 본 발명의 실시 예에 따른 메모리 시스템은 플래시 메모리의 수명 단축을 방지하고 플래시 메모리 시스템의 전체적인 성능을 향상시킨다. 또한, 본 발명의 실시 예에 따른 메모리 시스템은 트림 동작을 지원함으로써, 호스트의 명령에 대한 플래시 메모리 시스템의 응답 속도를 더욱 향상시킨다. The memory system according to an exemplary embodiment of the present invention eliminates inconsistencies between a file management unit in a hard disk view and a data management unit in a flash memory view, thereby eliminating the copying and bulk merging operations of valid data caused by the inconsistency of the data management unit. Prevent occurrence. Therefore, the memory system according to the embodiment of the present invention prevents shortening the life of the flash memory and improves the overall performance of the flash memory system. In addition, the memory system according to an embodiment of the present invention further supports a trim operation, thereby further improving a response speed of the flash memory system to a command of a host.

도 1은 본 발명의 실시 예에 따른 메모리 시스템을 보여주는 블록도이다.
도 2는 본 발명의 실시 예에 따른 플래시 메모리 시스템을 보여주는 블록도이다.
도 3은 도 2의 파일 시스템이 파일을 관리하기 위하여 생성하는 디렉토리 엔트리(directory entry) 구조를 예시적으로 보여준다.
도 4는 도 2에 도시된 플래시 메모리 시스템의 소프트웨어 계층 구조를 보여주는 블록도이다.
도 5는 도 2의 트림 관리 모듈의 동작을 좀더 자세히 보여주는 블록도이다.
도 6은 도 2의 플래시 변환 계층의 어드레스 변환 동작을 좀더 자세히 보여주는 블록도이다.
도 7은 맵핑 테이블을 통한 어드레스 변환을 예시적으로 보여주는 블록도이다.
도 8은 도 2의 트림 관리 모듈이 없는 경우에, 트림 명령을 처리하는 플래시 메모리 시스템의 일 실시 예를 보여주는 도면이다.
도 9 내지 도 11은 도 2의 트림 관리 모듈을 이용하여 정렬된 섹터 어드레스(Aligned Sector ADDR)를 발생하고, 정렬된 섹터 어드레스가 포함된 트림 명령을 처리하는 본 발명의 일 실시 예에 따른 플래시 메모리 시스템을 설명하기 위한 도면이다.
도 12는 플래시 저장 장치의 맵핑 테이블로부터 호스트에 그룹 정보가 전달되는 것을 보여주는 순서도이다.
도 13은 도 2의 트림 관리 모듈의 동작을 보여주는 순서도이다.
도 14는 서로 다른 시간에 제공된 섹터 어드레스에 관한 정보를 수집하고, 수집된 섹터 어드레스에 관한 정보를 처리하는 호스트를 설명하는 도면이다.
도 15는 서로 다른 파일에 대한 섹터 어드레스들이 도 14의 섹터 저장 영역에 수집되는 동작을 보여주는 순서도이다.
도 16은 도 14의 섹터 수집 영역에 수집된 섹터 어드레스를 유휴 시간에 처리하는 동작을 보여주는 순서도이다.
도 17은 본 발명의 실시 예에 따른 호스트를 메모리 카드에 적용한 예를 보여준다.
도 18은 본 발명의 실시 예에 따른 호스트를 솔리드 스테이트 드라이브(SSD)에 적용한 실시 예를 보여준다.
도 19는 도 18에 도시된 SSD 컨트롤러의 구성을 예시적으로 보여주는 블록도이다.
도 20은 본 발명의 실시 예에 따른 호스트를 플래시 메모리 모듈에 구현한 예를 보여주는 블록도이다.
1 is a block diagram illustrating a memory system according to an example embodiment of the disclosure.
2 is a block diagram illustrating a flash memory system according to an exemplary embodiment of the present invention.
FIG. 3 exemplarily illustrates a directory entry structure generated by the file system of FIG. 2 to manage files.
4 is a block diagram illustrating a software hierarchy structure of the flash memory system illustrated in FIG. 2.
5 is a block diagram illustrating the operation of the trim management module of FIG. 2 in more detail.
6 is a block diagram illustrating an address translation operation of the flash translation layer of FIG. 2 in more detail.
7 is a block diagram illustrating an example of address translation through a mapping table.
FIG. 8 is a diagram illustrating an embodiment of a flash memory system that processes a trim command when there is no trim management module of FIG. 2.
9 to 11 are flash memories according to an embodiment of the present invention for generating an aligned sector address (Aligned Sector ADDR) using the trim management module of FIG. 2 and processing a trim command including the aligned sector address. It is a figure for demonstrating a system.
12 is a flowchart illustrating group information being transferred from a mapping table of a flash storage device to a host.
FIG. 13 is a flowchart illustrating an operation of the trim management module of FIG. 2.
14 is a diagram illustrating a host that collects information about sector addresses provided at different times and processes information about the collected sector addresses.
FIG. 15 is a flowchart illustrating an operation in which sector addresses for different files are collected in the sector storage area of FIG. 14.
FIG. 16 is a flowchart illustrating an operation of processing sector addresses collected in the sector collection area of FIG. 14 at idle time.
17 shows an example in which a host is applied to a memory card according to an embodiment of the present invention.
18 illustrates an embodiment in which a host is applied to a solid state drive (SSD) according to an embodiment of the present invention.
FIG. 19 is a block diagram illustrating a configuration of an SSD controller shown in FIG. 18.
20 is a block diagram illustrating an example in which a host is implemented in a flash memory module according to an example embodiment.

이하, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명의 기술적 사상을 용이하게 실시할 수 있을 정도로 상세히 설명하기 위하여, 본 발명의 실시 예 또는 적용 예를 첨부된 도면을 참조하여 설명하기로 한다.
DETAILED DESCRIPTION Hereinafter, exemplary embodiments or application examples of the present invention will be described with reference to the accompanying drawings so that those skilled in the art may easily implement the technical idea of the present invention. Shall be.

Ⅰ. 트림 동작을 지원하는 호스트Ⅰ. Hosts that Support Trim Motion

도 1은 본 발명의 실시 예에 따른 메모리 시스템(100)을 보여주는 블록도이다. 도 1을 참조하면, 메모리 시스템(100)은 호스트(110) 및 저장 장치(120)를 포함하며, 저장 장치(120)는 제어 유닛(121)과 저장 유닛(122)을 포함한다.1 is a block diagram illustrating a memory system 100 according to an exemplary embodiment of the inventive concept. Referring to FIG. 1, the memory system 100 includes a host 110 and a storage device 120, and the storage device 120 includes a control unit 121 and a storage unit 122.

호스트(110)는 프로세싱 유닛(111) 및 구동 유닛(112)을 포함한다. 프로세싱 유닛(111)은 호스트(110)의 전반적인 동작을 제어하며, 구동 유닛(112)은 프로세싱 유닛(111)의 제어에 따라 저장 장치(120)를 구동한다.The host 110 includes a processing unit 111 and a drive unit 112. The processing unit 111 controls the overall operation of the host 110, and the driving unit 112 drives the storage device 120 under the control of the processing unit 111.

호스트(100)는 트림 동작(TRIM operation)을 지원하다. 트림 동작은 사용자로부터 특정 파일(file)에 대한 삭제 요청(delete request)이 있는 경우, 호스트(110)에서 해당 파일에 대한 메타 데이터만을 처리하는 것을 의미한다. 이 경우, 저장 유닛(122)에 저장된 데이터의 실질적인 삭제 없이 호스트(110)의 메타 데이터만이 처리되기 때문에, 사용자는 해당 파일에 대한 삭제 동작이 빠르게 수행된 것으로 인식할 수 있다.The host 100 supports a trim operation. The trim operation means that when there is a delete request for a specific file from the user, the host 110 processes only metadata about the file. In this case, since only the meta data of the host 110 is processed without the substantial deletion of the data stored in the storage unit 122, the user can recognize that the deletion operation on the file is performed quickly.

저장 유닛(122)에 저장된 데이터를 실질적으로 삭제하기 위하여, 호스트(110)는 저장 장치(120)에 트림 명령(TRIM command)을 제공한다. 트림 명령은 실질적으로 삭제될 영역을 지정하기 위한 정보(예를 들면, 어드레스 정보)를 포함한다. 제어 유닛(121)은 트림 명령에 응답하여, 저장 유닛(122)에 저장된 데이터에 대한 소거 동작(erase operation)을 수행한다. 이러한 트림 명령은 할당 해제 명령(deallocate command), 기록 해제 명령(unwrite command), 삭제 명령(deletion command), 파일 삭제 명령(file delete command) 등 다양한 이름으로 정의될 수 있다.In order to substantially delete the data stored in the storage unit 122, the host 110 provides a trim command to the storage device 120. The trim command contains information (eg, address information) for specifying the area to be substantially deleted. The control unit 121 performs an erase operation on the data stored in the storage unit 122 in response to the trim command. The trim command may be defined by various names such as a deallocate command, an unwrite command, a deletion command, a file delete command, and the like.

한편, 호스트(110)에서 파일을 관리하는 단위와 저장 장치(120)에서 저장 유닛(122)에 저장된 데이터를 관리하는 단위는 서로 다를 수 있다. 예를 들어, 호스트(110)에서는 하드 디스크(hard disk) 관점의 섹터(sector) 단위로 파일을 관리하고, 저장 장치(120)는 플래시 메모리(flash memory) 관점의 페이지(page) 및/또는 블록(block) 단위로 저장 유닛(122)에 저장된 데이터를 관리할 수 있다.Meanwhile, a unit for managing a file in the host 110 and a unit for managing data stored in the storage unit 122 in the storage device 120 may be different from each other. For example, the host 110 manages files in sector units in terms of a hard disk, and the storage device 120 stores pages and / or blocks in terms of a flash memory. Data stored in the storage unit 122 may be managed in units of blocks.

이러한 호스트(110)와 저장 장치(120)의 관리 단위의 불일치는 메모리 시스템(100)의 성능 저하를 야기할 수 있다. 예를 들어, 호스트(110)로부터의 트림 명령에 응답하여 저장 유닛(122)에 저장된 데이터에 대한 소거 동작이 수행되는 경우, 관리 단위의 불일치는 데이터의 복사 동작(copy operation) 및 대량의 병합 동작(merge operation)을 야기할 수 있다. 따라서, 저장 장치(120)의 수명이 단축되고, 성능이 떨어질 수 있다.Such inconsistency between the management unit of the host 110 and the storage device 120 may cause performance degradation of the memory system 100. For example, if an erase operation is performed on the data stored in the storage unit 122 in response to a trim command from the host 110, the discrepancy of the management unit may be a copy operation of the data and a large merge operation. may cause a merge operation. Therefore, the lifespan of the storage device 120 may be shortened and performance may be degraded.

이러한 문제를 해결하기 위하여, 본 발명의 실시 예에 따른 호스트(110)는 트림 관리 모듈(TRIM Manage Module, 113)을 포함한다. 트림 관리 모듈(113)은 저장 장치(120)에 트림 명령이 제공되는 경우, 삭제될 영역을 지정하기 위한 정보(예를 들면, 섹터 어드레스) 중 저장 장치(120)의 관리 단위(예를 들면, 페이지 단위)에 일치하는 정보만을 저장 장치(120)에 제공한다. 트림 관리 모듈(113)을 이용하여 호스트(110)와 저장 장치(120) 사이의 관리 단위의 불일치를 해소함으로써, 본 발명의 실시 예에 따른 메모리 시스템(100)은 저장 장치(120)의 수명 단축 및 성능 저하를 방지할 수 있다.
In order to solve this problem, the host 110 according to an embodiment of the present invention includes a trim management module 113. When the trim command is provided to the storage device 120, the trim management module 113 manages a management unit of the storage device 120 (eg, a sector address) to designate an area to be deleted. Only information corresponding to the page unit) is provided to the storage device 120. By resolving a mismatch between management units between the host 110 and the storage device 120 using the trim management module 113, the memory system 100 according to the embodiment of the present invention shortens the lifespan of the storage device 120. And deterioration in performance.

Ⅱ. 관리 단위의 불일치를 해소하는 플래시 메모리 시스템의 호스트II. Hosts of flash memory systems to resolve inconsistencies in management units

도 2는 본 발명의 실시 예에 따른 플래시 메모리 시스템(1000)을 보여주는 블록도이다. 도 2에서는 도 1의 저장 장치(120)의 예로써, 플래시 저장 장치(1200)가 도시되어 있다.2 is a block diagram illustrating a flash memory system 1000 according to an example embodiment. In FIG. 2, the flash storage device 1200 is illustrated as an example of the storage device 120 of FIG. 1.

도 2를 참조하면, 플래시 메모리 시스템(1000)은 호스트(1100) 및 플래시 저장 장치(1200)를 포함한다. 이하에서는 간략한 설명을 위하여, 호스트(1100)는 섹터(sector) 단위로 파일(file)을 관리하고, 플래시 저장 장치(1200)는 페이지(page) 단위로 플래시 메모리(1210)에 저장된 데이터를 관리한다고 가정된다. Referring to FIG. 2, the flash memory system 1000 includes a host 1100 and a flash storage device 1200. For simplicity, the host 1100 manages a file in sectors, and the flash storage device 1200 manages data stored in the flash memory 1210 in units of pages. Is assumed.

본 발명의 실시 예에 따른 호스트(1100)는 트림 관리 모듈(1124)을 포함한다. 호스트(1100)는 트림 관리 모듈(1123)을 이용하여, 호스트(1100)와 플래시 저장 장치(1200) 사이의 관리 단위의 불일치를 해소한다. 도 2를 참조하면, 호스트(1100)는 프로세싱 유닛(Processing Unit, 1110) 및 구동 유닛(Driving Unit, 1120)을 포함한다. The host 1100 according to the embodiment of the present invention includes a trim management module 1124. The host 1100 uses the trim management module 1123 to resolve inconsistencies in the management unit between the host 1100 and the flash storage device 1200. Referring to FIG. 2, the host 1100 includes a processing unit 1110 and a driving unit 1120.

프로세싱 유닛(예를 들면, CPU)(1110)은 호스트(1100)의 전반적인 동작을 제어하며, 구동 유닛(1120)은 프로세싱 유닛(1110)의 제어에 따라 플래시 저장 장치(1200)를 구동한다. 구동 유닛(1120)은 호스트(1100)의 소프트웨어 프로그램들을 구동하기 위한 메모리(memory)를 포함할 수 있다.The processing unit (eg, CPU) 1110 controls the overall operation of the host 1100, and the driving unit 1120 drives the flash storage device 1200 under the control of the processing unit 1110. The driving unit 1120 may include a memory for driving software programs of the host 1100.

구동 유닛(1120)은 애플리케이션(Application, 1121), 파일 시스템(File System, 1122), 장치 드라이버(Device Driver, 1123), 트림 관리 모듈(1124), 그리고 호스트 메모리(1125)를 포함한다. 애플리케이션(1121)은 응용프로그램(application program)이라고도 하며, 운영 체제(OS) 상에서 실행되는 소프트웨어이다. 예를 들어, 애플리케이션(1121)은 파일(file)의 생성 및 삭제 동작을 지원하도록 프로그램되어 있다.The driving unit 1120 includes an application 1121, a file system 1122, a device driver 1123, a trim management module 1124, and a host memory 1125. The application 1121 is also called an application program, and is software running on an operating system (OS). For example, application 1121 is programmed to support the creation and deletion of files.

파일 시스템(1122)은 호스트(1100)에서 사용되는 파일을 관리한다. 파일 시스템은 하드 디스크 관점의 섹터(sector) 또는 클러스터(cluster) 단위로 파일을 관리할 수 있다. 이하에서 파일 시스템(1122)은 하드 디스크 관점의 섹터(sector) 단위로 호스트(1100)에서 사용되는 파일을 관리한다고 가정된다. 여기에서, 섹터(sector)는 애플리케이션(1121)이 접근할 수 있는 가장 작은 데이터 관리 단위로써, 일반적으로 512B(byte)의 크기를 갖는다. File system 1122 manages files used by host 1100. The file system may manage files on a sector or cluster basis from a hard disk perspective. In the following description, it is assumed that the file system 1122 manages a file used in the host 1100 on a sector basis from a hard disk perspective. Here, the sector is the smallest data management unit that can be accessed by the application 1121, and generally has a size of 512B (byte).

파일 시스템(1122)은 애플리케이션(1121)으로부터 특정 파일에 대한 삭제 요청이 있는 경우, 삭제 요청된 파일의 메타 데이터를 변경한다. 이 후에 애플리케이션(1121)이 해당 파일에 접근(access)하면, 파일 시스템(1122)은 변경된 메타 데이터를 참조하여, '해당 파일은 삭제되었다'는 정보를 제공한다. 또한, 파일 시스템(1122)은 삭제 요청된 파일에 대한 섹터 어드레스를 트림 관리 모듈(1124)에 전달한다. 파일 시스템(1122) 및 파일 시스템(1122)의 디렉토리 엔트리(directory entry) 구조는 이하의 도 3에서 좀더 자세히 설명된다. The file system 1122 changes the metadata of the file requested to be deleted when there is a request to delete a specific file from the application 1121. Thereafter, when the application 1121 accesses the file, the file system 1122 refers to the changed metadata and provides information that the file has been deleted. File system 1122 also forwards sector address for the file requested to be deleted to trim management module 1124. The file system 1122 and directory entry structure of the file system 1122 are described in more detail in FIG. 3 below.

트림 관리 모듈(1124)은 파일 시스템(1122)으로부터 삭제 요청된 파일에 대한 섹터 어드레스를 전달받는다. 트림 관리 모듈(1124)은 전달받은 섹터 어드레스를 플래시 메모리의 페이지 단위에 일치시킨다. 즉, 트림 관리 모듈(1124)은 전달받은 섹터 어드레스 중 플래시 저장 장치(1200)의 페이지 단위에 일치하는 섹터 어드레스만을 선택한다. 플래시 메모리(1210)에 저장된 데이터를 실질적으로 삭제하기 위하여, 트림 관리 모듈(1124)은 페이지 단위에 일치하는 섹터 어드레스를 트림 명령(TRIM command)과 함께 플래시 저장 장치(1200)에 제공한다. 한편, 트림 관리 모듈(1124)은 전달받은 섹터 어드레스 중 플래시 저장 장치(1200)의 페이지 단위에 일치하지 않는 섹터 어드레스는 별도로 관리할 수 있다. The trim management module 1124 receives a sector address for the file requested to be deleted from the file system 1122. The trim management module 1124 matches the received sector address to the page unit of the flash memory. That is, the trim management module 1124 selects only sector addresses corresponding to the page unit of the flash storage device 1200 among the received sector addresses. In order to substantially delete data stored in the flash memory 1210, the trim management module 1124 provides a sector address corresponding to a page unit to the flash storage device 1200 along with a trim command. The trim management module 1124 may separately manage sector addresses that do not correspond to the page unit of the flash storage device 1200 among the received sector addresses.

장치 드라이버(1123)는 플래시 저장 장치(1200)가 호스트(1100)와 통신할 수 있도록 하는 프로그램이다. 플래시 저장 장치(1200)를 사용하기 위해서는, 호스트(1100)에 플래시 저장 장치(1200)에 맞는 장치 드라이버(1123)가 설치되어야 한다. 도 2에서 트림 관리 모듈(1124)과 장치 드라이버(1123)는 서로 독립적인 모듈로 구현된다. 다만 이는 예시적인 것이며, 트림 관리 모듈(1124)은 장치 드라이버(1123) 내에 탑재될 수 있다.The device driver 1123 is a program that enables the flash storage device 1200 to communicate with the host 1100. In order to use the flash storage device 1200, a device driver 1123 corresponding to the flash storage device 1200 must be installed in the host 1100. In FIG. 2, the trim management module 1124 and the device driver 1123 are implemented as modules independent of each other. However, this is exemplary and the trim management module 1124 may be mounted in the device driver 1123.

호스트 메모리(1125)는 플래시 저장 장치(1200)에 쓰거나 플래시 저장 장치(1200)로부터 읽은 데이터를 임시로 저장할 수 있다. 또한, 호스트 메모리(1125)는 애플리케이션(1121), 파일 시스템(1122), 장치 드라이버(1123), 그리고 트림 관리 모듈(1124)을 구동하기 위한 워킹 메모리(working memory)로 사용될 수 있다.The host memory 1125 may temporarily store data written to or read from the flash storage device 1200. In addition, the host memory 1125 may be used as a working memory for driving the application 1121, the file system 1122, the device driver 1123, and the trim management module 1124.

한편, 플래시 저장 장치(1200)는 호스트(1100)로부터 트림 명령(TRIM command)을 전달받는다. 트림 명령에는 삭제될 영역을 지정하기 위한 정보(예를 들어, 삭제 요청된 섹터 어드레스에 관한 정보)가 포함된다. 이 경우, 플래시 저장 장치(1200)에 제공된 삭제될 영역을 지정하기 위한 정보는 호스트(1100)의 트림 관리 모듈(1124)에 의하여 플래시 저장 장치(1200)의 관리 단위(예를 들어, 페이지 단위)에 일치할 것이다.Meanwhile, the flash storage device 1200 receives a trim command from the host 1100. The trim command includes information for specifying an area to be erased (for example, information about a sector address requested to be erased). In this case, the information for designating the area to be deleted provided to the flash storage device 1200 may be stored by the trim management module 1124 of the host 1100 in a management unit (eg, page unit) of the flash storage device 1200. Will match.

플래시 저장 장치(1200)는 트림 명령에 응답하여, 플래시 메모리(1210)의 영역 중 삭제 요청된 영역을 무효(invalid)로 마킹(marking)한다. 플래시 저장 장치(1200)는 유휴 시간(idle time)(예를 들어, 호스트로부터 요청이 없을 때 생기는 제어 유닛(1230)의 유휴 시간)에 무효로 마킹된 영역에 대한 소거 동작(erase operation)을 수행한다. 계속해서 도 2를 참조하면, 플래시 저장 장치(1200)는 플래시 메모리(1210), 버퍼 메모리(1220), 그리고 제어 유닛(1230)을 포함한다.In response to the trim command, the flash storage device 1200 marks an area of the flash memory 1210 that is requested to be deleted as invalid. The flash storage device 1200 performs an erase operation on an area marked as invalid at an idle time (for example, an idle time of the control unit 1230 when there is no request from the host). do. 2, the flash storage device 1200 may include a flash memory 1210, a buffer memory 1220, and a control unit 1230.

플래시 메모리(1210)는 제어 유닛(1230)의 제어에 따라, 소거 동작, 읽기 동작 또는 쓰기 동작을 수행한다. 플래시 메모리(1210)는 복수의 메모리 블록으로 구성된다. 각각의 메모리 블록은 복수의 페이지(page)로 구성된다. 도 2에서는 3개의 메모리 블록(1211~1213)이 예시적으로 도시되어 있다. 각각의 메모리 블록은 4개의 페이지를 갖는 것으로 예시적으로 도시되어 있다. The flash memory 1210 performs an erase operation, a read operation, or a write operation under the control of the control unit 1230. The flash memory 1210 is composed of a plurality of memory blocks. Each memory block is composed of a plurality of pages. In FIG. 2, three memory blocks 1211 to 1213 are illustrated. Each memory block is illustratively shown as having four pages.

각 페이지의 크기는 섹터의 크기보다 크다. 예를 들어, 각 페이지는 약 2KB(byte)의 크기를 갖고, 섹터는 512B(byte)의 크기를 갖는다. 플래시 메모리(1210)는 메모리 블록 단위로 소거 동작을 수행하고, 페이지 단위로 쓰기 또는 읽기 동작을 수행한다. The size of each page is larger than the size of a sector. For example, each page has a size of about 2KB (byte) and a sector has a size of 512B (byte). The flash memory 1210 performs an erase operation in units of memory blocks, and performs a write or read operation in units of pages.

한편, 플래시 메모리(1210)의 하나의 메모리 셀에는 한 비트 또는 두 비트 이상의 데이터가 저장될 수 있다. 하나의 메모리 셀에 한 비트 데이터를 저장할 수 있는 메모리 셀은 싱글 레벨 셀(SLC; Single Level Cell) 또는 싱글 비트 셀(single bit cell)이라 부른다. 하나의 메모리 셀에 두 비트 이상의 데이터를 저장할 수 있는 메모리 셀은 멀티 레벨 셀(MLC; Multi Level Cell) 또는 멀티 비트 셀(multi bit cell)이라 부른다.Meanwhile, one bit or two or more bits of data may be stored in one memory cell of the flash memory 1210. A memory cell capable of storing one bit data in one memory cell is called a single level cell (SLC) or a single bit cell. A memory cell capable of storing two or more bits of data in one memory cell is called a multi level cell (MLC) or a multi bit cell.

버퍼 메모리(1220)는 플래시 메모리(1210)로부터 읽은 데이터 또는 호스트(1100)로부터 제공되는 데이터를 임시로 저장할 수 있다. 또한, 버퍼 메모리(1220)는 플래시 변환 계층(Flash Transslation Layer; FTL)과 같은 펌웨어를 구동하는 데 사용될 수 있다. 버퍼 메모리(1220)는 DRAM, SRAM, MRAM, PRAM 등으로 구현될 수 있다. The buffer memory 1220 may temporarily store data read from the flash memory 1210 or data provided from the host 1100. In addition, the buffer memory 1220 may be used to drive firmware, such as a Flash Transslation Layer (FTL). The buffer memory 1220 may be implemented with DRAM, SRAM, MRAM, PRAM, and the like.

제어 유닛(1230)은 중앙처리장치(CPU, 1231), 플래시 변환 계층(FTL, 1232), 플래시 컨트롤러(1233), 그리고 버퍼 컨트롤러(1234)를 포함한다. 중앙처리장치(1231)는 호스트(1100)로부터 입력된 신호를 분석하고 처리한다. 또한, 중앙처리장치(1231)는 플래시 저장 장치(1200)의 전반적인 동작을 제어한다.The control unit 1230 includes a central processing unit (CPU) 1231, a flash translation layer (FTL) 1232, a flash controller 1233, and a buffer controller 1234. The CPU 1231 analyzes and processes a signal input from the host 1100. Also, the CPU 1231 controls the overall operation of the flash storage device 1200.

플래시 변환 계층(1232)은 호스트(1100)로부터 제공된 논리 어드레스(LA; Logical Address)를 플래시 메모리(1210) 상의 물리 어드레스(PA; Physical Address)로 변환한다. 예를 들어, 플래시 변환 계층(1232)은 호스트로부터 전달받은 섹터 어드레스(sector address)를 플래시 메모리(1210) 상의 페이지 어드레스(page address)로 변환한다. The flash translation layer 1232 converts a logical address (LA) provided from the host 1100 into a physical address (PA) on the flash memory 1210. For example, the flash translation layer 1232 converts a sector address received from the host into a page address on the flash memory 1210.

또한, 플래시 변환 계층(1232)은 플래시 메모리(1210)에 저장된 데이터를 예를 들어, 페이지 단위로 관리한다. 플래시 변환 계층(1232)은 호스트(1100)로부터의 트림 명령에 의하여 소정 페이지에 저장된 데이터가 모두 삭제 요청된 경우, 해당 페이지를 무효(invalid)로 마킹(marking)한다. In addition, the flash translation layer 1232 manages data stored in the flash memory 1210 in units of pages, for example. The flash translation layer 1232 marks the page as invalid when all data stored in a predetermined page is requested to be deleted by a trim command from the host 1100.

플래시 컨트롤러(1233)는 플래시 메모리(1210)의 읽기, 쓰기, 소거 동작을 제어한다. 예를 들어, 제어 유닛(1230)의 유휴 시간에, 플래시 컨트롤러(1233)는 무효로 마킹된 페이지에 대한 소거 동작을 수행하도록 플래시 메모리(1210)를 제어한다. 한편, 버퍼 컨트롤러(1234)는 버퍼 메모리(1220)의 읽기, 쓰기 동작을 제어한다.The flash controller 1233 controls read, write and erase operations of the flash memory 1210. For example, at idle time of the control unit 1230, the flash controller 1233 controls the flash memory 1210 to perform an erase operation on an invalidally marked page. The buffer controller 1234 controls read and write operations of the buffer memory 1220.

도 3은 도 2의 파일 시스템(1122)이 파일을 관리하기 위하여 생성하는 디렉토리 엔트리(directory entry) 구조를 예시적으로 보여준다. 도 3을 참조하면, 디렉토리 엔트리 구조는 파일명(file name), 확장자(extension), 속성(attribute), 생성 날짜 및 시간(create data and time), 시작 섹터의 정보(starting secter), 파일 크기 정보(file size)를 포함할 수 있다. 3 exemplarily illustrates a directory entry structure that the file system 1122 of FIG. 2 generates to manage files. Referring to FIG. 3, a directory entry structure includes a file name, an extension, an attribute, a create date and time, a starting secter, and a file size information ( file size).

파일 시스템(1122, 도 2 참조)은 애플리케이션(1121, 도 2 참조)으로부터 특정 파일에 대한 삭제 요청이 있는 경우, 삭제 요청된 파일의 메타 데이터를 변경한다. 예를 들어, 파일 시스템(1122)은 삭제 요청된 파일의 파일명에 십육진수 바이트 코드인 'E5h'를 위치시킨다. 다른 예로, 파일 시스템(1122)은 삭제 요청된 파일의 속성 값을 'OxE5'로 변경한다. 이것은 하나의 특별한 꼬리표로서, '이 파일은 삭제되었습니다'라는 것을 의미한다. 따라서, 이 후에 애플리케이션(1121)이 해당 파일에 접근(access)하는 경우, 파일 시스템(1122)은 해당 파일이 이미 삭제되었다는 정보를 제공한다. 파일 시스템(1122)에 관한 정보는 주기적으로 또는 유휴 시간(idle time)을 이용하여 불휘발성 메모리(예를 들어, 플래시 메모리(1210))에 저장될 수 있다. The file system 1122 (see FIG. 2) changes the metadata of the file requested to be deleted when there is a deletion request for a specific file from the application 1121 (see FIG. 2). For example, the file system 1122 places the hexadecimal byte code 'E5h' in the file name of the file requested to be deleted. As another example, the file system 1122 changes the attribute value of the file requested to be deleted to 'OxE5'. This is one special tag, which means that this file has been deleted. Thus, when application 1121 subsequently accesses the file, file system 1122 provides information that the file has already been deleted. Information about file system 1122 may be stored in nonvolatile memory (eg, flash memory 1210) periodically or using idle time.

한편, 파일 시스템(1122)은 플래시 메모리 시스템(1000, 도 2 참조)의 운영 체제(OS)에 따라 다양하게 선택될 수 있다. 예를 들어, 플래시 메모리 시스템(1000)의 운영 체제가 디스크 운영 체제(disk operating system; DOS) 또는 윈도우즈(windows) 기반의 운영 체제인 경우, FAT(file allocation table) 파일 시스템, VFAT(virtual FAT) 파일 시스템, exFAT(extended FAT) 파일 시스템, NTFS(new technology file system) 등과 같은 파일 시스템이 사용될 수 있다. The file system 1122 may be variously selected according to an operating system (OS) of the flash memory system 1000 (refer to FIG. 2). For example, if the operating system of the flash memory system 1000 is a disk operating system (DOS) or a Windows-based operating system, a file allocation table (FAT) file system, a virtual FAT (VFAT) File systems such as file systems, extended FAT (exFAT) file systems, new technology file systems (NTFS), and the like may be used.

다른 예로, 플래시 메모리 장치(1000)의 운영 체제가 유닛스(UNIX) 기반의 운영 체제인 경우, UNIX 파일 시스템(UFS)이 사용될 수 있다. 플래시 메모리 장치(1000)의 운영 체제가 리눅스(LINUX) 기반의 운영 체제인 경우, LINUX 용 파일 시스템이 사용될 수 있다. 플래시 메모리 장치(1000)의 운영 체제가 모바일 OS(예를 들어, iOS(iPhone, iPad 용 OS) 및 안드로이드 OS)인 경우, 모바일 OS 용 파일 시스템이 사용될 수 있다. As another example, when the operating system of the flash memory device 1000 is a unit-based operating system, a UNIX file system (UFS) may be used. If the operating system of the flash memory device 1000 is a Linux-based operating system, a file system for LINUX may be used. When the operating system of the flash memory device 1000 is a mobile OS (eg, iOS (OS for iPhone, iPad) and Android OS), the file system for the mobile OS may be used.

도 4는 도 2에 도시된 플래시 메모리 시스템(1000)의 소프트웨어 계층 구조를 보여주는 블록도이다. 도 4를 참조하면, 플래시 메모리 시스템(1000)의 소프트웨어 계층 구조는 애플리케이션(1121), 파일 시스템(1122), 트림 관리 모듈(1124), 플래시 변환 계층(1232), 그리고 플래시 메모리(1210)로 구성된다. 호스트(1100, 도 2 참조) 측의 애플리케이션(1121), 파일 시스템(1122), 그리고 트림 관리 모듈(1124)은 상위 레벨(High Level)이라 칭해질 수 있다. 플래시 저장 장치(1200, 도 2 참조) 측의 플래시 변환 계층(1232) 및 플래시 메모리(1210)는 하위 레벨(Low Level)이라고 칭해질 수 있다.4 is a block diagram illustrating a software hierarchy of the flash memory system 1000 illustrated in FIG. 2. Referring to FIG. 4, the software hierarchy of the flash memory system 1000 includes an application 1121, a file system 1122, a trim management module 1124, a flash translation layer 1232, and a flash memory 1210. do. The application 1121, the file system 1122, and the trim management module 1124 on the host 1100 (see FIG. 2) may be referred to as a high level. The flash translation layer 1232 and the flash memory 1210 on the side of the flash storage device 1200 (refer to FIG. 2) may be referred to as a low level.

애플리케이션(1121)은 파일 삭제(file delete) 요청을 파일 시스템(1122)에 전달한다. 파일 삭제 요청에 응답하여, 파일 시스템(1122)은 삭제 요청된 파일의 메타 데이터를 변경한다. 예를 들어, 파일 시스템(1122)은 파일명(file name, 도 3 참조)에 'E5h'를 위치시킨다. 따라서, 이 후에 애플리케이션(1121)이 해당 파일에 접근하는 경우, 파일 시스템(1122)은 해당 파일은 삭제되었다는 정보를 제공할 수 있다. 애플리케이션(1121)의 파일 삭제 요청 및 이에 따른 파일 시스템(1122)의 메타 데이터의 변경은 '상위 레벨(High Level)에서의 삭제 동작'이라고 칭해질 수 있다.Application 1121 communicates a file delete request to file system 1122. In response to the file deletion request, file system 1122 changes the metadata of the file requested to be deleted. For example, file system 1122 places 'E5h' in the file name (see FIG. 3). Thus, if the application 1121 subsequently accesses the file, the file system 1122 may provide information that the file has been deleted. The file deletion request of the application 1121 and thus the metadata of the file system 1122 may be referred to as a 'delete operation at a high level'.

트림 관리 모듈(1124)은 파일 시스템(1122)으로부터 삭제 요청된 파일에 대한 섹터 어드레스(Sector ADDR)를 전달받는다. 트림 관리 모듈(1124)은 전달받은 섹터 어드레스(Sector ADDR) 중 플래시 메모리(1210)의 페이지 단위에 일치하는 섹터 어드레스를 선택한다. 플래시 메모리(1210)의 페이지 단위에 일치된 섹터 어드레스는 정렬된 섹터 어드레스(Aligned Sector ADDR)라 칭해질 수 있다.The trim management module 1124 receives a sector address (Sector ADDR) for the file requested to be deleted from the file system 1122. The trim management module 1124 selects a sector address corresponding to the page unit of the flash memory 1210 among the received sector addresses Sector ADDR. The sector address matched to the page unit of the flash memory 1210 may be referred to as an aligned sector address (Aligned Sector ADDR).

또한, 트림 관리 모듈(1124)은 트림 관리 테이블(TRIM Manage Table)을 이용하여 전달받은 섹터 어드레스 중 플래시 저장 장치(1200, 도 2 참조)의 페이지 단위에 일치하지 않는 섹터 어드레스를 별도로 관리할 수 있다. In addition, the trim management module 1124 may separately manage sector addresses that do not correspond to the page unit of the flash storage device 1200 (refer to FIG. 2) among the sector addresses received using the trim management table. .

한편, 플래시 메모리(1210)에 저장된 데이터를 실질적으로 삭제하기 위하여, 트림 관리 모듈(1124)은 트림 명령(TRIM cmd)을 플래시 변환 계층(1232)에 제공한다. 트림 명령은 삭제 요청된 파일을 지정하기 위한 정렬된 섹터 어드레스(Aligned Sector ADDR)를 포함한다. 플래시 변환 계층(1232)은 정렬된 섹터 어드레스(Aligned Sector ADDR)를 페이지 어드레스(Page ADDR)로 변환하고, 삭제될 플래시 메모리(1210)의 페이지(page)를 무효(invalid)한 것으로 마킹(marking)한다. Meanwhile, in order to substantially delete data stored in the flash memory 1210, the trim management module 1124 provides a trim command TRIM cmd to the flash translation layer 1232. The trim command includes an aligned sector address (Aligned Sector ADDR) for specifying a file requested to be deleted. The flash translation layer 1232 converts the aligned sector address (Aligned Sector ADDR) to a page address (Page ADDR), and marks the page of the flash memory 1210 to be deleted as invalid. do.

플래시 메모리(1210)는 무효한 것으로 마킹된 페이지에 대하여, 예를 들어 유휴 시간에 소거 동작(erase operation)을 수행한다. 예를 들어, 유휴 시간은 호스트(1100, 도 2 참조)로부터 제어 유닛(1230, 도 2 참조)에 아무런 요청이 없는 시간을 의미한다. 잘 알려진 바와 같이, 플래시 메모리(1210)는 블록 단위로 소거 동작을 수행하므로, 플래시 메모리(1210)의 페이지에 대한 소거 동작은 데이터의 복사(copy) 및 병합(merge), 그리고 블록 소거 동작(block erase operation)을 수반할 수 있다. 플래시 변환 계층(1232)의 마킹 동작 및 플래시 메모리(1210)의 소거 동작은 '하위 레벨(Low Level)에서의 삭제 동작'이라고 칭해질 수 있다.The flash memory 1210 performs an erase operation on a page marked as invalid, for example, at idle time. For example, the idle time means a time when there is no request from the host 1100 (see FIG. 2) to the control unit 1230 (see FIG. 2). As is well known, since the flash memory 1210 performs an erase operation on a block basis, an erase operation on a page of the flash memory 1210 may be performed by copying and merging data and block erasing operation. erase operation). The marking operation of the flash translation layer 1232 and the erasing operation of the flash memory 1210 may be referred to as an erase operation at a low level.

도 5는 도 2의 트림 관리 모듈(1124)의 동작을 좀더 자세히 보여주는 블록도이다. 도 5를 참조하면, 트림 관리 모듈(1124)은 섹터 어드레스(Sector ADDR)를 전달받고, 페이지 단위에 일치된 섹터 어드레스(즉, 정렬된 섹터 어드레스(Aligned Sector ADDR))를 출력한다. 섹터 어드레스(Sector ADDR) 및 정렬된 섹터 어드레스(Aligned Sector ADDR)에 관한 정보는 각각 시작 섹터 번호(Start Sector No)와 섹터들의 개수(# of Sectors)를 포함할 수 있다. 5 is a block diagram illustrating the operation of the trim management module 1124 of FIG. 2 in more detail. Referring to FIG. 5, the trim management module 1124 receives a sector address (Sector ADDR) and outputs a sector address (that is, an aligned sector address (Aligned Sector ADDR)) corresponding to a page unit. The information about the sector address (Sector ADDR) and the aligned sector address (Aligned Sector ADDR) may include a start sector number (Start Sector No) and the number of sectors (# of Sectors), respectively.

자세히 설명하면, 트림 관리 모듈(1124)은 그룹 정보(Group information)를 참조하여, 섹터 어드레스(Sector ADDR) 중 페이지 단위에 일치하는 섹터 어드레스(즉, 정렬된 섹터 어드레스(Aligned Sector ADDR)를 선택한다. 여기서, 그룹 정보는 하나의 페이지에 대응하는 섹터들의 어드레스 정보를 의미한다. 트림 관리 모듈(1124)은 예를 들어, 플래시 변환 계층(1232)의 맵핑 테이블(Mapping Table)로부터 그룹 정보를 제공받을 수 있다. 그룹 정보 및 맵핑 테이블은 이하의 도 9에서 좀더 자세히 설명된다. In detail, the trim management module 1124 selects a sector address (i.e., an aligned sector address (Aligned Sector ADDR)) corresponding to the page unit among the sector addresses (Sector ADDR) with reference to the group information. Herein, the group information means address information of sectors corresponding to one page, and the trim management module 1124 may receive group information from, for example, a mapping table of the flash translation layer 1232. The group information and the mapping table are described in more detail in FIG. 9 below.

또한, 트림 관리 모듈(1124)은 전달받은 섹터 어드레스(Sector ADDR) 중 페이지 단위에 일치하지 않는 섹터 어드레스를 별도로 관리할 수 있다. 이를 위하여, 트림 관리 모듈(1124)은 트림 관리 테이블(TRIM Manage Table)을 포함할 것이다. In addition, the trim management module 1124 may separately manage a sector address that does not match a page unit among the received sector addresses (Sector ADDR). For this purpose, the trim management module 1124 may include a trim management table.

한편, 트림 관리 테이블에 관한 정보는 호스트 메모리(1125, 도 2 참조)에 저장될 수 있다. 이 경우, 호스트 메모리(1125)의 영역 중 트림 관리 테이블에 할당된 영역의 크기는 설계자에 의하여 다양하게 설정될 수 있다. 예를 들어, 섹터 어드레스 관리에 따른 프로세싱 유닛(1110, 도 2 참조)의 오버헤드를 작게 하기 위하여, 트림 관리 테이블에 할당된 영역의 크기는 소정 크기로 제한될 수 있다. Meanwhile, information about the trim management table may be stored in the host memory 1125 (see FIG. 2). In this case, the size of the area allocated to the trim management table among the areas of the host memory 1125 may be variously set by the designer. For example, in order to reduce the overhead of the processing unit 1110 according to sector address management (see FIG. 2), the size of the area allocated to the trim management table may be limited to a predetermined size.

트림 관리 테이블에 할당된 영역이 소정 크기로 제한되는 경우, 트림 관리 테이블에서 관리할 섹터 어드레스에 관한 정보의 크기가 호스트 메모리(1125)에 할당된 영역을 초과할 수 있다. 이 경우, 트림 관리 테이블의 섹터 어드레스에 관한 정보는 밀어내기 방식에 의하여 관리될 수 있다. 트림 관리 모듈(1124) 및 트림 관리 모듈(1124)의 동작은 이하의 도 9 내지 도 11에서 좀더 자세히 설명된다.When the area allocated to the trim management table is limited to a predetermined size, the size of information about the sector address to be managed in the trim management table may exceed the area allocated to the host memory 1125. In this case, the information about the sector address of the trim management table can be managed by the pushing method. The operation of the trim management module 1124 and the trim management module 1124 is described in more detail below with reference to FIGS. 9 through 11.

도 6은 도 2의 플래시 변환 계층(1232)의 어드레스 변환 동작을 좀더 자세히 보여주는 블록도이다. 도 6을 참조하면, 플래시 변환 계층(1232)은 논리 어드레스(Logical Address)인 정렬된 섹터 어드레스(Aligned Sector ADDR)를 플래시 메모리(1210) 상의 물리 어드레스(Physical Address)인 페이지 어드레스(Page ADDR)로 변환한다.6 is a block diagram illustrating the address translation operation of the flash translation layer 1232 of FIG. 2 in more detail. Referring to FIG. 6, the flash translation layer 1232 converts an aligned sector address (Aligned Sector ADDR), which is a logical address, into a page address (Page ADDR), which is a physical address on the flash memory 1210. To convert.

플래시 변환 계층(1232)의 어드레스 변환은 맵핑 테이블(Mapping Table)을 통해 수행될 수 있다. 맵핑 방식은 크게 페이지 맵핑 방식과 블록 맵핑 방식이 있다. 페이지 맵핑은 페이지 단위(예를 들면, 2KB)로 어드레스 변환을 수행하며, 블록 맵핑 방식은 블록 단위(예를 들면, 1MB)로 어드레스 변환을 수행한다. 맵핑 테이블을 통한 어드레스 변환은 이하의 도 7에서 좀더 자세히 설명된다.Address translation of the flash translation layer 1232 may be performed through a mapping table. There are two types of mapping methods: page mapping and block mapping. Page mapping performs address translation in units of pages (eg, 2 KB), and block mapping scheme performs address translation in units of blocks (eg, 1 MB). Address translation through the mapping table is described in more detail in FIG. 7 below.

이러한 플래시 변환 계층(1232)의 어드레스 변환은 상위 레벨(High Level)의 애플리케이션(1121)이나 파일 시스템(1122)에서 볼 때, 실제 플래시 메모리(1210)에서 수행되는 읽기 동작, 쓰기 동작, 소거 동작을 하드 디스크 장치의 읽기 동작, 소거 동작처럼 보이게 한다. 즉, 플래시 변환 계층(1232)은 에뮬레이트(emulate) 기능을 수행한다.The address translation of the flash translation layer 1232 is performed by a read operation, a write operation, and an erase operation performed by the actual flash memory 1210 when viewed in a high level application 1121 or a file system 1122. It looks like a hard disk device's read or erase operation. That is, the flash translation layer 1232 performs an emulate function.

도 7은 맵핑 테이블을 통한 어드레스 변환을 예시적으로 보여주는 블록도이다. 간략한 설명을 위하여, 이하에서는 페이지 맵핑 방식을 통한 어드레스 변환이 수행된다고 가정된다. 7 is a block diagram illustrating an example of address translation through a mapping table. For simplicity, hereinafter, it is assumed that address translation through page mapping is performed.

도 7을 참조하면, 맵핑 테이블(Mapping Table)은 논리 어드레스인 섹터 어드레스(Sector ADDR)를 물리 어드레스인 페이지 어드레스(Page ADDR)에 맵핑한다. 설명의 편의상, 하나의 페이지에는 4개의 섹터들이 맵핑된다고 가정된다. 예를 들어, 도 7에 도시된 바와 같이, 제 3 페이지(Page3)에는 제 1 내지 제 4 섹터들(Sector1~Sector4)이 맵핑될 수 있다. Referring to FIG. 7, a mapping table maps a sector address (Sector ADDR), which is a logical address, to a page address (Page ADDR), which is a physical address. For convenience of explanation, it is assumed that four sectors are mapped to one page. For example, as illustrated in FIG. 7, first to fourth sectors Sector1 to Sector4 may be mapped to the third page Page3.

맵핑 테이블은 페이지에 저장된 데이터가 유효한 데이터인지의 여부를 쓰기 상태 정보(WSI; Write State Information)를 통하여 표시한다. 예를 들어, 쓰기 상태 정보(WSI)의 'v' 표시는 페이지에 저장된 데이터가 유효(valid)한 데이터임을 나타낸다.The mapping table indicates whether the data stored in the page is valid data through the write state information (WSI). For example, the 'v' indication of the write status information WSI indicates that the data stored in the page is valid data.

플래시 메모리(1210)의 메모리 블록(1211)의 페이지들(Page0~Page3)은 각각 4개의 서브 페이지들(Sub_Page0~Sub_Page3)들로 구분되는 것으로 가정된다. 각 서브 페이지의 크기는 각 섹터와 동일하며, 각 서브 페이지는 각 섹터에 대응하는 것으로 가정된다. 예를 들어, 도 7에 도시된 바와 같이, 제 3 페이지(Page3)는 4개의 서브 페이지들(Sub_Page0~Sub_Page3)로 구분되며, 제 3 페이지(Page3)의 4개의 서브 페이지들(Sub_Page0~Sub_Page4)은 각각 제 1 내지 제 4 섹터들(Sector1~Sector4)에 대응하는 것으로 가정된다.The pages Page0 to Page3 of the memory block 1211 of the flash memory 1210 are assumed to be divided into four subpages Sub_Page0 to Sub_Page3, respectively. The size of each subpage is equal to each sector, and each subpage is assumed to correspond to each sector. For example, as illustrated in FIG. 7, the third page Page3 is divided into four subpages Sub_Page0 to Sub_Page3, and four subpages Sub_Page0 to Sub_Page4 of the third page Page3. Are assumed to correspond to the first to fourth sectors Sector1 to Sector4, respectively.

한편, 설명의 편의상, 이하의 도 8 내지 도 11에서는 도 7에 도시된 바와 같이, 3개의 파일들(File1~File3)이 유효한 데이터로서 블록(1211)의 제 1 내지 제 3 페이지들(Page1~Page3)에 저장되어 있다고 가정된다. 이 경우, 제 1 파일(File1)은 제 1 내지 제 5 섹터들(Sector1~Sector5)에 대응하고, 제 2 파일(File2)은 제 6 내지 제 8 섹터들(Sector6~Sector8)에 대응하며, 제 3 파일(File3)은 제 9 내지 제 12 섹터들(Sector9~Sector12)에 대응한다고 가정된다. Meanwhile, for convenience of description, in FIGS. 8 to 11, three files File1 to File3 are valid data, and the first to third pages Page1 to 3 of the block 1211 are valid data. It is assumed to be stored in In this case, the first file File1 corresponds to the first to fifth sectors Sector1 to Sector5, and the second file File2 corresponds to the sixth to eighth sectors Sector6 to Sector8. It is assumed that the third file File3 corresponds to the ninth to twelfth sectors Sector9 to Sector12.

도 8은 도 2의 트림 관리 모듈(1124)이 없는 경우에, 트림 명령을 처리하는 플래시 메모리 시스템(1000)의 일 실시 예를 보여주는 도면이다. 즉, 도 8에서는 페이지 단위에 일치하지 않는 섹터 어드레스가 플래시 저장 장치(1200)에 제공되는 경우가 예시적으로 도시되어 있다. 간략한 설명을 위하여, 제 1 파일(File1)의 섹터 어드레스에 관한 정보를 포함하는 트림 명령(TRIM cmd)이 제공된다고 가정된다. FIG. 8 is a diagram illustrating an embodiment of a flash memory system 1000 that processes a trim command when the trim management module 1124 of FIG. 2 does not exist. That is, FIG. 8 illustrates an example in which a sector address that does not correspond to a page unit is provided to the flash storage device 1200. For the sake of brevity, it is assumed that a trim command TRIM cmd is provided that includes information about the sector address of the first file File1.

도 8을 참조하면, 호스트(1100)로부터 트림 명령(TRIM cmd)이 제공된다. 트림 명령(TRIM cmd)은 플래시 메모리(1210)에서 삭제될 영역을 지정하기 위한 섹터 어드레스를 포함한다. 도 8에 도시된 바와 같이, 섹터 어드레스에 관한 정보는 시작 섹터 번호(Start Sector No)와 섹터들의 개수(# of Sectors)로 제공될 수 있다. 예를 들어, 제 1 파일(File1)은 제 1 내지 제 5 섹터(Sector1~Sector5)에 대응하므로, 시작 섹터 번호는 '1'이며, 섹터들의 개수는 '5'일 수 있다.Referring to FIG. 8, a trim command TRIM cmd is provided from the host 1100. The trim command TRIM cmd includes a sector address for designating an area to be erased in the flash memory 1210. As shown in FIG. 8, information about a sector address may be provided as a start sector number (Start Sector No) and the number of sectors (# of Sectors). For example, since the first file File1 corresponds to the first to fifth sectors Sector1 to Sector5, the starting sector number may be '1' and the number of sectors may be '5'.

호스트(1100)로부터 트림 명령(TRIM cmd)이 제공되면, 플래시 변환 계층(1232, 도 2 참조)은 맵핑 테이블(Mapping Table)의 쓰기 상태 정보(WSI)를 갱신한다. 즉, 전달받은 섹터 어드레스에 대응하는 페이지의 쓰기 상태 정보(WSI)가 무효(invalid)한 것으로 마킹(marking)된다. 예시적으로, 도 8에 도시된 쓰기 상태 정보(WSI)의 'x' 표시는 해당 페이지에 저장된 데이터가 무효한 데이터임을 의미한다. When the trim command TRIM cmd is provided from the host 1100, the flash translation layer 1232 (see FIG. 2) updates the write state information WSI of the mapping table. That is, the write status information WSI of the page corresponding to the received sector address is marked as invalid. For example, the 'x' indication of the write state information WSI illustrated in FIG. 8 means that the data stored in the corresponding page is invalid data.

자세히 설명하면, 제 1 파일(File1)은 제 1 내지 제 5 섹터들(Sector1~Sector5)에 대응한다. 이 경우, 제 1 파일(File1)의 제 1 내지 제 4 섹터들(Sector1~Sector4)은 제 3 페이지(Page3)에 대응한다. 따라서, 맵핑 테이블의 제 3 페이지(Page3)에 대한 쓰기 상태 정보(WSI)는 무효한 것으로 마킹된다. 제 1 파일(File1)의 제 5 섹터(Sector5)는 제 2 페이지(Page2)에 대응한다. 따라서, 제 3 페이지(Page3)의 쓰기 상태 정보(WSI)는 무효한 것으로 마킹된다. 무효로 마킹된 제 2 및 제 3 페이지들(Page2, Page3)에 대한 소거 동작(erase opeation)은, 예를 들어 컨트롤 유닛(1230, 도 2 참조)의 유휴 시간에 수행된다. In detail, the first file File1 corresponds to the first to fifth sectors Sector1 to Sector5. In this case, the first to fourth sectors Sector1 to Sector4 of the first file File1 correspond to the third page Page3. Therefore, the write status information WSI for the third page Page3 of the mapping table is marked as invalid. The fifth sector Sector5 of the first file File1 corresponds to the second page Page2. Therefore, the write status information WSI of the third page Page3 is marked as invalid. Erase opeation for the invalidally marked second and third pages Page2, Page3 is performed, for example, at an idle time of the control unit 1230 (see FIG. 2).

한편, 제 2 페이지(Page2)의 서브 페이지(0)에는 제 1 파일(File1)의 제 5 섹터(Sector5)에 대응하는 데이터가 저장되어 있고, 제 2 페이지(Page)의 서브 페이지들(1~3)에는 제 2 파일(File2)의 제 6 내지 제 8 섹터들(Sector6~Sector8)에 대응하는 데이터가 저장되어 있다.Meanwhile, data corresponding to the fifth sector Sector5 of the first file File1 is stored in the subpage 0 of the second page Page2, and the subpages 1 to 2 of the second page Page2 are stored. 3) data corresponding to sixth to eighth sectors Sector6 to Sector8 of the second file File2 is stored.

따라서, 제 1 파일(File1)에 대한 트림 명령(TRIM cmd)에 의하여 제 2 페이지(Page2)가 무효(invalid)로 마킹되면, 제 2 파일(File2)의 유효한 데이터가 함께 삭제될 수 있다. 따라서 제 2 파일(File2)의 유효한 데이터가 삭제되는 것을 방지하기 위하여, 플래시 메모리(1210)는 제 2 페이지(Page2)의 서브 페이지들(1~3)에 저장된 데이터를 다른 페이지(예를 들어, 다른 블록(1212, 도 2 참조)의 페이지)에 복사(copy)해야 한다.Therefore, when the second page Page2 is marked as invalid by the trim command TRIM cmd for the first file File1, valid data of the second file File2 may be deleted together. Therefore, in order to prevent the valid data of the second file File2 from being deleted, the flash memory 1210 stores data stored in the subpages 1 to 3 of the second page Page2 in another page (eg, Copy to another block 1212 (see FIG. 2).

이러한 복사 동작은 쓰기 횟수의 증가로 인하여 플래시 메모리(1210)의 수명을 단축시킬 수 있다. 또한, 복사 동작을 통하여 생성된 유효한 데이터를 저장하는 새로운 페이지는 자유 블록을 생성하기 위한 병합 동작의 증가를 야기할 수 있다. Such a copy operation may shorten the life of the flash memory 1210 due to an increase in the number of writes. In addition, a new page for storing valid data generated through the copy operation may cause an increase in the merging operation for generating a free block.

이러한 문제를 해결하기 위하여, 본 발명의 실시 예에 따른 호스트(1100)는 트림 관리 모듈(1124, 도 2 참조)을 포함한다. 트림 관리 모듈(1124)은 플래시 저장 장치(1200)의 관리 단위에 일치하는 섹터 어드레스를 플래시 저장 장치(1200)에 제공하기 때문에, 상기의 복사 동작이 발생하지 않는다. 이는 이하의 도 9 내지 도 11에서 좀더 자세히 설명된다.In order to solve this problem, the host 1100 according to an embodiment of the present invention includes a trim management module 1124 (see FIG. 2). Since the trim management module 1124 provides the flash storage device 1200 with a sector address corresponding to the management unit of the flash storage device 1200, the copy operation does not occur. This is described in more detail with reference to FIGS. 9 to 11 below.

도 9 내지 도 11은 도 2의 트림 관리 모듈(1124)을 이용하여 정렬된 섹터 어드레스(Aligned Sector ADDR)를 발생하고, 정렬된 섹터 어드레스가 포함된 트림 명령을 처리하는 본 발명의 일 실시 예에 따른 플래시 메모리 시스템(1000)을 설명하기 위한 도면이다. 9 through 11 illustrate an embodiment of generating an aligned sector address (Aligned Sector ADDR) using the trim management module 1124 of FIG. 2 and processing a trim command including the aligned sector address. A diagram for describing the flash memory system 1000 is described.

본 발명의 실시 예에 있어서, 호스트(1100)는 플래시 저장 장치(1200)에 정렬된 섹터 어드레스(Aligned Sector ADDR)를 제공한다. 이를 위하여, 호스트(1100)는 그룹 정보(Group information)를 플래시 저장 장치(1200)에 요청한다. 플래시 저장 장치(1200)는 맵핑 테이블로부터 그룹 정보를 획득하고, 이를 호스트(1100)에 제공한다. 이 후, 소정 파일에 대한 삭제 요청이 있는 경우, 호스트(1100)의 트림 관리 모듈(1124)은 그룹 정보를 참조하여, 전달받은 섹터 어드레스가 페이지 단위에 일치하는지 판단한다. 트림 관리 모듈(1124)은 페이지 단위에 일치하는 섹터 어드레스를 트림 명령과 함께 플래시 저장 장치(1200)에 제공한다. In an embodiment of the present disclosure, the host 1100 provides an aligned sector ADDR to the flash storage device 1200. To this end, the host 1100 requests group information from the flash storage device 1200. The flash storage device 1200 obtains group information from the mapping table and provides it to the host 1100. Subsequently, when there is a deletion request for a predetermined file, the trim management module 1124 of the host 1100 determines whether the received sector address corresponds to a page unit by referring to the group information. The trim management module 1124 provides a sector address corresponding to a page unit to the flash storage device 1200 with a trim command.

자세히 설명하면, 도 9에서는 플래시 저장 장치(1200)의 맵핑 테이블로부터 호스트(1100)에 그룹 정보가 전송되는 과정이 도시되어 있다. 도 9를 참조하면, 먼저 호스트(1100)는 플래시 저장 장치(1200)에 그룹 정보(Group information)를 요청한다. 예를 들어, 호스트(1100)의 트림 관리 모듈(1124) 또는 프로세싱 유닛(1110, 도 2 참조)은 파워 업(power up) 시에 플래시 저장 장치(1200)에 그룹 정보를 요청할 수 있다. In detail, FIG. 9 illustrates a process in which group information is transmitted from the mapping table of the flash storage device 1200 to the host 1100. Referring to FIG. 9, first, the host 1100 requests group information from the flash storage device 1200. For example, the trim management module 1124 or the processing unit 1110 (see FIG. 2) of the host 1100 may request group information from the flash storage device 1200 at power up.

플래시 저장 장치(1200)는 호스트(1100)의 그룹 정보 요청에 응답하여, 호스트(1100)에 그룹 정보를 제공한다. 여기서, 그룹 정보는 하나의 페이지에 대응하는 섹터들의 어드레스 정보를 의미한다. 플래시 저장 장치(1200)는 예를 들어, 맵핑 테이블로부터 그룹 정보를 획득할 수 있다. The flash storage device 1200 provides group information to the host 1100 in response to the group information request from the host 1100. Here, the group information means address information of sectors corresponding to one page. The flash storage device 1200 may obtain group information from, for example, a mapping table.

예를 들어, 맵핑 테이블을 참조하면, 4 개의 섹터들이 하나의 페이지에 대응된다. 즉, 제 1 내지 제 4 섹터들(Sector1~Sector4)은 제 3 페이지(Page3)에 대응하고, 제 5 내지 제 8 섹터들(Sector5~Sector8)은 제 2 페이지(Page2)에 대응하며, 제 9 내지 제 12 섹터들(Sector9~Sector12)은 제 1 페이지(Page1)에 대응한다. For example, referring to the mapping table, four sectors correspond to one page. That is, the first to fourth sectors Sector1 to Sector4 correspond to the third page Page3, and the fifth to eighth sectors Sector5 to Sector8 correspond to the second page Page2, and the ninth The twelfth sectors Sector9 to Sector12 correspond to the first page Page1.

따라서, 플래시 저장 장치(1200)는 제 1 내지 제 4 섹터들, 제 5 내지 제 8 섹터들, 그리고 제 9 내지 제 12 섹터들이 각각 하나의 그룹으로 구성되며, 각 그룹의 섹터들은 하나의 페이지에 대응한다는 정보(즉, 그룹 정보)를 호스트(1100)에 제공한다. 호스트(1100)에 전달된 그룹 정보는 예를 들어, 호스트 메모리(1125, 도 2 참조)에 저장될 수 있다.Accordingly, the flash storage device 1200 may include first to fourth sectors, fifth to eighth sectors, and ninth to twelfth sectors in one group, and each group of sectors may be divided into one page. Information corresponding (ie, group information) is provided to the host 1100. The group information transferred to the host 1100 may be stored in, for example, the host memory 1125 (see FIG. 2).

도 10 및 도 11에서는 소정 파일에 대한 삭제 요청이 있는 경우에 트림 관리 모듈(1124) 및 플래시 변환 계층(1232)의 동작이 설명된다. 도 10을 참조하면, 트림 관리 모듈(1124)은 제 1 파일에 대한 섹터 어드레스(Sector ADDR)를 전달받는다고 가정된다. 즉, 제 1 파일(File1)에 대한 상위 레벨에서의 삭제 동작이 수행된 후에, 파일 시스템(1122, 도 2 참조)으로부터 제 1 파일(File1)의 섹터 어드레스(Sector ADDR) 제공된다고 가정된다. 10 and 11 illustrate operations of the trim management module 1124 and the flash translation layer 1232 in the case where there is a deletion request for a predetermined file. Referring to FIG. 10, it is assumed that the trim management module 1124 receives a sector address (Sector ADDR) for the first file. That is, it is assumed that the sector address (Sector ADDR) of the first file File1 is provided from the file system 1122 (see FIG. 2) after the deletion operation at the upper level with respect to the first file File1 is performed.

트림 관리 모듈(1124)은 파일 시스템(1122)으로부터 제 1 파일(File1)에 대한 섹터 어드레스(Sector ADDR)를 전달받는다. 제 1 파일(File1)이 제 1 내지 제 5 섹터들(Sector1~Sector5)에 대응하므로, 시작 섹터 번호(Start Sector No)는 '1'이며 섹터들의 개수(# of Sectors)는 '5'일 수 있다. 트림 관리 모듈(1124)은 호스트 메모리(1125)에 저장된 그룹 정보(Group information)를 참조하여, 전달받은 섹터 어드레스가 페이지 단위에 일치하는지 판단한다.The trim management module 1124 receives a sector address (Sector ADDR) for the first file File1 from the file system 1122. Since the first file File1 corresponds to the first to fifth sectors Sector1 to Sector5, the start sector number (Start Sector No) is '1' and the number of sectors (# of Sectors) may be '5'. have. The trim management module 1124 refers to the group information stored in the host memory 1125 and determines whether the received sector address corresponds to a page unit.

구체적으로, 도 9의 그룹 정보를 참조하면, 제 1 내지 제 4 섹터들(Sector1~Sector4)은 하나의 그룹을 구성한다. 즉, 제 1 내지 제 4 섹터들(Sector1~Sector4)은 플래시 저장 장치(1200)의 관리 단위인 페이지 단위에 일치한다. 반면, 제 5 섹터(Sector5)는 페이지 단위에 일치하지 않는다.Specifically, referring to the group information of FIG. 9, the first to fourth sectors Sector1 to Sector4 constitute one group. That is, the first to fourth sectors Sector1 to Sector4 correspond to a page unit that is a management unit of the flash storage device 1200. On the other hand, the fifth sector Sector5 does not correspond to the page unit.

이 경우, 트림 관리 모듈(1124)은 페이지 단위에 일치하지 않는 제 5 섹터(Sector5)를 관리하기 위한 트림 관리 테이블(TRIM Manage Table)을 생성한다. 트림 관리 테이블은 예를 들어 도 10에 도시된 바와 같이, 제 5 섹터(Sector5)에 대한 그룹 정보 및 쓰기 상태 정보(WSI)를 포함한다. 제 5 섹터(Sector5)에 대응하는 데이터는 상위 레벨에서 삭제된 데이터이므로, 트림 관리 모듈(1124)은 트림 관리 테이블의 제 5 섹터(Sector5)에 대한 쓰기 상태 정보(WSI)를 무효한 것으로 마킹한다.In this case, the trim management module 1124 generates a trim management table for managing the fifth sector Sector5 that does not correspond to the page unit. The trim management table includes group information and write status information WSI for the fifth sector Sector5, for example, as shown in FIG. Since the data corresponding to the fifth sector Sector5 is deleted at a higher level, the trim management module 1124 marks the write status information WSI for the fifth sector Sector5 of the trim management table as invalid. .

한편, 제 1 내지 제 4 섹터들(Sector1~Sector4)은 페이지 단위에 일치한다. 따라서, 트림 관리 모듈(1124)은 제 1 내지 제 4 섹터들(Sector1~Sector4)에 대한 섹터 어드레스(즉, 시작 섹터 번호 '1', 섹터들의 개수 '4')를 트림 명령(TRIM cmd)과 함께 플래시 저장 장치(1200)에 제공한다. Meanwhile, the first to fourth sectors Sector1 to Sector4 correspond to page units. Accordingly, the trim management module 1124 may generate a sector address (ie, start sector number '1', number of sectors '4') for the first to fourth sectors Sector1 to Sector4 and the trim command TRIM cmd. Together with the flash storage device 1200.

제 1 내지 제 4 섹터들(Sector1~Sector4)이 제 3 페이지(Page3)에 맵핑되므로, 플래시 변환 계층(1232)은 맵핑 테이블의 제 3 페이지(Page3)에 대한 쓰기 상태 정보(WSI)를 무효한 것으로 마킹한다. 무효로 마킹된 제 3 페이지(Page3)에 대한 소거 동작(erase operation)은 예를 들어, 제어 유닛(1230, 도 2 참조)의 유휴 시간에 수행된다. 이 경우, 소거 동작이 수행될 제 3 페이지(Page3)에 저장된 데이터는 모두 무효한 데이터이므로, 도 8에서와 같은 복사 동작이 수행되지 않는다. Since the first to fourth sectors Sector1 to Sector4 are mapped to the third page Page3, the flash translation layer 1232 invalidates the write state information WSI for the third page Page3 of the mapping table. Mark it as An erase operation on the invalidally marked third page Page3 is performed at an idle time of the control unit 1230 (see FIG. 2), for example. In this case, since all data stored in the third page Page3 to be erased are invalid data, the copy operation as shown in FIG. 8 is not performed.

한편, 이 후에 발생한 다른 파일에 대한 삭제 요청에 의하여, 트림 관리 테이블에서 관리되는 그룹의 쓰기 상태 정보(WSI)가 모두 무효한 것으로 갱신될 수 있다. 이 경우, 해당 그룹의 섹터들은 페이지 단위에 일치하므로, 트림 관리 모듈(1124)은 해당 섹터들에 대한 섹터 어드레스를 플래시 저장 장치에 제공할 수 있다. 이는 이하의 도 11에서 좀더 자세히 설명된다.On the other hand, according to the deletion request for another file generated later, all of the write status information (WSI) of the group managed in the trim management table can be updated to invalid. In this case, since the sectors of the group correspond to the page unit, the trim management module 1124 may provide sector addresses for the sectors to the flash storage device. This is described in more detail in FIG. 11 below.

도 11을 참조하면, 트림 관리 모듈(1124)은 제 2 파일(File2)에 대한 섹터 어드레스(Sector ADDR)를 제공받는다고 가정된다. 즉, 제 2 파일(File2)에 대한 상위 레벨에서의 삭제 동작이 수행된 후에, 파일 시스템(1122)으로부터 제 2 파일(File2)의 섹터 어드레스가 제공된다고 가정된다. Referring to FIG. 11, it is assumed that the trim management module 1124 is provided with a sector address (Sector ADDR) for the second file File2. That is, it is assumed that the sector address of the second file File2 is provided from the file system 1122 after the deletion operation at the upper level with respect to the second file File2 is performed.

트림 관리 모듈(1124)은 파일 시스템(1122)으로부터 제 2 파일(File2)에 대한 섹터 어드레스(Sector ADDR)를 전달받는다. 제 2 파일(File2)은 제 6 내지 제 8 섹터들(Sector6~Sector8)에 대응하므로, 시작 섹터 번호는 '6'이며, 색터들의 개수는 '3'일 수 있다. 트림 관리 모듈(1124)은 호스트 메모리(1125)에 저장된 그룹 정보(Group information)를 참조하여, 전달받은 섹터 어드레스가 페이지 단위에 일치하는지 판단한다.The trim management module 1124 receives a sector address (Sector ADDR) for the second file File2 from the file system 1122. Since the second file File2 corresponds to the sixth to eighth sectors Sector6 to Sector8, the starting sector number may be '6' and the number of the colorants may be '3'. The trim management module 1124 refers to the group information stored in the host memory 1125 and determines whether the received sector address corresponds to a page unit.

구체적으로, 도 9의 그룹 정보를 참조하면, 제 6 내지 제 8 섹터들(Sector6~Sector8)은 페이지 단위에 일치하지 않는다. 따라서, 트림 관리 모듈(1124)은 트림 관리 테이블을 이용하여, 제 6 내지 제 8 섹터들(Sector6~Sector8)을 별도로 관리한다. 이 경우, 제 1 파일(File1)에 대한 삭제 요청에 의하여 제 5 내지 제 8 섹터들(Sector5~Sector8)에 대한 트림 관리 테이블이 이미 생성되어 있다. 따라서, 트림 관리 모듈(1124)은 도 11에 도시된 바와 같이, 제 6 내지 제 8 섹터들(Sector6~Sector8)에 대한 쓰기 상태 정보(WSI)를 무효한 것으로 갱신한다. Specifically, referring to the group information of FIG. 9, the sixth to eighth sectors Sector6 to Sector8 do not correspond to a page unit. Accordingly, the trim management module 1124 separately manages the sixth to eighth sectors Sector6 to Sector8 using the trim management table. In this case, the trim management table for the fifth to eighth sectors Sector5 to Sector8 is already generated by the deletion request for the first file File1. Accordingly, the trim management module 1124 updates the write state information WSI for the sixth to eighth sectors Sector6 to Sector8 as invalid as shown in FIG. 11.

이 경우, 동일 그룹에 속하는 제 5 내지 제 8 섹터들(Sector5~Sector8)에 대한 쓰기 상태 정보(WSI)가 모두 무효한 상태이다. 즉, 제 5 내지 제 8 섹터들(Sector5~Sector8)은 페이지 단위에 일치하며, 상위 레벨에서 삭제된 파일들에 대응한다. 따라서, 트림 관리 모듈(1124)은 제 5 내지 제 8 섹터들(Sector5~Sector8)에 대한 섹터 어드레스(즉, 시작 섹터 번호 '5', 섹터들의 개수 '4')를 트림 명령(TRIM cmd)과 함께 플래시 저장 장치(1200)에 제공한다. 이 경우, 제 5 내지 제 8 섹터들(Sector5~Sector8)에 관한 정보는 트림 관리 테이블에서 삭제될 것이다.In this case, all of the write state information WSI for the fifth to eighth sectors Sector5 to Sector8 belonging to the same group are invalid. That is, the fifth to eighth sectors Sector5 to Sector8 correspond to page units and correspond to files deleted at a higher level. Accordingly, the trim management module 1124 may generate a sector address (ie, start sector number '5', number of sectors '4') for the fifth to eighth sectors Sector5 to Sector8 and the trim command TRIM cmd. Together with the flash storage device 1200. In this case, the information about the fifth to eighth sectors Sector5 to Sector8 will be deleted from the trim management table.

한편, 제 5 내지 제 8 섹터들(Sector5~Sector8)이 제 2 페이지(Page2)에 맵핑되므로, 플래시 변환 계층(1232)은 맵핑 테이블의 제 2 페이지(Page2)에 대한 쓰기 상태 정보(WSI)를 무효한 것으로 마킹한다. 무효로 마킹된 제 2 페이지(Page2)에 대한 소거 동작(erase operation)은 예를 들어, 제어 유닛(1230, 도 2 참조)의 유휴 시간에 수행된다. 따라서, 이 후의 유휴 시간(예를 들어, 제어 유닛(1230, 도 2 참조)의 유휴 시간)에 제 2 페이지(Page2)에 대한 소거 동작이 수행될 것이다.Meanwhile, since the fifth to eighth sectors Sector5 to Sector8 are mapped to the second page Page2, the flash translation layer 1232 may write write state information WSI for the second page Page2 of the mapping table. Mark as invalid. An erase operation for the invalidally marked second page Page2 is performed, for example, at an idle time of the control unit 1230 (see FIG. 2). Therefore, the erase operation for the second page Page2 will be performed at a later idle time (eg, the idle time of the control unit 1230 (see FIG. 2)).

상술한 바와 같이, 호스트(1100)의 트림 관리 모듈(1124)은 파일 시스템(1122)으로부터 전달받은 섹터 어드레스 중 페이지 단위에 일치하는 섹터 어드레스만을 플래시 저장 장치(1200)에 제공한다. 따라서, 플래시 저장 장치(1200)는 도 8과 같은 불필요한 복사 동작을 수행하지 않는다. 이는 불필요한 복사 동작으로 인하여 야기되는 병합 동작이 방지될 수 있음을 의미한다. 즉 호스트(1100)의 트림 관리 모듈(1124)을 이용하여 호스트(1110)와 플래시 저장 장치(1120) 사이의 관리 단위의 불일치를 해소함으로써, 플래시 저장 장치(120)의 수명 단축 및 성능 저하가 방지될 수 있다.As described above, the trim management module 1124 of the host 1100 provides only the sector address corresponding to the page unit among the sector addresses received from the file system 1122 to the flash storage device 1200. Therefore, the flash storage device 1200 does not perform an unnecessary copy operation as shown in FIG. 8. This means that the merging operation caused by the unnecessary copying operation can be prevented. That is, by eliminating the mismatch between management units between the host 1110 and the flash storage device 1120 using the trim management module 1124 of the host 1100, the lifespan and performance degradation of the flash storage device 120 are prevented. Can be.

한편, 트림 관리 테이블에 할당된 메모리(예를 들어, 호스트 메모리(1125, 도 2 참조)의 크기는 소정 크기로 제한될 수 있다. 이 경우, 트림 관리 테이블에서 관리할 섹터 어드레스에 관한 정보의 크기가 호스트 메모리(1125)에 할당된 크기를 초과할 수 있다.On the other hand, the size of the memory allocated to the trim management table (for example, the host memory 1125 (see Fig. 2)) may be limited to a predetermined size, in this case, the size of information on the sector address to be managed in the trim management table May exceed the size allocated to host memory 1125.

트림 관리 테이블에서 관리할 섹터 어드레스에 관한 정보의 크기가 호스트 메모리(1125)에 할당된 크기를 초과하는 경우, 트림 관리 테이블에서 관리되는 섹터에 관한 정보는 밀어내기 방식에 의하여 삭제될 수 있다. 즉, 트림 관리 테이블에서 관리하는 섹터에 관한 정보 중 가장 오래된 섹터에 대한 정보는 삭제되고, 새로 요청된 섹터에 대한 정보가 관리될 수 있다.When the size of the information about the sector address to be managed in the trim management table exceeds the size allocated to the host memory 1125, the information about the sector managed in the trim management table may be deleted by an extrusion method. That is, the information about the oldest sector among the information about the sector managed by the trim management table may be deleted, and the information about the newly requested sector may be managed.

예를 들어, 서로 다른 그룹에 속하는 제 1 섹터, 제 5 섹터, 그리고 제 9 섹터(Sector 1, Sector5, Sector 9)에 관한 정보가 트림 관리 테이블에서 관리된다고 가정된다. 또한, 다른 그룹에 속하는 제 13 섹터(Sector 13)에 관한 정보가 트림 관리 테이블에서 관리되어야 하며, 제 13 섹터(Sector 13)에 관한 정보가 관리되는 경우, 트림 관리 테이블에서 관리할 섹터 어드레스에 관한 정보의 크기가 트림 관리 테이블에 할당된 영역의 크기를 초과한다고 가정된다. 이 경우, 트림 관리 모듈(1124)은 가장 오래된 제 1 섹터(Sector1)에 대한 정보를 트림 관리 테이블에서 삭제하고, 제 13 섹터(Sector13)에 대한 정보를 트림 관리 테이블에서 관리할 수 있다. For example, it is assumed that information about a first sector, a fifth sector, and a ninth sector belonging to different groups is managed in the trim management table. In addition, when information about the thirteenth sector Sector 13 belonging to another group must be managed in the trim management table, and when information about the thirteenth sector is managed, the sector address to be managed in the trim management table is managed. It is assumed that the size of the information exceeds the size of the area allocated to the trim management table. In this case, the trim management module 1124 may delete information on the oldest first sector Sector1 from the trim management table and manage information on the thirteenth sector Sector13 in the trim management table.

도 12는 플래시 저장 장치(1200)의 맵핑 테이블로부터 호스트(1100)에 그룹 정보가 전달되는 것을 보여주는 순서도이다. FIG. 12 is a flowchart illustrating that group information is transferred from the mapping table of the flash storage device 1200 to the host 1100.

S110 단계에서, 호스트(1100)가 플래시 저장 장치(1200)에 그룹 정보(Group information)를 요청한다. 예를 들어, 호스트(1100)는 파워 업(power up) 시에, 그룹 정보를 플래시 저장 장치(1200)에 요청할 것이다. 플래시 저장 장치(1200)는 호스트(1100)의 요청에 응답하여, 맵핑 테이블로부터 각 섹터들에 대한 그룹 정보를 획득할 것이다.In operation S110, the host 1100 requests group information from the flash storage device 1200. For example, the host 1100 may request the group storage information from the flash storage device 1200 upon power up. The flash storage device 1200 may obtain group information for each sector from the mapping table in response to the request of the host 1100.

S120 단계에서, 그룹 정보가 호스트(1100)의 호스트 메모리(1125)에 저장된다. 즉, 플래시 저장 장치(1200)는 맵핑 테이블로부터 획득된 그룹 정보를 호스트(1100)에 제공하고, 호스트(1100)는 전달된 그룹 정보를 호스트 메모리(1125)에 저장한다. In step S120, the group information is stored in the host memory 1125 of the host 1100. That is, the flash storage device 1200 provides the group information obtained from the mapping table to the host 1100, and the host 1100 stores the transferred group information in the host memory 1125.

도 13은 도 2의 트림 관리 모듈(1124)의 동작을 보여주는 순서도이다. FIG. 13 is a flowchart illustrating an operation of the trim management module 1124 of FIG. 2.

S210 단계에서, 트림 관리 모듈(1124)은 파일 시스템(1122, 도 2 참조)으로부터 섹터 어드레스(Sector ADDR)를 전달받는다. 즉, 소정 파일에 대한 상위 레벨에서의 삭제 동작이 수행된 이 후, 파일 시스템(1122)은 해당 파일에 대한 섹터 어드레스(Sector ADDR)를 트림 관리 모듈(1124)에 제공한다. In operation S210, the trim management module 1124 receives the sector address Sector ADDR from the file system 1122 (see FIG. 2). That is, after the delete operation at the upper level with respect to a predetermined file is performed, the file system 1122 provides a sector address (Sector ADDR) for the file to the trim management module 1124.

S220 단계에서, 트림 관리 모듈(1124)은 그룹 정보를 참조하여, 전달받은 섹터 어드레스가 부분 섹터 어드레스(Partial Sector ADDR)인지의 여부를 판단한다. 여기서, 부분 섹터 어드레스(Partial Sector ADDR)는 플래시 메모리(1210, 도 2 참조)의 페이지 단위에 일치하지 않는 섹터 어드레스를 의미한다. In operation S220, the trim management module 1124 refers to the group information to determine whether the received sector address is a partial sector address (Partial Sector ADDR). Here, the partial sector address (Partial Sector ADDR) means a sector address that does not coincide with the page unit of the flash memory 1210 (see FIG. 2).

전달받은 섹터 어드레스가 부분 섹터 어드레스가 아닌 경우(즉, 전달받은 섹터 어드레스가 페이지 단위에 일치하는 경우), 트림 관리 모듈(1124)은 페이지 단위에 일치하는 섹터 어드레스 정보(즉, 정렬된 섹터 어드레스(Aligned Sector ADDR)를 플래시 저장 장치(1200)에 제공한다. 전달받은 섹터 어드레스가 부분 섹터 어드레스인 경우(즉, 전달받은 섹터 어드레스가 페이지 단위에 일치하지 않는 경우), S240 단계가 수행된다. If the received sector address is not a partial sector address (i.e., the received sector address matches a page unit), the trim management module 1124 may apply sector address information (i.e., aligned sector address (i.e. Aligned Sector ADDR) is provided to the flash storage device 1200. If the transferred sector address is a partial sector address (that is, the transferred sector address does not coincide with a page unit), step S240 is performed.

S240 단계에서, 부분 섹터 어드레스(Partial Sector ADDR)에 대응하는 트림 관리 테이블(TRIM Manage Table)이 존재하는지 판단된다. 트림 관리 테이블이 존재하지 않는 경우, 트림 관리 모듈(1124)은 부분 섹터 어드레스를 관리하는 트림 관리 테이블을 생성한다(S250 단계). 트림 관리 테이블이 존재하는 경우, 트림 관리 모듈(1124)은 트림 관리 테이블의 쓰기 상태 정보(WSI)를 갱신한다(S260 단계).In step S240, it is determined whether a trim management table corresponding to a partial sector address (Partial Sector ADDR) exists. If the trim management table does not exist, the trim management module 1124 generates a trim management table managing the partial sector address (step S250). If the trim management table exists, the trim management module 1124 updates the write state information (WSI) of the trim management table (step S260).

S270 단계에서, 트림 관리 테이블의 모든 쓰기 상태 정보들이 갱신되었는지가 판단된다. 즉, 트림 관리 모듈(1124)은 동일 그룹에 속하는 섹터들에 대한 쓰기 상태 정보들이 모두 무효한 것으로 갱신되었는지를 판단한다. 쓰기 상태 정보들이 모두 무효한 것으로 갱신되었다면, 트림 관리 모듈(1124)은 해당 그룹의 섹터 어드레스(즉, 정렬된 섹터 어드레스(Aligned Sector ADDR)를 트림 명령(TRIM cmd)과 함께 플래시 저장 장치(1200)에 제공한다(S280 단계).In step S270, it is determined whether all write state information of the trim management table is updated. That is, the trim management module 1124 determines whether all write state information of sectors belonging to the same group are updated as invalid. If all of the write status information is updated to be invalid, the trim management module 1124 may apply the sector address of the corresponding group (ie, the aligned sector address DR) to the flash storage device 1200 along with the trim command TRIM cmd. Provided in step (S280).

이상에서 설명한 바와 같이, 본 발명의 실시 예에 따른 플래시 메모리 시스템(1000)은 트림 동작(TRIM operation)을 지원한다. 즉, 소정 파일에 대한 삭제 요청이 있는 경우, 호스트(1100)는 파일 시스템(1122)의 메타 데이터를 변경하여 사용자에게 해당 파일이 삭제되었음을 알려주고, 실질적인 삭제 동작은 트림 명령(TRIM cmd)에 따라 플래시 저장 장치(1200)에서 수행된다. 이 경우, 호스트(1100)는 트림 관리 모듈(1124)을 이용하여, 호스트(1100)와 플래시 저장 장치(1200) 사이의 관리 단위의 불일치를 해소한다. As described above, the flash memory system 1000 according to an embodiment of the present invention supports a trim operation. That is, when there is a deletion request for a predetermined file, the host 1100 changes the metadata of the file system 1122 to notify the user that the file has been deleted, and the actual deletion operation is flashed according to a trim command (TRIM cmd). In the storage device 1200. In this case, the host 1100 uses the trim management module 1124 to solve the inconsistency of the management unit between the host 1100 and the flash storage device 1200.

한편, 복수의 파일들에 대한 상위 레벨에서의 삭제 동작이 수행되는 경우, 트림 관리 모듈(1124)은 시간 차를 두고 섹터 어드레스를 제공받을 수 있다. 이 경우, 트림 관리 모듈(1124)은 삭제 요청된 섹터들에 대한 어드레스 정보를 수집하고, 수집된 어드레스 정보를 유휴 시간에 한 번에 처리할 수 있다. 이는 이하의 도 14 및 도 15에서 좀더 자세히 설명된다.
On the other hand, when an erase operation at a higher level is performed on a plurality of files, the trim management module 1124 may be provided with a sector address with a time difference. In this case, the trim management module 1124 may collect address information about sectors requested to be deleted and process the collected address information at one time in idle time. This is described in more detail with reference to FIGS. 14 and 15 below.

Ⅲ. 삭제 요청된 섹터들의 어드레스 정보를 수집하는 호스트III. Host collecting address information of sectors requested for deletion

도 14는 서로 다른 시간에 제공된 섹터 어드레스에 관한 정보를 수집하고, 수집된 섹터 어드레스에 관한 정보를 처리하는 호스트를 설명하는 도면이다. 섹터 어드레스에 관한 정보를 수집한다는 것을 제외하면, 이하에서 설명될 호스트(1100)는 도 2의 호스트(1100)와 유사하다. 따라서, 이하에서는 도 2의 호스트(1100)와의 차이점이 중점적으로 설명된다. 또한, 동일한 구성요소는 동일한 참조 번호를 사용하며 설명된다.14 is a diagram illustrating a host that collects information about sector addresses provided at different times and processes information about the collected sector addresses. Except for collecting information about the sector address, the host 1100 described below is similar to the host 1100 of FIG. Therefore, hereinafter, differences from the host 1100 of FIG. 2 will be mainly described. In addition, the same components are described using the same reference numerals.

도 14를 참조하면, 트림 관리 모듈(1124)에 제 1 내지 제 3 섹터 어드레스들(Sector ADDR_1~Sector ADDR_3)이 제공된다. 여기서, 제 1 내지 제 3 섹터 어드레스들(Sector ADDR_1~Sector ADDR_3)은 각각 상위 레벨에서 삭제된 서로 다른 파일에 대한 섹터 어드레스를 의미한다. 또한, 제 1 내지 제 3 섹터 어드레스들(Sector ADDR_1~Sector ADDR_3)은 서로 다른 시간에 트림 관리 모듈(1124)에 제공된다고 가정된다. Referring to FIG. 14, first to third sector addresses Sector ADDR_1 to Sector ADDR_3 are provided to the trim management module 1124. Here, the first to third sector addresses Sector ADDR_1 to Sector ADDR_3 mean sector addresses of different files deleted at higher levels, respectively. In addition, it is assumed that the first to third sector addresses Sector ADDR_1 to Sector ADDR_3 are provided to the trim management module 1124 at different times.

호스트 메모리(1125)는 제공된 섹터 어드레스들을 수집하기 위한 섹터 수집 영역(Sector Collection Area)을 포함한다. 트림 관리 모듈(1124)은 제 1 내지 제 3 섹터 어드레스들(Sector ADDR_1~Sector ADDR_3)을 호스트 메모리(1125)의 섹터 수집 영역에 임시로 저장한다. 이 후의 유휴 시간(예를 들어, 프로세싱 유닛(1110, 도 2 참조)의 유휴 시간)에, 트림 관리 모듈(1124)은 수집된 제 1 내지 제 3 섹터 어드레스들(Sector ADDR_1~Sector ADDR_3) 중 페이지 단위에 일치하는 섹터 어드레스를 플래시 저장 장치(1200, 도 2 참조)에 제공한다.The host memory 1125 includes a sector collection area for collecting provided sector addresses. The trim management module 1124 temporarily stores the first to third sector addresses Sector ADDR_1 to Sector ADDR_3 in the sector collection area of the host memory 1125. At a later idle time (eg, the idle time of the processing unit 1110 (see FIG. 2)), the trim management module 1124 is configured to page out of the collected first to third sector addresses Sector ADDR_1 to Sector ADDR_3. The sector address corresponding to the unit is provided to the flash storage device 1200 (refer to FIG. 2).

설명의 편의상, 도 7에 도시된 것과 마찬가지로, 제 1 내지 제 3 섹터 어드레스들(Sector ADDR_1~Sector ADDR_3)은 각각 제 1 내지 제 3 파일(File1~File3)에 대응한다고 가정된다. 이 경우, 제 1 내지 제 3 파일(File1~File3)은 제 1 내지 제 12 섹터들(Sector1~Sector3)에 대응하므로, 제 1 내지 제 12 섹터들(Sector1~Sector12)에 관한 어드레스 정보가 섹터 수집 영역(Sector Collection Area)에 저장된다. For convenience of description, as shown in FIG. 7, it is assumed that the first to third sector addresses Sector ADDR_1 to Sector ADDR_3 correspond to the first to third files File1 to File3, respectively. In this case, since the first to third files File1 to File3 correspond to the first to twelfth sectors Sector1 to Sector3, address information regarding the first to twelfth sectors Sector1 to Sector12 is collected in a sector. It is stored in the Sector Collection Area.

한편, 제 1 내지 제 12 섹터들(Sector1~Sector12)은 페이지 단위에 일치한다. 즉, 제 1 내지 제 4 섹터들(Sector1~Sector4), 제 5 내지 제 8 섹터들(Sector5~Sector8) 그리고 제 9 내지 제 12 섹터들(Sector8~Sector12)은 각각 하나의 페이지에 대응하는 동일한 그룹을 구성한다. Meanwhile, the first to twelfth sectors Sector1 to Sector12 correspond to page units. That is, the first to fourth sectors Sector1 to Sector4, the fifth to eighth sectors Sector5 to Sector8, and the ninth to twelfth sectors Sector8 to Sector12 each correspond to the same group. Configure

따라서, 이 후의 유휴 시간에, 트림 관리 모듈(1124)은 제 1 내지 제 12 섹터들(Sector1~Sector4)에 대한 섹터 어드레스(즉, 시작 섹터 번호 '1', 섹터들의 개수 '12')를 트림 명령(TRIM cmd)과 함께 플래시 저장 장치(1200)에 제공할 수 있다. 제 1 내지 제 3 섹터 어드레스들(Setor ADDR_1~Sector ADDR_3)이 한 번에 처리되므로, 제 1 내지 제 3 섹터 어드레스들(Sector ADDR_1~Sector ADDR_3)을 각각 처리하는 경우에 비하여, 호스트(1100)로부터 플래시 저장 장치(1200)로의 트림 명령의 전송 시간이 단축될 수 있다.Therefore, at a later idle time, the trim management module 1124 trims the sector address (ie, start sector number '1', number of sectors '12') for the first to twelfth sectors Sector1 to Sector4. The command may be provided to the flash storage device 1200 together with the command TRIM cmd. Since the first to third sector addresses Setor ADDR_1 to Sector ADDR_3 are processed at one time, the host 1100 may process the first to third sector addresses Sector ADDR_1 to Sector ADDR_3 at a time. The transmission time of the trim command to the flash storage device 1200 may be shortened.

도 15는 서로 다른 파일에 대한 섹터 어드레스들이 도 14의 섹터 저장 영역에 수집되는 동작을 보여주는 순서도이다.FIG. 15 is a flowchart illustrating an operation in which sector addresses for different files are collected in the sector storage area of FIG. 14.

S310 단계에서, 섹터 어드레스(Sector ADDR)가 트림 관리 모듈(1124, 도 14 참조)에 제공된다. S320 단계에서, 트림 관리 모듈(1124)은 수신된 섹터 어드레스(Sector ADDR)를 호스트 메모리(1125, 도 14 참조)의 섹터 수집 영역(Sector Collection Area)에 저장한다. 이 후에 다른 섹터 어드레스가 수신되는 경우, 트림 관리 모듈(1124)은 섹터 어드레스를 섹터 수집 영역에 계속 저장할 것이다. In operation S310, a sector address Sector ADDR is provided to the trim management module 1124 (see FIG. 14). In operation S320, the trim management module 1124 stores the received sector address Sector ADDR in a sector collection area of the host memory 1125 (see FIG. 14). If another sector address is received later, the trim management module 1124 will continue to store the sector address in the sector collection area.

도 16은 도 14의 섹터 수집 영역에 수집된 섹터 어드레스를 유휴 시간에 처리하는 동작을 보여주는 순서도이다.FIG. 16 is a flowchart illustrating an operation of processing sector addresses collected in the sector collection area of FIG. 14 at idle time.

S410 단계에서, 섹터 어드레스 처리 신호(SAP)가 발생된다. 예를 들어, 사용자로부터 소정 시간 동안 아무런 요청이 없는 경우(즉, 프로세싱 유닛(1000, 도 2 참조)의 유휴 시간), 프로세싱 유닛(1110)은 섹터 어드레스 처리 신호(SAP)를 발생한다. In operation S410, a sector address processing signal SAP is generated. For example, if there is no request from the user for a predetermined time (ie, idle time of the processing unit 1000 (see FIG. 2)), the processing unit 1110 generates a sector address processing signal SAP.

S420 단계에서, 트림 관리 모듈(1124)은 수집된 섹터 어드레스 중 페이지 단위에 일치하는 섹터 어드레스(즉, 정렬된 섹터 어드레스(Aligned Sector ADDR))를 트림 명령과 함께 플래시 저장 장치(1200, 도 2 참조)에 제공한다. 수집된 섹터 어드레스가 한 번에 처리되므로, 호스트(1100)로부터 플래시 저장 장치(1200)로의 트림 명령의 전송 시간이 단축될 수 있다. 트림 관리 모듈(1124)의 섹터 어드레스의 처리 방법은 도 13의 설명과 유사하므로, 자세한 설명은 생략된다. In operation S420, the trim management module 1124 may refer to the flash storage device 1200 (see FIG. 2) along with a trim command of a sector address (that is, an aligned sector address ADDR) corresponding to a page unit among the collected sector addresses. To provide. Since the collected sector addresses are processed at one time, the transmission time of the trim command from the host 1100 to the flash storage device 1200 may be shortened. The sector address processing method of the trim management module 1124 is similar to that of FIG. 13, and thus, detailed description thereof will be omitted.

이상에서 설명한 바와 같이, 복수의 파일에 대한 상위 레벨에서의 삭제 동작이 수행되는 경우, 삭제된 파일들에 대한 섹터 어드레스는 호스트 메모리(1124)의 섹터 수집 영역에 수집될 수 있다. 트림 관리 모듈(1124)은 수집된 섹터 어드레스를 한 번에 처리하므로, 호스트(1100)에서 플래시 저장 장치(1200)로의 트림 명령의 전송 시간이 단축될 수 있다.
As described above, when an erase operation at a higher level is performed on a plurality of files, sector addresses for deleted files may be collected in a sector collecting area of the host memory 1124. Since the trim management module 1124 processes the collected sector addresses at once, the transmission time of the trim command from the host 1100 to the flash storage device 1200 may be shortened.

Ⅵ. 트림 명령을 처리하는 플래시 메모리 시스템의 적용 예VI. Application example of a flash memory system that handles trim commands

본 발명의 실시 예에 따른 플래시 메모리 시스템(1000)은 여러 가지 제품에 적용 또는 응용될 수 있다. 호스트(1100)는 컴퓨터, 디지털 카메라, 휴대폰, MP3 플레이어, PMP, 게임기 등으로 구성될 수 있다. 플래시 저장 장치(1200)는 플래시 메모리를 기반으로 하는 솔리드 스테이트 드라이브(SSD), 플래시 메모리 카드, 또는 플래시 메모리 모듈 등으로 구성될 수 있다. 호스트(1100)와 플래시 저장 장치(1200)는 ATA, SATA, PATA, USB, SCSI, ESDI, PCI express 또는 IDE 인터페이스와 같은 표준 인터페이스(standardized interface)를 통해 연결될 수 있다. The flash memory system 1000 according to the embodiment of the present invention may be applied or applied to various products. The host 1100 may be configured of a computer, a digital camera, a mobile phone, an MP3 player, a PMP, a game machine, and the like. The flash storage device 1200 may be configured of a solid state drive (SSD), a flash memory card, a flash memory module, or the like based on a flash memory. The host 1100 and the flash storage device 1200 may be connected through a standardized interface such as an ATA, SATA, PATA, USB, SCSI, ESDI, PCI express, or IDE interface.

도 17은 본 발명의 실시 예에 따른 호스트(1100)를 메모리 카드에 적용한 예를 보여준다. 메모리 카드 시스템(2000)은 호스트(2100)와 메모리 카드(2200)를 포함한다. 호스트(2100)는 호스트 컨트롤러(2110) 및 호스트 접속 유닛(2120)을 포함한다. 메모리 카드(2200)는 카드 접속 유닛(2210), 카드 컨트롤러(2220), 그리고 플래시 메모리(2230)를 포함한다. 17 shows an example in which the host 1100 is applied to a memory card according to an embodiment of the present invention. The memory card system 2000 includes a host 2100 and a memory card 2200. The host 2100 includes a host controller 2110 and a host connection unit 2120. The memory card 2200 includes a card connection unit 2210, a card controller 2220, and a flash memory 2230.

호스트 접속 유닛(2120) 및 카드 접속 유닛(2210)은 복수의 핀으로 구성된다. 이들 핀에는 커맨드 핀, 데이터 핀, 클록 핀, 전원 핀 등이 포함되어 있다. 핀의 수는 메모리 카드(2200)의 종류에 따라 달라진다. 예로서, SD 카드는 9개의 핀을 갖는다.The host connection unit 2120 and the card connection unit 2210 are composed of a plurality of pins. These pins include command pins, data pins, clock pins, power pins, and the like. The number of pins depends on the type of memory card 2200. As an example, an SD card has nine pins.

호스트(2100)는 메모리 카드(2200)에 데이터를 쓰거나, 메모리 카드(2200)에 저장된 데이터를 읽는다. 호스트 컨트롤러(2110)는 커맨드(예를 들면, 쓰기 커맨드), 호스트(2100) 내의 클록 발생기(도시되지 않음)에서 발생한 클록 신호(CLK), 그리고 데이터(DAT)를 호스트 접속 유닛(2120)을 통해 메모리 카드(2200)로 전송한다. The host 2100 writes data to the memory card 2200 or reads data stored in the memory card 2200. The host controller 2110 may transmit a command (eg, a write command), a clock signal CLK generated by a clock generator (not shown) in the host 2100, and data DAT through the host connection unit 2120. Transfer to memory card 2200.

카드 컨트롤러(2220)는 카드 접속 유닛(2210)을 통해 수신된 쓰기 커맨드에 응답하여, 카드 컨트롤러(2220) 내에 있는 클록 발생기(도시되지 않음)에서 발생한 클록 신호에 동기하여 데이터를 메모리(2230)에 저장한다. 메모리(2230)는 호스트(2100)로부터 전송된 데이터를 저장한다. 예를 들어, 호스트(2100)가 디지털 카메라인 경우에는 영상 데이터를 저장한다. The card controller 2220 sends data to the memory 2230 in synchronization with a clock signal generated by a clock generator (not shown) in the card controller 2220 in response to a write command received through the card connection unit 2210. Save it. The memory 2230 stores data transmitted from the host 2100. For example, when the host 2100 is a digital camera, image data is stored.

도 17에서, 호스트 컨트롤러(2110)는 트림 동작을 지원하는 응용 프로그램과 파일 시스템, 그리고 트림 관리 모듈을 구비할 수 있다. 그리고 카드 컨트롤러(2220)는 플래시 변환 계층을 이용하여 메모리 카드(2200) 내에서 트림 명령을 처리할 수 있다. 도 17에 도시된 메모리 카드 시스템은 위에서 설명한 트림 동작 및 트림 관리 모듈의 관리 단위 일치 동작을 모두 지원할 수 있다. In FIG. 17, the host controller 2110 may include an application program, a file system, and a trim management module that support a trim operation. The card controller 2220 may process a trim command in the memory card 2200 using a flash translation layer. The memory card system illustrated in FIG. 17 may support both the trim operation described above and the management unit matching operation of the trim management module.

도 18은 본 발명의 실시 예에 따른 호스트를 솔리드 스테이트 드라이브(SSD)에 적용한 실시 예를 보여준다. 도 18를 참조하면, SSD 시스템(3000)은 호스트(3100)와 SSD(3200)를 포함한다. SSD(3200)는 신호 커넥터(signal connector, 3231)를 통해 호스트(3100)와 신호를 주고 받으며, 전원 커넥터(power connector, 3221)를 통해 전원을 입력받는다. SSD(3200)는 복수의 불휘발성 메모리 장치(3201~320n), SSD 컨트롤러(3210), 그리고 보조 전원 장치(3220)를 포함한다.18 illustrates an embodiment in which a host is applied to a solid state drive (SSD) according to an embodiment of the present invention. Referring to FIG. 18, the SSD system 3000 includes a host 3100 and an SSD 3200. The SSD 3200 exchanges signals with the host 3100 through a signal connector 3231 and receives power through a power connector 3221. The SSD 3200 includes a plurality of nonvolatile memory devices 3201 to 320n, an SSD controller 3210, and an auxiliary power supply 3220.

복수의 불휘발성 메모리 장치(3201~320n)는 SSD(3200)의 저장 매체로서 사용된다. 복수의 불휘발성 메모리 장치(3201~320n)는 대용량의 저장 능력을 가지는 플래시 메모리 장치로 구현될 수 있다. SSD(3200)는 주로 플래시 메모리(Flash memory)를 사용하고 있다. The plurality of nonvolatile memory devices 3201 to 320n are used as storage media of the SSD 3200. The plurality of nonvolatile memory devices 3201 to 320n may be implemented as a flash memory device having a large storage capacity. The SSD 3200 mainly uses flash memory.

복수의 불휘발성 메모리 장치(3201~320n)는 복수의 채널(CH1~CHn)을 통해 SSD 컨트롤러(3210)와 연결될 수 있다. 하나의 채널에는 하나 또는 그 이상의 메모리 장치가 연결될 수 있다. 하나의 채널에 연결되는 메모리 장치들은 동일한 데이터 버스에 연결될 수 있다. 이때 플래시 조각 모음은 복수의 메모리 블록을 하나로 연결하는 슈퍼 블록 형태로 수행되거나, 복수의 페이지를 하나로 연결하는 슈퍼 페이지 형태로 수행될 수 있다.The plurality of nonvolatile memory devices 3201 to 320n may be connected to the SSD controller 3210 through a plurality of channels CH1 to CHn. One or more memory devices may be connected to one channel. Memory devices connected to one channel may be connected to the same data bus. In this case, the flash defragmentation may be performed in the form of a super block that connects a plurality of memory blocks into one, or in the form of a super page that connects a plurality of pages into one.

SSD 컨트롤러(3210)는 신호 커넥터(3231)를 통해 호스트(3100)와 신호(SGL)를 주고 받는다. 여기에서, 신호(SGL)에는 커맨드, 어드레스, 데이터 등이 포함될 수 있다. SSD 컨트롤러(3210)는 호스트(3100)의 커맨드에 따라 해당 메모리 장치에 데이터를 쓰거나 해당 메모리 장치로부터 데이터를 읽어낸다. SSD 컨트롤러(3210)의 내부 구성은 도 19을 참조하여 상세하게 설명된다.The SSD controller 3210 exchanges a signal SGL with the host 3100 through a signal connector 3231. Here, the signal SGL may include a command, an address, data, and the like. The SSD controller 3210 writes data to or reads data from the memory device according to a command of the host 3100. An internal configuration of the SSD controller 3210 will be described in detail with reference to FIG. 19.

보조 전원 장치(3220)는 전원 커넥터(3221)를 통해 호스트(3100)와 연결된다. 보조 전원 장치(3220)는 호스트(3100)로부터 전원(PWR)을 입력받고, 충전할 수 있다. 한편, 보조 전원 장치(3220)는 SSD(3200) 내에 위치할 수도 있고, SSD(3200) 밖에 위치할 수도 있다. 예를 들면, 보조 전원 장치(3220)는 메인 보드에 위치하며, SSD(3200)에 보조 전원을 제공할 수도 있다.The auxiliary power supply 3220 is connected to the host 3100 through a power connector 3221. The auxiliary power supply 3220 may receive the power PWR from the host 3100 and charge it. Meanwhile, the auxiliary power supply 3220 may be located in the SSD 3200 or may be located outside the SSD 3200. For example, the auxiliary power supply 3220 may be located on the main board and provide auxiliary power to the SSD 3200.

도 19은 도 18에 도시된 SSD 컨트롤러(3210)의 구성을 예시적으로 보여주는 블록도이다. 도 19을 참조하면, SSD 컨트롤러(3210)는 NVM 인터페이스(3211), 호스트 인터페이스(3212), ECC(3213), 중앙 처리 장치(CPU, 3214), 그리고 버퍼 메모리(3215)를 포함한다. FIG. 19 is a block diagram illustrating a configuration of the SSD controller 3210 illustrated in FIG. 18. Referring to FIG. 19, the SSD controller 3210 includes an NVM interface 3211, a host interface 3212, an ECC 3213, a central processing unit (CPU) 3214, and a buffer memory 3215.

NVM 인터페이스(3211)는 버퍼 메모리(3215)로부터 전달된 데이터를 각각의 채널들(CH1~CHn)로 스캐터링(Scattering)한다. 그리고 NVM 인터페이스(3211)는 불휘발성 메모리 장치(3201~320n)로부터 읽은 데이터를 버퍼 메모리(3215)로 전달한다. 여기에서, NVM 인터페이스(3211)는 낸드 플래시 메모리의 인터페이스 방식을 사용할 수 있다. 즉, SSD 컨트롤러(3210)는 낸드 플래시 메모리 인터페이스 방식에 따라 프로그램, 읽기, 또는 소거 동작 등을 수행할 수 있다.The NVM interface 3211 scatters the data transferred from the buffer memory 3215 to the respective channels CH1 to CHn. The NVM interface 3211 transfers the data read from the nonvolatile memory devices 3201 to 320n to the buffer memory 3215. Here, the NVM interface 3211 may use an NAND flash memory interface method. That is, the SSD controller 3210 may perform a program, read, or erase operation according to the NAND flash memory interface method.

호스트 인터페이스(3212)는 호스트(3100)의 프로토콜에 대응하여 SSD(3200)와의 인터페이싱을 제공한다. 호스트 인터페이스(3212)는 USB(Universal Serial Bus), SCSI(Small Computer System Interface), PCI express, ATA, PATA(Parallel ATA), SATA(Serial ATA), SAS(Serial Attached SCSI) 등을 이용하여 호스트(3100)와 통신할 수 있다. 또한, 호스트 인터페이스(3212)는 호스트(3100)가 SSD(3200)를 하드 디스크(HDD)로 인식하도록 지원하는 디스크 에뮬레이션(Disk Emulation) 기능을 수행할 수 있다. The host interface 3212 provides interfacing with the SSD 3200 in correspondence with the protocol of the host 3100. The host interface 3212 uses a host (eg, a universal serial bus (USB), a small computer system interface (SCSI), a PCI express, an ATA, a parallel ATA (PATA), a serial ATA (SATA), or a serial attached SCSI (SAS). 3100). In addition, the host interface 3212 may perform a disk emulation function to support the host 3100 to recognize the SSD 3200 as a hard disk (HDD).

중앙 처리 장치(3214)는 호스트(3100, 도 19 참조)로부터 입력된 신호(SGL)를 분석하고 처리한다. 중앙 처리 장치(3214)는 호스트 인터페이스(3212)나 NVM 인터페이스(3211)를 통해 호스트(3100)나 불휘발성 메모리(3201~320n)를 제어한다. 중앙 처리 장치(3214)는 SSD(3200)을 구동하기 위한 펌웨어에 따라서 불휘발성 메모리 장치(3201~320n)의 동작을 제어한다.The central processing unit 3214 analyzes and processes the signal SGL input from the host 3100 (see FIG. 19). The central processing unit 3214 controls the host 3100 or the nonvolatile memories 3201 to 320n through the host interface 3212 or the NVM interface 3211. The central processing unit 3214 controls the operations of the nonvolatile memory devices 3201 to 320n in accordance with firmware for driving the SSD 3200.

버퍼 메모리(3215)는 호스트(3100)로부터 제공되는 쓰기 데이터 또는 불휘발성 메모리 장치로부터 읽은 데이터를 임시로 저장한다. 또한, 버퍼 메모리(3215)는 불휘발성 메모리 장치(3201~320n)에 저장될 메타 데이터나 캐시 데이터를 저장할 수 있다. 서든 파워 오프 동작 시에, 버퍼 메모리(3215)에 저장된 메타 데이터나 캐시 데이터는 불휘발성 메모리 장치(3201~320n)에 저장된다. 버퍼 메모리(3215)에는 DRAM, SRAM 등이 포함될 수 있다. 도 18 및 도 19에 도시된 솔리드 스테이트 드라이브(3000)는 앞에서 설명한 호스트에 적용될 수 있다.The buffer memory 3215 temporarily stores write data provided from the host 3100 or data read from the nonvolatile memory device. In addition, the buffer memory 3215 may store metadata or cache data to be stored in the nonvolatile memory devices 3201 to 320n. In the sudden power-off operation, metadata or cache data stored in the buffer memory 3215 is stored in the nonvolatile memory devices 3201 to 320n. The buffer memory 3215 may include DRAM, SRAM, and the like. The solid state drive 3000 illustrated in FIGS. 18 and 19 may be applied to the host described above.

도 20은 본 발명의 실시 예에 따른 호스트를 플래시 메모리 모듈에 구현한 예를 보여주는 블록도이다. 여기에서, 퍼스널 컴퓨터(PC), 노트북 컴퓨터, 휴대폰, PDA(Personal Digital Assistant), 그리고 카메라 등과 같은 호스트는 플래시 메모리 모듈(4100)에 연결되어 사용될 수 있다.20 is a block diagram illustrating an example in which a host is implemented in a flash memory module according to an example embodiment. Here, a host such as a personal computer (PC), a notebook computer, a mobile phone, a personal digital assistant (PDA), and a camera may be connected to the flash memory module 4100 and used.

도 20을 참조하면, 플래시 메모리 모듈(4000)은 메모리 시스템(4100), 전원 장치(4200), 보조 전원 장치(4250), 중앙처리장치(4300), 램(4400), 그리고 사용자 인터페이스(4500)를 포함한다. 도 20에 도시된 플래시 메모리 모듈(4000)은 앞에서 설명한 호스트에 연결되어 사용될 수 있다. Referring to FIG. 20, the flash memory module 4000 may include a memory system 4100, a power supply 4200, an auxiliary power supply 4250, a central processing unit 4300, a RAM 4400, and a user interface 4500. It includes. The flash memory module 4000 illustrated in FIG. 20 may be connected to the host described above and used.

한편, 상술한 설명에서, 호스트(1100, 도 2 참조)는 섹터(sector) 단위로 파일(file)을 관리하고, 플래시 저장 장치(1200, 도 2 참조)는 페이지(page) 단위로 플래시 메모리(1210)에 저장된 데이터를 관리한다고 가정된다. 다만, 이는 예시적인 것으로 이해되어야 한다. Meanwhile, in the above description, the host 1100 (refer to FIG. 2) manages a file in sectors, and the flash storage device 1200 (refer to FIG. 2) is a flash memory in page units. It is assumed that data stored in 1210 is managed. However, this should be understood as illustrative.

예를 들어, 호스트(1100)는 클러스터(cluster) 단위로 파일을 관리할 수 있고, 플래시 저장 장치(1200)는 블록(block) 단위 또는 복수의 페이지들의 집합인 슈퍼 페이지(super page) 단위로 플래시 메모리(1210)에 저장된 데이터를 관리할 수 있다. 호스트(1100) 및 플래시 저장 장치(1200)의 관리 단위는 설계자 또는 데이터 관리 규약 등에 의하여 다양하게 정의될 수 있을 것이다. For example, the host 1100 may manage files in a cluster unit, and the flash storage device 1200 may flash in a block unit or a super page unit which is a set of a plurality of pages. Data stored in the memory 1210 may be managed. The management unit of the host 1100 and the flash storage device 1200 may be variously defined by a designer or a data management protocol.

또한, 상술한 설명에서, 트림 관리 테이블은 호스트 메모리(1125, 도 2 참조)에 저장될 수 있다고 가정된다. 호스트 메모리(1125)가 휘발성 메모리(예를 들어 DRAM)로 구현된 경우, 트림 관리 테이블에 관한 정보가 서든 파워 오프(sudden power off) 등에 의하여 소실될 수 있다. 이 경우, 트림 관리 테이블에서 관리되는 영역에 관한 정보는 상위 레벨에서 삭제되었기 때문에, 사용자는 트림 관리 테이블에 관한 정보의 소실과 무관하게 '해당 데이터는 삭제되었다'는 정보를 제공받을 수 있다. 한편, 트림 관리 테이블은 불휘발성 메모리(예를 들어, 플래시 메모리)에 저장될 수 있음은 물론이다.Further, in the above description, it is assumed that the trim management table can be stored in the host memory 1125 (see FIG. 2). When the host memory 1125 is implemented as volatile memory (for example, DRAM), information about the trim management table may be lost due to sudden power off or the like. In this case, since the information about the area managed in the trim management table has been deleted at a higher level, the user may be provided with information that the corresponding data has been deleted regardless of the loss of the information about the trim management table. Meanwhile, the trim management table may be stored in nonvolatile memory (eg, flash memory).

한편, 본 발명의 상세한 설명에서는 구체적인 실시 예에 관하여 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도 내에서 여러 가지 변형이 가능함은 물론이다. 그러므로 본 발명의 범위는 상술한 실시예에 국한되어 정해져서는 안되며 후술하는 특허청구범위 뿐만 아니라 이 발명의 특허청구범위와 균등한 것들에 의해 정해져야 한다.Meanwhile, in the detailed description of the present invention, specific embodiments have been described, but various modifications are possible without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the above-described embodiments, but should be defined by the equivalents of the claims of the present invention as well as the following claims.

100: 메모리 시스템 1000: 플래시 메모리 시스템
1100: 호스트 1200: 플래시 저장 장치
2000; 메모리 카드 시스템 3000; SSD 시스템
4000; 플래시 메모리 모듈
TRIM cmd: 트림 명령 Sector ADDR: 섹터 어드레스
Page ADDR: 페이지 어드레스 Sub_Page ADDR: 서브 페이지 어드레스
WSI: 쓰기 상태 정보 SAP: 섹터 어드레스 처리 신호
100: memory system 1000: flash memory system
1100: host 1200: flash storage device
2000; Memory card system 3000; SSD system
4000; Flash memory module
TRIM cmd: Trim command Sector ADDR: Sector address
Page ADDR: Page Address Sub_Page ADDR: Sub Page Address
WSI: Write Status Information SAP: Sector Address Processing Signal

Claims (20)

데이터 저장 장치에 파일의 데이터를 저장하며, 데이터 저장 장치와 다른 데이터 관리 단위를 갖는 사용자 장치의 데이터 관리 방법에 있어서:
파일 삭제 요청에 응답하여, 삭제 요청된 파일의 메타 데이터를 변경하는 단계;
상기 삭제 요청된 파일의 저장 영역에 관한 정보가 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는지를 판단하는 단계; 및
상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는 영역에 관한 정보를 상기 데이터 저장 장치에 전송하는 단계를 포함하는 데이터 관리 방법.
A data management method of a user device for storing data of a file in a data storage device and having a data management unit different from that of the data storage device:
In response to the file deletion request, changing metadata of the file requested to be deleted;
Determining whether information about a storage area of the file requested to be deleted corresponds to a data management unit of the data storage device; And
And transmitting information on an area corresponding to a data management unit of the data storage device, to the data storage device, from among information on a storage area of the file requested to be deleted.
제 1 항에 있어서,
상기 삭제 요청된 파일의 메타 데이터의 변경은 상기 삭제 요청된 파일이 상위 레벨에서 삭제되었음을 나타내는 데이터 관리 방법.
The method of claim 1,
The change of the metadata of the file requested to be deleted indicates that the file to be deleted is deleted at a higher level.
제 1 항에 있어서,
상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하지 않는 영역에 관한 정보를 관리하는 트림 관리 테이블을 생성하는 단계를 더 포함하는 데이터 관리 방법.
The method of claim 1,
And generating a trim management table that manages information about an area that does not match a data management unit of the data storage device among information about a storage area of the file requested to be deleted.
제 1 항에 있어서,
상기 삭제 요청된 파일의 저장 영역에 관한 정보는 상기 데이터 저장 장치의 맵핑 테이블로부터 제공되는 데이터 관리 방법.
The method of claim 1,
The information regarding the storage area of the file requested to be deleted is provided from a mapping table of the data storage device.
데이터 저장 장치에 파일의 데이터를 저장하는 사용자 장치에 있어서:
상기 데이터 저장 장치의 데이터 관리 단위와 다른 단위로 파일을 관리하며, 삭제 요청된 파일의 메타 데이터에 관한 정보를 변경하는 파일 시스템; 및
상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는 저장 영역에 관한 정보를 상기 데이터 저장 장치에 제공하는 트림 관리 모듈을 포함하는 사용자 장치.
A user device for storing data in a file on a data storage device:
A file system that manages files in a unit different from a data management unit of the data storage device and changes information regarding metadata of a file requested to be deleted; And
And a trim management module configured to provide the data storage device with information about a storage area corresponding to a data management unit of the data storage device among the information about the storage area of the file requested to be deleted.
제 5 항에 있어서,
상기 삭제 요청된 파일의 메타 데이터에 관한 정보의 변경은 상기 삭제 요청된 파일이 상위 레벨에서 삭제되었음을 나타내는 사용자 장치.
The method of claim 5, wherein
The change of the information about the metadata of the file requested to be deleted indicates that the file requested to be deleted is deleted at a higher level.
제 5 항에 있어서,
상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하지 않는 영역에 관한 정보를 관리하는 트림 관리 테이블을 더 포함하는 사용자 장치.
The method of claim 5, wherein
And a trim management table configured to manage information about an area which does not match a data management unit of the data storage device among information about a storage area of the file requested to be deleted.
제 7 항에 있어서,
상기 트림 관리 테이블을 저장하는 호스트 메모리를 더 포함하며, 상기 호스트 메모리에 저장된 트림 관리 테이블은 밀어내기 방식에 의하여 관리되는 사용자 장치.
The method of claim 7, wherein
And a host memory for storing the trim management table, wherein the trim management table stored in the host memory is managed by a push method.
제 5 항에 있어서,
적어도 두 개의 삭제 요청된 파일들의 저장 영역에 관한 정보를 저장하는 호스트 메모리를 더 포함하는 사용자 장치.
The method of claim 5, wherein
And a host memory for storing information about a storage area of at least two files requested to be deleted.
제 9 항에 있어서,
상기 트림 관리 모듈은 상기 호스트 메모리에 저장된 상기 적어도 두 개의 삭제 요청된 파일들의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는 영역에 관한 정보를 상기 데이터 저장 장치에 제공하는 사용자 장치.
The method of claim 9,
The trim management module provides the data storage device with information regarding an area corresponding to a data management unit of the data storage device among information about a storage area of the at least two files requested to be deleted stored in the host memory. .
제 5 항에 있어서,
상기 삭제 요청된 파일의 저장 영역에 관한 정보는 상기 데이터 저장 장치의 맵핑 테이블로부터 제공되는 사용자 장치.
The method of claim 5, wherein
Information regarding the storage area of the file requested to be deleted is provided from a mapping table of the data storage device.
트림 동작을 지원하는 호스트; 및
상기 호스트로부터의 트림 명령에 응답하여, 소거 동작을 수행하는 데이터 저장 장치를 포함하며,
상기 호스트는 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하는 저장 영역에 관한 정보만을 상기 데이터 저장 장치에 제공하는 메모리 시스템.
A host supporting a trim operation; And
A data storage device for performing an erase operation in response to a trim command from the host,
And the host provides to the data storage device only information on a storage area that matches a data management unit of the data storage device among information on a storage area of a file requested to be deleted.
제 12 항에 있어서,
상기 호스트는 상기 삭제 요청된 파일의 저장 영역에 관한 정보 중 상기 데이터 저장 장치의 데이터 관리 단위에 일치하지 않는 영역에 관한 정보를 별도로 관리하는 메모리 시스템.
The method of claim 12,
And the host separately manages information about an area that does not match a data management unit of the data storage device among information about a storage area of the file requested to be deleted.
제 12 항에 있어서,
상기 호스트는 섹터 단위로 파일을 관리하고, 상기 데이터 저장 장치는 페이지 단위로 파일의 데이터를 관리하며, 각 페이지는 복수 개의 섹터들로 구분되는 메모리 시스템.
The method of claim 12,
The host manages a file on a sector basis, the data storage device manages data of a file on a page basis, and each page is divided into a plurality of sectors.
제 12 항에 있어서,
상기 호스트는
섹터 단위로 파일을 관리하며, 삭제 요청된 파일의 메타 데이터에 관한 정보를 변경하는 파일 시스템; 및
상기 삭제 요청된 파일의 섹터들 중 상기 데이터 저장 장치의 데이터 관리 단위인 페이지 단위에 일치하는 섹터들에 관한 정보를 선택하는 트림 관리 모듈을 포함하는 메모리 시스템.
The method of claim 12,
The host is
A file system for managing files on a sector basis and for changing information on metadata of a file requested to be deleted; And
And a trim management module for selecting information about sectors corresponding to a page unit, which is a data management unit of the data storage device, among the sectors of the file to be deleted.
제 15 항에 있어서,
상기 삭제 요청된 파일의 메타 데이터에 관한 정보의 변경은 상기 삭제 요청된 파일이 상위 레벨에서 삭제되었음을 나타내는 메모리 시스템.
The method of claim 15,
The change of the information about the metadata of the file requested to be deleted indicates that the file to be deleted is deleted at a higher level.
제 15 항에 있어서,
상기 호스트는
상기 삭제 요청된 파일의 섹터들 중 상기 페이지 단위에 일치하지 않는 섹터(이하, 부분 섹터)에 관한 정보를 관리하는 트림 관리 테이블을 더 포함하는 메모리 시스템.
The method of claim 15,
The host is
And a trim management table that manages information on sectors (hereinafter, partial sectors) that do not match the page unit among sectors of the file requested to be deleted.
제 17 항에 있어서,
상기 트림 관리 테이블은 상기 부분 섹터에 관한 정보 및 상기 부분 섹터와 동일한 페이지에 속하는 섹터에 관한 정보를 관리하는 메모리 시스템.
The method of claim 17,
And the trim management table manages information about the partial sector and information about a sector belonging to the same page as the partial sector.
제 15 항에 있어서,
상기 호스트는
서로 다른 시간에 삭제 요청된 적어도 두 개의 파일들의 섹터들에 관한 정보를 저장하는 호스트 메모리를 더 포함하는 메모리 시스템.
The method of claim 15,
The host is
And a host memory for storing information about sectors of at least two files that are requested to be deleted at different times.
제 19 항에 있어서,
상기 트림 관리 모듈은 상기 호스트 메모리에 저장된 상기 서로 다른 시간에 삭제 요청된 적어도 두 개의 파일들의 섹터들에 관한 정보 중 상기 데이터 저장 장치의 관리 단위에 일치하는 섹터 어드레스에 관한 정보를 선택하는 메모리 시스템.
The method of claim 19,
And the trim management module selects information on a sector address corresponding to a management unit of the data storage device from among information on sectors of at least two files requested to be deleted at different times stored in the host memory.
KR1020100106947A 2010-10-29 2010-10-29 Memory system and user device, and data management method thereof KR101893897B1 (en)

Priority Applications (9)

Application Number Priority Date Filing Date Title
KR1020100106947A KR101893897B1 (en) 2010-10-29 2010-10-29 Memory system and user device, and data management method thereof
TW100139384A TWI579692B (en) 2010-10-29 2011-10-28 Memory system, data storage device, user device and data management method thereof
US13/283,866 US11232022B2 (en) 2010-10-29 2011-10-28 Memory system, data storage device, user device and data management method thereof having a data management information matching determination
CN201110338409.0A CN102467455B (en) 2010-10-29 2011-10-31 Storage system, data storage device, user equipment and its data managing method
US14/470,500 US20140372685A1 (en) 2010-10-29 2014-08-27 Memory system, data storage device, user device and data management method thereof
US17/570,848 US11636032B2 (en) 2010-10-29 2022-01-07 Memory system, data storage device, user device and data management method thereof
US17/570,780 US11640353B2 (en) 2010-10-29 2022-01-07 Memory system, data storage device, user device and data management method thereof
US17/570,816 US20220129374A1 (en) 2010-10-29 2022-01-07 Memory system, data storage device, user device and data management method thereof
US18/314,669 US20230273876A1 (en) 2010-10-29 2023-05-09 Memory system, data storage device, user device and data management method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100106947A KR101893897B1 (en) 2010-10-29 2010-10-29 Memory system and user device, and data management method thereof

Publications (2)

Publication Number Publication Date
KR20120045422A true KR20120045422A (en) 2012-05-09
KR101893897B1 KR101893897B1 (en) 2018-08-31

Family

ID=46264889

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100106947A KR101893897B1 (en) 2010-10-29 2010-10-29 Memory system and user device, and data management method thereof

Country Status (1)

Country Link
KR (1) KR101893897B1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140057082A (en) * 2012-11-02 2014-05-12 삼성전자주식회사 Non-volatile memory system and host communicating with the same
KR20140073712A (en) * 2012-12-06 2014-06-17 에스케이하이닉스 주식회사 Data storage device and operating method thereof
KR20160022007A (en) * 2014-08-19 2016-02-29 삼성전자주식회사 Computer device and storage device
US9501230B2 (en) 2012-06-19 2016-11-22 Kabushiki Kaisha Toshiba Storage medium storing control program, method of controlling information processing device, information processing system, and information processing device
US9569113B2 (en) 2012-10-11 2017-02-14 SK Hynix Inc. Data storage device and operating method thereof
KR20180051704A (en) * 2016-11-07 2018-05-17 삼성전자주식회사 User device including storage device and trim management method thereof
CN117478626A (en) * 2023-12-27 2024-01-30 天津光电聚能通信股份有限公司 Quick matching searching system, method, equipment and medium based on group connection cache

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11960757B2 (en) 2021-10-04 2024-04-16 Samsung Electronics Co., Ltd. Flash translation layer with rewind

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090046567A (en) * 2007-11-06 2009-05-11 삼성전자주식회사 Solid state disk and operating method thereof
KR20090063733A (en) * 2007-12-14 2009-06-18 한국전자통신연구원 Method recovering data server at the applying multiple reproduce dispersion file system and metadata storage and save method thereof
KR20100015506A (en) * 2007-04-19 2010-02-12 마이크로소프트 코포레이션 Remove-on-delete technologies for solid state drive optimization
US20100217927A1 (en) * 2004-12-21 2010-08-26 Samsung Electronics Co., Ltd. Storage device and user device including the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100217927A1 (en) * 2004-12-21 2010-08-26 Samsung Electronics Co., Ltd. Storage device and user device including the same
KR20100015506A (en) * 2007-04-19 2010-02-12 마이크로소프트 코포레이션 Remove-on-delete technologies for solid state drive optimization
KR20090046567A (en) * 2007-11-06 2009-05-11 삼성전자주식회사 Solid state disk and operating method thereof
KR20090063733A (en) * 2007-12-14 2009-06-18 한국전자통신연구원 Method recovering data server at the applying multiple reproduce dispersion file system and metadata storage and save method thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9501230B2 (en) 2012-06-19 2016-11-22 Kabushiki Kaisha Toshiba Storage medium storing control program, method of controlling information processing device, information processing system, and information processing device
US9880766B2 (en) 2012-06-19 2018-01-30 Toshiba Memory Corporation Storage medium storing control program, method of controlling information processing device, information processing system, and information processing device
US9569113B2 (en) 2012-10-11 2017-02-14 SK Hynix Inc. Data storage device and operating method thereof
KR20140057082A (en) * 2012-11-02 2014-05-12 삼성전자주식회사 Non-volatile memory system and host communicating with the same
KR20140073712A (en) * 2012-12-06 2014-06-17 에스케이하이닉스 주식회사 Data storage device and operating method thereof
KR20160022007A (en) * 2014-08-19 2016-02-29 삼성전자주식회사 Computer device and storage device
KR20180051704A (en) * 2016-11-07 2018-05-17 삼성전자주식회사 User device including storage device and trim management method thereof
CN117478626A (en) * 2023-12-27 2024-01-30 天津光电聚能通信股份有限公司 Quick matching searching system, method, equipment and medium based on group connection cache
CN117478626B (en) * 2023-12-27 2024-04-05 天津光电聚能通信股份有限公司 Quick matching searching system, method, equipment and medium based on group connection cache

Also Published As

Publication number Publication date
KR101893897B1 (en) 2018-08-31

Similar Documents

Publication Publication Date Title
US11636032B2 (en) Memory system, data storage device, user device and data management method thereof
KR101638061B1 (en) Flash memory system and flash defrag method thereof
US8166258B2 (en) Skip operations for solid state disks
KR101893897B1 (en) Memory system and user device, and data management method thereof
US8078794B2 (en) Hybrid SSD using a combination of SLC and MLC flash memory arrays
US20180356984A1 (en) Memory system and method of controlling memory system
US8166233B2 (en) Garbage collection for solid state disks
US8219776B2 (en) Logical-to-physical address translation for solid state disks
US7475185B2 (en) Nonvolatile memory system, nonvolatile memory device, memory controller, access device, and method for controlling nonvolatile memory device
US20110264884A1 (en) Data storage device and method of operating the same
TWI420305B (en) Memory storage device, memory controller thereof, and method for creating fill-file automatically thereof
KR101747791B1 (en) Memory system and data storage device, and data management method thereof
KR20200057473A (en) Storage Device And Storage System Including The Same
TWI795680B (en) Method and apparatus for data reads in host performance acceleration mode
TWI805937B (en) Data processing method and memory controller utilizing the same
US20220091772A1 (en) Memory system

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E90F Notification of reason for final refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant