Design and Realization of a Dynamic Memory Manager for Embedded Real-time Systems
- Author
- WuWenFeng
- Advisor
- LiBin
- School
- Chongqing University
- Major
- Control Science and Engineering
- Classification
- TP316.2 Real-time operating system
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 2
- Citations
- 0
Abstract
With the development of Internet of Things technology, embedded real-timeoperating systems are more widely used. Embedded real-time operating system forreal-time dynamic memory allocation, fragmentation, reliability have higherrequirements, therefore, the dynamic memory allocation has become embeddedreal-time operating system is an important research content. Existing memorymanagement by sacrificing memory utilization to meet real-time requirements, resultingin a waste of memory resources. In addition, embedded system processor generally donot have a memory management unit, memory management, real-time operating systemcan not protect the memory, could easily lead to cross-border access memory, reduce thereliability of the system. To this end, improve memory utilization and memory securityfeatures for dynamic memory allocation performance is important.To address the problem on the basis of embedded real-time system memorymanagement algorithms TLSF (Two-level Segregated Fit) for less than its memoryallocation and release, as well as defects in the memory protection, research withoutreducing the system real-time under the premise of reducing memory fragmentation rate,by adding two bitmap algorithm proposed new data structure, to add memorycross-border access to protection mechanisms, completed a new embedded real-timesystems dynamic memory management ERMM (Embedded Real-time MemoryManager) design. The main work includes:1) analysis of the dynamic memory management algorithm commonly used inembedded real-time operating system, real-time and memory fragmentation rate ofdifferent dynamic memory allocation algorithm (DSA) are discussed, based on theembedded real-time systems for real-time and memory fragmentation rate requirements,the proposed algorithm TLSF-based embedded real-time systems dynamic memorymanagement, memory management program.2) conduct a detailed analysis the TLSF algorithm, proposed a new embeddedreal-time systems dynamic memory allocation manager (Ermm). For TLSF algorithmshortcomings of low efficiency in small memory allocation proposed new data structure,the different sizes of memory requests to take a different allocation strategies. Smallmemory requests, to accelerate the search speed take two bitmaps algorithm to reducethe allocation of time and space for time strategy to reduce external memory fragmentation; large memory request, improved TLSF algorithm: take the lower limit ofits memory allocation " cutting strategy proposed precision-cut improvement strategiesto reduce the rate of internal memory fragmentation; release its memory free memoryblock Now Merge strategy proposed delay Merge improvement strategies to improvereal-time; reliability, to take the memory cross-border conservation measures toimprove the security of memory management.3) TLSF algorithm and ERMM of OS-III system implementation in the memoryfragmentation rate and real-time experimental comparison of these two approaches, andthe memory security ERMM test. Experimental results show that the the Ermm dynamicmemory allocation manager has better real-time, high reliability, and low memoryfragmentation, which can effectively improve the performance of the memorymanagement of embedded real-time systems.
Table of contents
Summary 3-4
ABSTRACT 4-9
1 Introduction 9-17
1.1 Background 9-14 <br / > 1.1.1 embedded real-time operating system memory management 9
1.1.2 Overview of dynamic memory allocation 9-11 status of dynamic memory management studies abroad
1.1.3 Real-Time System dynamic memory allocation scheme 11-12
1.1.4 real-time operating system 12-13
1.1.5 real-time system for dynamic memory allocation scheme problems 13 -14 raised and significance
1.2 topics 14
1.3 the main contents 14-15
1.4 thesis structure 15-16 <br / > 1.5 Summary 16-17
2 embedded real-time system memory management 17-27
2.1 Introduction 17
2.2 Introduction to embedded systems 17
2.3 embedded system Memory management 17-20
2.3.1 memory fragmentation 18-19
2.3.2 memory leak 19-20
2.3.3 embedded real-time system memory management requirements 20
2.4 embedded real-time systems in different memory management overview 20-23
2.4.1 μC / OS-Ⅲ memory management 20-21
2.4.2 RT_Thread memory management 21-22
2.4.3 VxWorks memory management 22
2.4.4 RTEMS memory management 22
2.4.5 eCos memory management 22-23
2.5 typical memory management algorithms 23-25 ??
2.5.1 sequential search algorithm 23
2.5.2 partners algorithm 23-24
2.5.3 Half-Fit algorithm 24
2.5.4 TLSF algorithm 24-25
2.6 memory algorithms typical problems of 25
2.7 Summary 25-27
3 ERMM memory allocation Manager design 27-45
3.1 introduction 27
3.2 TLSF algorithm introduced 27-32
3.2.1 important parameters 27 -28
3.2.2 data Structure 28-31
3.2.3 memory allocation and recovery 31-32
3.3 ERMM memory allocation manager 32-43
3.3.1 propose a new data structure 33-37
3.3.2 improved algorithm 37-38
3.3.3 small memory allocation and recovery 38-40
3.3.4 large memory allocation and recovery 40-41
3.3.5 memory Protection 41-43
3.4 ERMM memory allocation Manager theoretical analysis 43-44
3.5 Summary 44-45
4 ERMM on μC/OS- Ⅲ system to achieve 45-59 <br / > 4.1 Introduction 45
4.2 μC/OS- Ⅲ system memory management 45-47
4.2.1 μC/OS- Ⅲ system memory management 45 - less than 47
4.2.2 μC/OS- Ⅲ system memory management 47
under 4.3 VC environment μC/OS- Ⅲ system migration 47-52
4.4 TLSF algorithm on μC/OS- Ⅲ system 52-55
4.4.1 add the appropriate header files define 52-53
4.4.2 delete μC/OS- ⅲ system memory management-related data structures and function 53
4.4.3 Add TLSF algorithm data structure 53-54
4.4.4 Add TLSF algorithm correlation function 54 -55
4.5 ERMM on μC/OS- Ⅲ system to achieve 55-57
4.5.1 adding data structure 55-56
4.5.2 modified memory allocation and deallocation functions 56-57
4.6 Summary 57-59
5 experimental results and analysis 59-67
5.1 experimental Design 59-60
5.2 analysis of experimental results 60-65
5.3 summary 65-67
6 summary and Outlook 67-69
Thanks 69-71
References 71-75
Appendix 75
A. the authors of papers published during the degree program directory 75
Related dissertations
- The Development of Configuration Software for Monitoring and Controlling Based on C#
- Design and Implementation of Static Gesture Recognition System Based on FPGA
- Energy-efficient Real-time Scheduling for Multi-core and Multiprocessor System
- Modal Analysis Fast Calculation Method Research and Application on Heavy Truck
- Research on Hard Real-time Multi-core Architecture Based on Shared Sram Automotive Control Applications
- Design and Implemenation of Real-time Monitoring System Based on Virtual Instrument
- Implementation of Real-Time Test System for Inertial Measurement Units Based on LabVIEW
- Formal Modeling and Analysis of Cyber Physical System
- Real Time Face Feature Detection System Based on CPU+GPU Cluster
- Research of Task Scheduling Algorithm for Soft Real-time System Based on Feedback Mechanism
- Aspect-Oriented Testing Approach for The Real-time Characteristic of Real-Time Cyber-Physical System
- Research on Real-time Elastic Task Scheduling Algorithm Based on Feedback Mechanism
- Research of Energy-Efficient Scheduling for Parallel Real-Time Tasks on Multicore Systems
- Research on real time multi task scheduling method of periodic exchange priority
- Research on Transformation of UPPAAL Timed Automata to UML Diagram and the Implementation Tool
- Research and Implementation of Semi-partitioned Multiprocessor Real-time Scheduling
- Research and Apply the Shared Cache Partition in Real-time Operate System
- The Research and Implementation for XtratuM Based on Loongson2F
- Key Techniques Study on Resource Management on Dual-mode Terminals in Cable Television Networks
- Scheduling Real-time Multi-item Requests in Multi-channel Data Broadcast Systems