Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Querying and traversal method and device for virtual memory area

A technology of virtual memory and query method, applied in the field of communication, can solve problems such as low query efficiency, and achieve the effect of improving cache hit rate and query efficiency

Active Publication Date: 2012-03-07
HUAWEI TECH CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Since the query function find_vma must start from the root node to query vma by traversing when it does not hit the cache, the query efficiency of the existing technology is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Querying and traversal method and device for virtual memory area
  • Querying and traversal method and device for virtual memory area
  • Querying and traversal method and device for virtual memory area

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0035] In the prior art, a red-black tree query method is usually used to find the vma corresponding to a specified address. The following takes the query of the vma corresponding to address 0 as an example to specifically describe a method for querying a vma described in the prior art, which specifically includes:

[0036] Confirm ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a querying and traversal method and a device for a virtual memory area, wherein, the method comprises the steps of determining and querying whether the virtual memory area vma corresponding to an address is in an adjacent range of a buffer vma which comprises at least one address range front adjacent to the vma and at least one address range rear adjacent to the vma of the buffer vma; if yes, querying the vma according to clues on nodes of a clue red black tree, wherein, the nodes are nodes to which the buffer vma corresponds, and the clues are pointers pointing the front driving nodes and back driving nodes of the nodes on the clue red black tree. The embodiment of the invention also discloses a traversal method of the virtual memory area, because the confirmations for the adjacent ranges of the buffer vma can be always satisfied, the hit rate for accessing a buffer is improved, and the realized whole vma traversal time complex rate is O(n), thereby improving the querying efficiency of the vma.

Description

technical field [0001] Embodiments of the present invention relate to communication technologies, and in particular, to a method and device for querying and traversing a virtual memory area. Background technique [0002] At present, Linux technology usually uses a red-black tree form to query a virtual memory area (virtual memory area, hereinafter referred to as: vma). [0003] Specifically, for the process of querying the nth vma, the query function find_vma obtains the memory description information (mm) and reads the semaphore, starting from the address m, to confirm whether the vma corresponding to the address m is within the address range of the cache vma, if so , that is, the query hits the cache this time, the vma corresponding to the address m is queried by accessing the cache vma, and the read semaphore is released. If not, the red-black tree is traversed from the root node to query the vma corresponding to the address m. and release the read semaphore. [0004] W...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F12/08G06F12/0802G06F12/1036G06F12/109
CPCG06F12/1036G06F12/109G06F2212/657G06F2212/1021G06F12/0802
Inventor 黄强
Owner HUAWEI TECH CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More