Lesson 3b (Memory Virtualization) Flashcards

1
Q

Why is virtual memory implementation so important

A

it is crucial to performance

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

How many page tables do we have

A

one for each process

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

Where is the pagetable (hardware or software)

A

it is an os data structure

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

What does the page table contain

A

mappings from virtual to physical memory

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

does the hypervisor know about the page table in each OS

A

no

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

What is machine memory

A

physical memory, like the ram sticks in the machine

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

who controls machine memory

A

the hypervisor

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

is physical memory of a virtual OS contiguous

A

no

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

MPN

A

machine page number

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

how is the PPN mapped to the MPN

A

Type hypervisor keeps a page table that maps from physical to machine memory

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

What is the hypervisor’s pagetable called?

A

S-PT shadow page table

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

Where should the PPN->MPN be store for fully virtualized?

A

hypervisor

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

Where should the PPN->MPN be store for para virtualized?

A

Guest OS

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

How is VPN to MPN made efficent

A

The hypervisor traps guest PT/TLB updates of the virtualized OS. It then installs that mapping in the S-PT and hardware TLB.

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

does a para guest know about the S-PT

A

The PPN to MPN can be pushed in the guest OS

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

What methods does the para guest use to work with hypervisor MMU

A

CreatePT, SwitchPT, UpdatePT

17
Q

Ballooning requires what of the guest OS?

A

Needs to have a “balloon” device driver.

18
Q

How does the Ballooning process work?

A

The balloon driver keeps allocating memory until it has enough to return a page to the hypervisor

19
Q

What if the host needs less memory

A

the balloon is deflated

20
Q

Which type of virtualization uses ballooning

A

Para and full

21
Q

How can pages from separate guest OSs be shared

A

They can be copied into the same MPN and then the OS is told they are copy of write (COW)

22
Q

how does content base sharing work

A

A hint frame is created that contains a hash of the pages content. The hash is stored in a hash table upon hit the full page content is compared

23
Q

What is contained in the hint frame

A

hash of content, CM#, PPN, MPN, REF# (how many matches)

24
Q

what happens on successful match in content based sharing?

A

The PPN is updated in the guest and page is marked COW.

25
Do shared code pages need to be COW
No. Since the pages cannot be modified
26
What different memory allocation policies are used by the hypervisor
-pure shared based approach, - working-set based, - Dynamic idle-adjusted shared approach
27
What approach does vmware es6 server take
if you are holding idle pages it taxes you and takes 50% of the pages away
28
Why does it avoid a 100% tax?
In case the guest has a sudden increase in need.