Internal memory reclaiming method and apparatus, device, medium, and product
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsKairui Song, Kaixu Xia, Jingxiang Zeng, Yushan Zhou
Life of this patent
Estimating the term…
Abstract
An internal memory reclaiming method, performed by a computer system that includes at least two levels of SWAP devices, comprising: monitoring storage occupancy of the at least two levels of SWAP devices, wherein the at least two levels of SWAP devices comprise an upper-level SWAP device and a lower-level SWAP device; determining, when storage occupancy of the upper-level SWAP device reaches a water mark threshold, least recently used to-be-migrated data stored in the upper-level SWAP device; and migrating the to-be-migrated data from the upper-level SWAP device to the lower-level SWAP device.
Claims19
An internal memory reclaiming method, performed by a computer system that includes at least two levels of SWAP devices, the method comprising:
- monitoring storage occupancy of the at least two levels of SWAP devices, the at least two levels of SWAP devices comprising an upper-level SWAP device and a lower-level SWAP device;
- determining, in a case that storage occupancy of the upper-level SWAP device reaches a water mark threshold, least recently used to-be-migrated data stored in the upper-level SWAP device;
- and
- migrating the to-be-migrated data from the upper-level SWAP device to the lower-level SWAP device.
An internal memory reclaiming apparatus, comprising:
- at least one memory configured to store program code;
- and
- at least one processor configured to read the program code and operate as instructed by the program code, the program code comprising:
- monitoring code configured to cause at least one of the at least one processor to monitor storage occupancy of the at least two levels of SWAP devices, wherein the at least two levels of SWAP devices comprise an upper-level SWAP device and a lower-level SWAP device;
- determining code configured to cause at least one of the at least one processor to determine, in a case that storage occupancy of the upper-level SWAP device reaches a water mark threshold, least recently used to-be-migrated data stored in the upper-level SWAP device;
- and
- migrating code configured to cause at least one of the at least one processor to migrate the to-be-migrated data from the upper-level SWAP device to the lower-level SWAP device.
A non-transitory computer-readable storage medium, storing computer code which, when executed by at least one processor, causes the at least one processor to at least:
- monitor storage occupancy of the at least two levels of SWAP devices, wherein the at least two levels of SWAP devices comprise an upper-level SWAP device and a lower-level SWAP device;
- determine, when storage occupancy of the upper-level SWAP device reaches a water mark threshold, least recently used to-be-migrated data stored in the upper-level SWAP device;
- and
- migrate the to-be-migrated data from the upper-level SWAP device to the lower-level SWAP device.
Dependencies are inferred from the claim text.