CPC G06F 3/0631 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0673 (2013.01)] | 18 Claims |
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.
|