Memory management method of embedded system

An embedded system and memory management technology, applied in the field of memory management of embedded systems, can solve problems such as a large number of memory fragments, complex memory requirements, and reduced allocation efficiency, and achieve the effects of avoiding memory leakage, high operating efficiency, and stable operation.

Active Publication Date: 2011-02-16
TSINGHUA UNIV
View PDF3 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in general applications, the memory requirements of the program are very complex, and the timely release of memory is a big problem
Existing memory pool management methods and memory garbage collection mechanisms can partially solve this problem, but after a long period of use, there will generally be a large number of memory fragments and negative effects such as reduced allocation efficiency

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 of embedded system
  • Memory management method of embedded system
  • Memory management method of embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] The present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.

[0015] Such as figure 1 , figure 2 As shown, the memory management method of the present invention adopts the flipped thread heap management method, which includes the following steps:

[0016] 1) Open up a piece of physical memory 1 as a thread heap in the thread root function of the embedded system, and use the flip-type thread heap management system 2 to manage the physical memory. All dynamic memory in this thread will be stored in this physical memory 1 The thread heap free memory 3 is allocated in the thread heap free memory 3. The thread heap management system 2 can allocate memory space for the data requirement 4 from the first and last ends of the thread heap free memory 3. The thread heap free memory 3 has two states: normal state N and flip state F;

[0017] 2) Divide all data requirements 4 into two types: temporary space requirements a...

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 relates to a memory management method of an embedded system, which comprises the steps of: (1), opening up a physical memory, managing the physical memory by using a turnover thread heap management system, and allocating a memory space for data requirement from the tail end and the head end of a thread heap free memory by the thread heap management system, wherein the thread heap free memory has a normal state N and a turnover state F; (2), dividing all data requirements into a temporary space requirement and an output space requirement, and allocating one end of the thread heap free memory to be a temporary end or an output end by a type thread heap management system according to the data requirements; (3), allocating a head end memory to data required in a temporary space by the thread heap management system; and (4), when a superior function calls a subordinate function, controlling the thread heap free memory to turn over by the thread heap management system, when exiting the subordinate function, releasing a temporary space at the current temporary end, preserving the output space of the output end and merging with the temporary space of the temporary end of the superior function. The invention can realize timely release of the memory, has high operating efficiency, does not generate memory fragments, and can operate stably and efficiently for a long time.

Description

technical field [0001] The invention relates to an embedded system, in particular to a memory management method of the embedded system. Background technique [0002] The application fields of embedded systems are very extensive, and the functions of the application programs are also very rich. However, due to its very limited computing power and storage capacity, applications running on embedded systems must have efficient and reliable memory management methods in order to run stably for a long time. The operating system used on embedded devices can also provide a basic memory management mechanism, but for applications that need to run stably for a long time and repeatedly apply for memory space, the basic memory management mechanism of the operating system cannot meet the requirements . [0003] Theoretically speaking, in the process of memory allocation, if sequential use and reverse release can be realized, the memory can be released in time after use without memory fra...

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/02
Inventor 连小珉杨殿阁王钊李挺张照生郑四发李克强罗禹贡王建强
Owner TSINGHUA UNIV
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