subject
Computers and Technology, 07.06.2021 05:10 jay8849

You have a direct mapped cache containing 128 bytes with a cache block size of 32 bytes. The cache uses LRU replacement and write-allocate and write-back policies. Assume i and j are stored in registers, and that the array happy starts at address 0x0. Give the hit rate (as a fraction or a%) for the following two loops. Assume the cache starts out empty. #define LEAP 4 #define SIZE 64 int happy[SIZE] ; // Assume happy has been initialized to contain values. // Assume the cache starts empty at this point. for (int i = 0; i < SIZE; i += LEAP) { 11 Loop 1 happy[i] = happy[i] + i * (i + 2); } for (int j = 1; j < SIZE; j += (LEAP * 2)) { // Loop 2 happy[j] = happy[j] + j * 5; } Hit Rate for Loop 1: Hit Rate for Loop 2: b) [8 pts] For each of the changes proposed below, indicate how it would affect the hit rate of each loop above in part c) assuming that all other factors remained the same as they were in the original problem. Circle one of: "increase", "no change", or "decrease" for each loop. Loop 1: increase / no change / decrease Change associativity from direct mapped to two-way: Loop 2: increase / no change 1 decrease Loop 1: increase Change LEAP from 4 to 8: / no change / decrease Loop 2: increase / no change 1 decrease Loop 1: increase / no change / decrease Change cache size from 128 bytes to 256 bytes: Loop 2: increase / no change 1 decrease Loop 1: increase / no change 1 decrease Change block size from 32 bytes to 16 bytes: Loop 2: increase / no change / decrease

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 10:30
How would you categorize the software that runs on mobile devices? break down these apps into at least three basic categories and give an example of each.
Answers: 1
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2
You know the right answer?
You have a direct mapped cache containing 128 bytes with a cache block size of 32 bytes. The cache u...
Questions
Questions on the website: 13722362