首页> 外文期刊>ACM SIGPLAN Notices: A Monthly Publication of the Special Interest Group on Programming Languages >A Study of Memory Management for Web-based Applications on Multicore Processors
【24h】

A Study of Memory Management for Web-based Applications on Multicore Processors

机译:多核处理器上基于Web的应用程序的内存管理研究

获取原文
获取原文并翻译 | 示例
       

摘要

More and more server workloads are becoming Web-based. In these Web-based workloads, most of the memory objects are used only during one transaction. We study the effect of the memory management approaches on the performance of such Web-based applications on two modern multicore processors. In particular, using six PHP applications, we compare a general-purpose allocator (the default allocator of the PHP runtime) and a region-based allocator, which can reduce the cost of memory management by not supporting per-object free. The region-based allocator achieves better performance for all workloads on one processor core due to its smaller memory management cost. However, when using eight cores, the region-based allocator suffers from hidden costs of increased bus traffics and the performance is reduced for many workloads by as much as 27.2% compared to the default allocator. This is because the memory bandwidth tends to become a bottleneck in systems with multicore processors. We propose a new memory management approach, defrag-dodging, to maximize the performance of the Web-based workloads on multicore processors. In our approach, we reduce the memory management cost by avoiding defragmentation overhead in the malloc and free functions during a transaction. We found that the transactions in Web-based applications are short enough to ignore heap fragmentation, and hence the costs of the defragmentation activities in existing general-purpose allocators outweigh their benefits. By comparing our approach against the region-based approach, we show that a per-object free capability can reduce bus traffic and achieve higher performance on multicore processors. We demonstrate that our defrag-dodging approach improves the performance of all the evaluated applications on both processors by up to 11.4% and 51.5% over the default allocator and the region-based allocator, respectively.
机译:越来越多的服务器工作负载正变得基于Web。在这些基于Web的工作负载中,大多数内存对象仅在一次事务期间使用。我们研究了内存管理方法对两个现代多核处理器上此类基于Web的应用程序的性能的影响。特别是,使用六个PHP应用程序,我们比较了通用分配器(PHP运行时的默认分配器)和基于区域的分配器,它们可以通过不支持按对象释放来减少内存管理的成本。基于区域的分配器由于其较小的内存管理成本而在一个处理器核心上的所有工作负载上均实现了更好的性能。但是,当使用八个内核时,基于区域的分配器遭受了总线流量增加的隐性成本,并且与默认分配器相比,许多工作负载的性能降低了多达27.2%。这是因为在具有多核处理器的系统中,内存带宽趋于成为瓶颈。我们提出了一种新的内存管理方法,即碎片整理,以最大程度地提高多核处理器上基于Web的工作负载的性能。在我们的方法中,我们通过避免事务期间malloc和free函数中的碎片整理开销来减少内存管理成本。我们发现基于Web的应用程序中的事务足够短,可以忽略堆碎片,因此现有通用分配器中进行碎片整理活动的成本超过了其收益。通过将我们的方法与基于区域的方法进行比较,我们证明了无对象能力可以减少总线流量并在多核处理器上实现更高的性能。我们证明,与默认分配器和基于区域的分配器相比,我们的磁盘碎片整理方法可将两个处理器上所有已评估应用程序的性能分别提高11.4%和51.5%。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号