• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学

• 高性能计算 • 上一篇    下一篇

飞腾1500A处理器性能分析工具Likwid研究

彭林1,方建滨1,杜琦1,唐滔1,黄春1,杨灿群1,2   

  1. (1.国防科技大学计算机学院,湖南 长沙 410073;
    2.国防科技大学并行与分布处理国家重点实验室,湖南 长沙 410073)
  • 收稿日期:2018-01-17 修回日期:2018-04-02 出版日期:2018-07-25 发布日期:2018-07-25
  • 基金资助:

    国家重点研发计划(2017YFB0202004);国家自然科学基金(61602501)

Performance analysis with Likwid
on the FT-1500A processor

PENG Lin1,FANG Jianbin1,DU Qi1,TANG Tao1,HUANG Chun1,YANG Canqun1,2   

  1. (1.College of Computer,National University of Defense Technology,Changsha 410073;
    2.National Laboratory for Parallel and Distributed Processing,
    National University of Defense Technology,Changsha 410073,China)
  • Received:2018-01-17 Revised:2018-04-02 Online:2018-07-25 Published:2018-07-25

摘要:

在飞腾1500A处理器平台对程序性能分析工具Likwid展开研究,主要研究了飞腾1500A处理器硬件拓扑信息的获取、性能监测单元PMU的访问以及性能分析工具的使用和数据分析。通过hwloc获取飞腾1500A处理器的硬件信息,给程序员提供关于飞腾1500A处理器的拓扑结构及相关概要信息;编写内核驱动模块使能飞腾1500A处理器的性能监控单元,指定事件类型,通过对应硬件计数器记录目标程序执行过程中事件发生的次数;结合简单代码和模板化的微基准测试程序,使用性能分析工具收集程序执行过程中相关数据,进行性能分析。

 

关键词: 飞腾1500A处理器, 性能分析工具, PMU

Abstract:

We exploit a performance analysis tool Likwid on the FT-1500A processor, which aims to be easy-to-use and low-overheaded. We mainly study the acquisition of hardware topology information, access to the performance monitor unit (PMU), and the use of performance analysis tools, and data analysis. The hwloc is used to get the hardware information of FT-1500A CPU. The programmers are provided with the topology information and the related summary information of FT-1500A multi-core CPU. The kernel drive module is written to enable the PMU. The event types are specified and the corresponding hardware counters are used to count the number of events during the execution of the target program. Based on simple codes and template micro benchmarks, performance analysis tools are used to collect data during the program execution and do the performance analysis.

Key words: FT-1500A processor, performance analysis tool, PMU