IP Library Granted Patent US 10,783,074
Granted Patent B2
US 10,783,074 · App. 16/169,230 · Granted Sep 22, 2020

Controller for performing garbage collection, method for operating the same, and memory system including the same

Inventor: Hyeong-Ju Na (Gyeonggi-do, KR)
Assignee: SK hynix Inc.
G06F12/0253G06F3/061G06F3/064G06F3/0679G06F2212/7201G06F2212/7205
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,783,074
App. No.
16/169,230
Granted
Sep 22, 2020
Kind
B2
Abstract

A controller includes a memory device storing data and including a memory interface a processor; and a memory, wherein, when data is stored in all pages of an open block of a memory device, the processor determines a number of valid pages in the open block and performs a garbage collection on the open block when the number of valid page(s) is determined to be less than or equal to a threshold value, wherein the number ranges from zero to the total number of pages in the open block.

Claims (31)

1. A controller, comprising:

a processor; and

a memory,

wherein, when data is stored in all pages of an open block of a memory device, the processor determines a number of valid pages in the open block and performs a garbage collection on the open block before closing the open block when the number of valid pages is determined to be less than or equal to a threshold value, and performs closing the open block and generating a physical address to logical address (P2L) map and a logical address to physical address (L2P) map for the closed block when the number of the valid pages is determined to exceed the threshold value, wherein the number ranges from zero to a number of total pages in the open block, and the P2L map and the L2P map are not generated for the open block on which the garbage collection is performed.

2. The controller according to claim 1 , wherein the processor generates mapping information on the open block and stores the mapping information in the memory while storing data in the open block.

3. The controller according to claim 2 , wherein the mapping information includes a physical address to logical address (P2L) map in which a logical address corresponding to the data is mapped to a physical address.

4. The controller according to claim 2 , wherein the mapping information includes a physical address corresponding to the valid pages and does not include a physical address corresponding to one or more invalid pages.

5. The controller according to claim 2 , wherein the processor performs the garbage collection using the mapping information.

6. The controller according to claim 2 , wherein the processor stores information on the number of the valid pages of the open block in the memory while generating the mapping information.

7. A method for operating a controller, comprising:

storing data in an open block of a memory device in response to a data write request from a host;

determining a number of valid pages in the open block when data is stored in all pages of the open block, wherein the number ranges from zero to a number of total pages in the open block; and

performing a garbage collection on the open block before closing the open block when the number of valid pages is determined to be less than or equal to a threshold value, and performing closing the open block and generating a physical address to logical address (P2L) map and a logical address to physical address (L2P) map for the closed block when the number of the valid pages is determined to exceed the threshold value, where the P2L map and the L2P map are not generated for the open block on which the garbage collection is performed.

8. The method according to claim 7 , wherein the storing of the data in the open block includes generating mapping information on the open block and storing the mapping information in a memory.

9. The method according to claim 8 , wherein the mapping information includes a physical address to logical address (P2L) map in which a logical address corresponding to the data is mapped to a physical address.

10. The method according to claim 8 , wherein the mapping information includes a physical address corresponding to the valid pages and does not include a physical address corresponding to one or more invalid pages.

11. The method according to claim 8 , wherein the performing of the garbage collection uses the mapping information.

12. The method according to claim 8 , wherein the generating of the mapping information further includes storing information on the number of valid pages of the open block in the memory.

13. A memory system, comprising:

a memory device for storing data; and

a controller for controlling the memory device,

wherein, when data is stored in all pages of an open block of the memory device, the controller determines a number valid pages in the open block and performs a garbage collection on the open block before closing the open block when it is determined that the number of the valid pages is less than or equal to a threshold value, and performs closing the open block and generating a physical address to logical address (P2L) map and a logical address to physical address (L2P) map for the closed block when the number of the valid pages is determined to exceed the threshold value, wherein the number ranges from zero to a number of total pages in the open block, and the P2L map and the L2P map are not generated for the open block on which the garbage collection is performed.

14. The memory system according to claim 13 , wherein the controller generates mapping information on the open block and manages the mapping information while storing data in the open block.

15. The memory system according to claim 14 , wherein the mapping information includes a physical address corresponding to the valid pages while not including a physical address corresponding to one or more invalid pages.

16. The memory system according to claim 14 , wherein the controller performs the garbage collection using the mapping information.

17. A memory system, comprising:

a memory device including a plurality of blocks, each for storing data, wherein each block is closed after a last page of that block is programmed with a data; and

a controller configured to control operations carried out in the memory device,

wherein, before a select block, of the plurality of blocks, is closed, the controller determines whether to perform a garbage collection on the select block based on a condition pertaining to a number of valid pages in the select block, and

wherein the controller performs the garbage collection on the select block when the condition is met, and

wherein the controller performs closing the open block and generating a physical address to logical address (P2L) map and a logical address to physical address (L2P) map for the closed block when the condition is not met, and the P2L map and the L2P map are not generated for the selected block on which the garbage collection is performed.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 7, 2024
From: SK HYNIX INC.
To: MIMIRIP LLC
Reel/Frame 067335/0246 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 5, 2021
From: PI, TUN-CHING
To: ADVANCED SEMICONDUCTOR ENGINEERING, INC.
Reel/Frame 055168/0891 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 24, 2018
From: NA, HYEONG-JU
To: SK HYNIX INC.
Reel/Frame 047301/0929 →