Question
Suppose we have a 64-bit machine with a single CPU. This machine is executing a process. This process made eight memory accesses. Each one of
Suppose we have a 64-bit machine with a single CPU. This machine is executing a process. This process made eight memory accesses. Each one of these memory accesses reads eight bytes from memory and put them in a register. Suppose that the page size in this machine is 4KB. Level 1 cache size is 32KB and level 2 cache size is 64KB. There is no level 3 cache in this machine. The OS uses a single level page table. The CPU has one TLB.
a. [10 points] What is the minimum number of pages that this process accessed when executing the memory accesses mentioned above? Justify your answer. Ignore pages accessed to load the instructions themselves.
b. [10] What is the maximum number of pages that this process accessed when executing the memory accesses mentioned above? Justify your answer. Ignore pages accessed to load the instructions themselves.
c. [5] For the eight memory accesses mentioned in the problem, how many times the MMU has been accessed?
d. [5] For the eight memory accesses mentioned in the problem, how many times the TLB has been accessed?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started