Binary Translation Using Peephole Superoptimizers
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Binary Translation Using Peephole Superoptimizers
Binary Translation Using Peephole Superoptimizers Sorav Bansal Alex Aiken Computer Systems Lab Computer Systems Lab Stanford University Stanford University [email protected] [email protected] Abstract tecture performance for compute-intensive applica- We present a new scheme for performing binary trans- tions. lation that produces code comparable to or better than 2. Because the instruction sets of modern machines existing binary translators with much less engineering tend to be large and idiosyncratic, just writing the effort. Instead of hand-coding the translation from one translation rules from one architecture to another instruction set to another, our approach automatically is a significant engineering challenge, especially if learns translation rules using superoptimization tech- there are significant differences in the semantics of niques. We have implemented a PowerPC-x86 binary the two instruction sets. This problem is exacer- translator and report results on small and large compute- bated by the need to perform optimizations wher- intensive benchmarks. When compared to the native ever possible to minimize problem (1). compiler, our translated code achieves median perfor- mance of 67% on large benchmarks and in some small 3. Because high-performancetranslations must exploit stress tests actually outperforms the native compiler. We architecture-specific semantics to maximize perfor- also report comparisons with the open source binary mance, it is challenging to design a binary translator translator Qemu and a commercial tool, Apple’s Rosetta. that can be quickly retargeted to new architectures. We consistently outperform the former and are compara- One popular approach is to design a common inter- ble to or faster than the latter on all but one benchmark. -
Understanding Full Virtualization, Paravirtualization, and Hardware Assist
VMware Understanding Full Virtualization, Paravirtualization, and Hardware Assist Contents Introduction .................................................................................................................1 Overview of x86 Virtualization..................................................................................2 CPU Virtualization .......................................................................................................3 The Challenges of x86 Hardware Virtualization ...........................................................................................................3 Technique 1 - Full Virtualization using Binary Translation......................................................................................4 Technique 2 - OS Assisted Virtualization or Paravirtualization.............................................................................5 Technique 3 - Hardware Assisted Virtualization ..........................................................................................................6 Memory Virtualization................................................................................................6 Device and I/O Virtualization.....................................................................................7 Summarizing the Current State of x86 Virtualization Techniques......................8 Full Virtualization with Binary Translation is the Most Established Technology Today..........................8 Hardware Assist is the Future of Virtualization, but the Real Gains Have -
Powervm Virtualization on System P: Managing and Monitoring
Front cover Draft Document for Review November 7, 2008 7:23 pm SG24-7590-01 PowerVM Virtualization on IBM Power Systems (Volume 2): Managing and Monitoring Covers AIX, IBM i and Linux for Power virtual I/O clients A collection of managing and monitoring best practices focused on Virtualization Includes the Virtual I/O Server 2.1 enhancements Ingo Dimmer Volker Haug Thierry Huché Anil K Singh Morten Vågmo Ananda K Venkataraman ibm.com/redbooks Draft Document for Review November 7, 2008 4:31 pm 7590edno.fm International Technical Support Organization PowerVM Virtualization on Power Systems: Managing and Monitoring February 2009 SG24-7590-01 7590edno.fm Draft Document for Review November 7, 2008 4:31 pm Note: Before using this information and the product it supports, read the information in “Notices” on page xxv. Second Edition (February 2009) This edition applies to the following products: IBM AIX 6.1 Technology Level 2 (5765-G62) IBM AIX 5.3 Technology Level 9 (5765-G03) IBM i 6.1 (5761-SS1) Novell SUSE Linux Enterprise Server 10 for POWER (5639-S10) Red Hat Enterprise Linux 5 for POWER (5639-RHL) IBM PowerVM Express Edition (5765-PVX) IBM PowerVM Standard Edition (5765-PVS) IBM PowerVM Enterprise Edition (5765-PVE) IBM Virtual I/O Server Version 2.1 with Fix Pack 20.1, or later IBM Hardware Management Console Version 7.3.4, or later IBM Tivoli Monitoring V6.1 for System p (5765-ITM) IBM Tivoli Storage Manager (5608-ISM) IBM Director 6.1 IBM Power Systems © Copyright International Business Machines Corporation 2009. -
Specification-Driven Dynamic Binary Translation
Specification-Driven Dynamic Binary Translation Jens Tr¨oger December 2004 A dissertation submitted in partial fulfillment of the requirements for the degree Doctor of Philosophy in Computer Science OUT Programming Languages and Systems Research Group Faculty of Information Technology Queensland University of Technology Brisbane, Australia Copyright c Jens Tr¨oger, MMIV. All rights reserved. [email protected] http://savage.light-speed.de/ The author hereby grants permission to the Queensland University of Technology to reproduce and distribute publicly paper and electronic copies of this thesis document in whole or in part. “But I’ve come to see that as nothing can be made that isn’t flawed, the challenge is twofold: first, not to berate oneself for what is, after all, inevitable; and second, to see in our failed perfection a different thing; a truer thing, perhaps, because it contains both our ambition and the spoiling of that ambition; the exhaustion of order, and the discovery – in the midst of despair – that the beast dogging the heels of beauty has a beauty all of its own.” Clive Barker (Galilee) Keywords Machine emulation; formal specification of machine instructions; dynamic optimization; dynamic binary translation; specification-driven dynamic binary translation. Abstract Machine emulation allows for the simulation of a real or virtual machine, the source machine, on various host computers. A machine emulator interprets programs that are compiled for the emulated machine, but normally at a much reduced speed. Therefore, in order to increase the execution speed of such interpreted programs, a machine emulator may apply different dynamic optimization techniques. In our research we focus on emulators for real machines, i.e. -
Systems, Methods, and Computer Programs for Dynamic Binary Translation in an Interpreter
(19) TZZ Z_¥4A_T (11) EP 2 605 134 A1 (12) EUROPEAN PATENT APPLICATION (43) Date of publication: (51) Int Cl.: 19.06.2013 Bulletin 2013/25 G06F 9/455 (2006.01) G06F 9/45 (2006.01) (21) Application number: 12186598.4 (22) Date of filing: 14.07.2010 (84) Designated Contracting States: (72) Inventors: AL AT BE BG CH CY CZ DE DK EE ES FI FR GB • Beale, Andrew GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO Mission Viejo, CA 92692 (US) PL PT RO SE SI SK SM TR • Wilton, Loren Rancho Cucamonga, CA 91730 (US) (30) Priority: 14.07.2009 US 502301 • Meyers, Robert 14.07.2009 US 502285 Garden Grove, CA 92840 (US) 14.07.2010 EP 10736925 (74) Representative: Hufton, David Alan (62) Document number(s) of the earlier application(s) in Harrison Goddard Foote accordance with Art. 76 EPC: Fountain Precinct 10736925.8 / 2 454 664 Balm Green Sheffield S1 2JA (GB) (27) Previously filed application: 14.07.2010 PCT/US2010/041973 Remarks: This application was filed on 28-09-2012 as a (71) Applicant: Unisys Corporation divisional application to the application mentioned Blue Bell, PA 19422 (US) under INID code 62. (54) Systems, methods, and computer programs for dynamic binary translation in an interpreter (57) Various embodiments of systems and methods the TCU causing the translation complete event; the TCU for dynamic binary translation in an interpreter are dis- preparing the second stack and scheduling the CPM to closed. An embodiment comprises a method of perform- the second stack; and the CPM executing the native ing dynamic binary translation in a Master Control Pro- code. -
IBM Powervm Lx86 Expands the Ability of IBM System P and Bladecenter Servers to Run X86 Linux Applications
IBM United States Announcement 208-010, dated January 29, 2008 IBM PowerVM Lx86 expands the ability of IBM System p and BladeCenter servers to run x86 Linux applications Reference information ............................... 2 At a glance Offering Information ...................................2 Publications ............................................... 3 PowerVM Lx86, a standard feature of all PowerVM Editions, is available Technical information .................................3 at no additional charge to support the installation and running of most Ordering information ..................................5 32-bit Linux on x86 applications1 on any System p model with IBM Terms and conditions ................................ 6 POWER5, POWER5+, or POWER6 technology. PowerVM Lx86: Prices .........................................................7 • Creates a Linux on x86 application environment running on Linux on Order now ..................................................7 System p servers by dynamically translating and mapping Linux on x86 instructions to POWER5, POWER5+, and POWER6 processors • Requires no native porting or application upgrade for supported applications For ordering, contact: Your IBM representative, an IBM Business Partner, or the Americas Call Centers at 800-IBM-CALL Reference: RE001 Overview IBM is offering new and expanded options for POWER5™, POWER5+™, and POWER6™ processor-based System p™ servers so that clients can run x86 Linux™ applications that are not available as a native port on an IBM POWER™ platform running Linux. This enables clients to take advantage of the feature-rich IBM PowerVM Virtualization (formerly called System p Virtualization), high performance, and superb Reliability, Availability, and Serviceability (RAS) features available with System p and BladeCenter® servers. The PowerVM Lx86 feature expands the capabilities of POWER5, POWER5+, and POWER6 processor-based System p servers and PowerPC® and POWER6 processor-based blade servers to install and run most x86 Linux applications1. -
IBM Power Systems for the Large Enterprise
Smarter Systems for a Smarter Planet IBM Power Systems for the Large Enterprise – which ought to be the smartest aspect of the planet – is itself in need of an intelligence makeover. It’s not a problem with the technology per se. Servers, storage, software, networking gear and the Internet will all continue to become more powerful, affordable and available. The problem is how all this technology is currently configured into systems and the way data centers are designed and operated. The way applications are developed and deployed. The way servers are managed, upgraded and kept secure. The fact is the IT Highlights How can we make our systems smarter? systems that underpin so much of how the world works must y The most powerful and become much smarter. How scalable UNIX systems ever Over the past year IBM has much smarter? The average been facilitating a discussion on commodity server rarely uses y Designed to support the how our planet is becoming more than 6% of its available continuous operations of smarter. The world is becoming capacity. In some organizations, today's business critical more instrumented. Sensors as many as 30% of servers applications and RFID tags are being aren’t utilized at all; they simply embedded everywhere: in cars, y Integrated virtualization waste energy and valuable data appliances, food, cameras, without limits for large scale center space. IT energy roads, pipelines...even in consolidation and rapid consumption is expected to medicine and livestock. This provisioning of new double in the next five years. In instrumentation is workloads some cases, nearly 70% of interconnected into an “internet companies’ IT budgets can be y Dramatic expansion of data of things” …with the internet devoted to managing, center capacity within growing from just connecting maintaining, securing and existing energy and floor people to connecting devices, upgrading their systems rather space over a trillion networked things than building new capabilities, creating information at an services and applications. -
Binary Translation 1 Abstract Binary Translation Is a Technique Used To
Binary Translation 1 Abstract Binary translation is a technique used to change an executable program for one computer architecture and operating system into an executable program for a different computer architecture and operating system. Two binary translators are among the migration tools available for Alpha AXP computers: VEST translates OpenVMS VAX binary images to OpenVMS AXP images; mx translates ULTRIX MIPS images to DEC OSF/1 AXP images. In both cases, translated code usually runs on Alpha AXP computers as fast or faster than the original code runs on the original architecture. In contrast to other migration efforts in the industry, the VAX translator reproduces subtle CISC behavior on a RISC machine, and both open-ended translators provide good performance on dynamically modified programs. Alpha AXP binary translators are important migration tools - hundreds of translated OpenVMS VAX and ULTRIX MIPS images currently run on Alpha AXP systems. When Digital started to design the Alpha AXP architecture in the fall of 1988, the Alpha AXP team was concerned about how to run existing VAX code and soon-to-exist MIPS code on the new Alpha AXP computers.[1,2] To take full advantage of the performance capability of a new computer architecture, an application must be ported by rebuilding, using native compilers. For a single program written in a standard programming language, this is a matter of recompile and run. A complex software application, however, can be built from hundreds of source pieces using dozens of tools. A native port of such an application is possible only when all parts of the build path are running on the new architecture. -
The Evolution of an X86 Virtual Machine Monitor
The Evolution of an x86 Virtual Machine Monitor Ole Agesen, Alex Garthwaite, Jeffrey Sheldon, Pratap Subrahmanyam {agesen, alextg, jeffshel, pratap}@vmware.com ABSTRACT While trap-and-emulate virtualization on mainframes was Twelve years have passed since VMware engineers first virtu- well understood at the time, it was – unsurprisingly – not a alized the x86 architecture. This technological breakthrough design goal for the 4004, whose first application was in fact kicked off a transformation of an entire industry, and virtu- a Busicom calculator [7]. However, as x86 CPUs expanded alization is now (once again) a thriving business with a wide their reach, the case for virtualization gradually emerged. range of solutions being deployed, developed and proposed. There was just one problem, seemingly fundamental: the But at the base of it all, the fundamental quest is still the generally accepted wisdom held that x86 virtualization was same: running virtual machines as well as we possibly can impossible, or at best merely impractical, due to inherited on top of a virtual machine monitor. architectural quirks and a requirement to retain compatibil- ity with legacy code. We review how the x86 architecture was originally virtual- ized in the days of the Pentium II (1998), and follow the This impasse was broken twelve years ago when VMware evolution of the virtual machine monitor forward through engineers first virtualized the x86 architecture entirely in the introduction of virtual SMP, 64 bit (x64), and hard- software. By basing the virtual machine monitor (VMM) ware support for virtualization to finish with a contempo- on binary translation, the architectural features that pre- rary challenge, nested virtualization. -
IBM Bladecenter JS23 and JS43 Express
The Power Blades for your most demanding workloads IBM BladeCenter JS23 and JS43 Express Built on the promise of the IBM BladeCenter® family of products— easy-to-use, integrated platforms with a high degree of deployment flexibility, energy efficiency, scalability and manageability—the BladeCenter JS23 and JS43 Express are the premier blades for 64-bit applications. They rep- resent one of the most flexible and cost-efficient solutions for UNIX®, i and Linux deployments available in the mar- ket. Further enhanced by its ability to BladeCenter JS23 and JS43 Express blade servers be installed in the same chassis with other IBM BladeCenter blade servers, the JS23 and JS43 can deliver the Highlights rapid return on investment that clients and businesses demand. Delivering ■ Ideal for infrastructure consoli- ■ Elegantly simple scalability, on the promise of a truly Dynamic dation, virtualization, and allowing easy expansion Infrastructure, the BladeCenter JS23 demanding applications that and pay-as-you-grow and JS43 help in delivering superior require scalable performance flexibility for the utmost in business and IT services with agility and and high memory capacity investment protection and speed—all in a simple to manage highly performance growth efficient way. ■ IBM POWER6™ processor tech- nology and the ability to run ■ A secure, resilient and dynamic AIX®, IBM i, and Linux® operat- infrastructure solution that ing systems simultaneously helps drive cost down, reduces risk, improves energy efficiency and enhances flexibility The JS23 and JS43 Express blades have been pre-configured and tested by IBM and are based on proven tech- nology. Utilizing a 4.2 GHz 64-bit POWER6 processor and available in a four-core or eight-core configuration including a new 32 MB Level 3 cache for each core pair, and simultaneous BladeCenter S chassis multi-threading, they are designed to deliver outstanding performance and tough-to-break solutions. -
IBM System X and Bladecenter Business Partner Guidebook Titles of Interest
July 2011 CLICK HERE to check for updates Your Road Map to Success with IBM IBM System x System x and and BladeCenter BladeCenter Business Partner Guidebook Over 100,000 copies downloaded! Edited by Jim Hoskins IBM System x and BladeCenter Business Partner Guidebook Titles of Interest More IBM Titles of Interest • IBM Information Infrastructure Business Partner Guidebook • Exploring IBM SOA Technology & Practice • Exploring IBM Accelerators for WebSphere Portal Top Internet Business Titles • 101 Ways to Promote Your Web Site • 3G Marketing on the Internet • Protect Your Great Ideas for Free! • And many more… For more information, visit us at maxpress.com or email us at [email protected]. IBM System x and BladeCenter Business Partner Guidebook Twentieth Edition Your Road Map to Success with IBM System x and BladeCenter Edited by Jim Hoskins (version 20.0e) 605 Silverthorn Road Gulf Breeze, FL 32561 maxpress.com Notices Production Manager: Jacquie Wallace Cover Designer: Lauren Smith This publication is designed to provide accurate and authoritative information in regard to the subject matter covered. It is sold with the understanding that the publisher is not engaged in rendering professional services. If legal, accounting, medical, psychological, or any other expert assistance is required, the services of a competent professional person should be sought. ADAPTED FROM A DECLARATION OF PRIN- CIPLES OF A JOINT COMMITTEE OF THE AMERICAN BAR ASSOCIATION AND PUBLISHERS. Copyright 2011 by Maximum Press. All rights reserved. Published simultaneously in Canada. Reproduction or translation of any part of this work beyond that permitted by Section 107 or 108 of the 1976 United States Copyright Act without the permission of the copyright owner is unlawful. -
Comparison of Platform Virtual Machines - Wikipedia
Comparison of platform virtual machines - Wikipedia... http://en.wikipedia.org/wiki/Comparison_of_platform... Comparison of platform virtual machines From Wikipedia, the free encyclopedia The table below compares basic information about platform virtual machine (VM) packages. Contents 1 General Information 2 More details 3 Features 4 Other emulators 5 See also 6 References 7 External links General Information Name Creator Host CPU Guest CPU Bochs Kevin Lawton any x86, AMD64 CHARON-AXP Stromasys x86 (64 bit) DEC Alphaserver CHARON-VAX Stromasys x86, IA-64 VAX x86, x86-64, SPARC (portable: Contai ners (al so 'Zones') Sun Microsystems (Same as host) not tied to hardware) Dan Aloni helped by other Cooperati ve Li nux x86[1] (Same as parent) developers (1) Denal i University of Washington x86 x86 Peter Veenstra and Sjoerd with DOSBox any x86 community help DOSEMU Community Project x86, AMD64 x86 1 of 15 10/26/2009 12:50 PM Comparison of platform virtual machines - Wikipedia... http://en.wikipedia.org/wiki/Comparison_of_platform... FreeVPS PSoft (http://www.FreeVPS.com) x86, AMD64 compatible ARM, MIPS, M88K GXemul Anders Gavare any PowerPC, SuperH Written by Roger Bowler, Hercul es currently maintained by Jay any z/Architecture Maynard x64 + hardware-assisted Hyper-V Microsoft virtualization (Intel VT or x64,x86 AMD-V) OR1K, MIPS32, ARC600/ARC700, A (can use all OVP OVP Imperas [1] [2] Imperas OVP Tool s x86 (http://www.imperas.com) (http://www.ovpworld compliant models, u can write own to pu OVP APIs) i Core Vi rtual Accounts iCore Software