GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Parallel_Systems_8a LRPC 8. Consider a single processor mach…

Parallel_Systems_8a LRPC 8. Consider a single processor machine running a client and server. The client calls a procedure ‘foo’ on the server with the following declaration:   void foo(data_structure a, data_structure b);     The server always expects the actual parameters of the call to be in its stack.     Consider the following variables representing average times to complete the described operations.  T1: Average time to copy a variable of type ‘data_structure’ from user space to kernel space and vice versa.  T2: Average time to copy a variable of type ‘data_structure’ from user space to user space.  T3: Average time the server takes to execute the procedure ‘foo’.  T4: Average time to switch between user-space domains (averaged over thread-doctored and normal thread-scheduled workflows).  T5: Average time for a kernel trap and associated validation (averaged over binding object and non-binding object workflows).     Answer the questions below based on the information and average times given above. You should give an explanation of the component times that make up your answer to get any credit. Consider any other time that is not mentioned above as negligible.    a. [2 point] Calculate the total client wait time after calling the procedure ‘foo’, if the server and client were collocated in the same process. 

Read Details

Parallel_Systems_8b LRPC The context for this question is th…

Parallel_Systems_8b LRPC The context for this question is the same as the previous question. 8. Consider a single processor machine running a client and server. The client calls a procedure ‘foo’ on the server with the following declaration:   void foo(data_structure a, data_structure b);     The server always expects the actual parameters of the call to be in its stack.     Consider the following variables representing average times to complete the described operations.  T1: Average time to copy a variable of type ‘data_structure’ from user space to kernel space and vice versa.  T2: Average time to copy a variable of type ‘data_structure’ from user space to user space.  T3: Average time the server takes to execute the procedure ‘foo’.  T4: Average time to switch between user-space domains (averaged over thread-doctored and normal thread-scheduled workflows).  T5: Average time for a kernel trap and associated validation (averaged over binding object and non-binding object workflows).     Answer the questions below based on the information and average times given above. You should give an explanation of the component times that make up your answer to get any credit. Consider any other time that is not mentioned above as negligible.    b. [3 points] Calculate the total client wait time after calling the procedure ‘foo’, if the server and client were two different processes, and the OS does not optimize the RPC workflow for processes running on the same machine. 

Read Details

Solve the proportion for the given variable. Round the solut…

Solve the proportion for the given variable. Round the solution where indicated.

Read Details

Parallel_Systems_7 LRPC 7. [2 points] (Answer True/ False wi…

Parallel_Systems_7 LRPC 7. [2 points] (Answer True/ False with justification) The kernel holds two procedure descriptors associated with Server A; one for procedure ‘foo’ with total number of simultaneous calls set to 5 and the other for procedure ‘bar’ with total number of simultaneous calls set to 6. Given that these are the only 2 procedures registered by this server, the total number of simultaneous RPCs that the server can field is max(5, 6) = 6.

Read Details

Parallel_Systems_5c M.E.Lock The context for this question i…

Parallel_Systems_5c M.E.Lock The context for this question is the same as the previous question. 5. Consider the ticket lock algorithm from lecture 4 (slide 108): c. [1.5 points] What are the downsides of the ticket lock algorithm for systems with write-invalidate cache coherence? Briefly explain your answer.

Read Details

Parallel_Systems_6 Barriers 6. [4 points] Given the followi…

Parallel_Systems_6 Barriers 6. [4 points] Given the following picture of the dissemination algorithm, focusing on node P4, what information does P4 know at the end of round 1?  Explain your answer. 

Read Details

Virtualization_2 Full Virtualization 2. [4 points] In a full…

Virtualization_2 Full Virtualization 2. [4 points] In a fully virtualized environment, consider the following:  Two VMs are currently running. VM1 has 3 processes running; VM2 has 4 processes running.    Assume the size of the hardware page table is 1 MB.    What is the total memory overhead incurred by the Hypervisor for the above configuration? Show your work for any credit.

Read Details

Parallel_Systems_1 Shared Memory Machines 1. [2 points] Cons…

Parallel_Systems_1 Shared Memory Machines 1. [2 points] Consider a NCC-NUMA architecture for a shared address space multiprocessor.  What guarantees are needed from the architecture to ensure that it provides sequential consistency memory model to the programmer?

Read Details

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. [2 points] (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. 

Read Details

Parallel_Systems_9b Parallel System Scheduling The context f…

Parallel_Systems_9b Parallel System Scheduling The context for this question is the same as the previous question. 9. Consider a multi-threaded multicore CPU is one which each chip has multiple cores, and each core has multiple hardware threads.  The OS chooses the set of application threads to be scheduled on the hardware threads in each core.  Given that the hardware threads share a single processor pipeline on the core,   b. [4 points] What should the OS do ensure that processor pipeline is utilized well?  Why?  

Read Details

Posts pagination

Newer posts 1 … 37,521 37,522 37,523 37,524 37,525 … 70,346 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top