Virtualization and Cloud Flashcards

1
Q

Hypervisor should have full control of virtualized resources

A

Safety in VM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Behavior of a program should be the same as running program on baremetal

A

Fidelity in VM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Much of the code in VM should run without intervention

A

Efficiency in VM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Can directly access resources of underlying machine and implement resource allocation strategies to service VMs

A

Type 1 hypervisor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Must negotiate resources with base operating system

A

Type 2 hypervisor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Only uses hypercalls to get system services like I/O

A

microkernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Modify sourcecode of guest operating system

A

paravirtualization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Executes hypercalls, defined in API and exposed to guest OS

A

paravirtualization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When sensitive instruction occurs, trap in host OS and delegate to hypervisor

A

true virtualization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Generic set of procedures that can be executed by any hypervisor

A

Virtual machine interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  • On demand service
  • Broad network access
  • Resource pooling
  • Rapid elasticity
  • Measured service
A

Requirements of cloud platform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

any x86 OS any app can run without modification

A

Challenges in virtualization of x86 - compatability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

performs all UI functions, starts VM and performs most drive emulation, as well as proxying calls to base OS

A

VMX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Small kernel-mode driver that is installed alongside host OS to allow VMM to run by briefly suspending OS

A

VMX driver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Holds all software to multiplex CPU and memory, including exception handlers, trap and emulate handlers, etc

A

Virtual memory manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Context of VMM changes from host OS to VMM

A

World switch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Swaps all memory and registers, including exception handlers and privileged requests

A

world switch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

VMWare’s type 1 hypervisor

A

ESX server

18
Q

Baremetal hypervisor with VMM that allows for multiple virtual machines

A

ESX server

19
Q
  • CPU scheduler ensures each virtual machine gets a fair share of CPU
  • Memory manager optimized for scalability, even when VM requests more memory than available
  • File system optimized for VM images and high I/O throughput
  • Easy to extend capabilities and enable plugins
A

ESX server benefits

20
Q

Each word in memory can be read as fast as any other word

A

Uniform memory access

21
Q

Multiprocessor with single bus, used by all cores

A

UMA with bus-based architecture

22
Q

Leads to issues when one CPU core is using bus more than others

A

Issues with UMA and bus-based architecture

23
Q

Block can either be read-only, allowing it to be in multiple cache lines at same time, or read-write, where it can be in only one cache at a time

A

UMA with bus-based architecture

24
At each intersection of horizontal and vertical lines is a crosspoint, either in an open or closed state
UMA with crossbar switches
25
Crossbar switches are ______, so CPU is never denied connection
UMA with crossbar switches
26
Based on 2x2 switch, message arriving on any input can be swapped to any output
UMA with multistage switching
27
Still vulnerable to blocking if data is being read / written using same bus at same time
UMA with multistage switching
28
Access to local slice of memory is faster than accessing remote memory
NUMA multiprocessor
29
- Single address space visible to all CPUs - Access to remote memory via LOAD and STORE instructions - Access to remote memory is slower than access to local memory
Characteristics of NUMA
30
- Each CPU has own private OS - Multiprocess memory partitioned amongst CPUs, but share underlying OS - Process makes syscall that is handled by own CPU. No processes shared. - No sharing of physical pages - Inconsistency can result if two CPUs attempt to modify same data
Each CPU has own OS
31
- One copy of each operating system on master - All syscalls are directed to master - When CPU goes idle, prompt master for next process - One buffer cache, master delegates pages
Master-slave multiprocessing
32
- One copy of OS in memory, but any system can access - When syscall made, CPU executing process will trap to kernel and process syscall - Multiple mutexes in kernel, divided into submodules to ensure CPUs cannot access same resource at same time
Symmetric multiprocessing
33
Using TSL for multiprocessing will lead to
spin lock
34
CPU is blocked from accessing bus will constantly request lock
spin lock
35
Give CPU each own private lock variable in unusued cache block. Check cache for any other CPU requesting resource and give access to that CPU
TSL cache thrashing
36
Partition CPU into blocks. Only execute threads once there are enough free CPUs in partition
Space sharing
37
Groups of threads scheduled as a unit. All members run at once on different timeshared CPUs. All members start and end time slices together
Gang scheduling
38
Limited from doing anything on CPU until send/receive is finishd
Blocking calls
39
Transfer control to kernel temporarily, then return before actual call is finished
Nonblocking calls
40
Each machine has own VM and page table. When need page that CPU does not have, OS traps and asks CPU to hold page to unpage and send to requesting CPU
Distributed shared memory
41
In multi-computer approach, when a CPU only needs part of page and constantly has to unpage and page with CPU that needs other part of page
false sharing
42