Mao:面向仓库级计算机NUMA优化的机器学习方法
Mao: Machine learning approach for NUMA optimization in Warehouse Scale Computers
AI总结:
针对NUMA架构下超大规模数据中心内存访问局部性优化难的问题,百度提出含在线/离线模块的MAO解决方案及NUMA敏感度模型,已部署十万台服务器,在Feed产品中实现12.1%延迟降低与9.8%CPU资源节省。
摘要:
非统一内存访问(Non-Uniform Memory Access,NUMA)架构给当今的云工作负载带来了诸多性能挑战。由于现代仓库级计算机(Warehouse-Scale Computers,WSCs)的复杂性和超大规模,要在NUMA架构上提升内存访问局部性需要投入大量工作。在百度,我们发现NUMA优化对搜索和信息流(Feed,百度的推荐系统)等核心工作负载有显著的性能收益。但如何在大规模集群中开展NUMA优化,存在诸多细微的复杂性,还需要针对工作负载的特定场景进行优化。本文将介绍百度部署在生产环境中的解决方案MAP(Memory Access Optimizer,内存访问优化器),它用于提升百度各类工作负载的内存访问局部性。MAO包含一个在线模块和一个离线模块:在线模块负责在线监控、动态NUMA节点绑定以及运行时优化;离线工作负载特征刻画模块则进行数据分析与资源敏感度模块训练。我们还提出了一种名为“NUMA敏感度模型”的新型性能模型,用于解决远程内存访问对工作负载性能的影响问题,并能预测特定工作负载通过NUMA优化可获得的潜在性能提升。基于在线监控持续收集的数据,该模型已被证实在MAO中运行良好。截至目前,我们已成功将MAO部署到超过十万台服务器上。在我们的Feed产品中,实现了12.1%的平均延迟降低以及9.8%的CPU资源节省。
英文摘要:
Non-Uniform Memory Access (NUMA) architecture imposes numerous performance challenges to today's cloud workloads. Due to the complexity and the massive scale of modern warehouse-scale computers (WSCs), a lot of efforts need to be done to improve the memory access locality on the NUMA architecture. In Baidu, we have found that NUMA optimization has significant performance benefit to the major workloads like Search and Feed (Baidu's recommendation system). But how to conduct NUMA optimization within the large scale cluster brings a lot of subtle complexities and workload-specific scenario optimizations. In this paper, we will present a production environment deployed solution in Baidu called MAP (Memory Access Optimizer) that helps improve the memory access locality for Baidu's various workloads. MAO includes an online module and an offline module. The online module is responsible for the online monitoring, dynamic NUMA node binding and runtime optimization. Meanwhile the offline workload characterization module will proceed with the data analysis and resource-sensitivity module training. We also proposed a new performance model called "NUMA Sensitivity model" to address the impact of remote memory access to workload performance and projection of the potential performance improvements via NUMA optimization for a specific workload. Based on continuous data collected from online monitoring, this model is proved to be working properly in MAO. As of today, we have successfully deployed MAO to more than one hundred thousand servers. In our Feed product, we have achieved 12.1% average latency improvements and 9.8% CPU resource saving.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。