GATE CS Memory Hierarchy: Cache, Main Memory and Secondary Storage questions
Practise Memory Hierarchy: Cache, Main Memory and Secondary Storage questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.
Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.
20 on this page
The size of the physical address space of a processor is bytes. The capacity of a cache memory unit is bytes. The cache block size is bytes. The cache memory unit can be built as a direct mapped cache or as a -way set-associative cache, where and . Let the length of the TAG field be bits …
Consider a system that has a cache memory unit and a memory management unit (MMU). The address input to the cache memory is a physical address. The MMU has a translation lookaside buffer (TLB). Assume that when a page is evicted from the main memory, the corresponding blocks in the cache are marked as invalid. For a given memory reference, which of the …
Consider a hard disk with a rotational speed of rpm. The time to move the read/write head from a track to its adjacent track is millisecond. Initially, the head is on track . The number of sectors per track is . The sector size is bytes. It is necessary to transfer data from randomly located sectors in each of the …
Consider a system with a processor and a KB direct mapped cache with block size of bytes. The system has a MB physical memory. Four words , and S are accessed by the processor in the same order times. That is, there are a total of memory references in the sequence …
To keep track of free blocks in a file system, one of the two approaches is generally used - using bitmaps (bit vectors) or using linked lists. Consider that the linked list approach is used to keep track of free blocks in a file system. Assume that the disk size is GB , block size is KB , and block numbers used are -bit long. A single …
Consider a system with MB physical memory and a word length of byte. The system uses a direct mapped cache, with block numbers starting from . The word with physical address is mapped to the cache block number . The maximum possible size of the cache (in KB ) for this configuration is . (answer …
Consider a memory system with bytes of main memory and bytes of cache memory. Assume that the processor generates -bit memory address, and the cache block size is bytes. If the cache uses direct mapping, how many bits will be required to store all the values? [Assume memory is byte …
A computer has a memory hierarchy consisting of two-level cache and and a main memory. If the processor needs to access data from memory, it first looks into cache. If the data is not found in cache, it goes to cache. If it fails to get the data from cache, it goes to main …
Given a computing system with two levels of cache (L1 and L2) and a main memory. The first level (L1) cache access time is nanosecond (ns) and the "hit rate" for L1 cache is while the processor is accessing the data from L1 cache. Whereas, for the second level (L2) cache, the "hit rate" is and the "miss penalty" for transferring …
For a direct-mapped cache, bits are used for the tag field and bits are used to index into a cache block. The size of each cache block is one byte. Assume that there is no other information stored for each cache block. Which ONE of the following is the CORRECT option for the sizes of the main memory and the cache memory in this system (byte …
Consider two set-associative cache memory architectures: , which uses the write back policy, and , which uses the write through policy. Both of them use the (Least Recently Used) block replacement policy. The cache memory is connected to the main memory. Which of the following statements is/are TRUE?
A given program has load/store instructions. Suppose the ideal (cycles per instruction) without any memory stalls is . The program exhibits miss rate on instruction cache and miss rate on data cache. The miss penalty is cycles. The speedup (rounded off to two decimal places) achieved with a perfect …
The baseline execution time of a program on a single core machine is nanoseconds ( . The code corresponding to of the execution time can be fully parallelized. The overhead for using an additional core is when running on a multicore system. Assume that all cores in the multicore system run their share …
A kilobyte byte-addressable memory is realized using four memory blocks. Two input address lines are connected to the chip select port of these memory blocks through a decoder as shown in the figure. The remaining ten input address lines from are connected …
An -way set associative cache of size is used in a system with -bit address. The address is sub-divided into and The number of bits in the is ___________.
Let and be two set associative cache organizations that use algorithm for cache block replacement. is a write back cache and is a write through cache. Which of the following statements is/are
A cache memory that has a hit rate of has an access latency and miss penalty An optimization is done on the cache to reduce the miss rate. However, the optimization results in an increase of cache access latency to whereas the miss penalty is not affected. The minimum hit rate (rounded …
Consider a system with direct mapped data cache with a block size of The system has a physical address space of and a word length of During the execution of a program, four data words and are accessed in that order times …
Consider a computer system with a byte-addressable primary memory of size bytes. Assume the computer system has a direct-mapped cache of size ( = bytes), and each cache block is of size bytes. The size of the tag field is __________ bits.
Consider a set-associative cache of size bytes with cache block size of bytes. Assume that the cache is byte-addressable and a -bit address is used for accessing the cache. If the width of the tag field is bits, the associativity of the cache is _________
