US 12,189,980 B2
Storage device and operating method of storage controller
Eun Chu Oh, Suwon-si (KR); and Beomkyu Shin, Suwon-si (KR)
Assigned to SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed by SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed on Apr. 18, 2023, as Appl. No. 18/136,041.
Claims priority of application No. 10-2022-0110328 (KR), filed on Aug. 31, 2022.
Prior Publication US 2024/0069789 A1, Feb. 29, 2024
Int. Cl. G06F 12/00 (2006.01); G06F 3/06 (2006.01); G06F 12/02 (2006.01)
CPC G06F 3/0655 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0679 (2013.01); G06F 12/0253 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A storage device, comprising:
a non-volatile memory comprising a plurality of sub-blocks that are independently erasable; and
a storage controller comprising a processor configured to control a garbage collection operation on the plurality of sub-blocks based on a block size of sub-blocks of the plurality of sub-blocks,
wherein the plurality of sub-blocks comprises:
a plurality of first sub-blocks, each first sub-block of the plurality of first sub-blocks being coupled to a first word line group and having a first block size, the first word line group comprising a plurality of first word lines stacked in a vertical direction; and
a plurality of second sub-blocks, each second sub-block of the plurality of second sub-blocks being coupled to a second word line group and having a second block size, the second block size being different from the first block size, the second word line group comprising a plurality of second word lines stacked in the vertical direction, and wherein the processor is further configured to:
select a victim sub-block with a lowest ratio of a valid page count to an invalid page count from among the plurality of sub-blocks; and
copy a valid page of the victim sub-block to a target sub-block from among the plurality of sub-blocks,
wherein both the victim sub-block and the target sub-block are selected from the plurality of first sub-blocks or the plurality of second sub-blocks and have a same block size.