Consider a machine with a 2-way set associative data cache of size 64 Kbytes…

GATE · 2008 · CS

Consider a machine with a 2-way set associative data cache of size 64 Kbytes and block size 16 bytes. The cache is managed using 32 bit virtual addresses and the page size is 4 Kbytes. A program to be run on this machine begins as follows: 

C

double ARR[1024][1024];
int i, j;
// Initialize array ARR to 0.0
for(i = 0; i < 1024; i++)
    for(j = 0; j < 1024; j++)
        ARR[i][j] = 0.0;

The size of double is 8 Bytes. Array ARR is located in memory starting at the beginning of virtual page 0xFF000 and stored in row major order. The cache is initially empty and no pre-fetching is done. The only data memory references made by the program are those to array ARR. The total size of the tags in the cache directory is

  1. A.

    32 Kbits

  2. B.

    34 Kbits

  3. C.

    64 Kbits

  4. D.

    68 Kbits

Attempted by 114 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…