Address allocation method and device

An allocation method and address technology, which can be used in instrumentation, computing, electrical digital data processing, etc., and can solve the problems of low expansion flexibility and single type of MMU page granularity.

Active Publication Date: 2019-03-26
HONOR DEVICE CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem that the page granularity of the MMU is single and the expansion flexibility is low, the present invention provides an address allocation method and device

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
  • Address allocation method and device
  • Address allocation method and device
  • Address allocation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0089] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0090] The embodiment of the present invention provides a method for address allocation, which is used for MMU, see figure 1 , the method includes:

[0091] Step 101, dividing the physical memory into n physical intervals with equal capacity.

[0092] Specifically, different intervals in the n physical intervals with equal capacity correspond to different page granularities, and n is an integer greater than or equal to 2.

[0093] Step 102: Divide the virtual address space into n virtual intervals with equal capacity, and the n virtual intervals are in one-to-one correspondence with the n physical intervals.

[0094] Step 103, assign a virtual address to the application program in the virtual address space.

[0095] Step 104, alloca...

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 invention discloses an address distribution method and device, and belongs to the field of data storage. The method comprises the following steps: dividing a physical memory into n physical intervals with equal capacity, wherein page particle sizes corresponding to different intervals in the n physical intervals with the equal capacity are different, and n is an integer which is greater than or equal to 2; dividing a virtual address space into n virtual intervals with the equal capacity, wherein the n virtual intervals correspond to the n physical intervals one by one; distributing a virtual address for an application program in the virtual address space; distributing the physical address corresponding to the virtual address in the physical memory; and according to the distributed virtual address and physical address, establishing a mapping relationship page table of the virtual address and the physical address. The problems of single page particle size and low expansion flexibility of MMU (Memory Management Unit) are solved, the MMU simultaneously supports multiple page particle sizes, and expansion flexibility is improved. The address distribution method and device is used for data storage.

Description

technical field [0001] The invention relates to the field of data storage, in particular to an address allocation method and device. Background technique [0002] MMU (Memory Management Unit, memory management unit) is a kind of computer hardware responsible for processing the memory access request of CPU (Central Processing Unit, central processing unit), which can control the conversion of CPU memory access request data from virtual address to physical address. The MMU manages virtual memory in the form of pages. The page table is a directory file of physical addresses. The MMU performs conversion between virtual addresses and physical addresses by looking up the page table. Granularity refers to the level of granularity or comprehensiveness of data stored in physical memory. [0003] Among Intel (Intel) CPUs, the i386 architecture can support 4K and 4M granular pages, and the ia64 architecture can support 4K, 8K, 64K, 256K, 1M, 4M, 16M, and 256M granular pages. When con...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/1027
Inventor 徐君朱冠宇罗彩珠
Owner HONOR DEVICE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products