Memory Hierarchy questions

Q25

GATE CS 2017 CS-1Memory HierarchyNAT1 mark
Consider a two-level cache hierarchy with L1 and L2 caches. An application incurs 1.41.4 memory accesses per instruction on average. For this application, the miss rate of L1 cache is 0.10.1; the L2 cache experiences, on average, 77 misses per 10001000 instructions. The miss rate of L2 expressed correct to two decimal places is ____________.
Show answer without attempting

Answer: 0.05

Q51

GATE CS 2017 CS-1Memory HierarchyNAT2 marks
Consider a 2-way set associative cache with 256256 blocks and uses LRU replacement. Initially the cache is empty. Conflict misses are those misses which occur due to contention of multiple blocks for the same cache set. Compulsory misses occur due to first time access to the block. The following sequence of accesses to memory blocks

(0,128,256,128,0,128,256,128,1,129,257,129,1,129,257,129)(0, 128, 256, 128, 0, 128, 256, 128, 1, 129, 257, 129, 1, 129, 257, 129)

is repeated 1010 times. The number of conflict misses experienced by the cache is ____________.
Show answer without attempting

Answer: 76.0

Q54

GATE CS 2017 CS-1Memory HierarchyNAT2 marks
A cache memory unit with capacity of NN words and block size of BB words is to be designed. If it is designed as a direct mapped cache, the length of the TAG field is 1010 bits. If the cache unit is now designed as a 1616-way set-associative cache, the length of the TAG field is ____________ bits.
Show answer without attempting

Answer: 14.0

Q29

GATE CS 2017 CS-2Memory HierarchyMCQ2 marks−2/3 if wrong
In a two-level cache system, the access times of L1L_1 and L2L_2 caches are 1 and 8 clock cycles, respectively. The miss penalty from the L2L_2 cache to main memory is 18 clock cycles. The miss rate of L1L_1 cache is twice that of L2L_2. The average memory access time (AMAT) of this cache system is 2 cycles. The miss rates of L1L_1 and L2L_2 respectively are:
Show answer without attempting

Answer: A

Q45

GATE CS 2017 CS-2Memory HierarchyNAT2 marks
The read access times and the hit ratios for different caches in a memory hierarchy are as given below.
CacheRead access time (in nanoseconds)Hit ratio
I-cache20.8
D-cache20.9
L2-cache80.9
The read access time of main memory is 90 nanoseconds. Assume that the caches use the referred-word-first read policy and the write back policy. Assume that all the caches are direct mapped caches. Assume that the dirty bit is always 0 for all the blocks in the caches. In execution of a program, 60% of memory reads are for instruction fetch and 40% are for memory operand fetch. The average read access time in nanoseconds (up to 2 decimal places) is ____________.
Show answer without attempting

Answer: 4.72

Q53

GATE CS 2017 CS-2Memory HierarchyNAT2 marks
Consider a machine with a byte addressable main memory of 2322^{32} bytes divided into blocks of size 32 bytes. Assume that a direct mapped cache having 512 cache lines is used with this machine. The size of the tag field in bits is ____________.
Show answer without attempting

Answer: 18.0

0/60 correct0 marks

Related topics in Computer Organization and Architecture