US 11,941,265 B2
Method, electronic equipment and computer program product for managing metadata storage unit
Xiongcheng Li, Beijing (CN); Xinlei Xu, Beijing (CN); Sihang Xia, Beijing (CN); Tianshu Sun, Beijing (CN); and Ping Ge, Beijing (CN)
Assigned to EMC IP Holding Company LLP, Hopkinton, MA (US)
Filed by EMC IP Holding Company LLC, Hopkinton, MA (US)
Filed on Sep. 1, 2021, as Appl. No. 17/464,128.
Claims priority of application No. 202110090582.7 (CN), filed on Jan. 22, 2021.
Prior Publication US 2022/0236898 A1, Jul. 28, 2022
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0631 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0673 (2013.01)] 18 Claims
OG exemplary drawing
 
11. An electronic device, comprising:
at least one processing unit; and
at least one memory that is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the device to perform actions comprising:
generating metadata corresponding to user data to be written to a user data storage space of a storage system, the metadata to be stored in a target number of metadata storage units;
in response to generating the metadata, receiving, from a client, a request for allocating the target number of metadata storage units;
in response to receiving, from the client, the request for allocating the target number of metadata storage units, determining a first number of available metadata storage units remaining in a metadata storage space of a storage system after the allocation is performed, the first number being not less than a reserved number; and
if the first number is not less than the reserved number, allocating, within the storage system, the target number of metadata storage units from the metadata storage space for the client to use, wherein the reserved number is associated with a usage condition of the metadata storage units in the storage system; and
adjusting the reserved number based on a number of user data storage units flushed to the user data storage space within a historical time period, the reserved number being a number of metadata storage units reserved in the metadata storage space.