Dissecting RISC-V Performance: Practical PMU Profiling and Hardware-Agnostic Roofline Analysis on Emerging Platforms

📅 2025-07-30
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
RISC-V platforms suffer from unreliable performance analysis due to toolchain fragmentation, immature hardware performance monitoring units (PMUs), and architectural limitations. To address this, we propose a compiler-driven, hardware-agnostic Roofline modeling methodology. Our approach leverages LLVM IR-level instrumentation and software-based compensation to bypass defective hardware counters, enabling robust event sampling. We innovatively employ compiler static analysis to derive operational intensity and throughput metrics—eliminating dependence on PMU measurements. Furthermore, we design an automated workflow that jointly calibrates PMU data, constructs Roofline models, and validates their accuracy. Evaluated across multiple emerging RISC-V chips, our method demonstrates effectiveness in identifying performance bottlenecks. The open-source toolchain supports cross-platform analysis and significantly improves the reliability of performance assessment and optimization efficiency—especially in scenarios where mature PMUs are unavailable.

Technology Category

Machine Learning: Hardware-aware MLConstraint Satisfaction and Optimization: Solvers and ToolsComputer Vision: Adversarial Attacks & Robustness

Application Category

Systems and Infrastructure for Web, Mobile and WoT: Web performance, measurement, and characterizationUser Modeling, Personalization and Recommendation: Attacks and countermeasures in recommendation systemsSecurity and Privacy: Large-scale security measurements
📝 Abstract
As RISC-V architectures proliferate across embedded and high-performance domains, developers face persistent challenges in performance optimization due to fragmented tooling, immature hardware features, and platform-specific defects. This paper delivers a pragmatic methodology for extracting actionable performance insights on RISC-V systems, even under constrained or unreliable hardware conditions. We present a workaround to circumvent hardware bugs in one of the popular RISC-V implementations, enabling robust event sampling. For memory-compute bottleneck analysis, we introduce compiler-driven Roofline tooling that operates without hardware PMU dependencies, leveraging LLVM-based instrumentation to derive operational intensity and throughput metrics directly from application IR. Our open source toolchain automates these workarounds, unifying PMU data correction and compiler-guided Roofline construction into a single workflow.
Problem

Research questions and friction points this paper is trying to address.

Analyzing RISC-V performance with fragmented tools and immature hardware
Overcoming hardware bugs for reliable event sampling in RISC-V
Enabling hardware-agnostic Roofline analysis using LLVM-based instrumentation
Innovation

Methods, ideas, or system contributions that make the work stand out.

Workaround for RISC-V hardware bugs
Compiler-driven Roofline without PMU
Open source toolchain automates workflow
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
N. I. Lobachevsky State University of Nizhny Novgorod
A
Alexander Batashev
Department of High-Performance Computing and Systems Programming, N. I. Lobachevsky State University of Nizhny Novgorod, Russia