发明名称 MEMORY MANAGEMENT METHOD AND DEVICE
摘要 A memory management method and a device, where the method includes: receiving a memory access request, where the memory access request carries a virtual address; determining a page fault type of the virtual address if finding, in a translation lookaside buffer TLB and a memory, no page table entry corresponding to the virtual address; allocating a corresponding page to the virtual address if the page fault type of the virtual address is a blank-page-caused page fault, where the blank-page-caused page fault means that no corresponding page is allocated to the virtual address; and updating the page table entry corresponding to the virtual address to the memory and the TLB. The memory manager does not generate a page fault when a blank-page-caused page fault occurs, but allocates a corresponding page to the virtual address. Therefore, a quantity of occurrences of the page fault is reduced, thereby improving memory management efficiency.
申请公布号 US2017075818(A1) 申请公布日期 2017.03.16
申请号 US201615343693 申请日期 2016.11.04
申请人 HUAWEI TECHNOLOGIES CO.,LTD. 发明人 Liu Yao;Huang Yongbing;Chen Mingyu;Cui Zehan;Chen Licheng;Ruan Yuan
分类号 G06F12/1027;G06F12/1009;G06F3/06 主分类号 G06F12/1027
代理机构 代理人
主权项 1. A memory management method performed by a memory manager in a device having a central processing unit (CPU) and memory, the method comprising: receiving a memory access request, wherein the memory access request carries a virtual address, and the virtual address is allocated by an operating system to a process when the operating system invokes the process; searching for the virtual address in a translation lookaside buffer (TLB) and a memory; determining a page fault type of the virtual address if the memory manager does not find, a page table entry corresponding to the virtual address; allocating a corresponding page to the virtual address if the page fault type of the virtual address is a blank-page-caused page fault, wherein the blank-page-caused page fault means that no corresponding page is allocated to the virtual address; and updating a page table entry corresponding to the virtual address to the memory and the TLB, wherein the page table entry comprises a mapping relationship between the virtual address and a physical address of the page.
地址 Shenzhen CN