Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Internal memory managing method and device of embedded system

An embedded system and memory management technology, which is applied in the field of memory management methods and devices of embedded systems, can solve problems such as insufficiency, memory leakage and memory, and achieve the effect of avoiding memory fragmentation and speeding up

Inactive Publication Date: 2010-06-16
ZTE CORP
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The problem to be solved by the present invention is to provide a memory management method and device for an embedded system, so as to solve the problem of memory fragmentation in the embedded system, ensure the requirements of the application program, and avoid insufficient memory caused by the memory leak of the application program

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 managing method and device of embedded system
  • Internal memory managing method and device of embedded system
  • Internal memory managing method and device of embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The technical features of the present invention will be described in detail below in conjunction with the embodiments and the accompanying drawings.

[0029] In the present invention, in order to better solve the problem of memory fragmentation, meet the memory requirements of application programs, and avoid insufficient memory caused by memory leakage, the present invention proposes a new memory management method. Delineate the entire heap memory of the system into a small number of large memory areas (A, B...Z) of different sizes, apply for a large memory area before the application actually runs, and then use the heap method to apply and release For each small block of memory required by the application, the adjacent free memory is merged and sorted during the release process, and the entire large memory area is released when the application exits.

[0030] see figure 1 Shown is a schematic diagram of the embedded system structure of the present invention.

[0031]...

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 a device for an embedded type system. The method of the invention comprises the following steps: firstly, a memory is divided into a plurality oflarge memory zones with unequal memory capacities; secondly, when an application program begins to run, a large memory zone which is matched with a maximum memory requirement value of the applicationprogram is allocated for the application program; thirdly, a small memory is allocated for the application program in the matched large memory zone by utilization of heap means; fourthly, when the small memory is released by the application program by utilization of heap means, the small memory is combined with adjacent and free small memories; when the application program stops running, the matched large memory zone is released. The invention avoids a large amount of memory fragmentations, quickens speed of memory fragmentation defrag and avoids the necessity in a memory pool means of calculation of the size and number of each memory which needs for dynamic allocation of each application program.

Description

technical field [0001] The present invention relates to an embedded system, in particular to a memory management method and device of the embedded system. Background technique [0002] Memory management in embedded systems is a very important part. There are currently two main ways of memory management. [0003] 1. Heap method: [0004] The basic mechanism of its implementation is to allocate a piece of memory on the continuous system heap space according to the actual size of the application, and the allocated memory is managed by a linked list. The advantage is that it does not waste memory. [0005] Because it is allocated on contiguous space, a certain degree of fragmentation can be merged. The disadvantage is that after running for a period of time, a large number of memory fragments will be generated due to unavoidable memory leaks and other applications occupying memory in different locations, resulting in sufficient free memory space, but the memory of the corres...

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/06
Inventor 童晓演殷飞惠毅薛晨曦
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products