发明名称 METHOD AND APPARATUS FOR QUERYING AND TRAVERSING VIRTUAL MEMORY AREA
摘要 Embodiments of the present invention disclose a method and an apparatuses for querying for and traversing a virtual memory area. The method includes: determining whether a virtual memory area vma corresponding to a query address is in an adjacent range of a cached vma, where the adjacent range of the cached vma includes an address range of at least one adjacent vma before the cached vma and an address range of at least one adjacent vma after the cached vma; and if the virtual memory area vma corresponding to the query address is in the adjacent range of the cached vma, querying for the vma by using a thread on a node of a threaded red-black tree, where the node is a node corresponding to the cached vma, and the thread is a pointer pointing to a predecessor node and a successor node of each node on the threaded red-black tree. The embodiments of the present invention further disclose a method for traversing a virtual memory area. Since an adjacent range of the cached vma can always be determined, the hit rate of accessing the cache is improved, and the time complexity of implementing the whole vma traversal is O(n), thereby improving vma query efficiency.
申请公布号 EP2743833(A1) 申请公布日期 2014.06.18
申请号 EP20110864764 申请日期 2011.09.02
申请人 HUAWEI TECHNOLOGIES CO., LTD. 发明人 HUANG, QIANG
分类号 G06F12/08;G06F12/10;G06F17/30 主分类号 G06F12/08
代理机构 代理人
主权项
地址