LDoms Configuration
LDoms Configuration
LDoms Configuration
Contents
Background Components Features Architecture Configuration Examples Q&A
Page: 2
Background
Page: 3
Consolidation
Conventional Unix server utilisation is 7 to 15% Data center compression
> Goal: Increase utilisation of equipment
10%
Utilisation
20%
Time
10%
Page: 4
App OS Server
Solaris Containers (Zones + SRM) Solaris Containers for Linux Applications Solaris Trusted Extensions
Operating System
Solaris X (genunix)
Solaris X (sun4v)
sun4v interface
CPU Z
SPARC CPU
Platform
Page: 6
Logical Domains
Partitioning capability
> Create virtual
LDom 1 Solaris 10
App
machines each with sub-set of resources > Protection & Isolation using HW+firmware combination
Hypervisor Hardware
Shared CPU, Memory, IO
LDom 2 Solaris 10
App App Zone
App
App
CPU Mem
CPU Mem
CPU Mem
CPU I/O
Page: 8
set of machine resources, and its own independent OS > Protection & isolation via SPARC hardware and LDoms Hypervisor firmware
LDom A
LDom B
LDom C
LDom D
Linux
FreeBSD
CPU Memory
Platform Hardware
Page: 9
Memory I/O
box / chip > More flexibly be able to utilise available compute power
Page: 10
Components
Page: 11
Operating System
> Solaris 10 11/06 (U3) + patches > OpenSolaris (build 57+ recommended)
Firmware
> 6.4.0
Features
Page: 13
Fundamentals
Each virtual machine should appear as an entirely independent machine
> > > > >
own kernel, patches, tuning parameters own user accounts, administrators own disks own network interfaces, MAC & IP addresses Start, stop and reboot independently of each other
Paravirtualised OS
Page: 14
Features
Add and remove cpus while OS is running Protection and isolation via SPARC hardware and LDoms Hypervisor firmware Service domains for I/O
> direct I/O access
Page: 15
Memory assignable to with an 8KB granularity Two PCI busses independently assignable to the same or different LDoms. Guest Domains can be configured, started and stopped independently
> Without requiring a power-cycle of machine
Page: 16
Architecture
Page: 17
Architecture
Logical Domains overview Hypervisor LDoms Manager Virtualised I/O Dynamic Reconfiguration (DR)
Page: 18
Hypervisor Support
Hypervisor software is responsible for maintaining separation between domains
> Using extensions built into a sun4v CPU
Also provides Logical Domain Channels (LDCs) so that domains can communicate with each other
> Mechanism by which domains can be virtually networked
Page: 19
LDoms Manager
One Manager per host HV
> Controls Hypervisor and all its LDoms
Exposes control interface via CLI Maps Logical Domains to physical resources
> Constraint engine > Heuristic binding of LDoms to resources > Assists with performance optimisation > Assists in event of failures / blacklisting
Page: 20
Logical Domains
File Server Web Server Mail Server
Application
OS
Server
Page: 21
Direct I/O
Traditional model
> Existing drivers and devices
Logical Domain
App App App
continue to work
Privileged
Hyper Privileged
Hardware
PCI-Express
Page: 22
Virtualised I/O
Logical Domain A
App App App Virtual Device Service Nexus Driver /pci@B App
Service Domain
Device Driver /pci@B/qlc@6
Privileged
Hyper Privileged
Hypervisor
Domain Channel
I/O MMU
Hardware
PCI Roo t
I/O Bridge
PCI B
Page: 23
Logical Domain 2
App App App App
Logical Domain 3
App App App App
Service Domain
vDisk Server vDisk Server
DeviceDriver
Hypervisor
I/O Bridge
FC-AL I/F
Page: 24
Logical Domain 2
App App App App
Logical Domain 3
App App App App
Service Domain
V-Ether Switch V-Ether Switch
V-Ether Driver
V-Ether Driver
V-Ether Driver
DeviceDriver
Hypervisor
I/O Bridge
Gb Ether I/F
Page: 25
LDoms Manager
Logical Domain 1
App App App App
Logical Domain 2
App App App
Logical Domain 3
App App App
Service Domain
LDoms Manager
OS DR Stack
OS DR Stack
OS DR Stack
Hypervisor
HV DR Stack
Page: 27
Logical Domain 1
App App
Logical Domain 2
App App
V
Hypervisor
V P
Hypervisor
V P P
V P
Example command line operations: % ldm remove-vcpu 1 Logical_Domain_1 % ldm add-vcpu 1 Logical_Domain_2
Page: 28
Configuration Examples
Page: 29
Page: 30
Adding resources
primary#> ldm create domain1 primary#> ldm add-mem 2g domain1 primary#> ldm add-vcpu 4 domain1 primary#> ldm add-vdisk vdisk1 vol1@primary-vds0 domain1 primary#> ldm add-vnet vnet1 primary-vsw0 domain1
Page: 32
More information
BigAdmin Portal > http://www.sun.com/bigadmin/hubs/ldoms/ Sun Blueprint > Beginners Guide to LDoms: Understanding and Deploying Logical Domains > http://www.sun.com/blueprints/0207/820-0832.pdf
Page: 33
Logical Domains
Liam Merwick
[email protected] LDoms Development SPARC Platform Software
34