Managed Languages & Runtimes最新文献

筛选
英文 中文
Exploiting high-performance heterogeneous hardware for Java programs using graal 使用gral为Java程序开发高性能异构硬件
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237016
James Clarkson, J. Fumero, Michail Papadimitriou, Foivos S. Zakkak, Maria Xekalaki, Christos Kotselidis, M. Luján
{"title":"Exploiting high-performance heterogeneous hardware for Java programs using graal","authors":"James Clarkson, J. Fumero, Michail Papadimitriou, Foivos S. Zakkak, Maria Xekalaki, Christos Kotselidis, M. Luján","doi":"10.1145/3237009.3237016","DOIUrl":"https://doi.org/10.1145/3237009.3237016","url":null,"abstract":"The proliferation of heterogeneous hardware in recent years means that every system we program is likely to include a mix of compute elements; each with different characteristics. By utilizing these available hardware resources, developers can improve the performance and energy efficiency of their applications. However, existing tools for heterogeneous programming neglect developers who do not have the time or inclination to switch programming languages or learn the intricacies of a specific piece of hardware.\u0000 This paper presents a framework that enables Java applications to be deployed across a variety of heterogeneous systems while exploiting any available multi- or many-core processor. The novel aspect of our approach is that it does not require any a priori knowledge of the hardware, or for the developer to worry about managing disparate memory spaces. Java applications are transparently compiled and optimized for the hardware at run-time.\u0000 We also present a performance evaluation of our just-in-time (JIT) compiler using a framework to accelerate SLAM, a complex computer vision application entirely written in Java. We show that we can accelerate SLAM up to 150x compared to the Java reference implementation, rendering 107 frames per second (FPS).","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"12 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"132088559","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 21
Parallel trace register allocation 并行跟踪寄存器分配
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237010
J. Eisl, David Leopoldseder, H. Mössenböck
{"title":"Parallel trace register allocation","authors":"J. Eisl, David Leopoldseder, H. Mössenböck","doi":"10.1145/3237009.3237010","DOIUrl":"https://doi.org/10.1145/3237009.3237010","url":null,"abstract":"Register allocation is a mandatory task for almost every compiler and consumes a significant portion of compile time. In a just-in-time compiler, compile time is a particular issue because compilation happens during program execution and contributes to the overall application run time. Parallelization can help here. We developed a theoretical model for parallel register allocation and show that it can be used in practice without a negative impact on the quality of the allocation result. Doing so reduces compilation latency, i.e., the duration until the result of a compilation is available.\u0000 Our analysis shows that parallelization can theoretically decrease allocation latency by almost 50%. We implemented an initial prototype which reduces the register allocation latency by 28% when using four threads, compared to the single-threaded allocation.","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"114 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"117153572","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
Defining a high-level programming model for emerging NVRAM technologies 定义新兴NVRAM技术的高级编程模型
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237027
Thomas Shull, Jian Huang, J. Torrellas
{"title":"Defining a high-level programming model for emerging NVRAM technologies","authors":"Thomas Shull, Jian Huang, J. Torrellas","doi":"10.1145/3237009.3237027","DOIUrl":"https://doi.org/10.1145/3237009.3237027","url":null,"abstract":"Byte-addressable non-volatile memory is poised to become prevalent in the near future. Thanks to device-level technological advances, hybrid systems of traditional dynamic random-access memory (DRAM) coupled with non-volatile random-access memory (NVRAM) are already present and are expected to be commonplace soon. NVRAM offers orders of magnitude performance improvements over existing storage devices. Due to NVRAM's low overheads, many future applications are expected to leverage the fine-grain durable storage provided by NVRAM.\u0000 Many frameworks for programming NVRAM have been proposed. Unfortunately, these existing frameworks closely mirror the underlying hardware. This lack of abstraction hurts programmer productivity, makes it easy to write buggy code, and limits the compiler's effectiveness. Furthermore, this low level of abstraction does not match the expectations of managed language users.\u0000 To rectify this situation, in this paper we describe a new high-level NVRAM programming model amenable to managed languages. Because our model is defined at a high level, it is intuitive, not prone to user bugs, and is flexible enough to allow language implementers to perform many optimizations while still adhering to the model.\u0000 In addition to proposing this model, we also briefly describe how Java can be extended to support our new model. Finally, we present some initial results on the performance overheads of creating durable applications in NVRAM and describe what future work we intend to complete.","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"39 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"129898240","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 14
Performance analysis for languages hosted on the truffle framework 托管在truffle框架上的语言性能分析
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237019
Swapnil Gaikwad, A. Nisbet, M. Luján
{"title":"Performance analysis for languages hosted on the truffle framework","authors":"Swapnil Gaikwad, A. Nisbet, M. Luján","doi":"10.1145/3237009.3237019","DOIUrl":"https://doi.org/10.1145/3237009.3237019","url":null,"abstract":"It is attractive to host new or existing language implementations on top of, or reusing components of, existing managed language runtimes such as the Java Virtual Machine (JVM) or the Microsoft Common Language Infrastructure (CLI). A benefit is that software development effort may be reduced, as only one managed language runtime needs to be optimised and maintained, instead of a separate compiler/runtime for each language implementation.\u0000 For example, the Truffle framework combined with a JVM offers support for executing Javascript, Ruby, R, LLVM IR-compiled languages, etc., as well as supporting the execution of applications combining multiple programming languages within a Polyglot application. In trying to understand the runtime performance of Sulong (i.e. the Truffle project which enables LLVM IR execution), we found a lack of tools and guidance. A similar situation is found for benchmarks written in Ruby and R when executed as Truffle hosted languages. Further, it is non-trivial to relate performance back to the hosted language source code, and to determine whether JVM service overheads, such as garbage collection or JIT compilation, are significant.\u0000 We describe how to visually analyse the performance of Truffle-hosted languages based on Flamegraphs, allowing time to be related to sampled call-stacks. We use the Linux tool perf and the JVM agent perf-map-agent, along with enhancements to the Graal JIT compiler that map sampled call-stacks onto JVM-hosted guest language source code. This paper demonstrates the ease and flexibility of using these modified tools, with low overhead during execution time. We also illustrate applicability of the techniques to understand the performance of Polyglot applications.","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"186 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"128366843","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 5
Towards a framework for stochastic performance optimizations in compilers and interpreters: an architecture overview 面向编译器和解释器随机性能优化的框架:体系结构概述
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237024
Oliver Krauss
{"title":"Towards a framework for stochastic performance optimizations in compilers and interpreters: an architecture overview","authors":"Oliver Krauss","doi":"10.1145/3237009.3237024","DOIUrl":"https://doi.org/10.1145/3237009.3237024","url":null,"abstract":"Modern compilers and interpreters provide code optimizations before and during run-time to stay competitive with alternative execution environments, thus moving required domain knowledge about the compilation process away from the developer and speeding up resulting software. These optimizations are often based on formal proof, or alternatively have recovery paths as backup.\u0000 This publication proposes an architecture utilizing abstract syntax trees (ASTs) to optimize the runtime performance of code with stochastic - search based - machine learning techniques. From these AST modifying optimizations a pattern mining approach attempts to find transformation patterns which are applicable to a software language. The application of these patterns happens during the parsing process or the programs run-time.\u0000 Future work consists of implementing and extending the presented architecture, with a considerable focus on the mining of transformation patterns.","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"38 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"132708024","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 2
Fast-path loop unrolling of non-counted loops to enable subsequent compiler optimizations 非计数循环的快速路径循环展开,以启用后续的编译器优化
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237013
David Leopoldseder, Roland Schatz, Lukas Stadler, Manuel Rigger, Thomas Würthinger, H. Mössenböck
{"title":"Fast-path loop unrolling of non-counted loops to enable subsequent compiler optimizations","authors":"David Leopoldseder, Roland Schatz, Lukas Stadler, Manuel Rigger, Thomas Würthinger, H. Mössenböck","doi":"10.1145/3237009.3237013","DOIUrl":"https://doi.org/10.1145/3237009.3237013","url":null,"abstract":"Java programs can contain non-counted loops, that is, loops for which the iteration count can neither be determined at compile time nor at run time. State-of-the-art compilers do not aggressively optimize them, since unrolling non-counted loops often involves duplicating also a loop's exit condition, which thus only improves run-time performance if subsequent compiler optimizations can optimize the unrolled code.\u0000 This paper presents an unrolling approach for non-counted loops that uses simulation at run time to determine whether unrolling such loops enables subsequent compiler optimizations. Simulating loop unrolling allows the compiler to determine performance and code size effects for each potential transformation prior to performing it.\u0000 We implemented our approach on top of the GraalVM, a high-performance virtual machine for Java, and evaluated it with a set of Java and JavaScript benchmarks in terms of peak performance, compilation time and code size increase. We show that our approach can improve performance by up to 150% while generating a median code size and compile-time increase of not more than 25%. Our results indicate that fast-path unrolling of non-counted loops can be used in practice to increase the performance of Java applications.","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"148 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"134111322","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 8
Redundancy elimination in the presence of split class initialization 存在拆分类初始化时的冗余消除
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237014
A. Pilipenko, Oleg Pliss
{"title":"Redundancy elimination in the presence of split class initialization","authors":"A. Pilipenko, Oleg Pliss","doi":"10.1145/3237009.3237014","DOIUrl":"https://doi.org/10.1145/3237009.3237014","url":null,"abstract":"Virtual machines for mobile and embedded devices often use the romization technique when the VM is loaded from a preinitialized state, previously saved as an image. This way some of the initialization work can be avoided in a resource constrained environment. For Java, one of the initialization activities which can be moved from execution time to romization time is class initialization.\u0000 The preinitialized image can be optimized in different ways. For instance, redundancy elimination transformations, which include elimination of unused methods, fields, and classes, can be applied to reduce the static and the dynamic footprint of the image. We consider the problem of redundancy elimination in the presence of romization time class initialization.\u0000 There is a circular dependency between class initialization and method reachability analysis. On the one hand, class initialization reduces the set of reachable methods as the methods used solely for the initialization become unreachable. On the other hand, eager initialization of classes which are not used by the reachable methods can increase the size of the image by creating reachable but unused objects in the heap.\u0000 We propose a method reachability analysis algorithm which breaks this circular dependency by performing selective class initialization during the analysis. The algorithm keeps track of the classes which can be initialized by the reachable methods and initializes a subset of these classes. A simple heuristic is used to choose the classes which are safe to preinitialize.\u0000 We also found that elimination of initialized but unused reference fields in Java can affect finalization semantics. The elimination of a field might cause some objects to be collected by the GC, which can be observed by the application. We present an algorithm for elimination of unused fields which preserves finalization behavior.","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"507 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115185112","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
Alto: lightweight VMs using virtualization-aware managed runtimes Alto:使用虚拟化感知托管运行时的轻量级虚拟机
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237022
James Larisch, James W. Mickens, E. Kohler
{"title":"Alto: lightweight VMs using virtualization-aware managed runtimes","authors":"James Larisch, James W. Mickens, E. Kohler","doi":"10.1145/3237009.3237022","DOIUrl":"https://doi.org/10.1145/3237009.3237022","url":null,"abstract":"Virtualization enables datacenter operators to safely run computations that belong to untrusted tenants. An ideal virtual machine has three properties: a small memory footprint; strong isolation from other VMs and the host OS; and the ability to maintain in-memory state across client requests. Unfortunately, modern virtualization technologies cannot provide all three properties at once. In this paper, we explain why, and propose a new virtualization approach, called Alto, that virtualizes at the layer of a managed runtime interface. Through careful design of (1) the application-facing managed interface and (2) the internal runtime architecture, Alto provides VMs that are small, secure, and stateful. Conveniently, Alto also simplifies VM operations like suspension, migration, and resumption. We provide several details about the proposed design, and discuss the remaining challenges that must be solved to fully realize the Alto vision.","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"4 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"115312021","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 15
Specializing ropes for ruby 为ruby专门化rope
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237026
Kevin Menard, Chris Seaton, Benoit Daloze
{"title":"Specializing ropes for ruby","authors":"Kevin Menard, Chris Seaton, Benoit Daloze","doi":"10.1145/3237009.3237026","DOIUrl":"https://doi.org/10.1145/3237009.3237026","url":null,"abstract":"Ropes are an immutable data structure for representing character strings via a binary tree of operation-labeled nodes. Ropes were designed to perform well with large strings, and in particular, concatenation of large strings. We present our findings in using ropes to implement mutable strings in TruffleRuby, an implementation of the Ruby programming language using a self-specializing abstract syntax tree interpreter and dynamic compilation. We extend ropes to support Ruby language features such as encodings and refine operations to better support typical Ruby programs. Finally, we evaluate the performance of our implementation of ropes and demonstrate that they perform 0.9X − 9.4X as fast as byte array-based strings in benchmarks of common Ruby string operations.","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"47 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"132602793","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 5
Run-time program-specific phase prediction for python programs python程序的运行时程序特定阶段预测
Managed Languages & Runtimes Pub Date : 2018-09-12 DOI: 10.1145/3237009.3237011
Meng-Chieh Chiu, E. Moss
{"title":"Run-time program-specific phase prediction for python programs","authors":"Meng-Chieh Chiu, E. Moss","doi":"10.1145/3237009.3237011","DOIUrl":"https://doi.org/10.1145/3237009.3237011","url":null,"abstract":"It is well-known that a program's execution can be partitioned into different phases. Because of their impact on micro-architectural components such as caches and branch predictors, phases are an important aspect of dynamic program behavior that is useful in analyzing performance [Xian et al., 2007, Roh et al., 2009, Gu and Verbrugge, 2008] and energy consumption. They are also relevant to detecting whether a program is executing as expected, which helps software engineers in program analysis and understanding [Peleg and Mendelson, 2007, Singer and Kirkham, 2008, Pirzadeh et al., 2011, Benomar et al., 2014].\u0000 We develop here a method for run-time phase prediction for Python programs. After training on different runs of each program of interest, our method can predict the future phase k steps later, for k = 1, ..., at run time, for a new run of the same program but on different inputs, with good precision and recall (compared with a \"ground truth\" definition of phases) and with small run-time overhead (average less than 1%).","PeriodicalId":407085,"journal":{"name":"Managed Languages & Runtimes","volume":"150 1","pages":"0"},"PeriodicalIF":0.0,"publicationDate":"2018-09-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"127512583","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":0,"RegionCategory":"","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 5
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
相关产品
×
本文献相关产品
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书