Is Virtualization Killing SSI
Research?
Jérôme Gallard, Geoffroy Vallée, Adrien Lèbre, Christine Morin, Pascal Gallard and Stephen L. Scott VHPC'08 Las Palmas de Gran Canaria – Aug, 26thOutline
Context
Cluster BS/SSI
Virtualization
➔Combining Virtualization and SSI
Conclusion
Lessons learnt
Perspectives
VHPC'08 Las Palmas de Gran Canaria August 2008 3
Introduction
3Cluster exploitation:
➔
How to execute jobs on a cluster architecture?
- Batch scheduler (BS)
- Single System Image (SSI)
VHPC'08 Las Palmas de Gran Canaria August 2008 5
Batch Scheduler (BS)
6 N0head node compute nodes
Wait queue of jobs
N1 N2 N3
N4 N5 N6
Users interact only with the head node
VHPC'08 Las Palmas de Gran Canaria August 2008 7
Single System Image (SSI)
6 compute nodes N1 N2 N3 N4 N5 N6 no head nodeUsers have the illusion to manage a SMP machine
with UNIX standard tools
Interesting functionality:
- Global management of ressources
(such as the memory)
VHPC'08
Las Palmas de Gran Canaria
August 2008 9
Virtualization Technologies
Virtualization Technologies
N0 VM0
VM1 VM2
compute node
VHPC'08
Las Palmas de Gran Canaria
August 2008 11
Virtualization with BS
N0
head node (BS) compute nodes
Wait queue of VMs (JAWS, Haizea) N1 N2 N3 N4 N5 N6 8
Combining BS + VM
Simplify:
- Management and deployement of applications
- Management of resources
VHPC'08
Las Palmas de Gran Canaria
August 2008 13
VMs vs SSI
Is virtualization killing system image research?
What's about combining both approaches ?
VMs vs SSI
Container SSI
X
X
X
O
X
X
X
O
Container
X
X
X
O
SSI
O
O
O
X
bottom top
TypeI TypeII
TypeI
TypeII
VHPC'08 Las Palmas de Gran Canaria August 2008 15
SystemLevel Virtualization
Goldberg:
TypeII-virtualization
11SystemLevel Virtualization
Hardware Hypervisor Host OS VM VM Kernel space User spaceGoldberg:
TypeII-virtualization
...Example of typeII: Vmware, QEMU
App1
VHPC'08
Las Palmas de Gran Canaria
August 2008 17
TypeIIVirtualization
upon
SSI
N1 N2 N3
TypeIIVirtualization
upon
SSI
N1 N2 N3
VHPC'08
Las Palmas de Gran Canaria
August 2008 19
TypeIIVirtualization
upon
SSI
N1 N2 N3
Host OS: SSI Hypervisor
TypeIIVirtualization
upon
SSI
N1 N2 N3
Host OS: SSI
VM1 VM2
VHPC'08
Las Palmas de Gran Canaria
August 2008 21
TypeIIVirtualization
upon
SSI
N1 N2 N3
Host OS: SSI
App1 App2
VM1 VM2
Hypervisor
12
TypeIIVirtualization
upon
SSI
N1 N2 N3
Host OS: SSI
App1 App2
VM1 VM2
Hypervisor Advantages:
VM could use virtual
resources composed with several physical nodes (for instance, memory)
VHPC'08
Las Palmas de Gran Canaria
August 2008 23
SSI
upon
TypeIIVirtualization
SSI
SSI
upon
TypeIIVirtualization
N1 N2 N3
App1 App2 App3
Host OS1 Host OS2 host OS3
Hyp1 Hyp2 Hyp3
VM1 VM2 VM3 VM4
Advantages:
Possibility to have Virtual Cluster and to
VHPC'08
Las Palmas de Gran Canaria
August 2008 25
SSI
SSI
upon
TypeIIVirtualization
N1 N2 N3
App1 App2 App3
Host OS1 Host OS2 host OS3
Hyp1 Hyp2 Hyp3
VM1 VM2 VM3 VM4
Advantages:
Possibility to have Virtual Cluster and to
migrate it from nodes to others
SSI
SSI
upon
TypeIIVirtualization
N1 N2 N3
App1 App2 App3
Host OS1 Host OS2 host OS3
Hyp1 Hyp2 Hyp3
VM1 VM2 VM3 VM4
Advantages:
Possibility to have Virtual Cluster and to
migrate it from nodes to others
VHPC'08
Las Palmas de Gran Canaria
August 2008 27
SSI
SSI
upon
TypeIIVirtualization
N1 N2 N3
App1 App2 App3
Host OS1 Host OS2 host OS3
Hyp1 Hyp2 Hyp3
VM1 VM2 VM3 VM4
Advantages:
Possibility to have Virtual Cluster and to
migrate it from nodes to others
13
N4
host OS4
SSI
SSI
upon
TypeIIVirtualization
N1 N2 N3
App1 App2 App3
Host OS1 Host OS2 host OS3
Hyp1 Hyp2 Hyp3
VM1 VM2 VM3 VM4
Advantages:
Possibility to have Virtual Cluster and to
migrate it from nodes to others
N4
host OS4
VHPC'08
Las Palmas de Gran Canaria
August 2008 29
SSI
SSI
upon
TypeIIVirtualization
N1 N2 N3
App1 App2 App3
Host OS1 Host OS2 host OS3
Hyp1 Hyp2 Hyp3
VM1 VM2 VM3 VM4
Advantages:
Possibility to have Virtual Cluster and to
migrate it from nodes to others
13
N4
host OS4
Hyp4 VM4
SSI
SSI
upon
TypeIIVirtualization
N1 N2 N3
App1 App2 App3
Host OS1 Host OS2 host OS3
Hyp1 Hyp2 Hyp3
VM1 VM2 VM3 VM4
Advantages:
Possibility to have Virtual Cluster and to
migrate it from nodes to others
N4
host OS4
Hyp4 VM4
VHPC'08 Las Palmas de Gran Canaria August 2008 31
SystemLevel Virtualization
Goldberg:
TypeI-virtualization
14SystemLevel Virtualization
Goldberg:
TypeI-virtualization
Hardware Hypervisor Host OS (Dom0) VMKernel Space User Space
... VM
Example of typeI-virtualization: XEN
Guest OS Guest OS
VHPC'08
Las Palmas de Gran Canaria
August 2008 33
TypeIVirtualization
upon
SSI
N1 N2 N3
Host OS
(Dom0) VM1 VM2
App1 App2 App3
Example: ScaleMP is like a distributed superbios
15
Guest OS Guest OS
TypeIVirtualization
upon
SSI
N1 N2 N3
Host OS
(Dom0) VM1 VM2
App1 App2 App3
Characteristics:
Distributed hypervisor
Example: ScaleMP is like a distributed superbios
Guest OS Guest OS
VHPC'08
Las Palmas de Gran Canaria
August 2008 35
SSI
upon
TypeIVirtualization
VM1 VM3
SSI
App1 App2 App3
H o st O S (D om 0 ) H o st O S (D om 0 ) Hypervisor N2 VM2 Hypervisor N1 Same as
SSI upon TypeII-Virtualization
NOT in Goldberg classification, but more and more used nowadays
VHPC'08 Las Palmas de Gran Canaria August 2008 37 Host OS + Hypervisor Kernel Space User Space Hardware cntr1 cntr2 Kernel Space User Space
NOT in Goldberg classification, but more and more used nowadays
17
Example of containers: OpenVZ, chroot
Host OS + Hypervisor
Container on the top of SSI
Ctnr1 Ctnr2 Ctnr3
N1 N2 N3 N4
App1 App2 App3 App4
VHPC'08 Las Palmas de Gran Canaria August 2008 39
Container on the top of SSI
Ctnr1 Ctnr2 Ctnr3 N1 N2 N3 N4App1 App2 App3 App4
18
Container + SSI Distributed
Host OS including containers
Container on the top of SSI
Ctnr1 Ctnr2 Ctnr3
N1 N2 N3 N4
App1 App2 App3 App4
Advantages: To have containers taken advantage of distributed SMP Container + SSI Distributed Host OS including containers
VHPC'08 Las Palmas de Gran Canaria August 2008 41
SSI on the top of Container
OS0 Ctnr1 Ctnr2 Ctnr3 Ctnr4 N1 N2 N3 N4 SSIOS0 OS0 OS0
Ctnr5 Architecture irrelevant:
The same kernel is shared between all containers (they have not their own kernel)
OS0
Ctnr1 Ctnr2 Ctnr3 Ctnr4
N1 N2 N3 N4
SSI
OS0 OS0 OS0
Ctnr5 Architecture irrelevant:
The same kernel is shared between all containers (they have not their own kernel)
VHPC'08
Las Palmas de Gran Canaria
August 2008 43
Lessons Learnt
➔
Containers on top of single system image clusters
➔
The SSI system combines all the advantages enabled by
containers on a real SMP machine in a cluster
environment
Lessons Learnt
➔
Virtual Machines on top of SSI clusters
➔
Same advantage as containers
➔
Virtualization solves application portability issues
➔example :
➔
Possibility to run an application developed for process
technology A and OS B on top of computers running
SSI OS based on OS C and developped for achitecture
processor D.
VHPC'08
Las Palmas de Gran Canaria
August 2008 45
Lessons Learnt
➔
SSI on top of VMs
➔
VM migration and suspend functionalities provide:
➔
Flexible, simple and ''On Demand'' resource allocation
mechanisms for the applications
➔
Transparent adaptation mechanisms in case of
hardware changes (for instance, node additions /
removals).
Lessons Learnt
➔
Virtualization and SSI complement each other
➔
SSI abstracts resources
VHPC'08 Las Palmas de Gran Canaria August 2008 47
Combining Virtualization and SSI
Isolation of Two Distinct SSIs
N1 N2 N3 SSI 1App1 App2 App3
OS1 OS2 OS3
Hyp1 Hyp2 Hyp3
VM1 VM2 VM3 VM4 VM5
SSI 2 Possibility to run several
isolated SSIs on the same cluster.
Combining Virtualization and SSI
Three layers of flexibilities
N1 N2 SSI VM1 VM2 VM1 VM2 App1 Possibility to run a windows applicationon a linux SSI cluster running upon MACOS X systems
VHPC'08
Las Palmas de Gran Canaria
August 2008 49
Conclusion
➔
Combining VM/SSI setup:
- Very attractive
- Installation and use are quite simple
(evaluated with TypeII)
➔
Developpement of a framework allowing to
- Deploy VM on G5K
- Deploy SSI (Kerrighed) on physical/virtual nodes
➔
Facility of deploying experiments
Future Work
➔
Performance evaluation
➔
Extend the Goldberg's classification to present in a
uniform way:
➔
The hardware,
➔
The emulated hardware,
➔The OS and SSI,
➔
The different kinds of virtualization techniques,
➔The containers.
VHPC'08
Las Palmas de Gran Canaria
August 2008 51
Future Work
➔
Investigate SSI scheduler and hypervisor scheduler:
➔does the SSI scheduler directly manage VMs ?
➔