计算机工程与应用2016,Vol.52Issue(13):76-80,5.DOI:10.3778/j.issn.1002-8331.1407-0557
FreeRTOS内存管理方案的分析与改进
Analysis and improvement of memory management scheme in FreeRTOS
摘要
Abstract
The memory management shceme of Free Real Time Operating System(FreeRTOS)has some shortcomings, such as uncertain allocation time, frequent cutting, low utilization rate as well as inadequate consolidation mechanism, this paper adopts a strategy of"precised cutting"and"delayed merging"in order to reduce memory fragment and raise utilization rate furthest. Thus it introduces TLSF(Two-Level Segregated Fit)algorithm into FreeRTOS, using two levels of bitmap index to manage its dynamic memory and improving its process of memory allocation as well as release, then conducts the experimental test on the STM32 platform which ports with FreeRTOS. At last, the results show that this method improves the speed of memory allocation and reduces memory fragmentation rate.关键词
FreeRTOS操作系统/内存管理/TLSF算法/STM32开发平台/内存碎片Key words
FreeRTOS/memory management/Two-Level Segregated Fit(TLSF)algorithm/STM32 platform/memory fragment分类
信息技术与安全科学引用本文复制引用
刘林,朱青,何昭晖..FreeRTOS内存管理方案的分析与改进[J].计算机工程与应用,2016,52(13):76-80,5.基金项目
国家高技术研究发展计划(863)(No.2011AA05A120). (863)