PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica...

39
1 PCs for Mere Mortals Monica Lam Stanford University

Transcript of PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica...

Page 1: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

1

PCs for Mere Mortals

Monica Lam

Stanford University

Page 2: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

2

PCs

• Hardware: Cheap and fast– $500: 2.6 GHz, 128 MB mem, 40GB disk

• Market penetration– 69% of U.S. households have PCs– 75% of U.S. people using the Internet– 24% of U.S. households have DSL

� Software� insecure, fragile, frustrating to use

Page 3: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

3

Internet Worms

• MSBlaster, Nimda, CodeRed , …• Slammer

– infected > 75,000 machines, most within 10 minutes

– damage estimated to be $1 billion

• Patches were available before attacks– Not installed on computers:

at home, companies, Microsoft

Page 4: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

4

System Management

• Set up– Software purchases and installations– Network of machines– File servers with back up– Firewalls

• Maintenance: – Security patches, software upgrades– Hardware upgrades

• Error recovery– Recover data from back up – Re-install OS + software

Page 5: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

5

Home Computer Administration Tasks

• Fall on consumers• Cannot solve problems

by simply purchasing new computers!• How much does professional system

admin cost?

Page 6: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

6

Professional System Admin

• Adminstration and support– $11,900 a PC a year (Gartner)

• Labor costs >> hardware costs • Hidden costs: loss of productivity• A linear function!

Page 7: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

7

Incremental Improvement Insufficient

• Professional system admin is necessary!– Office users– Telecommuters– Consumers

• Must make system administration scalescale• Leverage hardware technology

– machine cycles– network bandwidth– storage capacity

Page 8: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

8

How do we make computers as easy to use as TVs?

• Turn on computer connected to a network• Plug in personal “key” to unlock private

data• Dial to different channels of the latest

software

Page 9: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

9

No software installation!No operating system re-install!

No computer viruses!Automatic backups

Global access everywhere

Page 10: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

10

Appliances

• Unix-based PC• Fixed function• Simple and intuitive interface• Guaranteed automatic updates

Page 11: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

11

+ OS, Applications, Data(bits)

Virtual Appliance

Appliance

Page 12: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

12

Virtual Appliance Computing Model

VAPRepository

INTERNET

User Data

VAPreceivers

Page 13: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

13

Appliance Flow

VAPRepository

INTERNET

User Data

VAPreceivers

(1) Publisher stores VAPs

Page 14: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

14

VAPRepository

INTERNET

User Data

VAPreceivers

Appliance Flow

(2) User logs onto a VAP Receiver

Page 15: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

15

VAPRepository

INTERNET

User Data

VAPreceivers

Appliance Flow

(3) VAP receiver authenticates user

Page 16: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

16

VAPRepository

INTERNET

User Data

VAPreceivers

Appliance Flow

(4) VAP receiver gets latest copy of VAP, mounts user data

Page 17: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

17

VAPRepository

INTERNET

User Data

VAPreceivers

Appliance Flow

(5) VAP receiver runs VAP and writes back user data

Page 18: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

18

OSes are not run onOSes are not run onbarebone hardwarebarebone hardware

– Rich API– Impossible to perfect– Vulnerable– Who re-installs the OS?

Updates it and backs it up?

Page 19: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

19

VAP receiver: A Service Plane

• A relatively small trusted computing base• Runs VAPs using a virtual machine

monitor – e.g. VMware GSX / ESX– Runs Linux, Windows software

• Provides service functions:– Transfers, updates, backs up VAPs

All without modification to appliancesAll without modification to appliances

Page 20: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

20

Advantages

• Security– Up-to-date security patches– Pristine copy with each log in

• Appliance publication model is scalable• User mobility• Simple hardware management

– Anonymous hardware

Page 21: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

21

Top 4 Questions

4. What if I wish to install a flash plug in? or new software?� Published appliance is a fully-tested superset of most users’ environments

� Use multiple VAPs� Company admins prepare 1 for each role� Distribution of software as VAPs� Install software in separate playpen VAP

Page 22: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

22

4. What if I wish to install a flash plug in? or new software?

Top 4 Questions

� Limited software selection� Limited interactivity� Application lock-ins� Data privacy: photos? tax returns? email?

