Cache Memory: GATE CS Previous Year Questions

Cache Memory · Computer Organization and Architecture

68 questions · asked in 25 of 27 years (2000–2026)

MCQ 44 · MSQ 4 · NAT 201-mark 30 · 2-mark 38

2000Questions per year2026

Questions 26–30 of 68

Q26GATE 2017 (Session 2)2 marksNAT
The read access times and the hit ratios for different caches in a memory hierarchy are as given below.
Cache Read access time (in nanoseconds) Hit ratio I-cache 2 0.8 D-cache 2 0.9 L2-cache 8 0.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______.

Q27GATE 2017 (Session 2)2 marksNAT
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 ______.

Q28GATE 2016 (Session 2)2 marksNAT
The width of the physical address on a machine is 40 bits. The width of the tag field in a 512KB 8-way set associative cache is ________ bits.

Q29GATE 2016 (Session 2)2 marksNAT
A file system uses an in-memory cache to cache disk blocks.The miss rate of the cache is shown in the figure. The latency to read a block from the cache is 1 ms and to read a block from the disk is 10ms. Assume that the cost of checking whether a block exists in the cache is negligible. Available cache sizes are in multiples of 10MB.
0 0 10 10 20 20 30 30 40 40 50 50 60 60 70 70 80 80 90 90 Miss rate (%) Cache size (MB)
The smallest cache size required to ensure an average read latency of less than 6ms is_________ MB.

Q30GATE 2015 (Session 2)1 markNAT
Assume that for a certain processor, a read request takes 50 nanoseconds on a cache miss and 5 nanoseconds on a cache hit. Suppose while running a program, it was observed that 80% of the processor's read requests result in a cache hit. The average read access time in nanoseconds is __________.

Keep practising

Topics in Computer Organization and Architecture

All CS topics ›