Memory management method and device for multiprocess system

A memory management, multi-process technology, applied in the direction of program control device, memory address/allocation/relocation, etc., can solve the problems of incapable of exhaustive memory block specifications, inability to use memory blocks, too many memory blocks, etc., so as to improve memory The effect of allocation success rate, improving memory utilization, and avoiding memory fragmentation

Active Publication Date: 2013-12-04
DATANG MOBILE COMM EQUIP CO LTD
View PDF6 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] (1) Each memory management module will create a corresponding memory pool according to the specifications of the initially configured memory blocks and the number of memory blocks. However, due to the limited overall memory of the system, in each memory pool, the specifications of the memory blocks Cannot be exhaustive, then, in a memory pool, if the specification of a memory block is not configured, the software module will fail to apply for memory
[0011] (2) Since the system memory is allocated among multiple memory pools, the specification and quantity of memory blocks allocated in each memory pool are limited, and when the number of memory blocks in the memory pool is insufficient, it is necessary to continue Applying for memory in the operating system, and calling the corresponding function to apply for memory from the operating system, this process is more complicated and time-consuming
[0014] (5) After the memory block requested by a certain process is released, if the released memory block is not used for a long time in the free list of this process, then other processes cannot use this memory block, which will cause a waste of free memory blocks
[0015] (6) After a process fails and restarts, if you apply for a memory block according to the memory configuration information, other processes may apply for too many memory blocks, resulting in the failure of this process to apply for a memory block

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 and device for multiprocess system
  • Memory management method and device for multiprocess system
  • Memory management method and device for multiprocess system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0076] Aiming at the defects of the memory pool described in the background technology, in the embodiment of the present invention, a memory management method based on a multi-process system is proposed. memory management as a unit), each process uniformly applies for and releases memory through this memory management method, so as to achieve the purpose of efficient use of memory.

[0077] Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0078] refer to image 3 As shown, in the embodiment of the present invention, the detailed flow of memory management performed by the memory management device is as follows:

[0079] Step 300: In the initial configuration stage, the memory management device creates a shared memory pool, and performs memory block planning in the shared memory pool according to preset memory configuration information.

[0080] In this embodiment, when step 300 is executed, the m...

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 a memory management method and device for a multiprocess system. The memory management method and device for the multiprocess system are used for optimizing a memory management mode of the system and improving the memory utilization rate and the success rate of memory distribution. The memory management method for the multiprocess system comprises the steps that integrated planning of memory blocks is carried out by the memory management device by means of a shared memory pool, application and release of the memory blocks in the memory pool by multiple processes are distinguished according to identification information and mutually exclusive semaphore of the processes, the multiple processes can have access to memory blocks with the same specification without mutual interference, therefore, optimized memory management can be achieved, resource consumption caused by repeated application to an operation system due to the fact that the memory is not sufficient is avoided, a large amount of memory fragmentation is prevented from being generated in the operation system, and the memory utilization rate and the success rate of memory distribution of the system are effectively improved.

Description

technical field [0001] The invention relates to memory management technology, in particular to a memory management method and device in a multi-process system. Background technique [0002] In an operating system, when running a software product, operations on memory are usually involved. In the early operating system, the software module directly applied for and released the memory of the operating system, so long-term operation would cause memory fragmentation in the operating system, resulting in subsequent memory application failure. In order to avoid this situation, a memory management module is added. The memory management module encapsulates a layer of memory management on top of the operating system. When the memory management module is initialized, it applies for memory from the operating system to create a memory pool according to the configured memory block specifications and the number of memory blocks ( i.e. a managed collection of memory blocks). When the sof...

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 Applications(China)
IPC IPC(8): G06F12/02G06F9/44
Inventor 杨焕军王雪平
Owner DATANG MOBILE COMM EQUIP 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