X hits on this document

PDF document

Program Transformations for Light-Weight CPU Accounting and Control in the Java Virtual Machine A ... - page 2 / 40

119 views

0 shares

0 downloads

0 comments

2 / 40

2

such as the number of executed bytecodes. In emerging agent-oriented, context-aware software systems, self-tuning abilities are expected; these will in turn require awareness of resource availability and usage policies. Lastly, in resource-constrained embedded systems, software has to be aware of resource restrictions in order to prevent abnormal termination.

Currently, predominant programming languages and environments, such as Java [19] and the Java Virtual Machine (JVM) [26], lack standardized resource management mechanisms. Whereas some pro- totypes have been proposed to address this lack (see the related work section), they are unfortunately all dependent on substantial amounts of native code, and thus prevent the deployment of resource-managed or resource-aware systems throughout widely heterogeneous networks. Therefore, we propose portable resource management with the aid of program transformations. We call our approach J-RAF2 (Java Resource Accounting Framework, 2nd edition) [4, 7, 21], which has been imple- mented in a tool with the same name.1 J-RAF2 is independent of any particular JVM and underlying operating system. It works with stan- dard Java runtime systems and may be integrated into existing server and mobile object environments. Furthermore, this approach enables resource control within embedded systems based on Java processors, which provide a JVM implemented in hardware that cannot be easily modified [8].

This article concentrates on CPU management, since this is a very useful, and at the same time particularly challenging, resource to study. Program transformations have also been applied to the management of other kinds of resources, such as memory management [7, 14], but the low run-time overheads obtained did not require the development of such advanced analysis and transformation techniques as the ones presented here; notably, they did not involve any control flow or data flow analysis.

The program transformations underlying J-RAF2 were first pub- lished in reference [7]. As the transformations for CPU management incur a certain overhead at runtime, we started developing several optimizations [21]. Applying these techniques to the JDK itself is a difficult task [3]. Finally, we have also presented and illustrated the actual use of J-RAF2 by an application or middleware developer [4].

The present article is an expanded version of [21]. Its specific, original contributions are:

1. A systematic analysis of the origin of the overheads induced by our CPU accounting scheme.

1

http://www.jraf2.org/

Document info
Document views119
Page views119
Page last viewedSun Dec 11 04:21:16 UTC 2016
Pages40
Paragraphs801
Words13591

Comments