使用性能计数器对NUMA计算机上的内存带宽模式建模
Modeling memory bandwidth patterns on NUMA machines with performance counters
摘要:
用于数据分析的计算机通常是NUMA系统,每个机器具有多个套接字,每个套接字具有多个核心,并且每个核心具有多个线程上下文。为了使这些机器达到最佳性能,需要将正确数量的线程放置在机器上的正确位置。内存和线程放置的一个特别有趣的元素是它影响数据在机器上移动的方式,以及这可能会增加读写的延迟。在本文中,我们描述的工作建模的带宽需求的应用程序的NUMA计算节点上的线程的位置的基础上。该模型通过在2个应用程序运行期间使用精心选择的线程位置对性能计数器进行采样来参数化。通过数千次测量对模型进行评估,结果显示与预测值的中值差异为2.34%。这种建模的结果可以以多种方式使用:开发期间的性能调试,其中程序员可以被警告潜在的有问题的内存访问模式;到诸如Pandia的系统,其采用应用程序并预测所建议的线程计数和放置的性能和系统负载;到数据结构库,如并行集合和智能阵列,可以在并行代码时从用户内存放置和线程放置问题中抽象出来。
英文摘要:
Computers used for data analytics are often NUMA systems with multiple sockets per machine, multiple cores per socket, and multiple thread contexts per core. To get the peak performance out of these machines requires the correct number of threads to be placed in the correct positions on the machine. One particularly interesting element of the placement of memory and threads is the way it effects the movement of data around the machine, and the increased latency this can introduce to reads and writes. In this paper we describe work on modeling the bandwidth requirements of an application on a NUMA compute node based on the placement of threads. The model is parameterized by sampling performance counters during 2 application runs with carefully chosen thread placements. Evaluating the model with thousands of measurements shows a median difference from predictions of 2.34% of the bandwidth. The results of this modeling can be used in a number of ways varying from: Performance debugging during development where the programmer can be alerted to potentially problematic memory access patterns; To systems such as Pandia which take an application and predict the performance and system load of a proposed thread count and placement; To libraries of data structures such as Parallel Collections and Smart Arrays that can abstract from the user memory placement and thread placement issues when parallelizing code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。