Published January 1, 2023 | Version v1
Journal article Open

Precise Event Sampling on AMD Versus Intel: Quantitative and Qualitative Comparison

  • 1. Koc Univ, Dept Comp Engn, TR-34450 Istanbul, Turkiye
  • 2. Scalable Machines Res, San Jose, CA 95134 USA
  • 3. Imperial Coll London, Dept Comp, London SW7 2BX, England

Description

Precise event sampling is a profiling feature in commodity processors that can sample hardware events and accurately locate the instructions that trigger the events. This feature has been used in a large number of tools to detect application performance issues. Although precise event sampling is readily supported in modern multicore architectures, vendor supports exhibit great differences that affect their accuracy, stability, overhead, and functionality. This work presents the most comprehensive study to date on benchmarking the event sampling features of Intel PEBS and AMD IBS and performs in-depth analysis on key differences through series of microbenchmarks. Our qualitative and quantitative analysis shows that PEBS allows finer-grained and more accurate sampling of hardware events, while IBS offers richer set of information at each sample though it suffers from lower accuracy and stability. Moreover, OS signal delivery, which is a common method used by the profiling software, introduces significant time overhead to the original overhead incurred by the hardware mechanisms in both PEBS and IBS. We also found that both PEBS and IBS have bias in sampling events across multiple different locations in a code. Lastly, we demonstrate how our findings on microbenchmarks under different thread counts hold for a full-fledged profiling tool that runs on the state-of-the-art Intel and AMD machines. Overall our detailed comparisons serve as a great reference and provide invaluable information for hardware designers and profiling tool developers.

Files

bib-32278284-b830-4514-9d14-2faceb6d9be3.txt

Files (213 Bytes)

Name Size Download all
md5:bc53b1effabfa8c3a9434ef52025691f
213 Bytes Preview Download