Would you like a 1130% Performance Increase for your BlackBerry 10 Simulator?

Adobe AIR Development

VMWare takes advantage of a seldom used but immensely impressive technology, virtualization. Virtual machines set up a sandbox that to the guest operating system seems like a perfectly normal piece of hardware. Normally, abstracting a second system from the host OS takes a fair amount of horsepower. Hardware vendors have met this challenge by supporting, essentially, multiple computing environments on the same chip. The host OS can switch contexts from one to the other, allowing the virtual machine direct access to features that would normally have to be emulated or simulated.  To demonstrate this, here’s a brief video showing the difference in startup speed between the two technologies:

[ YouTube link for mobile viewing ]

As demonstrated in the video, there is a drastic improvement of boot time. Boot time dropped 294 seconds, to 26 seconds, a 1130% performance increase!

TITLE_IMAGE

1130% Performance Improvement in Boot Time

Given that boot times are largely dependent on I/O speed, we’ll next demonstrate how CPU-centric operations are impacted by virtualization, which should give us an idea of how real-world applications would be impacted.

Benchmark: Dhrystone

The following benchmark is based on Dhrystone 2.1 test suite. The test system was an Intel Core i7, quadcore 2.8ghz machine running VMWare 4.0.4 under Windows 7. Five billion iterations were run per target. The “HW Virtualization” column had the Preferred Virtualization engine in VMWare set to “Automatic”, whereas the “No Virtualization” column had the Preferred Virtualization engine set to “Binary translation”, with acceleration turned off.

1140% Performance Increase

This correlates almost perfectly with the difference in boot speed, approximately one order of magnitude, or 10x. I’d like to note however, this isn’t precisely fair, given that binary translation may be accelerated even on machines without explicit virtualization acceleration. Though it does go to demonstrate just how powerful the technology can be.

How To: Enable Virtualization

While not a new technology, virtualization does not exist on all hardware. If you have a desktop PC made in the last 7 years, chances are your CPU has it.  However, if you’re developing on a laptop, you’ll have to refer to your chip maker’s user manual, or have a look online for whether your CPU supports the technology. It is likely you will have to turn virtualization on in your motherboard’s BIOS. Refer to your motherboard’s manual for instructions on how to do this.

Once you’ve enabled virtualization on your motherboard, check your Virtual Machine Settings in VMWare, and under the Processors section, confirm that the Virtualization Engine is set to Automatic, and “Disable acceleration for binary translation” is unchecked, as seen here.

About MSohm

Mark Sohm has been helping developers create applications for BlackBerry devices for over 10 years, going all the way back to the very first BlackBerry JDK on BlackBerry OS 3.6.

Join the conversation

Show comments Hide comments
+ -
  • http://blackberrydev.si/speed-up-you-bb10-simulator/ Speed up you BB10 simulator

    […] simulator August 15, 2012 By Roman Verhovsek Leave a Comment On the famous BlackBerry developer blog there is a new post that describes what to do to reduce VmWare simulator’s boot up time by 91% […]

  • http://devblog.blackberry.com/2013/01/cocos2d-x-on-blackberry-10/ Up and running with cocos2d-x on BlackBerry 10 | BlackBerry Developer Blog

    […] Download and install the latest version of the Native SDK from the BlackBerry Developer site. If you do not currently have a device in hand, download our BlackBerry 10 Simulator that can be run with VMWare Player on Windows and Linux or VMWare Fusion on Mac. While you’re at it, be sure to check out our blog post on boosting the simulator performance by 1130%! […]

  • http://blackberryphoneshop.info/2013/01/02/up-and-running-with-cocos2d-x-on-blackberry-10/ Up and running with cocos2d-x on BlackBerry 10 | BlackBerry and Phone Shop

    […] Download and install the latest version of the Native SDK from the BlackBerry Developer site. If you do not currently have a device in hand, download our BlackBerry 10 Simulator that can be run with VMWare Player on Windows and Linux or VMWare Fusion on Mac. While you’re at it, be sure to check out our blog post on boosting the simulator performance by 1130%! […]

blog comments powered by Disqus