Memory management method, memory management device and computer

A technology of memory management and memory, which is applied in the fields of computers, memory management methods, and memory management devices, can solve problems such as unbalanced access of concurrent operation units of memory, and achieve the effect of achieving balanced access and solving unreasonable allocation

Active Publication Date: 2018-03-09
HUAWEI TECH CO LTD +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Embodiments of the present invention provide a memory management method, a memory management device, and a computer to solve the problem of unbalanced access to memory concurrent operation units, to achieve uniform allocation of free physical memory pages, and to optimize computer system performance

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
  • Memory management method, memory management device and computer
  • Memory management method, memory management device and computer
  • Memory management method, memory management device and computer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] figure 1 It is a flow chart of Embodiment 1 of the memory management method of the present invention. The method is applicable to the management of the physical memory system when a program accesses the memory, and is especially applicable to the allocation of free physical memory pages. This method can be executed by a memory management device, such as figure 1 As shown, the method includes the following steps:

[0051] S101. When a physical memory page allocation request is obtained, select a memory concurrent operation unit with a low access rate as a memory concurrent operation unit to be allocated according to historical access information of each memory concurrent operation unit.

[0052] When the program applies for memory, but there is no physical memory page corresponding to its virtual memory page, a page fault interrupt will be generated, which is equivalent to a physical memory page allocation request. The memory concurrent operation unit is a physical uni...

Embodiment 2

[0057] figure 2 It is a flow chart of Embodiment 2 of the memory management method of the present invention, and this embodiment further optimizes Embodiment 1. Such as figure 2 As shown, the method of this embodiment may include:

[0058] S201. Obtain access information of each memory concurrent operation unit.

[0059] S202. Update historical access information of each memory concurrent operation unit according to the access information.

[0060] The memory management device continuously updates and records the historical access information. When the new access information of each memory concurrent operation unit is obtained, it can delete the earliest access information of each memory concurrent operation unit in the historical access information when updating, so as to ensure the history The amount of access information is fixed, improving the referenceability of historical access information.

[0061] S203. When a physical memory page allocation request is obtained,...

Embodiment 3

[0070] image 3 It is a flow chart of Embodiment 3 of the memory management method of the present invention. Such as image 3 As shown, this embodiment provides a complete preferred embodiment based on the foregoing embodiments, and the method may include:

[0071] S301. Obtain access information of each memory concurrent operation unit.

[0072] S302. Update historical access information of each memory concurrent operation unit according to the access information.

[0073] S303. When the allocation request of the physical memory page is obtained, according to the historical access information of each memory concurrent operation unit, select the memory concurrent operation unit with a low access rate as the memory concurrent operation unit to be allocated.

[0074] S304. Allocate a free physical memory page from the to-be-allocated memory concurrent operation unit.

[0075] S305 , judging whether the current scheduling cycle is over, if yes, return to S301 , if not, return...

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

Embodiments of the present invention provide a memory management method, a memory management device, and a computer. The memory management method of the present invention includes: when a physical memory page allocation request is obtained, according to historical access information of each memory concurrent operation unit, selecting a memory concurrent operation unit with a low access rate as the memory concurrent operation unit to be allocated; Allocate free physical memory pages in the memory concurrent operation unit to be allocated. The embodiment of the present invention improves the balance of memory concurrent operation unit access and achieves the effect of optimizing computer system performance.

Description

technical field [0001] The embodiments of the present invention relate to memory data processing technology, and in particular to a memory management method, a memory management device and a computer. Background technique [0002] With the development of computer technology, memory management becomes more and more important, optimizing memory management methods can greatly improve the system performance of the computer. [0003] The memory address is divided into physical address and virtual address. The program sees the virtual memory space and uses the virtual address when accessing, while the memory system sees the physical address space and uses the physical address when accessing. The operating system manages memory in units of pages, and maintains the mapping from virtual memory pages to physical memory pages. When a program applies for memory, the operating system first allocates a series of virtual memory pages to it, but it is not mapped to any physical memory page...

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/02
Inventor 崔泽汉陈明宇陈荔城黄永兵
Owner HUAWEI TECH 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