作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 开发研究与工程应用 • 上一篇    下一篇

高频内存分配下内存泄露检测的性能提升方法

侯朋朋1,2,武延军1,谢沛东1,2   

  1. (1. 中国科学院软件研究所基础软件国家工程研究中心,北京 100190;2. 中国科学院研究生院,北京 100049)
  • 收稿日期:2012-07-09 出版日期:2013-11-15 发布日期:2013-11-13
  • 作者简介:侯朋朋(1985-),男,硕士研究生,主研方向:数据存储;武延军,副研究员、博士;谢沛东,硕士研究生
  • 基金资助:
    “核高基”国家科技重大专项(2010ZX01036-001-002, 2010ZX01037-001-002, 2010ZX01036-001-002-2);中国科学院知识创新工程重要方向基金资助项目(KGCX2-YW-174)

Performance Improvement Method of Memory Leak Detection Under High Frequently Memory Allocation

HOU Peng-peng  1,2, WU Yan-jun  1, XIE Pei-dong  1,2   

  1. (1. National Engineering Research Center of Fundamental Software, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China; 2. Graduate University of Chinese Academy of Sciences, Beijing 100149, China)
  • Received:2012-07-09 Online:2013-11-15 Published:2013-11-13

摘要: 现有主流轻量级内存泄露检测工具,如MemWatch和MemLeak等在高频内存分配下存在效率较低等性能缺陷。为此,提出一种提升内存泄露检测工具性能的方法。运用该方法对开源工具MemLeak进行修改,将修改后的工具用于大数据存储系统Redis的内存泄漏检测。基于开源软件Redis的实用性测试结果表明,该方法具有较好的可用性与实用性。

关键词: 内存泄露, 高频, 内存分配, 哈希表, 红黑树

Abstract: The memory detection tools such as MemLeak and MemWatch are not very efficient when there the operation of malloc/free is high frequently called. This paper presents a new technique to salve this problem. It uses the new technique to improve the tool MemLeak, and improved tool is applied to memory leak detection of big data memory system Redis. Practicability test based on open software Redis shows that the technique has better actual value.

Key words: memmory leak, high frequency, memory allocation, Hash table, Red and Black(RB) tree

中图分类号: