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

Request the full text

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

  1. Design and Realization of Linux Memory Management
    GaoFeng ·Shenyang University of Technology ·2007 ·Master's thesis
  2. The Research of an Operation System of Spatial Robot Based on μC/OS-Ⅱ
  3. The Design of Small Coal Mine Remote Monitoring System Based on ARM
    XuJin ·Northeastern University ·2011 ·Master's thesis
  4. Research and Development of Froth Flotation Video Surveillance Hardware Platform Based on DSP
    GuoJian ·Central South University ·2013 ·Master's thesis
  5. The Research and Design of Embedded Graphic Remote Monitor Terminal
    DengBoWen ·Harbin Engineering University ·2013 ·Master's thesis
  6. Research and Realization of Dynamic Simulation Circulating Water Device Control and Data Processing System Based on ARM
    ZhangYanYan ·Dalian Polytechnic University ·2011 ·Master's thesis
  7. Design and Application of Real-time Dam Deformation Monitoring Instrument
    ZuoShiBo ·Hunan University ·2013 ·Master's thesis
  8. The Design and Implementation of Integrated Data Acquisiton Instrument Hardware Platform for Gas Station
  9. Research and Implementation of Networked Data Acquisition System Based on Cortex-M3
    ShengQingPeng ·Qilu Industrial University ·2014 ·Master's thesis
  10. The Research for the Engraving Machine Control System Based on ARM and FPGA
    FanJianFeng ·Xi'an University of Engineering ·2012 ·Master's thesis
  11. Design and Implementation of Control System for Stabilized Platform Based on Embedded System
    SunXiLong ·Harbin Institute of Technology ·2012 ·Master's thesis
  12. Study on the Control System of Lower Limbs Rehabilitative and Fitness Robot
    YangKe ·Hefei University of Technology ·2013 ·Master's thesis
  13. The Research of Embedded Web Sensor Node
    HeShuangWang ·Hebei University of Technology ·2012 ·Master's thesis
  14. Design of CTD Sensor and Research of Data Processing Technology
    LvZhi ·Harbin Engineering University ·2013 ·Master's thesis
  15. The Research of Embedded Image Processing Technology Based on ARM
    WangXueBin ·Hebei University of Technology ·2013 ·Master's thesis
  16. The Research and Realization of Target Tracking Algorithms on Embedded Platform
  17. The Core Algorithm Research and System Implementation of Embedded Image Information Processing System
    LiXiang ·Zhejiang University ·2012 ·Doctoral dissertation
  18. Development of embedded network fingerprint attendance system
    GaoHongChao ·Heilongjiang University ·2013 ·Master's thesis
  19. A Drowning Features Recognition System Based on AIS
    GuoChangSheng ·Donghua University ·2014 ·Master's thesis
  20. Research on the Iris Recogniton System Based on DSP