to ConDOS ConDOS: the Context Dataflow OS david chu aman kansal - - PowerPoint PPT Presentation

to condos
SMART_READER_LITE
LIVE PREVIEW

to ConDOS ConDOS: the Context Dataflow OS david chu aman kansal - - PowerPoint PPT Presentation

Mobile Apps: Its Time to Move Up to ConDOS ConDOS: the Context Dataflow OS david chu aman kansal jie liu feng zhao microsoft research redmond microsoft research asia APPS How Might New Apps Use New Sensors? camera


slide-1
SLIDE 1

Mobile Apps: It’s Time to Move Up to ConDOS

ConDOS: the Context Dataflow OS

david chu aman kansal jie liu feng zhao microsoft research redmond microsoft research asia

slide-2
SLIDE 2

camera (x2) accelerometers microphone microphone (x2) camera gyroscopes magnetometer thermometer health sensors GPS barometer light sensors NFC

SENSORS

infrared camera

APPS

How Might New Apps Use New Sensors?

slide-3
SLIDE 3

OfficeFit app

› contextual fitness reminders in the office

› “Don’t slouch while sitting.” › “You’ve been at your desk for too long.” › “Take the stairs instead of the elevator.”

› how it works

› motion from IMU + sound from mic → various fitness activities › do this continuously

slide-4
SLIDE 4

context data from sensors

› key pieces are ready

› sensor hardware › application scenarios › algorithms (high accuracy inference, signal processing, db, etc.)

› where is the context? › who is responsible for context?

› individual apps

› … but mobile OSs limit apps to foreground › … or apps can run anything in the background(!)

› the cloud

› … but energy cost of TX/RX is high

› the mobile OS

Interruptible

yes, no

Logical Location

home, office, mall

Motion State

sitting, walking, running

slide-5
SLIDE 5

Motion State

sitting, walking, running

Interruptible

yes, no

Logical Location

home, office, mall

ConDOS design proposal

› export Context Data Units (CDUs) rather than raw sensor data

› higher-level abstraction than bytes › apps query or subscribe to CDUs

› each CDU is defined by a CDU Generator: a graph

  • f processing components

› combine Generators into composite context dataflow (like packet dataflow [kohler ’00]) › provide a base CDU vocabulary (that is extensible)

slide-6
SLIDE 6

benefits of OS-managed context

Scheduling Security I/O Memory Management Energy Management Apps Apps Apps

Contextual Data Units

Hardware Abstraction Layer Kernel Services

  • 1. System services can use context
slide-7
SLIDE 7

system services can use context

› memory management

› preload calendar, email when in the office

› I/O

› ring volume adjusted based on conversation › networking params dictated by movement [Balakrishnan ’10]

I/O Memory Management Context Preload Action in the office Email, Calendar at a party Twitter, Facebook

slide-8
SLIDE 8

system services can use context

› security

› auto password unlock when at home › lend your phone to others easily [liu ’09]

› energy management

› predict time-to-recharge based on context

Security Energy Management

slide-9
SLIDE 9

benefits of OS-managed context

Scheduling Security I/O Memory Management Energy Management Apps Apps Apps

Contextual Data Units

Hardware Abstraction Layer Kernel Services

  • 2. Privacy enforced by OS protection

Kernel Boundary

slide-10
SLIDE 10

better sensor privacy

› mobile privacy is under attack [TaintDroid]

› protecting raw sensor data is “trust the EULA” › 2/3 of popular apps use your data suspiciously › no idea what your raw data might be used for

› OS-managed context lets us do better

› app install time: per CDU type access control

› … vs. per sensor type access control

› app run time: visual inspection of CDUs shared [Howell ’10]

› … vs. no comprehension of what is being shared

› enforcement is low overhead

slide-11
SLIDE 11

Motion Features Motion State

sitting, walking, running

Audio Audio Features Interruptible

yes, no

CDU2 CDU3 IMU

accel, gyro, mag

Silence Filter Logical Location

home, office, mall

CDU1 Geolocation

GPS, Cell, WiFi

Location DB app A

app G

app Z User space Kernel space

Context Data Generators

toward a design

  • ther OS services

Scheduling Security I/O Memory Management Energy Management

context dataflow example

slide-12
SLIDE 12

› mobile OSs that don’t make sense make no sense › ConDOS offers context as a primary app-OS interface › apps, OS services and User Privacy may all benefit

summary

slide-13
SLIDE 13

backup slides follow

thank you! questions?

slide-14
SLIDE 14

Audio IMU

accel, gyro, mag

Geolocation

GPS, Cell, WiFi

app A

app G

app Z User space Kernel space

context dataflow as library

traditional OS services

Scheduling Security I/O Memory Management Energy Management

¢filter ¢filter ¢filter strong isolation control iface resource multiplex function [engler ’95]

slide-15
SLIDE 15

LittleRock

Cached Value

potential dataflow benefits

  • 1. predictable execution [lee ’87]
  • 2. shared flow processing
  • 3. principled flow degradation
  • 4. flow-to-hardware mapping

Motion Features Audio Audio Features Interruptible

yes, no

IMU

accel, gyro, mag

Silence Filter Motion State

sitting, walking, running

1. 3. 2. 4. 3.