基于嵌入式系统的内存管理方案
[Abstract]:With the continuous development of embedded technology, embedded system has been widely used in people's social life. In order to meet the requirements of high efficiency, reliability and real-time performance of embedded system memory allocation, each embedded system adopts its own memory management scheme according to its own practical application. PTmalloc, as the mainstream memory management scheme of embedded system, its stability and comprehensiveness determine its position in embedded system. However, PTmalloc can not meet the requirements of routers and other devices for a large number of memory applications under the condition of multi-thread, and may cause a great waste of memory space. Based on the basic principle of PTmalloc, this paper analyzes the advantages and disadvantages of PTmalloc, and obtains the reason why PTmalloc is slow in processing large quantities of memory: arena and thread are not strictly one-to-one correspondence, which leads to frequent locking and unlocking operations. As a memory management scheme used in server, Tcmalloc can meet the requirements of routers and other devices for a large number of memory applications under the condition of multi-thread, and the processing speed of release can meet the requirements of routers and other devices. Based on the basic principle of tcmalloc, this paper analyzes the advantages and disadvantages of tcmalloc, and concludes that tcmalloc will lead to memory waste that embedded system can not tolerate. Based on the advantages and disadvantages of PTmalloc and tcmalloc, this paper proposes a new memory management scheme, which is mainly reflected in the following aspects: 1) taking the multi-level cache of tcmalloc as the basic framework, the cutting mode of PTmalloc is used to realize the cutting of memory blocks; 2) according to the actual application situation, the classification of memory blocks is refined, 3) the cache control mechanism is introduced to control the cache, and the memory waste is reduced. 4) provide memory diagnostics to help resolve various bug; caused by illegal memory operations Through the test on the actual device, this memory management scheme has better processing speed than PTmalloc in the case of multi-thread, and the memory waste caused by memory cache has been well solved.
【学位授予单位】:杭州电子科技大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP333
【参考文献】
相关期刊论文 前10条
1 吴清平,刘明业;动态内存使用原则及技巧[J];兵工自动化;1999年03期
2 吴晓勇,曾家智;操作系统内核中动态内存分配机制的研究[J];成都信息工程学院学报;2005年01期
3 曾非一 ,桑楠 ,熊光泽;嵌入式系统内存管理方案研究[J];单片机与嵌入式系统应用;2005年01期
4 杨鹏;一种链式结构在内存管理中的应用[J];高等函授学报(自然科学版);2002年04期
5 俞勤丰;孙涌;;μC/OS-Ⅱ中内存管理方法的分析及改进[J];计算机工程;2009年11期
6 顾胜元;杨丹;黄海伦;;嵌入式实时动态内存管理机制[J];计算机工程;2009年20期
7 邢建生;王永吉;刘军祥;曾海涛;NASRO Min-Allah;;一种静态最少优先级分配算法[J];软件学报;2007年07期
8 王铮;李志军;;一种适用嵌入式系统的自适应动态内存管理方案[J];计算机技术与发展;2007年03期
9 董明峰,谷建华;嵌入式实时操作系统eCos内存分配策略的分析[J];微电子学与计算机;2004年07期
10 王小银;陈莉君;;Linux内核中内存池的实现及应用[J];西安邮电学院学报;2011年04期
相关硕士学位论文 前3条
1 曹营;嵌入式系统任务调度机制的研究与实现[D];大连理工大学;2010年
2 高峰;Linux内存管理的设计与实现[D];沈阳工业大学;2007年
3 李满丽;复杂嵌入式系统内存管理方案的研究与实现[D];厦门大学;2009年
本文编号:2489969
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2489969.html