MEMORY MANAGEMENT METHOD AND APPARATUS
摘要:
A memory management method and apparatus are disclosed, to resolve an existing problem that a memory reclaiming rate is relatively low, severely affecting memory allocation performance in a scenario in which system memory is insufficient. The method includes: determining a memory page that needs to be swapped out of a memory (S21); for each memory page that needs to be swapped out, generating, based on the memory page, a work task used to reclaim the memory page (S22); and determining a dedicated worker thread in an idle state, and allocating each work task to the dedicated worker thread in an idle state for execution (S23). In this way, a plurality of CPUs process memory reclaiming in parallel, thereby accelerating memory reclaiming, and improving user experience.
公开/授权文献
信息查询
0/0