计算机科学 ›› 2011, Vol. 38 ›› Issue (2): 288-292.

• 体系结构 • 上一篇    下一篇

Pview:一种基于PMU的支持并行程序性能分析的新方法

闫洁,徐恒阳,安虹,刘玉,王耀彬   

  1. (中国科学技术大学计算机科学与技术系 合肥230027) (中国科学院计算技术研究所系统结构重点实验室 北京100080)
  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文受国家科技重大专项项目(2009ZX01036-001-002) ,国家自然科学基金重点项目(60633040),国家自然科学基金项目(60970023),国家973计划项目(2005CB321601),国家863计划重大项目(2006AA01A102),国家863计划项目(2009AA01Z106)资助.

Pview: A Novel Implementation of Fundamental Supports for Parallel Programs Performance Monitoring Based on PMU

YANG Jie,XU Heng-yang,AN Hong,LIU Yu,WANG Yao-bin   

  • Online:2018-11-16 Published:2018-11-16

摘要: 近年来,随着并行编程的普及,性能监测和剖析已经成为计算机系统领域最重要的研究课题之一。PMU(Performance Monitoring Unit),即现代处理器里集成的微体系事件性能计数器,为性能监测提供了底层支持,使得在以极小的额外开销和极少的对目标程序的干扰的情况下对程序进行性能监测成为可能。Pview(Performance View)是一种在系统级支持对并行程序尤其是多线程程序进行性能监测与分析的工具,它同时支持全系统和针对特定进程(线程组)的性能事件直接计数或者抽样的分析方法。Pview在Linux操作系统平台上通过扩展内核2. 6. 30,实现了一个新的系统调用Pvicw来提供性能监测服务;同时与以模块方式实现的数据收集引擎协作,可以实现抽样并将大规模样本数据传输到用户空间供进一步分析。

关键词: 硬件性能计数器,性能监测,多线程程序分析

Abstract: In the past recent years,performance monitoring and profiling have been becoming one of the most important issues in the era of parallel programming. Performance Monitoring Unit(shortly PMU in the rest of this paper) embedded in the modern processor provides a hardware support that makes it possible to monitor a running program online with trivial system disturbance and overhead and further do more post analysis in scrutiny based on the collected data.Pview, meaning performance view, is a novel scheme we designed to fundamentally support performance monitoring for multi-threaded applications in system level, and it is implemented in I_inux 2. 6. 30 platform by extending the kernel.Pview uses an approach of system call to rectuest performance monitoring services, and also co-works with a module called pvicw data collector engine to feed user analyzer tools the collected performance event data. I}his paper presented all of our minds in pvicw design.

Key words: PMU, Performance monitoring, Multi-threaded program analysis

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!