[论文解读] BOPS, Not FLOPS! A New Metric and Roofline Performance Model For Datacenter Computing
本文提出 BOPS(每秒基本操作数)作为数据中心工作负载的新计算中心指标,取代因利用率低下(仅 0.1% 效率)而无效的 FLOPS。通过定义一组最小且具代表性的操作——整数/浮点数算术、比较和数组寻址,作者提出正式的 BOPS 模型及工具,可实现准确的性能上限估计与跨工作负载比较,经 BOPS 指导的优化使 Sort 实现 4.4× 加速,Redis 实现 1.2× 加速。
For emerging datacenter (in short, DC) workloads, such as online Internet services or offline data analytics, how to evaluate the upper bound performance and provide apple-to-apple comparisons are fundamental problems. To this end, a unified computation-centric metric is an essential requirement. As the most important computation-centric performance metric, FLOPS has guided computing systems evolutions for many years. However, our observations demonstrate that the average FLOPS efficiency of the DC workloads is only 0.1%, which implies that FLOPS is inappropriate for DC computing. To address the above issue, we propose BOPS (Basic Operations Per Second), which is the average number of BOPs (Basic OPerations) completed per second. We conduct the analysis on the characteristics of seventeen typical DC workloads and extract the minimum representative computation operations set, which is composed of integer and floating point computation operations of arithmetic, comparing and array addressing. Then, we propose the formalized BOPS definition and the BOPS based upper bound performance model. Finally, the BOPS measuring tool is also implemented. We perform experiments with seventeen DC workloads on three typical Intel processors platforms. First, BOPS can reflect the performance gap of different computing systems, the bias between the peak BOPS performance gap and the average DC workloads' wall clock time gap is no more than 10%. Second, the Sort workload can achieve 32% BOPS efficiency on the experimental platform. At last, we present two use cases of BOPS. One is the BOPS based system evaluation, we illustrate that BOPS can compare performance of workloads from multiple domains. The other is BOPS based optimizations. We show that under the guiding of the BOPS based upper bound model, the Sort workload and the Redis workload achieve 4.4X and 1.2X performance improvements respectively.
研究动机与目标
- 解决数据中心(DC)工作负载缺乏统一、计算中心性能指标的问题,当前依赖用户感知指标如每秒请求数或时钟时间。
- 识别将 FLOPS 用于数据中心工作负载的根本缺陷,其平均 FLOPS 效率仅为 0.1%,因此无法准确反映性能。
- 基于跨多样化数据中心工作负载普遍存在的最小且具代表性的操作集,提出新指标 BOPS(每秒基本操作数)。
- 建立基于 BOPS 的正式性能上限模型(DC-Roofline),以指导系统评估与工作负载优化。
- 通过 Redis 和 Sort 的实际优化,展示 BOPS 的实用价值,实现可测量的性能提升。
提出的方法
- 分析 17 种典型数据中心工作负载(如 Redis、Sort、AI 推理),识别主导操作,发现其以数据移动和控制密集型为主,整数和分支操作占比高。
- 将 BOPs(基本操作)定义为一组最小且具代表性的操作:整数/浮点数算术、比较和数组寻址——这些操作对数据移动和控制流至关重要。
- 将 BOPS 形式化为计算中心指标:BOPS =(执行的基本操作总数)/(时钟时间),支持跨平台和跨工作负载的性能比较。
- 实现一个 BOPS 测量工具,通过静态分析源代码统计 BOPs 并估计性能,独立于硬件特定调优。
- 开发 DC-Roofline 模型,一种基于 BOPS 的性能上限模型,可识别性能瓶颈(如内存带宽、计算能力),并指导优化。
- 应用 DC-Roofline 模型对真实工作负载进行优化:使用编译器标志(-O3)、内存分配器替换(Jemalloc)、哈希函数替换(HighwayHash)及预分配(NO_REHASH),以提升 OI 和 BOPS。
实验结果
研究问题
- RQ1为何 FLOPS 作为现代数据中心工作负载的性能指标无效?其与实际性能相关性差的根本原因是什么?
- RQ2是否存在一组最小且具代表性的计算操作,能够捕捉多样化数据中心工作负载中的核心计算行为?
- RQ3如何正式定义并测量一种新的计算中心指标 BOPS,以实现对异构工作负载的准确、可比性能比较?
- RQ4基于 BOPS 的 DC-Roofline 模型能否有效预测性能瓶颈,并指导真实数据中心工作负载的系统级优化?
- RQ5BOPS 指导的优化在多大程度上能提升真实数据中心工作负载(如 Redis 和 Sort)的 BOPS 效率与端到端性能?
主要发现
- 数据中心工作负载的平均 FLOPS 效率仅为 0.1%,证明 FLOPS 无法准确表征真实数据中心性能。
- 在三种 Intel 平台中,BOPS 在峰值 BOPS(微架构)与平均时钟时间之间的性能差距偏差不超过 10%,证实其能准确反映系统性能差异。
- 在实验平台上,Sort 工作负载的 BOPS 效率达到 32%,证明 BOPS 可量化真实系统的利用率并指导优化。
- 通过 DC-Roofline 模型,Sort 工作负载经针对性优化后实现 4.4× 性能提升,验证了该模型在识别和解决瓶颈方面的有效性。
- 通过 BOPS 指导的优化技术(NO_REHASH、JE_MALLOC、SIMD_HASH),Redis 工作负载实现 1.2× 性能提升(从 122k 提升至 146k QPS),OI 从 2.9 上升至 3.8。
- BOPS 测量工具成功实现跨领域比较,涵盖大数据、AI、HPC、OLTP 和 OLAP 工作负载,证明 BOPS 在系统评估与优化中的普适性与实用性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。