� Scattered data

3. Why not just more web applications?

Page 23: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

23

3. Why not just more web applications?

Top 4 Questions

2. How slow is this model? 2. How slow is this model?

1. How to deploy this?1. How to deploy this?

4. What if I wish to install a flash plug in? or new software?

Page 24: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

24

VAPs as a Data Type

• VAPs are large!• What is in a VAP? • Operations

– Create– Store– Update– Customize– Transfer– Back up

Page 25: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

25

A Virtual Appliance

• Contents of the bits on an x86 machines• Program disk

– Default Windows XP: 1.5 GB– Red Hat version 7.2: 1.6 GB

• Data disk– Use CVS or network-mounted files for

sharing

• Suspended memory image (100s MB)

Page 26: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

26

Virtual Networks of Virtual Appliances

Firewall

DNS LDAP

Plone

Mail

Parent Network

• A group appliance

Page 27: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

27

Updates

Version 0

Diffs = Copy-on-write disks

• New software installation & upgrades– Sizes similar to installer and update

packages– Guaranteed to work

Page 28: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

28

Customizations = InheritancePublisherupdates

� ��� ��

+ UserParameters

inheritance

��� �� �

� � � � � ��� � � �� � � + UserParameters

inheritance

��� �� �

� � � � � ��� � � �� � �

Page 29: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

29

Transfer: Moving Memory Image• Move memory image, demand-fetch the

rest– Memory image holds working set– Eliminates boot-up overhead

• Especially significant for Java apps

– “Ballooning” reduces size of state

• Transfers a new memory image in about 10 minutes over DSL link

Page 30: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

30

Transfer opt: Cache

• Opportunity:– Same appliances used on same machines

• Cache– Immutable appliances simplify caching– Speeds up re-use of similar appliances

Page 31: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

31

Transfer opt: Portable storage

• USB flash drive: 1.5 GB, $175• Compact flash microdrive: 4 GB, $369• 1.8’’ portable hard disk: 40 GB, $180• 2.5’’ portable hard disk: 60 GB, $125

We can carry our cache with us!We can carry our cache with us!

Page 32: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

32

Transfer opt: Portable storage

A bootable image of a VAP receiver + a cache• Easy deployment:

– Make any PC our own– Does not change the state of hosting PC

• Universal access:– Access to all VAPs on the network

• Network accelerator: – Fast access to appliances previously used

Page 33: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

33

USB drives (cont.)

• Automatic storage management– A precharging process

pre-loads drive with popular blocks

• Automatic backup:– Continuously saves data in background– Keychain mostly carries redundant state

• Secure: leaves no trace on host computer

Page 34: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

34

Collective Prototype

• CVL: a Collective virtual appliance language– Virtual appliance networks– Customization specified as inheritance

• Repository– Naming to keep track of versions

Page 35: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

35

Collective Prototype (cont.)

• VAP Receiver – Assumes the computer can be connected to

the network using DHCP– 500 MB bootable image

• Knoppix Linux• VMware GSX virtual machine monitor

– Talks to the repository via NFS over SSH

Page 36: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

36

Preliminary Results

• $4G Microdrive over simulated DSL speeds

• No perceivable difference – editing files– playing MP3

• local / remote music: same interface, no perf diff

Page 37: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

37

Comparing with a local appliance

-2

0

2

4

6

8

10

12

14

Windows 2000Linux Redhat Linux kernel compile

LAN DSL NFS

cachednot

cached cachednot

cached

Page 38: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

38

Replaces Labor with Technology

Manual labor � processor cycles� network bandwidth � storage

System admin� virtual machines� distributing VAPs over the network� portable storage as a network

accelerator

Page 39: PCs for Mere Mortals - The Stanford SUIF Compiler Grouplam/hpdc.pdf · PCs for Mere Mortals Monica Lam Stanford University. 2 PCs • Hardware: Cheap and fast – $500: 2.6 GHz, 128

39

Conclusions

• Practical alternative to PC desktop model– Works with all x86 software– Runs on generic x86 PC connected to the

network

• Supports Windows, Linux, … Java machines simultaneously

• Up-to-date systems � better security• Easier-to-use software � more software