Research of Dynamic Memory Management Method on Real-Time Embedded System

Author
LiZhiJun
Advisor
WangZuo
School
Chongqing University
Major
Computer Software and Theory
Classification
TP316.2 Real-time operating system
Degree
Master's thesis
Year
2007
Downloads
349
Citations
9

Request the full text

Abstract

With the development of information technology and internet, and the enhancement of intelligence for electronic product, embedded system was more and more popular. The safety and reliability of embedded system were crucial in key field such as spaceflight, industry control and medicine. In order to improve the safety and reliability of data storage in real-time embedded system, research on memory management for embedded system was particularly significant.This thesis proposes a new memory managing arithmetic ---dynamic memory managing adaptive arithmetic,the emphasis is how to reduce memory fragment ,reduce the time of releasing memory, and improve using rate ,and also bring forward new idea and realization. Using different managing methods for small memory block and big memory block in dynamic memory managing adaptive arithmetic, using fixed-size memory allocation method for small memory block can reduce memory fragment effectively, and using actual size memory allocation method for big memory block can raise the utilization rate of memory; the introduction of physical block list make up for the bug of traditional first-fit arithmetic about long time of memory release, and save the time of releasing allocated memory and merging border memory; calculating field record the requested frequency of this size memory ,make memory adjustment get foundation and embody the adaptability sufficiently; The principal makes the remaining memory blocks after Segmentation have precedence over other big memory blocks to be allocated, in this way ,the problem is attributed to a part, and accelerating the speed and reducing internal fragment.Aiming at problem of dynamic memory leak, this thesis proposes a new memory detection method based on dynamic memory managing adaptive arithmetic, and this method can help us focus the exact position where happened memory leak or memory repeating release. This method based on the dynamic memory tracking, because we have recorded all the dynamic memory operation (allocation and release) into a log file, depending on the log we can get all the available information such as the file name, the line number, the operation time and so on, about whether happening memory leak, repeating release or not, and the exact position if memory leak or repeating release have happened.Finally, several simulation tests testify the feasibility and advantage of dynamic memory managing adaptive arithmetic and memory leak detecting method.

Table of contents

Chinese Abstract 3-4 English summary 4-8 1 Introduction 8-18 the 1.1 embedded real-time operating system 8-14 1.1.1 real-time operating system definition and classification 8-9 1.1.2 RTOS development history 9-11 1.1.3 research status 11-13 1.1.4 research direction at home and abroad 13-14 1.2 This study purpose and content 14-15 1.2.1 Objective 14 1.2.2 research 14-15 1.3 subject of academic and practical significance 15-16 1.4 papers organized by 16-17 1.5 Summary 17-18 2 embedded real-time system memory management 18-24 the 2.1 embedded real-time system memory management features 18-19 the 2.1.1 embedded systems memory management features 18 2.1.2 real-time system for memory management requirements 18-19 2.2 memory allocation scheme 19 2.3 real-time system memory mode 19-20 2.4 memory fragmentation classification 20-21 2.5 reduce memory fragmentation 21-22 2.6 Summary 22-24 3 adaptive algorithm description and analysis of dynamic memory management 24-39 the the 3.1 several commonly RTOS memory allocation algorithm description and analysis of 24-26 3.1.1 μC / OS-II memory management 24-25 3.1.2 VxWorks memory management 25-26 3.2 on the existing two commonly used memory allocation algorithms simple description and analysis 26-28 3.2.1 first to matching algorithm 26-28 3.2.2 partner (Buddy) algorithm 28 3.3 introduced a new data structure - physical linked list 28-30 a 3.4 chunk Memory requests solutions 30-31 3.5 put forward their own dynamic memory management algorithm --- the the adaptive dynamic memory management algorithm 31-35 3.5.1 Adaptive dynamic memory management algorithm description 31-34 3.5.2 experimental data analysis 34-35 the logging 3.6 Adaptive Dynamic memory management algorithm and analysis 35-36 3.7 the adaptive dynamic memory management algorithm analysis and explanation 36-38 3.7.1 Adaptive dynamic memory management algorithm analysis 36-37 Some explanations 3.7.2 the adaptive dynamic memory management algorithms 37-38 3.8 Summary 38-39 4 based on the adaptive dynamic memory management algorithm dynamic memory leak detection 39-53 4.1 Overview 39-46 4.1.1 dynamic memory management model 39-40 4.1.2 memory leak definition and classification 40 4.1.3 C language pointers and memory leaks 40-45 4.1.4 memory leak detection 45-46 4.2 dynamic memory leak detection method based on the adaptive dynamic memory management algorithm 46-49 4.2.1 dynamic memory tracking 46-48 4.2.2 offline log analysis 48-49 4.3 dynamic memory leak detection implementations 49-51 4.4 Summary 51-53 5 Summary and Outlook 53-55 5.1 thesis work 53 5.2 Future Work Looking 53-55 Acknowledgements 55-56 the References 56-58 appendix of papers published during the master's degree directory 58

Related dissertations

  1. Research on the Dynamic Security Management Mechanism for Real-time Embedded System
  2. Research on Unit Test Methods of Special Transformer Acquisition Terminal Based on Embedded Linux
  3. Research on Memory Leak Detection of C/C++Code
    Wang ·Dalian University of Technology ·2012 ·Master's thesis
  4. Dynamic Memory Management for Virtual Machines via Memory Hotplug
  5. A Study on Remote Communication System Controlled by DM642and FPGA in Infrared Thermal Imaging
    YangZuoYu ·Hebei University of Technology ·2012 ·Master's thesis
  6. Study on Open Architecture CNC Based on Model Driven Development Method
    GaoJunLi ·South China University of Technology ·2005 ·Doctoral dissertation
  7. Research on Static Analysis of Memory Errors in C Programs
  8. The Design and Implementation of a Static Analysis System in Source Code
  9. The Research and Implementation of a Memory Leak Detective Technology
    WangZuo ·Beijing Jiaotong University ·2008 ·Master's thesis
  10. Dynamic memory management fault test programming language model
    ZhangHong ·Zhengzhou University ·2006 ·Master's thesis
  11. The Communication between A-VX and Windows
    LiNing ·Northwestern Polytechnical University ·2003 ·Master's thesis
  12. Research on Expressional Technology and Application of the 3D Fire Protection Information in the 3D Fire Protection Archives Generation System
    ZhangFuYong ·Shenyang University of Technology ·2006 ·Master's thesis
  13. Memory leak in the embedded linux system
    QiHuaJun ·Tianjin Polytechnic University ·2006 ·Master's thesis
  14. IP network management system test design and implementation
    LiQunHui ·Sichuan University ·2004 ·Master's thesis
  15. Based on Embedded Technology GSM mobile terminal system software development
  16. Research on System Crash and Hang Issue
  17. The Design and Implementation of Static Memory Leak Detection Model
  18. The Design Implement of Resource Dynamic Cofing Management
  19. Based on the the DSP of voip voice business to achieve the scheduling design
  20. Research and Improvement of Embedded System Debugging Method
    ZhangRong ·Jilin University ·2009 ·Master's thesis