Patent ID: 11886333
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 11:
12. A system comprising:
a processor configured to send a trim instruction comprising memory logical address information of one or more to-be-reclaimed memory blocks;
a memory controller coupled to the processor and configured to:
receive the trim instruction;
send an unmap command to reclaim the one or more to-be-reclaimed memory blocks in a non-volatile memory, wherein the unmap command comprises the memory logical address information of the one or more to-be-reclaimed memory blocks; and
send an address extension command that comprises length information indicating a quantity of the one or more to-be-reclaimed memory blocks; and

a medium controller coupled to the memory controller and configured to:
receive the unmap command from the memory controller and using a non-volatile dual in-line memory module (NVDIMM) protocol (NVDIMM-P);
receive, from the memory controller and subsequent to receiving the unmap command, an address extension command that comprises length information indicating a quantity of the one or more to-be-reclaimed memory blocks; and
reclaim, in response to the unmap command and the address extension command, the one or more to-be-reclaimed memory blocks from the non-volatile memory based on the memory logical address information and length information to obtain one or more reclaimed memory blocks,
wherein the non-volatile memory is coupled to the medium controller, and wherein one or more of the reclaimed memory blocks are available memory blocks.