期刊文献+

一种监测函数语义信息访存地址序列的方法 被引量:1

An Approach for Monitoring Memory Address Traces with Functional Semantic Information
下载PDF
导出
摘要 准确地获取应用程序在真实系统上运行的访存地址序列(traces)是进行内存系统调度及结构优化的基础.HMTT是自主研发的软硬件结合的内存监测分析系统,能够实时获取完整的全系统访存traces.但是得到的traces与应用程序上层事件之间存在语义鸿沟问题,比如上层函数执行流与访存traces的同步问题.针对该问题提出了一种软硬件结合获取包含函数级别语义信息访存traces的方法,软件方面通过二进制插桩的方式,直接修改内存中的进程映像,在目标函数的入口及出口各插入标记tag访存指令,进而能够被HMTT卡监测并识别.采用二进制插桩不需要程序的源代码,不需要对程序重新编译链接,而且引入的运行开销很小.实验表明采用软硬件结合的方式能够有效地获取包含函数级别语义信息的访存traces,对于SPECCPU2006中的访存密集型程序引入的性能开销只是原程序的62%,而使用Pin工具的纯软件方式获取访存traces将导致至少10.4倍的性能开销. Accurate monitoring memory traces of applications running on real systems is the basis of memory system scheduling and architecture optimization. HMTT is a hybrid hardware/software memory traces tracker system, which is able to track full-system memory traces in real time. But there exists a semantic gap between memory traces and high level application events, such as synchronization problem between upper functional execution flow and memory traces. In this paper, we propose a hybrid hardware/software approach for monitoring memory traces with functional level semantic information. It directly modifies the process image in memory with binary instrumentation at the beginning of a process, by respectively inserting an extra tag memory access instruction at the entry and exit of each target function, which will be tracked and identified by HMTT. With binary instrumentation, there is no need to require source code of applications, no need to re-compile or re- link applications, and the run time overhead is quite low. The experimental results show that our hybrid hardware/software approach can effectively track memory traces with functional semantic information. For memory intensive applications in SPECCPU2006, the average run time overhead is 62%, and the pure software approach run time overhead with Pin is at least 10.4 times, compared with the original run time.
出处 《计算机研究与发展》 EI CSCD 北大核心 2013年第5期1100-1109,共10页 Journal of Computer Research and Development
基金 国家自然科学基金项目(60925009 60921002 60903046 61272132) 国家"九七三"重点基础研究发展计划基金项目(2011CB302502) 中国科学院战略性先导专项课题(XDA06010401) IBM共享大学研究(SUR)项目
关键词 HMTT 访存traces 函数级别语义鸿沟 二进制插桩 ELF tag访存 hybrid memory trace toolkit (HMTT) memory traces functional level semantic gap^binary instrumentationl executable and linkable format (ELF) tag memory access
  • 相关文献

参考文献19

  • 1Onur M, Thomas M. Parallelism-aware batch scheduling: Enhancing both performance and fairness of shared DRAM systems[C] //Proc of the 35th Annual Int Symp on Computer Architecture. Los Alamitos, CA: IEEE Computer Society, 2008:63-74.
  • 2Bao Yungang, Chen Mingyu, Ruan Yuan, et al. HMTT: A platform independent full-system memory trace monitoring system [C]//Proc of the 2008 ACM SIGMETRICS Int Conf on Measurement and Modeling of Computer Systems. New York: ACM, 2008:229-240.
  • 3阮元,包云岗,陈明宇,樊建平.基于硬件的内存trace工具--MTT的设计与实现[J].电子学报,2008,36(8):1519-1525. 被引量:2
  • 4Chi K L, Robert C, Robert M, et al. Pin: Building customized program analysis tools with dynamic instrumentation [C] //Proc of the 2005 ACM SIGPLAN Conf on Programming Language Design and Implementation. New York: ACM, 2005:190-200.
  • 5Derek L B. Efficient, transparent, and comprehensive runtime code manipulation [D]. Cambridge, MA : Massachusetts Institute of Technology, 2004.
  • 6TIS Committee. Tool Interface Standard (TIS) Executable and Linking Format (ELF) Specification, Version 1.2 lOLl. [2012-02-07]. http://refspees, linuxbase, orgelfel, pdf.
  • 7Asim S. A system for process checkpointing and restarting ( using a core dump ) lOLl. [ 2012-02-07 ]. http:// geocitiessites, com/asimshankar/checkpointing/report, pdf.
  • 8Silvio C, Matrix Z. Shared library call redirection using ELF PLT infection [OL]. [-2012-02-07]. http://vxheavens, corn/ lib/vsc06, html.
  • 9杨浩,唐锋,谢海斌,武成岗,冯晓兵.二进制翻译中的库函数处理[J].计算机研究与发展,2006,43(12):2174-2179. 被引量:9
  • 10Susanta N, Wei L, Lap C L, et al. BIRD: Binary interpretation using runtime disassembly [C]//Proc of the Int Symp on Code Generation and Optimization. Los Alamitos, CA: IEEE Computer Society, 2006:358-370.

二级参考文献29

  • 1E R Altman,D Kaeli,Y Sheffer.Welcome to the opportunities of binary translation[J].IEEE Computer,2000,33(3):40-45
  • 2R J Hookway,M A Herdeg.Digital FX! 32:Combining emulation and binary translation[J].Digital Technical Journal,1977,9(1):3-12
  • 3Mark Probst.Dynamic binary translation[C].UKUUG Linux Developer's Conf,Bristol,2002
  • 4Richard L Sites,Anton Chernoff,Matthew B Kirk,et al.Binary translation[J].Communications of the ACM,1993,36(2):197-218
  • 5Leonid Baraz,Tevi Devor,Orna Etzion.IA-32 execution layer:A two-phase dynamic translator designed to support IA-32 applications on Itanium(r)-based systems[C].In:Proc of the 36th Int'l Symp on Microarchitecture (MICRO-36 2003).Los Alamitos:IEEE Computer Society Press,2003
  • 6D Ung,C Cifuentes.Machine-adaptable dynamic binary translation[C].In:Proc of the ACM SIGPLAN Workshop on Dynamic and Adaptive Compilation and Optimization.New Yrok:ACM Press,2000.30-40
  • 7C Cifuentes,B Lewis,D Ung.Walkabout-A retargetable dynamic binary translation framework[C].The 4th Workshop on Binary Translation,Charlottesville,Virginia,2002
  • 8243190 Intel Architecture Software Developer's Manual Volume 1:Basic Architecture.Santa Clara,CA:Intel,1999
  • 9243191 Intel Architecture Software Developer's Manual Volume 2:Instruction Set Referenc.Santa Clara,CA:Intel,1999
  • 10Joe Heinvich.94039-7311 MIPS R4000 Microprocessor User's Manual,Second edition.Mountain View:MIPS Technologies,Inc,1994

共引文献9

同被引文献9

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部