+ All Categories
Home > Documents > System Software Internals Advanced

System Software Internals Advanced

Date post: 09-Apr-2016
Category:
Upload: krishna-prasad
View: 16 times
Download: 3 times
Share this document with a friend
Description:
Advanced Features in Anna University SSI Syllabus
48
Unit – 5 Advanced Features
Transcript
Page 1: System Software Internals  Advanced

Unit – 5Advanced Features

Page 2: System Software Internals  Advanced

Syllabus

Instruction Set Issues – Profiling –Migration – Grids – Code optimizations –

Garbage Collection

Page 3: System Software Internals  Advanced

Book

James E. Smith and Ravi Nair, “Virtual Machines”, Elsevier, 2005.

Page 4: System Software Internals  Advanced

Overview

• Instruction Set Issues

• Profiling

• Migration

• Grids

• Code Optimizations

• Garbage Collection

Page 5: System Software Internals  Advanced

Instruction Set Issues

Page 6: System Software Internals  Advanced

Instruction Set Issues

• Register architectures

• Condition codes

• Data formats and Arithmetic

• Memory address resolution

• Memory data alignment

• Byte order

• Addressing architecture

Page 7: System Software Internals  Advanced

Instruction Set Issues

• Register architectures

• Condition codes

• Data formats and Arithmetic

• Memory address resolution

• Memory data alignment

• Byte order

• Addressing architecture

Page 8: System Software Internals  Advanced

Profiling

Page 9: System Software Internals  Advanced

Profiling

• Process of collecting instruction and data statistics for an executing program

• Can be used as input to code-optimization process

Page 10: System Software Internals  Advanced

Static Profiling

Page 11: System Software Internals  Advanced

Dynamic Profiling

Page 12: System Software Internals  Advanced

Types of Profiling

• Frequency of execution of code regions

• Based on control flow predictability

• Path profile

Page 13: System Software Internals  Advanced
Page 14: System Software Internals  Advanced

Collecting Profiles

• Two ways• Instrumentation-based profiling

• Targets specific program-related events and counts all instances of the events being profiled

• Hardware instrumentation

• Software instrumentation

• Sampling-based profiling• Program runs unmodified and at fixed or random intervals, the

program is interrupted and an instance of a program-related event is captured

Page 15: System Software Internals  Advanced

Profiling during Interpretation

• Two key points to be considered• Source instructions are actually accessed as data

• Interpreter routines are the code that is being executed

• For block profiling• Profile code should be added to all control transfer

instructions

• For edge profiling • Same control transfer instructions are profiled along

with both the PC of the control transfer instruction and the target are used (defines the specific edge)

Page 16: System Software Internals  Advanced

Profiling during Interpretation

Page 17: System Software Internals  Advanced

Profiling Translated Code

Page 18: System Software Internals  Advanced

Profiling overhead

• More memory and time consuming

• Ways to reduce• Reduce number of instrumentation points

• Using heuristics

• And so on

Page 19: System Software Internals  Advanced

Code Optimization

Page 20: System Software Internals  Advanced

Code Optimizations

Page 21: System Software Internals  Advanced

Code Optimizations

Page 22: System Software Internals  Advanced

Code Optimizations

Page 23: System Software Internals  Advanced

Code Optimizations

Page 24: System Software Internals  Advanced

Code Optimizations

Page 25: System Software Internals  Advanced

Inter-superblock Optimization

Page 26: System Software Internals  Advanced
Page 27: System Software Internals  Advanced

Instruction-set-specific Optimizations • Two examples

• Unaligned load optimization

• if conversion

Page 28: System Software Internals  Advanced
Page 29: System Software Internals  Advanced

Garbage Collection

Page 30: System Software Internals  Advanced
Page 31: System Software Internals  Advanced

Garbage Collectors

• Mark and sweep

• Compacting

• Copying

• Generational

• Incremental and concurrent

Page 32: System Software Internals  Advanced

Compacting Collectors

Page 33: System Software Internals  Advanced

Copy Collectors

Page 34: System Software Internals  Advanced

Generational Collectors

• Two sub-heaps• Nursery

• Tenured

Page 35: System Software Internals  Advanced

Incremental and Concurrent Collectors

Page 36: System Software Internals  Advanced

Comparison

Page 37: System Software Internals  Advanced

Migration

Page 38: System Software Internals  Advanced

VM Migration

Page 39: System Software Internals  Advanced

Internet Suspend/Resume (ISR)

Page 40: System Software Internals  Advanced

State Encapsulation

• Stanford Collective Project

• State of the VM is sent directly to the destination computer rather than to a DFS

Page 41: System Software Internals  Advanced

State Encapsulation

• Reducing memory state before migration• Balloon program

• Reducing the size of the transmitted packet• Copy-on-write

• Reducing Start-up time on a Resume• Incremental build-up on demand

• Reducing transmission time and bandwidth by exploiting redundancy in disk blocks• Hashed copy

Page 42: System Software Internals  Advanced

Migration in Vmotion

• Load balancing• To improve the response time of the system through better

utilization of resources

• Security• To quarantine a virtual machine that has been attacked

• Collocation• To bring communicating virtual machines closer together

• Fault tolerance• To move a failing host to another processor

• Power management• To move the load away from an overheated processor

• Maintenance• To move the load away from some processor while it is upgraded

Page 43: System Software Internals  Advanced

Migration in Vmotion

• Steps• Check if running VM is stable

• Baseline copy to the new host

• Copy VM’s changed state to new host

• Activate the VM in new host

Page 44: System Software Internals  Advanced

Grids

Page 45: System Software Internals  Advanced

Grid Computing

Page 46: System Software Internals  Advanced

Characteristics of a grid

• Infrastructure

• Dependability of Service

• Consistency of Service

• Pervasive Access

• Inexpensive Access

• Coordinated Resource Sharing

• Dynamic Communities

Page 47: System Software Internals  Advanced

Comparison with Conventional VMs• Efficient Utilization of Resources

• Sharing of Resources

• Distributed Vs Centralized Control

• Heterogeneous Nodes

• Adaptation of Applications

• Portability of Applications

Page 48: System Software Internals  Advanced

Recap

• Instruction Set Issues

• Profiling

• Migration

• Grids

• Code Optimizations

• Garbage Collection


Recommended