pervasive mobile applications

26
Computational Offloading for Smartphones Huber Flores [email protected] Tartu, Estonia, 2014 http://math.ut.ee/~huber/

Upload: others

Post on 09-May-2022

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Pervasive Mobile Applications

Computational Offloading for Smartphones

Huber Flores [email protected]

Tartu, Estonia, 2014

http://math.ut.ee/~huber/

Page 2: Pervasive Mobile Applications

Outline

• What is computational offloading?

– Cloudlets

– Code offloading

• Computational offloading in practice

– Android and Java reflection

• When computational offloading meets data analytics

Huber Flores 2

Page 3: Pervasive Mobile Applications

COMPUTATIONAL OFFLOADING

Huber Flores 3

Page 4: Pervasive Mobile Applications

What is computational offloading?

• Also known as Cyber-foraging

• Move a computational task from one place to another (aka offload)

• Why? – Constrained devices offload tasks to powerful

machines • Accelerate processing

• Save energy (battery life for mobiles)

• Adaptation of resource consumption to user’s experience

Huber Flores 4

Page 5: Pervasive Mobile Applications

Computational offloading

• Cloudlets

Huber Flores 5

Page 6: Pervasive Mobile Applications

Computational offloading

• MAUI

• ThinkAir

• CloneCloud

• EMCO, etc.

Huber Flores 6

Page 7: Pervasive Mobile Applications

Computational offloading

• Code offloading

Huber Flores 7

Page 8: Pervasive Mobile Applications

CODE OFFLOADING IN PRACTICE

Huber Flores 8

Page 9: Pervasive Mobile Applications

Demo: Chess offloading

• Minimax

Huber Flores 9

Page 11: Pervasive Mobile Applications

Exercise 1

• Java reflection

– https://gist.github.com/huberflores/9829019

Huber Flores 11

Page 12: Pervasive Mobile Applications

Exercise 2

• Transform a java method to a computational offloading format

– https://gist.github.com/huberflores/6e4e0894d95e16f1c25e

Huber Flores 12

Page 13: Pervasive Mobile Applications

Challenges and Issues

• Main problem: Computational offloading is unreliable.

– Negative/Positive

• Network communication

– Latency

– Data size, etc.

• Resource allocation

• Inference process

Huber Flores 13

Page 14: Pervasive Mobile Applications

When computational offloading meets data analytics

• Offloading in multiple dimensions

– What, when, how, where

• Quality of experience (QoE)

– Adaption of resource elasticity

Huber Flores 14

Page 15: Pervasive Mobile Applications

When computational offloading meets data analytics

Huber Flores 15

Page 16: Pervasive Mobile Applications

When computational offloading meets data analytics

• Pre-catching

– Mobile components

– Application states, etc.

Huber Flores 16

Page 17: Pervasive Mobile Applications

When computational offloading meets data analytics

Huber Flores 17

Page 18: Pervasive Mobile Applications

Beyond computational offloading

• More to come…

Huber Flores 18

Page 19: Pervasive Mobile Applications

QUESTIONS?

Huber Flores 19

Page 20: Pervasive Mobile Applications

References

• Suggested readings – Flores, Huber, et al. "Adaptive code offloading for mobile

cloud applications: Exploiting fuzzy sets and evidence-based learning." Proceeding of the fourth MobiSys workshop on Mobile cloud computing and services (MCS 2013). Taipei, Taiwan, 2013.

– Flores, Huber, et al. "Mobile code offloading: should it be a local decision or global inference?." Proceeding of the 11th annual international conference on Mobile systems, applications, and services (Mobisys 2013), Taipei, Taiwan, 2013.

Huber Flores 20

Page 21: Pervasive Mobile Applications

Home assignment 3 – Task 1

• Implement the following algorithms

– Quicksort

– Huffman

– Tower of Hanoi

• Transform into code offloading and try them via Java reflection

• Both versions of the algorithm can be executed

Page 22: Pervasive Mobile Applications

Home assignment 3 – Task 2

• Upload a picture or load one from the image gallery

• Picture is located into an small frame

• The frame can be drag and drop all over the screen

• The size of the frame is increased/decreased using gestures (pinch and spread)

• Once the frame reaches its maximum size, the faces in the picture are detected

Page 23: Pervasive Mobile Applications

Home assignment 3 – Task 2

Page 24: Pervasive Mobile Applications

Home assignment 3 – Task 2

Page 25: Pervasive Mobile Applications

Home assignment 3 – Task 2

Page 26: Pervasive Mobile Applications

Home assignment 3

• Deadline

– (09/11/2014 00:00)

– Task 1 – 10 pts

– Task 2 – 15 pts