Abstract
CloneCloud is a system designed to bridge the "mobile resource gap" by automatically offloading computationally intensive parts of mobile applications to a synchronized clone of the device in the cloud. By employing a combination of static analysis, dynamic profiling, and an optimization solver, CloneCloud partitions unmodified application binaries to optimize for execution time or energy consumption. Evaluation shows that CloneCloud can achieve performance gains of up to 21x for complex tasks like image searching, while maintaining a responsive user interface on the mobile device.
Introduction
Mobile applications are increasingly demanding, yet hardware remains constrained by battery life and thermal limits. Developers typically face a trade-off between "thin client" architectures, which require constant connectivity and can suffer from latency, and "monolithic" local execution, which drains resources. CloneCloud addresses this by dynamically deciding which parts of an application should run locally and which should be offloaded to the cloud.
System Architecture and Methods
CloneCloud operates at the application-level virtual machine (Dalvik VM) and follows a three-phase workflow to determine the optimal execution strategy.
1. Partitioning Analysis
The system first performs a Static Analysis on the application bytecode to identify legal migration points and enforce constraints, such as ensuring methods that access local hardware (e.g., GPS, camera) remain on the phone. Simultaneously, a Dynamic Profiler executes the application under various conditions to build a comprehensive cost model for execution time and energy.
2. Optimization and Execution
Using the data from the profiling phase, an Optimization Solver (using Integer Linear Programming) identifies the best partitioning strategy for the current network environment.
The "secret sauce" of CloneCloud is its Distributed Execution mechanism. When a thread reaches a designated migration point, the runtime suspends it, captures its state (including stack frames and reachable heap objects), and transfers it to the cloud clone. The clone resumes execution and, upon completion, ships the updated state back to the phone for merging. To minimize overhead, CloneCloud utilizes the "Zygote" process model, avoiding the re-transmission of common system objects.
Evaluation and Key Results
The system was evaluated using three computation-heavy applications: Virus Scanning, Image Search, and Behavior Profiling.
- Performance Gains: The Image Search application achieved a 21.2x speedup on WiFi. Virus scanning and behavior profiling saw speedups of 14x and 12.4x, respectively.
- Network Adaptability: The system dynamically adjusts to network conditions. On slower 3G connections, it intelligently keeps smaller workloads local to avoid the high migration penalty, only offloading the most intensive tasks.
- Seamless Integration: These improvements were achieved on unmodified application binaries, demonstrating that complex partitioning can be automated without developer intervention.
Discussion and Future Work
CloneCloud demonstrates the power of thread-level granularity, allowing the UI thread to remain local for responsiveness while worker threads migrate. However, limitations remain, such as the inability to migrate native state managed outside the VM and the current prototype's single-threaded offloading restriction. Future research may address these by enabling parallelization across multiple clones and exploring security measures to verify the integrity of cloud-side execution.
Summary updated