US 12,287,732 B2
Method and device for storing data
Lei Geng, Shaanxi Province (CN); Yanlong Yang, Shaanxi Province (CN); and Yuqi Zhang, Shaanxi Province (CN)
Assigned to SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed by SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed on Jul. 19, 2023, as Appl. No. 18/223,900.
Claims priority of application No. 202210893219.3 (CN), filed on Jul. 27, 2022.
Prior Publication US 2024/0037027 A1, Feb. 1, 2024
Int. Cl. G06F 12/00 (2006.01); G06F 12/02 (2006.01)
CPC G06F 12/0253 (2013.01) [G06F 12/0246 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A method of storing data, the method comprising:
obtaining a score for each of a plurality of blocks based on a block attribute and an expected expiration time of a respective block among the plurality of blocks;
selecting, based on a request for garbage collection, at least one first block from a plurality of blocks in a storage as an evicting block or a target block based on the score of each of the plurality of blocks, the expected expiration time of each of the plurality of blocks being obtained based on an expected expiration time of valid data of each of the plurality of blocks; and
performing garbage collection based on the selected at least one first block.