Improvement and Implementation of Memory Management Based on μC/OS-Ⅱ
- Author
- LiZuo
- Advisor
- WangXiBo
- School
- Shenyang University of Technology
- Major
- Applied Computer Technology
- Classification
- TP316.84 OS / 2 operating system
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 103
- Citations
- 0
Abstract
μC/OS-Ⅱis a Embedded Real-Time Operating System which contains the properties of open source,powerful transplantable capability,curing,being deprived,multi-tasks,and high stability.At present,μC/OS-Ⅱhas been widely applied in many fields.As an excellent embedded real-time operating system,the dynamic memory management ofμC/OS-Ⅱonly supports fixed-size partitions,but there is dynamic allocation of non-fixed partition needs in the practical applications.It requires thatμC/OS-Ⅱis to realize the function of dynamic memory management program.In this paper,we found that the Buddy algorithm which has many advantages,such as, memory applied for in the constant time,data structures designed ingenious,predictability well based on the research and analysis of the current classical dynamic memory management algorithms.However,if there are the free partners which the size of 2<sup>n</sup> will be merged into the size of the list of 2<sup>n+1</sup>.The size of 2<sup>n</sup> block in the list will be reduced due to the combined operation,but the system may be immediately need the size of 2<sup>n</sup> block.So we must spit from the list of 2<sup>n+1</sup>.Thus,we must transform it according to the requirement which contains the properties of efficient,reliable and fast requirement to embedded system memory.Firstly,to modify the data structures of Buddy algorithm,2<sup>k</sup> pages of free list will be divided into Buddy<sub>B</sub>usy free list and Buddy<sub>F</sub>ree free list.Secondly,this subject will redesign the function of allocation and recovery not to make the memory merge immediately after the release of the merger according to the modified data structures. Not only enough memory blocks to satisfy memory request,but also to reduce the time.At the time of the memory allocation,when the request of length of free block is 2<sup>k</sup>,firstly Buddy<sub>B</sub>usy free list should be allocated.When Buddy<sub>B</sub>usy free list is empty,the allocation of Buddy<sub>F</sub>ree free list is considered.In memory recovery,it links free block into appropriate free list according to the state of Buddy blocks.Without immediately merging,until the memory request can not be met immediately,to try to merge.Finally, transplants the improved Buddy algorithm into the kernel ofμC/OS-Ⅱof embedded real time operating system. Experimental data shows that the improvedμC/OS-Ⅱembedded real-time operating system,memory management module has a higher memory utilization,and effectively reduces memory fragmentation.
Related dissertations
- Design and Realization of Linux Memory Management
- The Research of an Operation System of Spatial Robot Based on μC/OS-Ⅱ
- The Design of Small Coal Mine Remote Monitoring System Based on ARM
- Research and Development of Froth Flotation Video Surveillance Hardware Platform Based on DSP
- The Research and Design of Embedded Graphic Remote Monitor Terminal
- Research and Realization of Dynamic Simulation Circulating Water Device Control and Data Processing System Based on ARM
- Design and Application of Real-time Dam Deformation Monitoring Instrument
- The Design and Implementation of Integrated Data Acquisiton Instrument Hardware Platform for Gas Station
- Research and Implementation of Networked Data Acquisition System Based on Cortex-M3
- The Research for the Engraving Machine Control System Based on ARM and FPGA
- Design and Implementation of Control System for Stabilized Platform Based on Embedded System
- Study on the Control System of Lower Limbs Rehabilitative and Fitness Robot
- The Research of Embedded Web Sensor Node
- Design of CTD Sensor and Research of Data Processing Technology
- The Research of Embedded Image Processing Technology Based on ARM
- The Research and Realization of Target Tracking Algorithms on Embedded Platform
- The Core Algorithm Research and System Implementation of Embedded Image Information Processing System
- Development of embedded network fingerprint attendance system
- A Drowning Features Recognition System Based on AIS
- Research on the Iris Recogniton System Based on DSP