Memory reclaiming method and electronic device
AssigneeHonor Device Co., Ltd.
InventorKunli Lin
Life of this patent
Estimating the term…
Loading patent…
AssigneeHonor Device Co., Ltd.
InventorKunli Lin
Estimating the term…
This application provides a memory reclaiming method. The solutions improve memory reclaiming efficiency of an electronic device by enabling a memory control subsystem mechanism. The specific solutions are as follows: A first memory size corresponding to a first application that is run in a background is determined, where the first memory size indicates a size of a memory to be reclaimed from a system memory occupied by the first application, the first memory size decreases as an application level of the first application increases, and the application level indicates activeness of the application during running in the background. The system memory occupied by the first application is reclaimed based on the first memory size.
A memory reclaiming method, applied to an electronic device, wherein each application in the electronic device corresponds to a memory control subsystem memcg, and the method comprises:
An electronic device, wherein each application in the electronic device corresponds to a memory control subsystem memcg, the electronic device comprises:
A non-transitory computer-readable storage medium, comprising a computer program or instructions that, when executed on a computer, cause the computer to perform:
Dependencies are inferred from the claim text.