GATE Computer ScienceHardGATE CS (PYQ pattern)
A two-level memory has a 32 KB cache costing $100 per KB (access 10 ns) and a 4 MB main memory costing $1 per KB (access 100 ns); total capacity counts both levels (1 MB = 1024 KB). The cache hit ratio is 0.95 and main memory is accessed only after a cache miss. What are the average cost per KB and the average access time?
- A. $50.50 per KB; 15.0 ns
- B. $1.77 per KB; 14.5 ns
- C. $1.78 per KB; 15.0 ns
- D. $1.77 per KB; 15.0 ns
Correct answer: D. $1.77 per KB; 15.0 ns
Cost = (32 × 100 + 4096 × 1) / (32 + 4096) = 7296 / 4128 = $1.77. Time = 10 + 0.05 × 100 = 15 ns, since the cache is always looked up first. The simple average of prices gives $50.50; dividing by 4096 KB only gives $1.78; the simultaneous-access formula gives 14.5 ns.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A write-back, write-allocate cache has a 2 ns hit time and a 5% miss rate. A miss that evicts a clean block costs 40 ns; a miss that…
- An 8-bit CPU multiplies the two's-complement bytes 0xF6 and 0x0D as signed numbers into a 16-bit product. What is the product, and is the…
- A branch behaves T, T, N, N repeatedly for 32 executions. A 2-bit saturating counter starts at state 0 and predicts taken in states 2 and…
- A 32-bit machine uses a 2-level page table with 4 KB pages and 4-byte entries (10 + 10 + 12 bit split). A process uses exactly 4 MB + 8 KB…
- Which of the following statements about performance are correct? I. A lower CPI always means a faster machine. II. Execution time =…
- A DMA controller in burst mode moves 4-byte words at one word per 40 ns bus cycle from a device producing 10 MB/s (1 MB = 10⁶ B). The CPU…