摘要 |
Provided are a memory management method and device. The method comprises: receiving, by a memory manager, a memory access request, the memory access request carrying a virtual address; if the memory manager does not find a page table entry corresponding to the virtual address in a translation lookaside buffer (TLB) and a memory, judging the missing page type of the virtual address; if the missing page type of the virtual address is a missing blank page, allocating, by the memory manager, a corresponding page to the virtual address, the missing blank page referring to the case where a corresponding page is not allocated to the virtual address; and updating, by the memory manager, the page table entry corresponding to the virtual address into the memory and the TLB. By judging the missing page type of the virtual address, when a blank page is missed, the memory manager does not generate missing page interrupt, but allocates the corresponding page to the virtual address, so that the memory management efficiency is improved by reducing the number of times of occurrence of missing page interrupt. |
申请人 |
HUAWEI TECHNOLOGIES CO., LTD |
发明人 |
LIU, YAO;HUANG, YONGBING;CHEN, MINGYU;CUI, ZEHAN;CHEN, LICHENG;RUAN, YUAN |