subject
Computers and Technology, 21.03.2020 03:58 ethan0

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.

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?
What is the hit rate for the cache in the first loop?
What is the hit rate for the cache in the second loop?
What is the TLB hit rate in the first loop?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:00
1. which of the following statements are true about routers and routing on the internet. choose two answers. a. protocols ensure that a single path between two computers is established before sending packets over it. b. routers are hierarchical and the "root" router is responsible for communicating to sub-routers the best paths for them to route internet traffic. c. a packet traveling between two computers on the internet may be rerouted many times along the way or even lost or "dropped". d. routers act independently and route packets as they see fit.
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
What is not a type of text format that will automatically be converted by outlook into a hyperlink?
Answers: 1
question
Computers and Technology, 24.06.2019 15:40
In the above figure, what type of cylinder arrangement is shown in the figure above? a. l-type b. v-type c. in-line d. horizontal pls make sure its right if its rong im grounded for 3months
Answers: 1
You know the right answer?
Assume you have: 32-bit addresses, 4KB Page size, 4MB Physical Memory Space, 4KB Cache with 4-way se...
Questions
question
Mathematics, 20.03.2020 07:10
question
History, 20.03.2020 07:10
question
Mathematics, 20.03.2020 07:10
question
Mathematics, 20.03.2020 07:11
Questions on the website: 13722359