节点文献
一种嵌入式浏览器内存管理架构的设计与实现
An Architecture Design and Implementation of Embedded Browser Memory Manager
【摘要】 为了解决嵌入式设备中浏览器内存资源利用率不高,多线程情况下大批量内存申请效率低的问题,设计了一种基于两级缓存的嵌入式浏览器内存管理架构。在内存管理器PartitionAlloc原结构的基础上,添加局部缓存ThreadCache和中央全局缓存CentralCache两级缓存结构,通过ThreadCache减少多线程中的锁竞争情况,通过CentralCache动态调整ThreadCache中的内存块数目,及时回收空闲的内存以便再次分配使用,提高内存的利用率。本文将PartitionAlloc与两级缓存结构相结合,为提高嵌入式浏览器内存利用率,提高多线程情况下大批量内存申请效率提供了有效的解决方案。
【Abstract】 In order to solve the problem that the memory utilization of browser memory in embedded devices is not high and the application efficiency of large-volume memory is low in multi-threaded situations, this paper designs an embedded browser memory management architecture based on two-level cache in memory manager. Based on the original structure of PartitionAlloc, the two-level cache structure of local cache ThreadCache and central cache is ControlCache added. The lock competition in multi-thread is reduced by ThreadCache. The number of memory blocks in ThreadCache is dynamically adjusted through CentralCache, and the free memory is recovered in time. Allocate usage to improve memory utilization. This paper combines PartitionAlloc with two-level cache structure to provide an effective solution for improving the memory utilization of embedded browsers and improving the efficiency of large-volume memory applications in multi-threaded situations.
【Key words】 embedded; browser; memory management; PartitionAlloc; cache;
- 【文献出处】 网络新媒体技术 ,Network New Media Technology , 编辑部邮箱 ,2021年02期
- 【分类号】TP393.092
- 【下载频次】36