The invention relates to the technical field of computers, in particular to a memory
recovery method and a memory
recovery device. The method comprises the following steps of: when memory
recovery is required, determining an unprocessed partition of a memory node requiring memory recovery; acquiring a
linked list with the highest recovery weight in the partition, performing memory recovery on the
linked list and updating the recovery weight of the
linked list; judging whether the recovery weight corresponding to the linked
list with the highest recovery weight in the current partition is less than reference recovery weight to acquire a first judgment result; when the recovery weight is not less than the reference recovery weight, entering to acquire the linked
list with the highest recovery weight in the partition, and performing the memory recovery on the linked
list; and when the recovery weight is less than the reference recovery weight, entering one unprocessed partition of the memory node to be recovered until each partition of the memory node to be subjected to memory recovery is traversed. According to the method, the memory recovery efficiency is increased.