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)|2018. 01. 28.
Cloud Computing and Resource ManagementComputer Science참고 문헌 32인용 수 4
한 줄 요약

이 논문은 데이터센터 워크로드를 위한 새로운 계산 중심 메트릭으로 BOPS(Basic Operations Per Second)를 제안한다. FLOPS는 평균 활용도가 0.1%에 불과해 비효율적이므로 이를 대체한다. 정수/부동소수점 산술, 비교, 배열 인덱싱과 같은 최소한의 대표 연산을 정의함으로써 저자들은 공식적인 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.

연구 동기 및 목표

  • 현재 사용자 인지 성능 지표(예: 초당 요청 수, 월드 클록 시간)에 의존하고 있는 데이터센터(DC) 워크로드에 대해 통합된 계산 중심의 성능 메트릭이 부족한 문제를 해결한다.
  • 데이터센터 워크로드에 FLOPS를 사용할 경우 근본적인 결함이 존재하며, 평균 FLOPS 효율이 0.1%에 불과해 실제 성능과의 상관관계가 떨어진다는 점을 규명한다.
  • 다양한 데이터센터 워크로드에 공통적으로 존재하는 최소한의 대표 연산 집합을 기반으로 새로운 메트릭인 BOPS(Basic Operations Per Second)를 개발한다.
  • BOPS 기반의 성능 상한 모델인 DC-Roofline을 정의하여 시스템 평가 및 워크로드 최적화를 안내한다.
  • 실제 최적화를 통해 BOPS의 실용성을 입증한다. Redis와 Sort 워크로드에 적용한 결과, 명확한 성능 향상이 관찰되었다.

제안 방법

  • Redis, Sort, AI 추론 등 17개의 전형적 데이터센터 워크로드를 분석하여 주요 연산을 규명함. 분석 결과, 데이터 이동 및 제어 중심 워크로드로 정수 연산과 분기 연산 비중이 높은 것으로 나타남.
  • BOPs(Basic Operations)를 정의함: 정수/부동소수점 산술, 비교, 배열 인덱싱 — 이는 데이터 이동 및 제어 흐름에 핵심적인 역할을 하는 연산들.
  • BOPS를 계산 중심 메트릭으로 공식화함: BOPS = (실행된 BOPs 총합) / (월드 클록 시간). 이는 하드웨어에 종속되지 않은 플랫폼 간 및 워크로드 간 성능 비교를 가능하게 함.
  • 소스 코드 분석을 통해 BOPs를 수치화하고 성능을 추정하는 BOPS 측정 도구를 구현함. 이 도구는 하드웨어 특화 최적화에 영향을 받지 않음.
  • BOPS 기반의 성능 상한 모델인 DC-Roofline 모델을 개발함. 이 모델은 성능 저하 원인(예: 메모리 대역폭, 계산 능력)을 식별하고 최적화를 안내함.
  • DC-Roofline 모델을 실제 워크로드 최적화에 적용함: 컴파일러 플래그(-O3), 메모리 할당기 교체(Jemalloc), 해시 함수 교체(HighwayHash), 사전 할당(NO_REHASH)를 통해 OI와 BOPS를 향상시킴.

실험 결과

연구 질문

  • RQ1현대 데이터센터 워크로드에 FLOPS가 성능 메트릭으로 효과적이지 않은 이유는 무엇이며, 실제 성능과의 상관관계가 낮아지는 근본 원인은 무엇인가?
  • RQ2다양한 데이터센터 워크로드 전반에서 본질적인 계산 행동을 포괄하는 최소한의 대표 연산 집합은 무엇인가?
  • RQ3BOPS라는 새로운 계산 중심 메트릭을 어떻게 공식적으로 정의하고 측정할 수 있는가? 이를 통해 이질적인 워크로드 간 정확한 동등 비교가 가능해지는가?
  • RQ4BOPS 기반의 DC-Roofline 모델은 실제 데이터센터 워크로드에서 성능 저하 원인을 효과적으로 예측하고 시스템 수준 최적화를 안내할 수 있는가?
  • RQ5BOPS 기반 최적화를 통해 Redis 및 Sort와 같은 실제 워크로드의 BOPS 효율성과 종단 간 성능은 어느 정도 향상될 수 있는가?

주요 결과

  • 데이터센터 워크로드의 평균 FLOPS 효율은 단지 0.1%에 불과하여, FLOPS가 실제 데이터센터 성능을 기술하는 데 부적절한 메트릭임을 입증한다.
  • 세 대의 인텔 플랫폼에서 피크 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가 시스템 평가 및 최적화에 있어 보편성과 실용성을 입증하였다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.