期刊文献+

基于multimap映射的动态内存分配算法探究

Algorithm of Dynamic Memory Allocation Base on Multimap
下载PDF
导出
摘要 对多种不同的动态内存分配算法的特点与优劣进行对比、分析,在兼顾效率和内存碎片率指标的要求下,提出了基于multimap映射的动态内存分配算法。该算法以内存块的大小作为键,内存块的地址信息作为值,以键值对的形式存储内存块的地址,并在内存块实体的首部与尾部添加标识信息。为检验算法效果,设计了多组数据对新算法和现有经典内存管理算法效率进行比较,实验结果表明新算法在降低时间开销,保留较大连续空间,减少内存碎片等方面具有较明显的改善。 Under the consideration of efficiency and memory fragments indictors, a variety of dynamic memory allocation algorithms were compared and analyzed, and a new dynamic memory allocation based on multimap was proposed. The algorithm put the size of the memory block as the key and the address of the memory block as the value, used the key-value pair to store the address of memory block, and added the boundary tag at both the head and tail of memory block. In order to verify the performance of new algorithm, multiple sets of experiment data were tested on new algorithm and existing classic algorithms of memory allocation.The experiment results show that the new algorithm has obviously improved on time cost, keeping large contiguous space and memory fragments reduction.
出处 《电脑知识与技术》 2016年第10X期222-224,共3页 Computer Knowledge and Technology
基金 基于Android平台的教室使用情况监测软件(项目编号:201510378570)
关键词 动态内存分配 内存碎片 边界标识法 multimap dynamic memory allocation memory fragmentation the boundary tag method multimap
  • 相关文献

参考文献2

二级参考文献16

  • 1Moore G E. Cramming more components onto integrated cir cuits. Electronics, 1965, 38(8): 114-117. 被引量:1
  • 2Huang Xianglong, Blackburn Stephen M, McKinley KathrynS, Moss J Eliot B, Wang Zhenlin, Cheng Perry. The gar- bage collection advantage: Improving program locality//Proceedings of the 19th Annual ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA'04). New York, NY, USA, 2004: 69-80. 被引量:1
  • 3Chilimbi Trishul M, Larus James R. Using generational gar-bage collection to implement cache conscious data place- ment//Proeeedings of the 1st International Symposium on Memory Management(ISMM'98). New York, NY, USA, 1998::37-48. 被引量:1
  • 4Serrano Mauricio J, Zhuang Xiaotong. Placement optimiza-tion using data context collected during garbage collection// Proceedings of the 2009 International Symposium on MemoryManagement(ISMM'09). New York, NY, USA, 2009: 69-78. 被引量:1
  • 5Lattner Chris, Adve Vikram. Automatic pool allocation: Ira-proving performance by controlling data structure layout inthe heap//Proceedings of the 2005 ACM SIGPLAN Confer- ence on Programming Language Design and Implementation (PLDI'05). New York, NY, USA, 2005:129-142. 被引量:1
  • 6Seidl Matthew L, Zorn Benjamin G. Segregating heap objectsby reference behavior and lifetime//Proeeedings of the 8th International Conference on Architectural Support for Pro- gramming Languages and Operating Systems (ASPLOS- VIII). New York, NY, USA, 1998:12-23. 被引量:1
  • 7Barrett David A, Zorn Benjamin G. Using lifetime predictorsto improve memory allocation performance//Proeeedings of the ACM SIGPLAN 1993 Conference on Programming Lan-guage Design and Implementation (PLDI' 93). New York, NY, USA, 1993:187-196. 被引量:1
  • 8Chilimbi Trishul M, Hill Mark D, Larus James R. Cache-conscious structure layout//Proceedings of the ACM SIGP- LAN 1999 Conference on Programming Language Design andImplementation(PLDI'99). New York, NY, USA, 1999: 1-12. 被引量:1
  • 9Chilimbi Trishul M, Shaham Ran. Cache-conscious coalloca-tion of hot data streams//Proceedings of the 2006 ACM SIG-PLAN Conference on Programming Language Design and Im- plementation(PLDl'06). New York, NY, USA, 2006.. 252- 262. 被引量:1
  • 10Zhao Qin, Rabbah Rodric, Wong Weng-Fai. Dynamic mere-ory optimization using pool allocation and prefetching. ACM SIGARCH Computer Archlteeture News, 2005, 33(5), 27-32. 被引量:1

共引文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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