• 沒有找到結果。

ThinkAir: Dynamic Resource Allocation and Parallel Ex ecution in Cloud for Mobil e Code Offloading

N/A
N/A
Protected

Academic year: 2022

Share "ThinkAir: Dynamic Resource Allocation and Parallel Ex ecution in Cloud for Mobil e Code Offloading"

Copied!
19
0
0

加載中.... (立即查看全文)

全文

(1)

ThinkAir: Dynamic Resource Allocation and Parallel Ex ecution in Cloud for Mobil e Code Offloading

Sokol Kosta, Pan Hui

Deutsche Telekom Labs, Berlin, Germany

Andrius Aucinas, Richard Mortier

University of Cambridge, Cambridge, UK

Xinwen Zhang

Huawei Research Center, Santa Clara, CA, USA

IEEE INFOCOM 2012

(2)

Prominent Related Works

MAUI(2010)

◦Provides method level code offloading based on .NET framework.

◦Does not address the scaling of execu tion in cloud.

CloneCloud(2011)

◦Provides offline static analysis of d ifferent running condition of the pro cess binary, and build a database of pre-computed partitions.

◦Limited input/environment conditions, and needs to be bootstrapped for ever y new apps.

(3)

ThinkAir

A framework that exploits the conc ept of smart phone virtualization in the cloud, and provides method- level computation offloading.

◦Parallelizing method execution using multiple VM images.

On-demand resource allocation.

◦Online method-level offloading.

(4)

Design Goals

Dynamic adaptation to changing env ironment.

Ease of use for developers.

Performance improvement through cl oud computing.

Dynamic scaling of computation pow

er.

(5)

Overview

Annotate methods

with @Remote .

(6)

Execution Controller

Make offloading decisions.

Four policies:

◦Execution time

◦Energy

◦Execution time and energy

◦Execution time, energy, and cost.

(7)

Client Handler

Code execution

◦Manage connection.

◦Execute code.

◦Return results.

VM management

◦Add VM with more computing power or resources.

◦Distributes task among VMs, and collects results.

(8)

Cloud Infrastructure

OS: customized

version of Android x86.

6 types of VM.

VM Resume latency:

◦Paused: 300ms

Up to 7s if too many VMs are resumed

simultaneously.

◦Powered-off: 32s

(9)

Profilers

Hardware profiler

◦CPU, Screen, WiFi, 3G

Software profiler

◦Use Android Debug API to record

information.

Network profiler

(10)

Energy Estimation Model

Modify the original PowerTutor model.

PowerTutor

[1]

model

◦CPU, LCD screen, GPS, WiFi, 3G,

and audio interface.

◦HTC Dream phone.

[1] Accurate online power estimation and automatic battery behavior based power model generation for smartphones, CODES/ISSS ’10

(11)

Experiment Setup

BIV(boundary input value)

◦The minimum value of the input parame ter for which offloading would give a benefit.

Offloading policy: execution time .

Different Scenarios:

◦Phone

◦WiFi-Local (RTT 5ms)

router attached to cloud server.

◦WiFi-Internet (RTT 50ms)

◦3G (RTT 100ms)

(12)

Micro-Benchmark

[2]

Results

Network latency clearly affects th e BIV.

[2]

http://kano.net/javaben ch/

(13)

N-Queen Results

BIV = 5

(14)

N-Queen Results(Cont.)

N = 8

Different CPU energy consumed

Due to bandwidth and latency of the link s, and subsequently affected the time sp ent waiting for results and in transmiss ion.

(15)

Face Detection Results

Counts the number of faces in a pi cture.

◦Photos are loaded in both device and cloud.

(16)

Face Detection Results(Con t.)

100 pictures

(17)

Virus Scanning Results

◦Total size of files: 10MB

◦Number of files: ~3,500

CPU energy consumption is lower wh

en offloading using 3G.

(18)

Parallelization with Multiple VM Clones

Workloads are

evenly distributed among VMs.

Clones are

resumed from

pause state.

(19)

Conclusion

ThinkAir is a framework for offloadi ng mobile computation to the cloud, with the ability of on-demand VM res ource scaling.

The authors will continue to work on

improving programmer support for par

allelizable applications, since they

think it a key direction to use the

capabilities of distributed computin

g of the cloud.

參考文獻

相關文件

Rewrite your previous MATLAB code of Bisection method, fixed point iteration and Newton’s method with using the functions “fun f” and “fun

The Model-Driven Simulation (MDS) derives performance information based on the application model by analyzing the data flow, working set, cache utilization, work- load, degree

Department of Computer Science and Information Engineering, Nation Taiwan University Graduate Institute of Networking and Multimedia, Nation Taiwan University..

 Apply real monitor data as trainin g input for our weight parameters and Container Management Component.  Integrate our solution to CHT sub- system to

 Estimate the penalty of interactiv e jobs on different number of proc essors..  Estimate the penalty of batch jobs on different number

/** Class invariant: A Person always has a date of birth, and if the Person has a date of death, then the date of death is equal to or later than the date of birth. To be

• Instead of uploading and downloading the dat a from cloud to client for computing , we shou ld directly computing on the cloud ( public syst em ) to save data transferring time.

Biases in Pricing Continuously Monitored Options with Monte Carlo (continued).. • If all of the sampled prices are below the barrier, this sample path pays max(S(t n ) −