Virtualization_4 Memory Management 4. [4 points] A hyperviso…

Virtualization_4 Memory Management 4.  A hypervisor uses ballooning mechanism to allocate/reclaim memory from the VMs, and the memory management policy it follows is as follows:  50% tax on idle memory of a VM  Cycle through all VMs with idle memories before double taxing any one VM    Consider the following scenario:  VM1 requests 800 MB of memory from the hypervisor  VM2, VM3, VM4 have respectively 200 MB, 400 MB, and 1 GB of idle memory    List the steps taken by the hypervisor to satisfy the memory request of VM1.

OS_Structure_2d Microkernel   The context for this question…

OS_Structure_2d Microkernel   The context for this question is the same as the previous question. 2. You are evaluating a microkernel-based OS following the principles of the L3 microkernel. The processor architecture on which this OS is running has the following features:   A byte-addressable 32-bit hardware address space.  Paged virtual memory system with a processor register called PTBR that points to the page table in memory to enable hardware address translation.  A TLB which DOES NOT support Address space IDs. A pair of hardware-enforced segment registers (lower and upper bound of virtual addresses) which limit the virtual address space that can be accessed by a process running on the processor. The use of segment registers can be toggled on or off by the user.  A virtually-indexed physically-tagged processor cache.   d. (Answer True/False with justification)  Since the TLB does not support address space IDs, the TLB will always need to be flushed upon a context switch from one protection domain to another. 

Parallel_Systems_5a M.E.Lock 5. Consider the ticket lock alg…

Parallel_Systems_5a M.E.Lock 5. Consider the ticket lock algorithm from lecture 4 (slide 108): a. Compared with the lock algorithm with delay in a previous question, what is the advantage of ticket lock’s different method of determining the amount of delay? From a programmer’s perspective what is the added value of this algorithm compared to the lock algorithm with delay in the previous question?