Invention Grant
US09003120B2 Method and apparatus for querying for and traversing virtual memory area
有权
用于查询和遍历虚拟内存区域的方法和装置
- Patent Title: Method and apparatus for querying for and traversing virtual memory area
- Patent Title (中): 用于查询和遍历虚拟内存区域的方法和装置
-
Application No.: US14192094Application Date: 2014-02-27
-
Publication No.: US09003120B2Publication Date: 2015-04-07
- Inventor: Qiang Huang
- Applicant: Huawei Technologies Co., Ltd.
- Applicant Address: CN Shenzhen
- Assignee: Huawei Technologies Co., Ltd.
- Current Assignee: Huawei Technologies Co., Ltd.
- Current Assignee Address: CN Shenzhen
- Main IPC: G06F12/08
- IPC: G06F12/08 ; G06F12/10

Abstract:
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, and if the 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. 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.
Public/Granted literature
- US20140181401A1 METHOD AND APPARATUS FOR QUERYING FOR AND TRAVERSING VIRTUAL MEMORY AREA Public/Granted day:2014-06-26
Information query