Fixed EMS memory management method

A management method and memory technology, applied in the field of memory management, can solve problems such as crashes and the system does not have enough memory, and achieve the effects of avoiding system exceptions, improving memory allocation efficiency, and avoiding memory application failures

Pending Publication Date: 2008-03-26
ZTE CORP
View PDF0 Cites 30 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The size of each memory pool is estimated based on experience. Once the estimation is wrong, the system may crash due to insufficient memory;

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
  • Fixed EMS memory management method
  • Fixed EMS memory management method
  • Fixed EMS memory management method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The present invention is described in detail through the following steps.

[0027] Step 1: Apply for a large memory area to the operating system in advance;

[0028] Step 2: Memory initialization, as shown in Figure 6, namely:

[0029] Divide the applied large memory area into memory pools of different sizes, and the same memory pool contains multiple memory blocks of the same size (the system first judges whether there is optimal allocation plan data, and if so, directly allocates memory according to the optimal plan Pools and memory blocks are enough; if not, allocate memory pools and memory blocks according to the default configuration allocation scheme, that is, divide them according to the aforementioned method); initialize the description information of each memory pool; the relationship between memory pool description information and memory pools is shown in the figure As shown in 2, the memory pool information in the memory pool 1-1 includes: the size of the me...

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 fixing memory, which includes the processes as follows: step1, applies to operating system for a memory area in advance, and initializes memory; step2, according to the size of memory block, finds the corresponding memory pool, and applies for free memory block from the memory pool; if there isn't free memory block, finds whether there is free memory block from superior memory pool until finding a free memory block from the superior memory pool; step3, the finding memory block is broke down into new memory pools, and new generated memory pool information is recoded in list of memory pool, and modifies descriptive information of memory pool; modifies descriptive information of memory pool providing new memory pool; step4, distributes a free memory block form the new memory pool, and releases the memory after finishing using memory. The invention achieves dynamic allocation of memory, and avoids causing to apply memory for failure and abnormal system.

Description

technical field [0001] The invention relates to a memory management method in an embedded real-time operating system in the computer field. Background technique [0002] The memory management in the embedded real-time operating system is an important factor to ensure the real-time performance of the application. In order to improve real-time performance and avoid memory fragmentation, the memory management method of fixed memory blocks is often used. As shown in Figure 1, first apply for a large memory area from the operating system, and then divide the memory area into several sub-areas (memory pool 1, memory pool 2, memory pool 3, memory pool 4, and memory pool 5). A memory pool consists of several memory blocks of the same size. The application and release of memory is realized through system calls. [0003] Therefore, the prior art memory pool allocation method just has the following deficiencies: [0004] 1. The size of each memory pool is estimated based on experie...

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/06
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