Internal memory operation management method and system

A management method and operating system technology, applied in the direction of resource allocation, multi-program device, etc., can solve the problems of threads waiting for each other, affecting the efficiency of program operation, and unable to make full use of multiple CPUs, etc., so as to improve operation efficiency, reduce lock and The effect of the unlock operation

Inactive Publication Date: 2009-07-29
ZTE CORP
View PDF0 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because in the case of multi-threaded operation, if each thread frequently applies for or releases memory blocks, frequent locking and unlocking operations are required, which will cause threads to wait for each other, thereby affecting the operating efficiency of the program , it cannot make full use of hardware conditions such as multiple CPUs

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
  • Internal memory operation management method and system
  • Internal memory operation management method and system
  • Internal memory operation management method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below.

[0036] The basic idea of ​​the present invention is: on the basis of the existing two-level memory management mode, add a first-level thread-level memory pool, when a business module needs to use a memory block, directly apply to the thread, and the thread calls its own thread-level memory pool as a business module Allocate memory blocks; since the thread only runs one business module at the same time, the business module does not need to lock when applying for a memory block from the thread, which can reduce the locking and unlocking operations when the business module applies for or releases the memory block, thereby improving the operation of the program efficiency. Wherein, the thread-level memory pool is memory maintained by threads.

[0037] The management method of the memory operation of the present ...

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 management method of memory operation, and a thread level memory pool maintained by a thread is arranged. The method further comprises the following steps: a business module applies to the thread when needing to use a memory block; the thread calculates the size of the allocated memory block, and searches whether the memory block with needed size exists in the self thread level memory pool; if exists, the thread allocates the memory block with corresponding size from the thread level memory pool to the business module and completes the memory application flow; otherwise, the thread is locked and applies for a certain amount of memory blocks with the needed size to a process; or the memory block with the size of one level bigger than the needed size is allocated to the business module and the memory application flow is completed. The invention further discloses a memory operation management system comprising a first-level memory management unit, a second-level memory management unit and a third-level memory management unit. With the invention, the running efficiency of programs can be improved.

Description

technical field [0001] The invention relates to the technical field of memory management, in particular to a memory operation management method and system. Background technique [0002] At present, in order to avoid the problem of memory fragmentation caused by directly using the operating system to allocate memory, the prior art generally adopts a secondary memory management mode to manage memory. The architecture of the two-level memory management mode is: the first level maintains the memory by the operating system, and the second level maintains the memory by the process. Among them, the process maintains the memory allocated to it by the operating system through the memory pool. Here, the memory maintained by the operating system is called the operating system level memory, and the memory maintained by the process is called the process level memory pool. figure 1 A schematic diagram of the organization of the existing memory pool, such as figure 1 As shown, the size ...

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): G06F9/50
Inventor 汪步江
Owner ZTE CORP
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