GATE 2004
199 questions
MCQ 1991-mark 199
Questions 76–80 of 199
Consider a system with 2 level cache. Access times of Level 1 cache, Level 2 cache and main memory are 1 ns, 10 ns, and 500 ns respectively. The hit rates of Level 1 and Level 2 caches are 0.8 and 0.9, respectively. What is the average access time of the system ignoring the search time within the cache?
Answer: (C)
Average memory access time
In this formula, and are the search times of the cache and the cache. The question tells us to take them as
So, the average memory access time is
The answer is option C.
Consider a small two-way set-associative cache memory, consisting of four blocks. For choosing the block to be replaced, use the least recently used (LRU) scheme. The number of cache misses for the following sequence of block addresses is 8, 12, 0, 12,8
Answer: (C)
The cache has blocks, and each set holds blocks.
the cache has sets. The blocks go to the sets like this:
The lowest bit of the block address picks the set. Blocks 8, 12 and 0 are all even, so all go to set 0, which has only 2 slots.
8: miss. Set 0 = {8}.
12: miss. Set 0 = {8, 12}.
0: miss. The set is full and 8 is the least recently used, so 0 replaces 8. Set 0 = {12, 0}.
12: hit.
8: miss. Now 0 is the least recently used, so 8 replaces 0. Set 0 = {12, 8}.
Total misses .
Answer: (C)
the cache has sets. The blocks go to the sets like this:
The lowest bit of the block address picks the set. Blocks 8, 12 and 0 are all even, so all go to set 0, which has only 2 slots.
8: miss. Set 0 = {8}.
12: miss. Set 0 = {8, 12}.
0: miss. The set is full and 8 is the least recently used, so 0 replaces 8. Set 0 = {12, 0}.
12: hit.
8: miss. Now 0 is the least recently used, so 8 replaces 0. Set 0 = {12, 8}.
Total misses .
Answer: (C)
The storage area of a disk has the innermost diameter of 10 cm and outermost diameter of 20 cm. The maximum storage density of the disk is 1400 bits/cm. The disk rotates at a speed of 4200 RPM. The main memory of a computer has 64-bit word length and 1 cycle time. If cycle stealing is used for data transfer from the disk, the percentage of memory cycles stolen for transferring one word is
Answer: (C)
With constant angular velocity every track holds the same number of bits, equal to what the innermost track holds. The innermost track has the smallest circumference, so it has the maximum density of bits/cm.
Track capacity bits.
The disk turns at rpm rotations per second, so the transfer rate bits/s.
Time for one -bit word .
For each word the disk steals one memory cycle of . Fraction stolen , that is about . (If the cycle is added to the word time, , which is also closest to .)
Answer: (C)
Track capacity bits.
The disk turns at rpm rotations per second, so the transfer rate bits/s.
Time for one -bit word .
For each word the disk steals one memory cycle of . Fraction stolen , that is about . (If the cycle is added to the word time, , which is also closest to .)
Answer: (C)
What is the bit rate of a video terminal unit with 80 characters/line, 8 bits/character and horizontal sweep time of 100 (including 20 of retrace time)?
Answer: (B)
Bits in one line = bits.
A new line starts every . This sweep time already includes the retrace, and the retrace is part of every cycle, so the average bit rate is taken over the whole . (Dividing by the active time would give the peak rate during the sweep, Mbps, not the average.)
Bit rate =
Answer: (B)
A new line starts every . This sweep time already includes the retrace, and the retrace is part of every cycle, so the average bit rate is taken over the whole . (Dividing by the active time would give the peak rate during the sweep, Mbps, not the average.)
Bit rate =
Answer: (B)
A hard disk with a transfer rate of 10 Mbytes/second is constantly transferring data to memory using DMA. The processor runs at 600 MHz, and takes 300 and 900 clock cycles to initiate and complete DMA transfer respectively. If the size of the transfer is 20 Kbytes, what is the percentage of processor time consumed for the transfer operation?
Answer: (D)
The CPU is used only to start and to finish the DMA transfer. During the transfer itself it is free.
Let be the CPU time to start and finish the DMA, and the time to transfer the data. Then
(clock cycle = 1/frequency).
The disk rate is MB/s, so 1 byte takes s. For 20 KB, .
Percentage =
Answer: (D)
Let be the CPU time to start and finish the DMA, and the time to transfer the data. Then
(clock cycle = 1/frequency).
The disk rate is MB/s, so 1 byte takes s. For 20 KB, .
Percentage =
Answer: (D)