文档介绍:上海交通大学
硕士学位论文
嵌入式操作系统内存管理机制的设计与实现
姓名:孙益辉
申请学位级别:硕士
专业:计算机应用技术
指导教师:白英彩
20050101
嵌入式操作系统内存管理机制的设计与实现
摘要
随着计算机技术发展嵌入式系统应用也越来越广泛如控制系
统网络产品 PDA 设备等嵌入式系统不同于通用计算机系统
一般用于完成某项特定功能要求实时性可预测性等由于受空间
成本等限制嵌入式系统资源配置一般有限设计与实现也不同于通
用计算机系统
内存管理模块是计算机操作系统中一个十分重要的组成部分直
接关系到系统是否能正常运行和整个系统性能优劣内存的分配和回
收策略在通用操作系统中得到了很好的研究与实现受硬件资源限
制这些策略不完全适用于嵌入式操作系统它没有考虑实时性可
预测性资源相对有限性等嵌入式操作系统特征
本文分析了通用 Linux 操作系统内存管理机制研究了几种典型
嵌入式操作系统内存管理机制各自的特点与不足在此基础上根据
实际需要设计并初步实现了一种嵌入式操作内存管理模块它向任
务提供服务接口通过该服务接口任务向内存管理模块申请和释放
存储空间跟踪记录物理存储空间的使用状况跟踪记录任务使
用的存储空间基于实时性考虑任务申请和释放内存时间是确定可
预测的同时尽可能地减少使用过程中出现内存碎片提高内存使用
效率
关键词 VoIP MMU 嵌入式操作系统内存管理
I
Design and Implementation of Memory
Management Mechanism of Embedded OS
ABSTRACT
With the development puter technology, embedded system is
applied more widely,such as control work products and PDA
system is different from puter system
because it is often for specific devices and demands real time and
it's limited space and cost,embedded system has limited
resources and different design and pared with general
operating system.
Memery management system is a very important part among OS and
it's performance influences how good the whole system can
allocated and freed policies are well studied and realized in general
OS,but some can't work for Embedded System because they don't take
Embedded System's features such as real time,forecast and limited
resourses into account.
This thesis analyses general Linux OS MMS and studies several
typical Embedded OS MMS's features and the basis of
content mentioned before,this thesis designs and realizes a MMS
according to actual MMS provides service interface for
tasks,traces and records how the physical memory is used,traces and
records how tasks use time of memory allocated and freed
can be the same time,the module tries to reduce memory
fragments to improve efficiency.