Virtualization: Dr. Yingwu Zhu
Virtualization: Dr. Yingwu Zhu
Virtualization: Dr. Yingwu Zhu
1. A balloon process running inside the GuestOS can communicate with the VMM
2. When VMM wants to reclaims mem. from a given VM, asks its balloon process
to allocate more memory, then the page repacement in GuestOS gives pages to
the balloon process, which passes them to the VMM for reallocation
ESX Server – Page Sharing
the VMM tracks the contents of physical pages, noting if they are
identical. If so, the VMM modifies the virtual machine’s shadow page
tables to point to only a single copy
ESX Server – I/O Virtualization
• Has highly optimized storage subsystem for
networking and storage devices
– Directly integrated into the VMM
– Uses device drivers from the Linux kernel to talk
directly to the device
• Low performance devices are channeled to
special “host” VM, which runs a full Linux OS
Virtualization vs. Data Centers
What is data center?
• Large server & storage farms
– Used by enterprises to run server applications
– Used by Internet companies: Google, Facebook,
Youtube, Amazon….
– Sizes can vary depending on needs
Data center architecture
• Traditional: applications run on physical servers
– Manual mapping of apps to servers
• Apps can be distributed
• Storage may be on a SAN or NAS
– IT admins deal with “change”
• Modern: virtualized data centers
– Apps run inside virtual servers; VMs mapped onto
physical servers
– Provides flexibility in mapping from virtual to physical
resources
Virtualized data centers
• Resource management is simplied
– Apps can be started from preconfigured VM
images/appliances
– Virtualization layer / hypervisor permits resource
allocations to be varied dynamically
– VMs can be migrated without app down-time
Workload management
• Internet apps dynamic workloads
• How much capacity to allocate to an app?
– Incorrect workload estimate: over or under
provisioned capacity
– Major issue for Internet facing apps
• Workload surges/ flash crowds cause overloads
• Long-term incremental growth
– Traditional approach: IT admins estimate peak
workloads and provision sufficient
Dynamic provisioning
• Track workload and dynamically provision
capacity
• Monitor -> Predict -> Provision
• Predictive vs. reactive provisioning
– Predictive: predict future workload and provision
– Reactive: react whenever capacity falls short of
demand
• Traditional data centers: bring up a new server
– Borrow from free pool or reclaim under-used server
• Virtualized data center: exploit virtualization