28
1 Virtual Machine Resource Monitoring and Networking of Virtual Machines Ananth I. Sundararaj Department of Computer Science Northwestern University July 07, 2003

Virtual Machine Resource Monitoring and Networking of Virtual Machines

  • Upload
    jontae

  • View
    57

  • Download
    0

Embed Size (px)

DESCRIPTION

Virtual Machine Resource Monitoring and Networking of Virtual Machines. Ananth I. Sundararaj Department of Computer Science Northwestern University July 07, 2003. Outline. Efficient Monitoring of Virtual Machine Resources Objective Motivation Basic Approach Experimental Setup - PowerPoint PPT Presentation

Citation preview

Page 1: Virtual Machine Resource Monitoring and Networking of Virtual Machines

1

Virtual Machine Resource Monitoring and Networking of Virtual Machines

Ananth I. Sundararaj

Department of Computer ScienceNorthwestern UniversityJuly 07, 2003

Page 2: Virtual Machine Resource Monitoring and Networking of Virtual Machines

2

Outline Efficient Monitoring of Virtual Machine

Resources Objective Motivation Basic Approach Experimental Setup Research Issues Results and Discussion Conclusions Future Work

Page 3: Virtual Machine Resource Monitoring and Networking of Virtual Machines

3

Objective Problem Statement

To address the problem of efficient monitoring of virtual machine resources hosted on a physical host machine

Given the monitoring information in the host operating system, attempt to reconstruct the monitoring information in the guest operating system residing on the virtual machines

To characterize the aggregate system performance using time series analysis

To develop a mapping from aggregate system resources to individual virtual machine system resources

Page 4: Virtual Machine Resource Monitoring and Networking of Virtual Machines

4

Motivation

Abstraction of a Virtual Machine Research areas and projects where this

abstraction is being leveraged Why is the problem important Need for efficient monitoring

Page 5: Virtual Machine Resource Monitoring and Networking of Virtual Machines

5

Abstraction of a Virtual Machine

OS Virtual Machine

OS User

Page 6: Virtual Machine Resource Monitoring and Networking of Virtual Machines

6

Virtual Machine

History First came about in the 1960's on mainframes as

a way to create less complex multi user time share environments

What is it? A virtual machine is an abstraction of a physical

machine Created using a Virtual Machine Monitor (VMM)

running on a physical machine Gives the illusion of working on a separate

machine

Page 7: Virtual Machine Resource Monitoring and Networking of Virtual Machines

7

Virtual machines contd..

Architecture The abstraction of a virtual

machine is that each user appears to have a dedicated machine at their disposal, the hardware of which they can access directly

Page 8: Virtual Machine Resource Monitoring and Networking of Virtual Machines

8

Areas where this abstraction is being leveraged

Grid Computing on Virtual Machines

Prototyping

Virtual Honeynets used as a counter intrusion strategy

Page 9: Virtual Machine Resource Monitoring and Networking of Virtual Machines

9

Outline

Objective Motivation Basic Approach Experimental Setup Research Issues Results and Discussion Conclusions Future Work

Page 10: Virtual Machine Resource Monitoring and Networking of Virtual Machines

10

Basic Approach

Typical monitoring system on a physical machine

Aggregate system performance is characterized using time series analysis

A mapping from aggregate system resources to individual virtual machine resources is developed

Model developed could then be used to build monitoring tools for such systems

Page 11: Virtual Machine Resource Monitoring and Networking of Virtual Machines

11

Experimental Setup

Physical machine is a dual Pentium III/800 MHz with 1 GB memory running RedHat 7.1

Virtual machine uses VMware GSX server with 128 MB memory and RedHat 7.3

Case I A physical machine hosts a single virtual machine

Case II A physical machine hosts two virtual machines

Page 12: Virtual Machine Resource Monitoring and Networking of Virtual Machines

12

Data Collection Time synchronization

Reading data from /proc of physical and virtual machine Tool written by Luka Spoljaric Typical usage: bash$ ns [-max i] [-rate f] [-period f] [-name s] [-timestamp]

Counters read CPU

Load Number of processes Usage Context Switches

Memory Page faults % usage of buffer

Disk Bytes transferred (read and write operations)

Network Bytes transferred (transmitted and received)

Page 13: Virtual Machine Resource Monitoring and Networking of Virtual Machines

13

Possible ScenariosPhysical Machine Virtual Machine

Completely Unloaded -

Only load process -

Only virtual machine Completely unloaded

Virtual machine + load process Completely unloaded

Virtual machine + VM load process VM load process

Virtual machine + load process + VM load

VM load process

Load Processes: The background load was produced by host load trace playback

Page 14: Virtual Machine Resource Monitoring and Networking of Virtual Machines

14

Research Issues

Effect of load process in physical machine on load in virtual machine

Rate of execution in the Virtual Machine Multiple input single output analysis Other benchmarks Alternatives to reading /proc Analysis from the view of virtual machine as a

process

Page 15: Virtual Machine Resource Monitoring and Networking of Virtual Machines

15

Results and Discussion

Page 16: Virtual Machine Resource Monitoring and Networking of Virtual Machines

16

Impulse Response Function

Page 17: Virtual Machine Resource Monitoring and Networking of Virtual Machines

17

Cross Covariance

Page 18: Virtual Machine Resource Monitoring and Networking of Virtual Machines

18

Cross Correlation

Page 19: Virtual Machine Resource Monitoring and Networking of Virtual Machines

19

Fitted Model

Basic Dynamic Model The basic relationship is the linear difference

equation ARX Model

General form is y(t) + a1y(t-T) + a2t(t-2T) = b1u(t-2T) + b2u(t-3T) + e(t)

Parameters (20, 17, 50) (poles, zeros, delay)

Page 20: Virtual Machine Resource Monitoring and Networking of Virtual Machines

20

Model Validation

Page 21: Virtual Machine Resource Monitoring and Networking of Virtual Machines

21

Outline

Objective Motivation Basic Approach Experimental Setup Research Issues Results and Discussion Conclusions Future Work

Page 22: Virtual Machine Resource Monitoring and Networking of Virtual Machines

22

Conclusions Provided motivation for efficient monitoring of

virtual machines hosted on physical machines

Detailed the approach adopted Described the experimental setup Discussed the preliminary results

Page 23: Virtual Machine Resource Monitoring and Networking of Virtual Machines

23

Future Work

To come up with a more generic model considering all the cases and scenarios listed

To collect data differently and perhaps apply different analysis techniques

Based on the models developed to build monitoring tools for systems hosting many virtual machines on a single physical host

Page 24: Virtual Machine Resource Monitoring and Networking of Virtual Machines

24

Outline – Current Work

Network of Virtual Machines Scenario Objectives Problem Formulation Issues

Page 25: Virtual Machine Resource Monitoring and Networking of Virtual Machines

25

Scenario

Virtual Machine Networking Scenario

Page 26: Virtual Machine Resource Monitoring and Networking of Virtual Machines

26

Objectives

An overlay network could be formed among the remote virtual machines giving rise to a virtual LAN

The overlay network could optimize itself with respect to the communication between the virtual machines

To maintain network connectivity during and after migration of virtual machines

Page 27: Virtual Machine Resource Monitoring and Networking of Virtual Machines

27

Abstract Problem Formulation Network organization and management as a

state machine Concept of a state for a network

Topology Routing information

The inputs to the state machine Bandwidth matrix Latency matrix

Page 28: Virtual Machine Resource Monitoring and Networking of Virtual Machines

28

Issues Involved

Collecting network and topology information

Inferring current state

Generating inputs

Dynamically changing state