ROLP:面向大数据存储管理的对象生命周期分析
ROLP: Runtime Object Lifetime Profiling for Big Data Memory Management
摘要:
信用卡欺诈检测和网站定向广告等低延迟服务依赖于大数据平台(例如,Lucene,Graphchi,Cassandra),它们运行在内存管理的运行时之上,例如JVM。然而,由于不充分的存储管理决策(例如,将具有非常不同的生存期的对象分配到彼此相邻的位置,从而导致内存碎片)。这会导致长时间且频繁的应用程序暂停时间,从而破坏服务级别协议(SLA)。这个问题之前已经被识别,并且结果表明,当前的存储管理技术不适合于在存储器中保存大量的中期到长期对象的应用(这是大数据应用的广泛范围的情况)。以前的工作试图通过在堆外或特殊分配区域/代中分配对象来减少这种应用程序暂停,从而减轻存储管理的压力。然而,所有这些解决方案都需要程序员的努力和知识、源代码访问或离线分析的组合,对程序员的生产力和/或应用程序性能有明显的负面影响。本文介绍了ROLP,一个运行时对象生命周期分析系统。ROLP在运行时分析应用程序代码,以便识别哪些分配上下文创建具有中到长生命期的对象,因为这些对象需要以不同的方式处理(关于短生命期的对象)。这些分析信息极大地改善了存储管理决策,导致Lucene的长尾延迟减少了51%,GraphChi减少了85%,Cassandra减少了60%,而吞吐量和内存开销可以忽略不计。ROLP是为OpenJDK 8 HotSpot JVM实现的,它不需要任何程序员的努力或源代码访问。
英文摘要:
Low latency services such as credit-card fraud detection and website targeted advertisement rely on Big Data platforms (e.g., Lucene, Graphchi, Cassandra) which run on top of memory managed runtimes, such as the JVM. These platforms, however, suffer from unpredictable and unacceptably high pause times due to inadequate memory management decisions (e.g., allocating objects with very different lifetimes next to each other, resulting in memory fragmentation). This leads to long and frequent application pause times, breaking Service Level Agreements (SLAs). This problem has been previously identified and results show that current memory management techniques are ill-suited for applications that hold in memory massive amounts of middle to long-lived objects (which is the case for a wide spectrum of Big Data applications). Previous works try to reduce such application pauses by allocating objects off-heap or in special allocation regions/generations, thus alleviating the pressure on memory management. However, all these solutions require a combination of programmer effort and knowledge, source code access, or off-line profiling, with clear negative impact on programmer productivity and/or application performance. This paper presents ROLP, a runtime object lifetime profiling system. ROLP profiles application code at runtime in order to identify which allocation contexts create objects with middle to long lifetimes, given that such objects need to be handled differently (regarding short-lived ones). This profiling information greatly improves memory management decisions, leading to long tail latencies reduction of up to 51% for Lucene, 85% for GraphChi, and 60% for Cassandra, with negligible throughput and memory overhead. ROLP is implemented for the OpenJDK 8 HotSpot JVM and it does not require any programmer effort or source code access.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。