Invention Application
- Patent Title: Memory Reclamation Method and Apparatus
- Patent Title (中): 记忆回收方法和装置
-
Application No.: US14798094Application Date: 2015-07-13
-
Publication No.: US20150317246A1Publication Date: 2015-11-05
- Inventor: Fei Xia , Dejun Jiang , Wei Wei , Jin Xiong
- Applicant: Huawei Technologies Co., Ltd.
- Priority: CN201310057351.1 20130222
- Main IPC: G06F12/02
- IPC: G06F12/02

Abstract:
A memory reclamation method and apparatus are disclosed. The memory reclamation method is performed by a processor for reclaiming memory pages of a non-volatile memory (NVM) in a terminal device. In the method, the processor receives a memory reclamation request message including a reclamation identifier which is used to indicate a quantity of memory pages requested to be reclaimed. Then, the processor reclaims inactive memory pages of the NVM according to the reclamation identifier in ascending order of the write times of inactive memory pages of the NVM. According to the memory reclamation method, a page having a relatively small quantity of inactive memory page write times of the NVM is reclaimed first, and a page having a relatively large quantity of inactive memory page write times of the NVM is reclaimed later.
Information query