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
Q

At each intersection of horizontal and vertical lines is a crosspoint, either in an open or closed state

A

UMA with crossbar switches

25
Q

Crossbar switches are ______, so CPU is never denied connection

A

UMA with crossbar switches

26
Q

Based on 2x2 switch, message arriving on any input can be swapped to any output

A

UMA with multistage switching

27
Q

Still vulnerable to blocking if data is being read / written using same bus at same time

A

UMA with multistage switching

28
Q

Access to local slice of memory is faster than accessing remote memory

A

NUMA multiprocessor

29
Q
  • 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
A

Characteristics of NUMA

30
Q
  • 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
A

Each CPU has own OS

31
Q
  • 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
A

Master-slave multiprocessing

32
Q
  • 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
A

Symmetric multiprocessing

33
Q

Using TSL for multiprocessing will lead to

A

spin lock

34
Q

CPU is blocked from accessing bus will constantly request lock

A

spin lock

35
Q

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

A

TSL cache thrashing

36
Q

Partition CPU into blocks. Only execute threads once there are enough free CPUs in partition

A

Space sharing

37
Q

Groups of threads scheduled as a unit. All members run at once on different timeshared CPUs. All members start and end time slices together

A

Gang scheduling

38
Q

Limited from doing anything on CPU until send/receive is finishd

A

Blocking calls

39
Q

Transfer control to kernel temporarily, then return before actual call is finished

A

Nonblocking calls

40
Q

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

A

Distributed shared memory

41
Q

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

A

false sharing

42
Q
A