Question

Assume you have: 32-bit addresses, 4KB Page size, 4MB Physical Memory Space, 4KB Cache with 4-way...

Assume you have: 32-bit addresses, 4KB Page size, 4MB Physical Memory Space, 4KB Cache with 4-way set associative and LRU replacement, 32 Byte Cache block size, 4-entry fully associative TLB. A program to be run on this machine begins as follows:
  double A[1024];
int i, j;
double sum = 0;
for( i = 0; i < 1024; i++ )       // first loop
     A[i] = i;
for( j = 0; j < 1024; j += 16 )   // second loop
     sum += A[j];

The size of double is 8 bytes. Array A is located in memory starting at 0x1000 and stored in row major order. The cache and TLB are initially empty and NO pre-fetching is done. The only data memory references made by the program are those to array A.

  1. How many bits are needed to specify the page offset? How many bits are needed to specify the physical page (frame) number? How many bits are needed to specify the virtual page number?
  2. What is the hit rate for the cache in the first loop?
  3. What is the hit rate for the cache in the second loop?
  4. What is the TLB hit rate in the first loop?
0 0
Add a comment Improve this question Transcribed image text
Answer #1

If you have any questions comment down.. Please don't just simply downvote and leave. Also please upvote thanks

Add a comment
Know the answer?
Add Answer to:
Assume you have: 32-bit addresses, 4KB Page size, 4MB Physical Memory Space, 4KB Cache with 4-way...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT