期刊文献+

面向高速实时数据处理的无锁内存分配算法

Lock-free Memory Allocation Algorithm for High-speed Real-time Data Processing
下载PDF
导出
摘要 为了提高高并发生产环境下内存分配的效率,针对高速实时数据处理程序的高并发、高频内存分配等特点,采用一种无锁内存分配算法(Lock Free Memory Allocation, LFMA)来提高并发度及内存分配效率。针对伙伴(Buddy)算法的不足,使用位图替代链表,并结合原子操作来达到线程间无锁并发访问,同时降低了缓存未命中的概率。引入多级位图来提高空闲内存块的搜索效率,通过渐进式重合并算法避免Buddy算法频繁拆合带来的效率问题,并降低了外部碎片。实验结果表明,相较于Buddy算法,新算法的分配效率在单线程下提升约31%,在多线程下提升约27%。 According to the high concurrency and high frequency memory allocation of high-speed real-time data processing programs, a lock-free memory allocation algorithm is proposed to improve the efficiency of concurrency and memory allocation. Aiming at the shortcomings of Buddy algorithm, it uses bitmap to replace linked list to achieve lock-free concurrent access between threads, and the external fragmentation is reduced. The efficiency problem caused by the frequent splitting and merging of memory blocks by the Buddy algorithm is improved by the progressive re-merge algorithm. Experimental results show that compared with the Buddy algorithm, the allocation efficiency of the new algorithm is improved by about 31% in a single thread and about 27% in a multi-threaded manner.
作者 李文浩 方景龙 LI Wenhao;FANG Jinlong(School of Computer,Hangzhou Dianzi University,Hangzhou Zhejiang 310018,China)
出处 《杭州电子科技大学学报(自然科学版)》 2020年第4期57-62,共6页 Journal of Hangzhou Dianzi University:Natural Sciences
关键词 Buddy算法 内存分配 无锁 渐进式重合并 Buddy memory allocation lock-free progressive re-merge
  • 相关文献

参考文献2

二级参考文献15

  • 1胡滨,孙健力,张永平,侯婧熠.一种内存管理技术的研究与实现[J].计算机工程与设计,2007,28(5):1226-1228. 被引量:4
  • 2KNUTH D E.计算机程序设计艺术,第1卷:基本算法[M].第3版.苏运霖,译.北京:国防工业出版社,2002.
  • 3ARIE K.Tailored-list and recombination-delaying buddy systems[J].ACM Transactions on Programming Languages and Systems,1984,6(1):118-125.
  • 4LO C-T D,SRISA-AN W,CHANG J M.Performance analyses on the generalized buddy system[J].Computers and Digital Techniques,IEEE Proceedings,2001,148(45):167-175.
  • 5严蔚敏,吴伟民.数据结构(C语言版)[M].北京:清华大学出版社,2013:3-4.
  • 6DEMAINE E D, MUNRO J I. Fast allocation and deallocation with an improved buddy system [ C]// Proceedings of the 19th Confer- ence on Foundations of Software Technology and Theoretical Comput- er Science, LNCS 1738. Berlin: Springer, 1999:84-96.
  • 7BENTLEY J L. Solutions to Klee's rectangle problems [ R]. Pitts- burgh: Carnegie-Mellon University, 1977.
  • 8DE BERG M, VON KREVELD M, OVERMARS M, et al. Seg- ment tree [ EB/OL]. [ 2015- 05- 23 ]. https://en, wikipedia, org/ wiki/Segment_tree.
  • 9RACHERLA G, RADHAKRISHNAN S, OMMEN B J. Enhanced layered segment trees: a pragmatic data structure for real-time pro- cessing of geometric objects [ J]. Pattern Recognition, 2002, 35 (10) : 2303 - 2309.
  • 10BENTLEYJ.编程珠玑[M].谢君英,石朝江,译.北京:中国电力出版社,2004:94-107.1.

共引文献6

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部