J4 ›› 2012, Vol. 39 ›› Issue (5): 174-180.doi: 10.3969/j.issn.1001-2400.2012.05.029

• 研究论文 • 上一篇    下一篇

实时嵌入式多媒体系统模糊阈值合并内存管理算法

姜艳1,2,3;曾学文2,3;孙鹏2,3;朱小勇2,3   

  1. (1. 中国科学院 研究生院,北京  100049;
    2. 中国科学院 声学研究所,北京  100190;
    3. 中国科学院 国家网络新媒体工程技术研究中心,北京  100190)
  • 收稿日期:2012-02-14 出版日期:2012-10-20 发布日期:2012-12-13
  • 通讯作者: 姜艳
  • 作者简介:姜艳(1985-),女,中国科学院研究生院博生研究生,E-mail: jiangy@dsp.ac.cn.
  • 基金资助:

    国家科技支撑项目课题资助项目(2011BAH08B01); 863重大项目课题资助项目(2011AA01A102); 中国科学院战略性先导科技专项课题资助项目(XDA06030500)

Fuzzy threshold coalescence memory algorithm for embedded real-time multimedia systems

JIANG Yan1,2,3;ZENG Xuewen2,3;SUN Peng2,3;ZHU Xiaoyong2,3   

  1. (1. Graduate School of the Chinese Academy of Sciences, Beijing  100049, China;
    2. Institute of Acoustics, Chinese Academy of Sciences, Beijing  100190, China;
    3. National Network New Media Engineering Research Center, Beijing  100190, China)
  • Received:2012-02-14 Online:2012-10-20 Published:2012-12-13
  • Contact: JIANG Yan

摘要:

为了提高实时嵌入式多媒体系统动态内存分配的效率,提出一种基于两级离散列表(Two-Level Segregate Fit,TLSF)的模糊阈值合并算法.根据内存区间的使用概率和空闲块数统计,运用模糊规则计算合并系数,并与由碎片率决定的动态阈值相比较,决定是否推迟合并.实验结果表明,该算法在内存大小随机分配时与TLSF算法的性能相当;在实际的视频点播系统应用中,分配和释放效率分别提高了12.6%和9.5%.

关键词: 嵌入式系统, 内存管理, 模糊控制, 动态阈值, 推迟合并

Abstract:

In order to raise the memory management efficiency in real-time embedded multimedia systems, a fuzzy threshold coalescence memory algorithm based on TLSF (Two-Level Segregate Fit) is proposed. This algorithm employs fuzzy rules combined with the probability of free memory regions and statistics of free memory blocks in every region to obtain the coalescence coefficient, which is compared with dynamic threshold adjusted by memory fragmentation to decide whether the coalescence needs to be postponed. Experimental results show that the performance of this algorithm is similar to that of TLSF when the allocated memory size is random, but allocation and release efficiencies are increased by 12.6% and 9.5%, respectively, in a real video on the demand system, by adopting this algorithm in an embedded system.

Key words: embedded systems, memory management, fuzzy control, dynamic threshold, postponed coalescence

中图分类号: 

  • TP37