Question
Virtual Memory Question. Suppose we have a cache with 128 blocks, each containing 16 bytes of storage. a) If the cache uses direct mapping, in
Virtual Memory
Question. Suppose we have a cache with 128 blocks, each containing 16 bytes of storage.
a) If the cache uses direct mapping, in which cache block would the byte with address 1011 1001 1000 1011 1010 1100 reside?
b) If the cache uses set associative mapping with an index of length 4 bits, in which set would the byte with address 1010 1001 1100 1011 0110 reside?
c) Suppose that virtual addresses on this machine are 32 bits, and that pages are 4KB each. If the machine has 1MB of physical memory, how many standard page table entries are required if all the pages are being used?
d) And what fraction of the pages can reside in memory at any point in time?
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