US 11,698,855 B2
Method, memory controller and storage device to perform garbage collection based on fragmentation ratio of blocks
Dongeun Shin, Seoul (KR); Jonghwa Kim, Suwon-si (KR); and Alain Tran, Hwaseong-si (KR)
Assigned to SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed by SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed on Nov. 17, 2021, as Appl. No. 17/455,232.
Claims priority of application No. 10-2020-0185208 (KR), filed on Dec. 28, 2020.
Prior Publication US 2022/0206938 A1, Jun. 30, 2022
Int. Cl. G06F 12/02 (2006.01)
CPC G06F 12/0246 (2013.01) [G06F 2212/7205 (2013.01)] 20 Claims
OG exemplary drawing
 
9. An operating method of a storage device including a memory device including memory blocks each for storing a plurality of pages, and a memory controller configured to control the memory device, the operating method comprises:
executing, by the memory controller, operations comprising:
receiving data and a write request from a host;
transferring a program command to the memory device;
writing, through use of the memory device, the data in a memory space and generating valid page information representing whether a page corresponding to the memory space with the data written therein is valid;
further executing, by the memory controller, operations comprising: updating a valid page bitmap representing validity of the plurality of pages based on valid page information received from the memory device; calculating, based on the valid page bitmap, a fragmentation ratio representing a segmentation degree between at least one valid page and at least one invalid page of a memory block among the memory blocks; and
performing garbage collection based on the fragmentation ratio.