| CPC G06F 12/0253 (2013.01) [G06F 16/125 (2019.01); G06F 16/2246 (2019.01)] | 20 Claims |

|
1. A method of storing a new data file that is assigned to a level of a Log-Structured Merge Tree (LSM-Tree), the method comprising:
determining an expected expiration time of the new data file based on a level of the LSM-Tree to which the new data file is assigned and lifetime information of stored data files assigned to a same level or an immediately adjacent level of the LSM-Tree to which the new data file is assigned; and
allocating, to the new data file, a block set corresponding to the expected expiration time among a plurality of non-volatile memory blocks in a storage device,
wherein allocating the block set to the new data file comprises determining a set of expected expiration time distances and allocating the block set to the new data file based on the set of the expected expiration time distances.
|