Skip to main content
QUICK REVIEW

[論文レビュー] BOPS, Not FLOPS! A New Metric and Roofline Performance Model For Datacenter Computing

Lei Wang, Jianfeng Zhan|arXiv (Cornell University)|Jan 28, 2018
Cloud Computing and Resource ManagementComputer Science参考文献 32被引用数 4
ひとこと要約

本稿では、低利用率(0.1%の効率)のため効果が薄いFLOPSに代わって、データセンタワークロードの計算中心の指標としてBOPS(Basic Operations Per Second)を提案する。整数/浮動小数点演算、比較、配列インデックスアクセスの最小限の代表的演算から成るセットを定義し、形式的なBOPSモデルとツールを導入。これにより、性能の上限推定とクロスワークロード比較が可能となり、Sortでは4.4倍、Redisでは1.2倍の高速化を達成した。

ABSTRACT

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.

研究の動機と目的

  • データセンタワークロードに統一的かつ計算中心の性能指標が不足している問題に対処し、現在はリクエスト数/秒やウォールクロック時間といったユーザー主観的指標に依存していること。
  • FLOPSがデータセンタワークロードに不適切である根本的要因を特定し、平均FLOPS効率がたった0.1%にとどまることから、実際の性能と相関が薄いこと。
  • 多様なデータセンタワークロードに共通する最小限で代表的な演算セットに基づき、BOPS(Basic Operations Per Second)という新しい指標を構築すること。
  • BOPSに基づく性能上限モデル(DC-Roofline)を形式的に確立し、システム評価とワークロード最適化を支援すること。
  • RedisおよびSortにおける実世界の最適化を通じてBOPSの実用的価値を実証し、明確な性能向上を示すこと。

提案手法

  • Redis, Sort, AI推論など17の典型的なデータセンタワークロードを分析し、支配的演算を特定。その結果、データ移動および制御に依存するワークロードで、整数演算および分岐命令が多く含まれていることが判明。
  • BOPs(Basic Operations)を、整数/浮動小数点演算、比較、配列インデックスアクセスの最小限で代表的な演算セットとして定義。これらはデータ移動および制御フローに不可欠な演算。
  • BOPSを計算中心の指標として形式化:BOPS = (実行されたBOPの合計)/(ウォールクロック時間)。これにより、異機種間・異ワークロード間での性能比較が可能に。
  • ソースコード解析によりBOPを数え、性能を推定するBOPS測定ツールを実装。ハードウェア特化のチューニングに依存しない。
  • BOPSに基づく性能上限モデル(DC-Roofline)を構築。メモリ帯域幅や計算性能などのボトルネックを特定し、最適化を支援。
  • DC-Rooflineモデルを実ワークロードに適用。コンパイラフラグ(-O3)、メモリアロケータの置き換え(Jemalloc)、ハッシュ関数の置き換え(HighwayHash)、事前割り当て(NO_REHASH)を用い、OIおよびBOPSを向上。

実験結果

リサーチクエスチョン

  • RQ1FLOPSが現代のデータセンタワークロードに不適切な性能指標である理由は何か? その実際の性能との相関が薄い根本的要因は?
  • RQ2多様なデータセンタワークロードに共通する、計算行動の本質を捉える最小限で代表的な演算セットとは何か?
  • RQ3BOPSという新しい計算中心の指標を、正確な同等比較が可能な形で形式的に定義・測定する方法は?
  • RQ4BOPSに基づくDC-Rooflineモデルは、実世界のデータセンタワークロードにおいて、性能ボトルネックを的確に予測し、システムレベルの最適化を効果的に支援できるか?
  • RQ5BOPSに従った最適化により、Redis や Sort といった実世界のデータセンタワークロードは、BOPS効率およびエンドツーエンド性能においてどの程度向上できるか?

主な発見

  • データセンタワークロードの平均FLOPS効率はたった0.1%であり、FLOPSが実世界のデータセンターパフォーマンスを特徴付ける指標として不適切であることを示している。
  • 3つのIntelプラットフォームにおいて、ピークBOPS(マイクロアーキテクチャ)と平均ウォールクロック時間との間で、性能ギャップバイアスが10%未満に抑えられ、BOPSがシステム性能差を的確に反映していることを確認。
  • 実験プラットフォーム上、SortワークロードでBOPS効率が32%に達した。BOPSが実システムの利用状況を定量化し、最適化を導くのに有効であることを示している。
  • DC-Rooflineモデルを用いて、Sortワークロードにターゲットオプティマイゼーションを施した結果、4.4倍のパフォーマンス向上を達成。モデルがボトルネックを特定・解消する有効性を裏付けた。
  • RedisワークロードはBOPSに従った最適化手法(NO_REHASH, JE_MALLOC, SIMD_HASH)を適用し、1.2倍のパフォーマンス向上(122kから146k QPS)を達成。OIは2.9から3.8に上昇。
  • BOPS測定ツールは、ビッグデータ、AI、HPC、OLTP、OLAPの分野を横断した比較に成功。BOPSの普遍性と、システム評価・最適化における実用的価値を証明した。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。