Computers and Technology
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?

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:30, micahpauleen748
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
image
Computers and Technology, 22.06.2019 22:10, Metlife
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, RG1971
(, urgent need): how do i change my username
Answers: 1
image
Computers and Technology, 25.06.2019 19:00, morganpl415
Abusiness wants to centralize its administrative tasks. at the same time, it wants the existing systems to manage and sustain the growing amount of work in a capable manner. which technology will the business meet its goals?
Answers: 1
Do you know the correct answer?
Assume you have: 32-bit addresses, 4KB Page size, 4MB Physical Memory Space, 4KB Cache with 4-way se...

Questions in other subjects:

Konu
Mathematics, 25.08.2020 21:01
Konu
History, 25.08.2020 21:01