arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2112.11767cs.PF
收藏

通过Linux性能分析工具支持RISC-V性能计数器(Perf)

Supporting RISC-V Performance Counters through Performance analysis tools for Linux (Perf)

Joao Mario Domingos, Pedro Tomas, Leonel Sousa

摘要:

RISC-V在云计算、数据中心、汽车和网络应用中的关注度越来越高,推动了RISC-V向高性能计算场景的转变。然而,缺乏强大的性能监控工具将导致应用程序优化不佳,从而限制计算性能。虽然RISC-V ISA已经定义了硬件性能监控器(HPM),但当前的软件对监控性能的支持有限。在本文中,我们介绍了对Linux性能分析工具(perf/perf_events)、Linux内核和OpenSBI的扩展和修改,旨在实现对RISC-V性能监控规范的全面支持。初步的测试和评估是在Linux 5.7中进行的,运行在FPGA引导的CVA 6 CPU上,以前称为Ariane,显示了0.283%的监控开销。

英文摘要:

Increased attention to RISC-V in Cloud, Data Center, Automotive and Networking applications, has been fueling the move of RISC-V to the high-performance computing scenario. However, lack of powerful performance monitoring tools will result in poorly optimized applications and, consequently, a limited computing performance. While the RISC-V ISA already defines a hardware performance monitor (HPM), current software gives limited support for monitoring performance. In this paper we introduce extensions and modifications to the Performance analysis tools for Linux(perf/perf_events), Linux kernel, and OpenSBI, aiming to achieve full support for the RISC-V performance monitoring specification. Preliminary testing and evaluation was carried out in Linux 5.7 running on a FPGA booted CVA6 CPU, formerly named Ariane, showing a monitoring overhead of 0.283%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