全部 标题 作者
关键词 摘要

OALib Journal期刊
ISSN: 2333-9721
费用:99美元

查看量下载量

相关文章

更多...

Runtime Engine for Dynamic Profile Guided Stride Prefetching

Keywords: stride prefetching,dynamic profiling,runtime system

Full-Text   Cite this paper   Add to My Lib

Abstract:

Stride prefetching is recognized as an important technique to improve memory access performance.The prior work usually profiles and/or analyzes the program behavior offline,and uses the identified stride patterns to guide the compilation process by injecting the prefetch instructions at appropriate places.There are some researches trying to enable stride prefetching in runtime systems with online profiling,but they either cannot discover cross-procedural prefetch opportunity,or require special supports in hardware or garbage collection.In this paper,we present a prefetch engine for JVM (Java Virtual Machine).It firstly identifies the candidate load operations during just-in-time (JIT) compilation, and then instruments the compiled code to profile the addresses of those loads.The runtime profile is collected in a trace troffer,which triggers a prefetch controller upon a protection fault.The prefetch controller analyzes the trace to discover any stride patterns,then modifies the compiled code to inject the prefetch instructions in place of the instrumentations. One of the major advantages of this engine is that,it can detect striding loads in any virtual code places for both regular and irregular code,not being limited with plain loop or procedure scopes.Actually we found the cross-procedural patterns take about 30% of all the prefetchings in the representative Java benchmarks.Another major advantage of the engine is that it has runtime overhead much slnaller (the maximal is less than 4.0%) than the benefits it brings.Our evaluation with Apache Harmony JVM shows that the engine can achieve an average 6.2% speed-up with SPECJVM98 and DaCapo on Intel Pentium 4 platform,in spite of the runtime overhead.

Full-Text

Contact Us

service@oalib.com

QQ:3279437679

WhatsApp +8615387084133