MURS:减轻面向服务的数据处理系统中的内存压力
MURS: Mitigating Memory Pressure in Service-oriented Data Processing Systems
摘要:
虽然数据处理系统通常作为批处理系统工作,但许多企业将这样的系统部署为服务,我们称之为面向服务的数据处理系统。已经表明,内存数据处理系统遭受严重的内存压力。由于各种原因,面向服务的数据处理系统的情况变得更糟。例如,在面向服务的系统中,多个提交的任务被同时启动,并在资源的同一上下文中执行,而不是批处理模式中的任务被逐个处理。因此,内存压力会影响所有提交的任务,包括那些单独运行时只会产生轻微内存压力的任务。在本文中,我们发现,内存压力产生的原因是因为运行的任务在有限的内存空间中产生大量的长寿数据对象。我们的研究进一步揭示了长寿命数据对象是由内存处理框架调用的API函数生成的。基于这些发现,我们提出了一种方法来分类的API函数的基础上的内存使用率。此外,我们设计了一个调度器称为MURS,以减轻内存压力。我们在Spark中实现了MURS,并进行了实验来评估MURS的性能。结果表明,与Spark相比,MURS可以1)将提交作业的执行时间减少65.8%,2)通过将垃圾回收时间减少81%来减轻服务器中的内存压力,3)将数据溢出减少约90%,从而减少磁盘I/O。
英文摘要:
Although a data processing system often works as a batch processing system, many enterprises deploy such a system as a service, which we call the service-oriented data processing system. It has been shown that in-memory data processing systems suffer from serious memory pressure. The situation becomes even worse for the service-oriented data processing systems due to various reasons. For example, in a service-oriented system, multiple submitted tasks are launched at the same time and executed in the same context in the resources, comparing with the batch processing mode where the tasks are processed one by one. Therefore, the memory pressure will affect all submitted tasks, including the tasks that only incur the light memory pressure when they are run alone. In this paper, we find that the reason why memory pressure arises is because the running tasks produce massive long-living data objects in the limited memory space. Our studies further reveal that the long-living data objects are generated by the API functions that are invoked by the in-memory processing frameworks. Based on these findings, we propose a method to classify the API functions based on the memory usage rate. Further, we design a scheduler called MURS to mitigate the memory pressure. We implement MURS in Spark and conduct the experiments to evaluate the performance of MURS. The results show that when comparing to Spark, MURS can 1) decrease the execution time of the submitted jobs by up to 65.8\%, 2) mitigate the memory pressure in the server by decreasing the garbage collection time by up to 81\%, and 3) reduce the data spilling, and hence disk I/O, by approximately 90\%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。